Trendsic Platform Service

<back to all web services

FactFinderCodeStartRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET/v1/FactFinderCodeStart
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class FactFinderCode implements IConvertible
{
    int? Id;
    int? AgentId;
    int? SerialNumber;
    DateTime? ShipDate;
    String? TrackingNumber;
    DateTime? CreatedDate;
    int? ContactId;
    DateTime? AssignedDate;
    String? AgentName;
    String? ContactName;

    FactFinderCode({this.Id,this.AgentId,this.SerialNumber,this.ShipDate,this.TrackingNumber,this.CreatedDate,this.ContactId,this.AssignedDate,this.AgentName,this.ContactName});
    FactFinderCode.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        AgentId = json['AgentId'];
        SerialNumber = json['SerialNumber'];
        ShipDate = JsonConverters.fromJson(json['ShipDate'],'DateTime',context!);
        TrackingNumber = json['TrackingNumber'];
        CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!);
        ContactId = json['ContactId'];
        AssignedDate = JsonConverters.fromJson(json['AssignedDate'],'DateTime',context!);
        AgentName = json['AgentName'];
        ContactName = json['ContactName'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'AgentId': AgentId,
        'SerialNumber': SerialNumber,
        'ShipDate': JsonConverters.toJson(ShipDate,'DateTime',context!),
        'TrackingNumber': TrackingNumber,
        'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!),
        'ContactId': ContactId,
        'AssignedDate': JsonConverters.toJson(AssignedDate,'DateTime',context!),
        'AgentName': AgentName,
        'ContactName': ContactName
    };

    getTypeName() => "FactFinderCode";
    TypeContext? context = _ctx;
}

class FactFinderCodeResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<FactFinderCode>? FactFinderCode = [];

    FactFinderCodeResponse({this.ResponseStatus,this.FactFinderCode});
    FactFinderCodeResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        FactFinderCode = JsonConverters.fromJson(json['FactFinderCode'],'List<FactFinderCode>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'FactFinderCode': JsonConverters.toJson(FactFinderCode,'List<FactFinderCode>',context!)
    };

    getTypeName() => "FactFinderCodeResponse";
    TypeContext? context = _ctx;
}

class FactFinderCodeStartRequest implements IConvertible
{
    FactFinderCodeStartRequest();
    FactFinderCodeStartRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "FactFinderCodeStartRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'FactFinderCode': TypeInfo(TypeOf.Class, create:() => FactFinderCode()),
    'FactFinderCodeResponse': TypeInfo(TypeOf.Class, create:() => FactFinderCodeResponse()),
    'List<FactFinderCode>': TypeInfo(TypeOf.Class, create:() => <FactFinderCode>[]),
    'FactFinderCodeStartRequest': TypeInfo(TypeOf.Class, create:() => FactFinderCodeStartRequest()),
});

Dart FactFinderCodeStartRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/FactFinderCodeStart HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"FactFinderCode":[{"Id":0,"AgentId":0,"SerialNumber":0,"ShipDate":"0001-01-01T00:00:00.0000000","TrackingNumber":"String","CreatedDate":"0001-01-01T00:00:00.0000000","ContactId":0,"AssignedDate":"0001-01-01T00:00:00.0000000","AgentName":"String","ContactName":"String"}]}