| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/AgentRecruit |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class AgentRecruit 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? Company;
String? FirstName;
String? LastName;
String? MiddleInitial;
String? Address1;
String? Address2;
String? City;
String? State;
String? Zip;
String? Country;
String? Email;
String? HomePhone;
String? CellPhone;
String? WorkPhone;
String? AgentNumber;
String? PlacementAgentName;
String? PlacementAgent;
DateTime? CreatedDate;
String? Level;
DateTime? LastLoginDate;
String? Package;
double? AppCount;
double? Cashflow;
AgentRecruit({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.Company,this.FirstName,this.LastName,this.MiddleInitial,this.Address1,this.Address2,this.City,this.State,this.Zip,this.Country,this.Email,this.HomePhone,this.CellPhone,this.WorkPhone,this.AgentNumber,this.PlacementAgentName,this.PlacementAgent,this.CreatedDate,this.Level,this.LastLoginDate,this.Package,this.AppCount,this.Cashflow});
AgentRecruit.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'];
Company = json['Company'];
FirstName = json['FirstName'];
LastName = json['LastName'];
MiddleInitial = json['MiddleInitial'];
Address1 = json['Address1'];
Address2 = json['Address2'];
City = json['City'];
State = json['State'];
Zip = json['Zip'];
Country = json['Country'];
Email = json['Email'];
HomePhone = json['HomePhone'];
CellPhone = json['CellPhone'];
WorkPhone = json['WorkPhone'];
AgentNumber = json['AgentNumber'];
PlacementAgentName = json['PlacementAgentName'];
PlacementAgent = json['PlacementAgent'];
CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!);
Level = json['Level'];
LastLoginDate = JsonConverters.fromJson(json['LastLoginDate'],'DateTime',context!);
Package = json['Package'];
AppCount = JsonConverters.toDouble(json['AppCount']);
Cashflow = JsonConverters.toDouble(json['Cashflow']);
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,
'Company': Company,
'FirstName': FirstName,
'LastName': LastName,
'MiddleInitial': MiddleInitial,
'Address1': Address1,
'Address2': Address2,
'City': City,
'State': State,
'Zip': Zip,
'Country': Country,
'Email': Email,
'HomePhone': HomePhone,
'CellPhone': CellPhone,
'WorkPhone': WorkPhone,
'AgentNumber': AgentNumber,
'PlacementAgentName': PlacementAgentName,
'PlacementAgent': PlacementAgent,
'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!),
'Level': Level,
'LastLoginDate': JsonConverters.toJson(LastLoginDate,'DateTime',context!),
'Package': Package,
'AppCount': AppCount,
'Cashflow': Cashflow
};
getTypeName() => "AgentRecruit";
TypeContext? context = _ctx;
}
class AgentRecruitResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<AgentRecruit>? AgentRecruit = [];
AgentRecruitResponse({this.ResponseStatus,this.AgentRecruit});
AgentRecruitResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
AgentRecruit = JsonConverters.fromJson(json['AgentRecruit'],'List<AgentRecruit>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'AgentRecruit': JsonConverters.toJson(AgentRecruit,'List<AgentRecruit>',context!)
};
getTypeName() => "AgentRecruitResponse";
TypeContext? context = _ctx;
}
class AgentRecruitRequest implements IConvertible
{
List<AgentRecruit>? AgentRecruit = [];
DateTime? StartDate;
DateTime? EndDate;
AgentRecruitRequest({this.AgentRecruit,this.StartDate,this.EndDate});
AgentRecruitRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AgentRecruit = JsonConverters.fromJson(json['AgentRecruit'],'List<AgentRecruit>',context!);
StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!);
EndDate = JsonConverters.fromJson(json['EndDate'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'AgentRecruit': JsonConverters.toJson(AgentRecruit,'List<AgentRecruit>',context!),
'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!),
'EndDate': JsonConverters.toJson(EndDate,'DateTime',context!)
};
getTypeName() => "AgentRecruitRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'AgentRecruit': TypeInfo(TypeOf.Class, create:() => AgentRecruit()),
'AgentRecruitResponse': TypeInfo(TypeOf.Class, create:() => AgentRecruitResponse()),
'List<AgentRecruit>': TypeInfo(TypeOf.Class, create:() => <AgentRecruit>[]),
'AgentRecruitRequest': TypeInfo(TypeOf.Class, create:() => AgentRecruitRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/AgentRecruit HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AgentRecruitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AgentRecruit>
<AgentRecruit>
<Address1>String</Address1>
<Address2>String</Address2>
<AgentLevel>String</AgentLevel>
<AgentNumber>String</AgentNumber>
<AppCount>0</AppCount>
<Cashflow>0</Cashflow>
<CellPhone>String</CellPhone>
<City>String</City>
<Company>String</Company>
<Country>String</Country>
<CreatedDate>0001-01-01T00:00:00</CreatedDate>
<Email>String</Email>
<FirstName>String</FirstName>
<HomePhone>String</HomePhone>
<LastLoginDate>0001-01-01T00:00:00</LastLoginDate>
<LastName>String</LastName>
<Level>0</Level>
<MiddleInitial>String</MiddleInitial>
<Package>String</Package>
<PlacementAgent>String</PlacementAgent>
<PlacementAgentName>String</PlacementAgentName>
<Rank>String</Rank>
<State>String</State>
<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>
<WorkPhone>String</WorkPhone>
<Zip>String</Zip>
</AgentRecruit>
</AgentRecruit>
<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>
</AgentRecruitResponse>