Trendsic Platform Service

<back to all web services

AgentCrmRecruitRequest

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

class AgentCrmRecruit implements IConvertible
{
    String? Rank;
    String? AgentLevel;
    String? UL1FirstName;
    String? UL1MiddleName;
    String? UL1LastName;
    String? UL2FirstName;
    String? UL2MiddleName;
    String? UL2LastName;
    String? UL3FirstName;
    String? UL3MiddleName;
    String? UL3LastName;
    String? UL4FirstName;
    String? UL4MiddleName;
    String? UL4LastName;
    String? firstMVP;
    String? lastMVP;
    String? firstAVP;
    String? lastAVP;
    String? firstRVP;
    String? lastRVP;
    String? ResidentLicenseState;
    String? ResidentLicenseExpirationDate;
    int? AgentId;
    String? AgentStatus;
    String? Office;
    double? Upline1Percent;
    double? Upline2Percent;
    double? Upline3Percent;
    double? Upline4Percent;
    String? FirstName;
    String? LastName;
    String? MiddleInitial;
    String? Address1;
    String? Address2;
    String? City;
    String? State;
    String? Zip;
    String? Email;
    String? BusinessEmail;
    String? HomePhone;
    String? CellPhone;
    String? WorkPhone;
    String? Fax;
    String? AgentNumber;
    String? PlacementAgent;
    DateTime? CreatedDate;
    String? Level;
    String? Package;
    double? AppCount;
    double? Cashflow;
    String? TimeZone;
    String? Tags;
    double? Longitude;
    double? Latitude;

    AgentCrmRecruit({this.Rank,this.AgentLevel,this.UL1FirstName,this.UL1MiddleName,this.UL1LastName,this.UL2FirstName,this.UL2MiddleName,this.UL2LastName,this.UL3FirstName,this.UL3MiddleName,this.UL3LastName,this.UL4FirstName,this.UL4MiddleName,this.UL4LastName,this.firstMVP,this.lastMVP,this.firstAVP,this.lastAVP,this.firstRVP,this.lastRVP,this.ResidentLicenseState,this.ResidentLicenseExpirationDate,this.AgentId,this.AgentStatus,this.Office,this.Upline1Percent,this.Upline2Percent,this.Upline3Percent,this.Upline4Percent,this.FirstName,this.LastName,this.MiddleInitial,this.Address1,this.Address2,this.City,this.State,this.Zip,this.Email,this.BusinessEmail,this.HomePhone,this.CellPhone,this.WorkPhone,this.Fax,this.AgentNumber,this.PlacementAgent,this.CreatedDate,this.Level,this.Package,this.AppCount,this.Cashflow,this.TimeZone,this.Tags,this.Longitude,this.Latitude});
    AgentCrmRecruit.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Rank = json['Rank'];
        AgentLevel = json['AgentLevel'];
        UL1FirstName = json['UL1FirstName'];
        UL1MiddleName = json['UL1MiddleName'];
        UL1LastName = json['UL1LastName'];
        UL2FirstName = json['UL2FirstName'];
        UL2MiddleName = json['UL2MiddleName'];
        UL2LastName = json['UL2LastName'];
        UL3FirstName = json['UL3FirstName'];
        UL3MiddleName = json['UL3MiddleName'];
        UL3LastName = json['UL3LastName'];
        UL4FirstName = json['UL4FirstName'];
        UL4MiddleName = json['UL4MiddleName'];
        UL4LastName = json['UL4LastName'];
        firstMVP = json['firstMVP'];
        lastMVP = json['lastMVP'];
        firstAVP = json['firstAVP'];
        lastAVP = json['lastAVP'];
        firstRVP = json['firstRVP'];
        lastRVP = json['lastRVP'];
        ResidentLicenseState = json['ResidentLicenseState'];
        ResidentLicenseExpirationDate = json['ResidentLicenseExpirationDate'];
        AgentId = json['AgentId'];
        AgentStatus = json['AgentStatus'];
        Office = json['Office'];
        Upline1Percent = JsonConverters.toDouble(json['Upline1Percent']);
        Upline2Percent = JsonConverters.toDouble(json['Upline2Percent']);
        Upline3Percent = JsonConverters.toDouble(json['Upline3Percent']);
        Upline4Percent = JsonConverters.toDouble(json['Upline4Percent']);
        FirstName = json['FirstName'];
        LastName = json['LastName'];
        MiddleInitial = json['MiddleInitial'];
        Address1 = json['Address1'];
        Address2 = json['Address2'];
        City = json['City'];
        State = json['State'];
        Zip = json['Zip'];
        Email = json['Email'];
        BusinessEmail = json['BusinessEmail'];
        HomePhone = json['HomePhone'];
        CellPhone = json['CellPhone'];
        WorkPhone = json['WorkPhone'];
        Fax = json['Fax'];
        AgentNumber = json['AgentNumber'];
        PlacementAgent = json['PlacementAgent'];
        CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!);
        Level = json['Level'];
        Package = json['Package'];
        AppCount = JsonConverters.toDouble(json['AppCount']);
        Cashflow = JsonConverters.toDouble(json['Cashflow']);
        TimeZone = json['TimeZone'];
        Tags = json['Tags'];
        Longitude = JsonConverters.toDouble(json['Longitude']);
        Latitude = JsonConverters.toDouble(json['Latitude']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Rank': Rank,
        'AgentLevel': AgentLevel,
        'UL1FirstName': UL1FirstName,
        'UL1MiddleName': UL1MiddleName,
        'UL1LastName': UL1LastName,
        'UL2FirstName': UL2FirstName,
        'UL2MiddleName': UL2MiddleName,
        'UL2LastName': UL2LastName,
        'UL3FirstName': UL3FirstName,
        'UL3MiddleName': UL3MiddleName,
        'UL3LastName': UL3LastName,
        'UL4FirstName': UL4FirstName,
        'UL4MiddleName': UL4MiddleName,
        'UL4LastName': UL4LastName,
        'firstMVP': firstMVP,
        'lastMVP': lastMVP,
        'firstAVP': firstAVP,
        'lastAVP': lastAVP,
        'firstRVP': firstRVP,
        'lastRVP': lastRVP,
        'ResidentLicenseState': ResidentLicenseState,
        'ResidentLicenseExpirationDate': ResidentLicenseExpirationDate,
        'AgentId': AgentId,
        'AgentStatus': AgentStatus,
        'Office': Office,
        'Upline1Percent': Upline1Percent,
        'Upline2Percent': Upline2Percent,
        'Upline3Percent': Upline3Percent,
        'Upline4Percent': Upline4Percent,
        'FirstName': FirstName,
        'LastName': LastName,
        'MiddleInitial': MiddleInitial,
        'Address1': Address1,
        'Address2': Address2,
        'City': City,
        'State': State,
        'Zip': Zip,
        'Email': Email,
        'BusinessEmail': BusinessEmail,
        'HomePhone': HomePhone,
        'CellPhone': CellPhone,
        'WorkPhone': WorkPhone,
        'Fax': Fax,
        'AgentNumber': AgentNumber,
        'PlacementAgent': PlacementAgent,
        'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!),
        'Level': Level,
        'Package': Package,
        'AppCount': AppCount,
        'Cashflow': Cashflow,
        'TimeZone': TimeZone,
        'Tags': Tags,
        'Longitude': Longitude,
        'Latitude': Latitude
    };

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

class AgentCrmRecruitResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<AgentCrmRecruit>? AgentCrmRecruit = [];

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

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

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

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

class AgentCrmRecruitRequest implements IConvertible
{
    int? AgentID;
    List<AgentCrmRecruit>? AgentCrmRecruit = [];
    DateTime? StartDate;
    DateTime? EndDate;

    AgentCrmRecruitRequest({this.AgentID,this.AgentCrmRecruit,this.StartDate,this.EndDate});
    AgentCrmRecruitRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AgentID = json['AgentID'];
        AgentCrmRecruit = JsonConverters.fromJson(json['AgentCrmRecruit'],'List<AgentCrmRecruit>',context!);
        StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!);
        EndDate = JsonConverters.fromJson(json['EndDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AgentID': AgentID,
        'AgentCrmRecruit': JsonConverters.toJson(AgentCrmRecruit,'List<AgentCrmRecruit>',context!),
        'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!),
        'EndDate': JsonConverters.toJson(EndDate,'DateTime',context!)
    };

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

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

Dart AgentCrmRecruitRequest 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/AgentCrmRecruit/{AgentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AgentCrmRecruitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AgentCrmRecruit>
    <AgentCrmRecruit>
      <Address1>String</Address1>
      <Address2>String</Address2>
      <AgentId>0</AgentId>
      <AgentLevel>String</AgentLevel>
      <AgentNumber>String</AgentNumber>
      <AgentStatus>String</AgentStatus>
      <AppCount>0</AppCount>
      <BusinessEmail>String</BusinessEmail>
      <Cashflow>0</Cashflow>
      <CellPhone>String</CellPhone>
      <City>String</City>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <Email>String</Email>
      <Fax>String</Fax>
      <FirstName>String</FirstName>
      <HomePhone>String</HomePhone>
      <LastName>String</LastName>
      <Latitude>0</Latitude>
      <Level>String</Level>
      <Longitude>0</Longitude>
      <MiddleInitial>String</MiddleInitial>
      <Office>String</Office>
      <Package>String</Package>
      <PlacementAgent>String</PlacementAgent>
      <Rank>String</Rank>
      <ResidentLicenseExpirationDate>String</ResidentLicenseExpirationDate>
      <ResidentLicenseState>String</ResidentLicenseState>
      <State>String</State>
      <Tags>String</Tags>
      <TimeZone>String</TimeZone>
      <UL1FirstName>String</UL1FirstName>
      <UL1LastName>String</UL1LastName>
      <UL1MiddleName>String</UL1MiddleName>
      <UL2FirstName>String</UL2FirstName>
      <UL2LastName>String</UL2LastName>
      <UL2MiddleName>String</UL2MiddleName>
      <UL3FirstName>String</UL3FirstName>
      <UL3LastName>String</UL3LastName>
      <UL3MiddleName>String</UL3MiddleName>
      <UL4FirstName>String</UL4FirstName>
      <UL4LastName>String</UL4LastName>
      <UL4MiddleName>String</UL4MiddleName>
      <Upline1Percent>0</Upline1Percent>
      <Upline2Percent>0</Upline2Percent>
      <Upline3Percent>0</Upline3Percent>
      <Upline4Percent>0</Upline4Percent>
      <WorkPhone>String</WorkPhone>
      <Zip>String</Zip>
      <firstAVP>String</firstAVP>
      <firstMVP>String</firstMVP>
      <firstRVP>String</firstRVP>
      <lastAVP>String</lastAVP>
      <lastMVP>String</lastMVP>
      <lastRVP>String</lastRVP>
    </AgentCrmRecruit>
  </AgentCrmRecruit>
  <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>
</AgentCrmRecruitResponse>