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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FactFinderCodeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <FactFinderCode>
    <FactFinderCode>
      <AgentId>0</AgentId>
      <AgentName>String</AgentName>
      <AssignedDate>0001-01-01T00:00:00</AssignedDate>
      <ContactId>0</ContactId>
      <ContactName>String</ContactName>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <Id>0</Id>
      <SerialNumber>0</SerialNumber>
      <ShipDate>0001-01-01T00:00:00</ShipDate>
      <TrackingNumber>String</TrackingNumber>
    </FactFinderCode>
  </FactFinderCode>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</FactFinderCodeResponse>