| Required role: | Administrator |
| GET | /v1/AgentRegistrationLiteReport |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class AgentRegistrationTemp implements IConvertible
{
int? AgentRegistrationTempId;
String? ApplicationId;
String? Company;
String? EIN;
String? FirstName;
String? MiddleName;
String? LastName;
String? Address1;
String? Address2;
String? City;
String? State;
String? Zip;
String? Email;
String? HomePhone;
String? CellPhone;
String? WorkPhone;
bool? AgreeToDisclosures;
DateTime? AgreeToDate;
DateTime? PaidDate;
String? AgentNumber;
String? Upline1Name;
int? Upline1;
String? Upline2Name;
int? Upline2;
String? RecruitedBy;
DateTime? CreatedDate;
DateTime? DOB;
String? SSN;
String? Password;
double? Upline1Percent;
double? Upline2Percent;
int? AgentId;
String? AccountName;
String? AccountType;
String? AccountNumber;
String? AccountRouting;
String? w9_1;
String? w9_2;
String? w9_3_1;
String? w9_3_2;
String? w9_3_3;
String? w9_3_4;
String? w9_3_5;
String? w9_3_6;
String? w9_3_7;
String? w9_3_8;
String? w9_4_1;
String? w9_4_2;
String? w9_5;
String? w9_6;
String? w9_7;
bool? IsSecurityLicensed;
String? SecurityLicense;
String? Position;
String? School;
String? District;
String? StoreName;
AgentRegistrationTemp({this.AgentRegistrationTempId,this.ApplicationId,this.Company,this.EIN,this.FirstName,this.MiddleName,this.LastName,this.Address1,this.Address2,this.City,this.State,this.Zip,this.Email,this.HomePhone,this.CellPhone,this.WorkPhone,this.AgreeToDisclosures,this.AgreeToDate,this.PaidDate,this.AgentNumber,this.Upline1Name,this.Upline1,this.Upline2Name,this.Upline2,this.RecruitedBy,this.CreatedDate,this.DOB,this.SSN,this.Password,this.Upline1Percent,this.Upline2Percent,this.AgentId,this.AccountName,this.AccountType,this.AccountNumber,this.AccountRouting,this.w9_1,this.w9_2,this.w9_3_1,this.w9_3_2,this.w9_3_3,this.w9_3_4,this.w9_3_5,this.w9_3_6,this.w9_3_7,this.w9_3_8,this.w9_4_1,this.w9_4_2,this.w9_5,this.w9_6,this.w9_7,this.IsSecurityLicensed,this.SecurityLicense,this.Position,this.School,this.District,this.StoreName});
AgentRegistrationTemp.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AgentRegistrationTempId = json['AgentRegistrationTempId'];
ApplicationId = json['ApplicationId'];
Company = json['Company'];
EIN = json['EIN'];
FirstName = json['FirstName'];
MiddleName = json['MiddleName'];
LastName = json['LastName'];
Address1 = json['Address1'];
Address2 = json['Address2'];
City = json['City'];
State = json['State'];
Zip = json['Zip'];
Email = json['Email'];
HomePhone = json['HomePhone'];
CellPhone = json['CellPhone'];
WorkPhone = json['WorkPhone'];
AgreeToDisclosures = json['AgreeToDisclosures'];
AgreeToDate = JsonConverters.fromJson(json['AgreeToDate'],'DateTime',context!);
PaidDate = JsonConverters.fromJson(json['PaidDate'],'DateTime',context!);
AgentNumber = json['AgentNumber'];
Upline1Name = json['Upline1Name'];
Upline1 = json['Upline1'];
Upline2Name = json['Upline2Name'];
Upline2 = json['Upline2'];
RecruitedBy = json['RecruitedBy'];
CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!);
DOB = JsonConverters.fromJson(json['DOB'],'DateTime',context!);
SSN = json['SSN'];
Password = json['Password'];
Upline1Percent = JsonConverters.toDouble(json['Upline1Percent']);
Upline2Percent = JsonConverters.toDouble(json['Upline2Percent']);
AgentId = json['AgentId'];
AccountName = json['AccountName'];
AccountType = json['AccountType'];
AccountNumber = json['AccountNumber'];
AccountRouting = json['AccountRouting'];
w9_1 = json['w9_1'];
w9_2 = json['w9_2'];
w9_3_1 = json['w9_3_1'];
w9_3_2 = json['w9_3_2'];
w9_3_3 = json['w9_3_3'];
w9_3_4 = json['w9_3_4'];
w9_3_5 = json['w9_3_5'];
w9_3_6 = json['w9_3_6'];
w9_3_7 = json['w9_3_7'];
w9_3_8 = json['w9_3_8'];
w9_4_1 = json['w9_4_1'];
w9_4_2 = json['w9_4_2'];
w9_5 = json['w9_5'];
w9_6 = json['w9_6'];
w9_7 = json['w9_7'];
IsSecurityLicensed = json['IsSecurityLicensed'];
SecurityLicense = json['SecurityLicense'];
Position = json['Position'];
School = json['School'];
District = json['District'];
StoreName = json['StoreName'];
return this;
}
Map<String, dynamic> toJson() => {
'AgentRegistrationTempId': AgentRegistrationTempId,
'ApplicationId': ApplicationId,
'Company': Company,
'EIN': EIN,
'FirstName': FirstName,
'MiddleName': MiddleName,
'LastName': LastName,
'Address1': Address1,
'Address2': Address2,
'City': City,
'State': State,
'Zip': Zip,
'Email': Email,
'HomePhone': HomePhone,
'CellPhone': CellPhone,
'WorkPhone': WorkPhone,
'AgreeToDisclosures': AgreeToDisclosures,
'AgreeToDate': JsonConverters.toJson(AgreeToDate,'DateTime',context!),
'PaidDate': JsonConverters.toJson(PaidDate,'DateTime',context!),
'AgentNumber': AgentNumber,
'Upline1Name': Upline1Name,
'Upline1': Upline1,
'Upline2Name': Upline2Name,
'Upline2': Upline2,
'RecruitedBy': RecruitedBy,
'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!),
'DOB': JsonConverters.toJson(DOB,'DateTime',context!),
'SSN': SSN,
'Password': Password,
'Upline1Percent': Upline1Percent,
'Upline2Percent': Upline2Percent,
'AgentId': AgentId,
'AccountName': AccountName,
'AccountType': AccountType,
'AccountNumber': AccountNumber,
'AccountRouting': AccountRouting,
'w9_1': w9_1,
'w9_2': w9_2,
'w9_3_1': w9_3_1,
'w9_3_2': w9_3_2,
'w9_3_3': w9_3_3,
'w9_3_4': w9_3_4,
'w9_3_5': w9_3_5,
'w9_3_6': w9_3_6,
'w9_3_7': w9_3_7,
'w9_3_8': w9_3_8,
'w9_4_1': w9_4_1,
'w9_4_2': w9_4_2,
'w9_5': w9_5,
'w9_6': w9_6,
'w9_7': w9_7,
'IsSecurityLicensed': IsSecurityLicensed,
'SecurityLicense': SecurityLicense,
'Position': Position,
'School': School,
'District': District,
'StoreName': StoreName
};
getTypeName() => "AgentRegistrationTemp";
TypeContext? context = _ctx;
}
class AgentRegistrationTempExtended extends AgentRegistrationTemp implements IConvertible
{
String? FullName;
String? Address;
DateTime? ContractingComplete;
DateTime? PackageMailed;
String? TrackingNum;
String? Upline1AgentName;
String? Upline2AgentName;
bool? HasAgreement;
bool? IsAgent;
AgentRegistrationTempExtended({this.FullName,this.Address,this.ContractingComplete,this.PackageMailed,this.TrackingNum,this.Upline1AgentName,this.Upline2AgentName,this.HasAgreement,this.IsAgent});
AgentRegistrationTempExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
FullName = json['FullName'];
Address = json['Address'];
ContractingComplete = JsonConverters.fromJson(json['ContractingComplete'],'DateTime',context!);
PackageMailed = JsonConverters.fromJson(json['PackageMailed'],'DateTime',context!);
TrackingNum = json['TrackingNum'];
Upline1AgentName = json['Upline1AgentName'];
Upline2AgentName = json['Upline2AgentName'];
HasAgreement = json['HasAgreement'];
IsAgent = json['IsAgent'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'FullName': FullName,
'Address': Address,
'ContractingComplete': JsonConverters.toJson(ContractingComplete,'DateTime',context!),
'PackageMailed': JsonConverters.toJson(PackageMailed,'DateTime',context!),
'TrackingNum': TrackingNum,
'Upline1AgentName': Upline1AgentName,
'Upline2AgentName': Upline2AgentName,
'HasAgreement': HasAgreement,
'IsAgent': IsAgent
});
getTypeName() => "AgentRegistrationTempExtended";
TypeContext? context = _ctx;
}
class AgentRegistrationTempReportResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<AgentRegistrationTempExtended>? ReportData = [];
AgentRegistrationTempReportResponse({this.ResponseStatus,this.ReportData});
AgentRegistrationTempReportResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
ReportData = JsonConverters.fromJson(json['ReportData'],'List<AgentRegistrationTempExtended>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'ReportData': JsonConverters.toJson(ReportData,'List<AgentRegistrationTempExtended>',context!)
};
getTypeName() => "AgentRegistrationTempReportResponse";
TypeContext? context = _ctx;
}
class AgentRegistrationLiteReportRequest implements IConvertible
{
AgentRegistrationLiteReportRequest();
AgentRegistrationLiteReportRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "AgentRegistrationLiteReportRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'AgentRegistrationTemp': TypeInfo(TypeOf.Class, create:() => AgentRegistrationTemp()),
'AgentRegistrationTempExtended': TypeInfo(TypeOf.Class, create:() => AgentRegistrationTempExtended()),
'AgentRegistrationTempReportResponse': TypeInfo(TypeOf.Class, create:() => AgentRegistrationTempReportResponse()),
'List<AgentRegistrationTempExtended>': TypeInfo(TypeOf.Class, create:() => <AgentRegistrationTempExtended>[]),
'AgentRegistrationLiteReportRequest': TypeInfo(TypeOf.Class, create:() => AgentRegistrationLiteReportRequest()),
});
Dart AgentRegistrationLiteReportRequest DTOs
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/AgentRegistrationLiteReport HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AgentRegistrationTempReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ReportData>
<AgentRegistrationTempExtended>
<AccountName>String</AccountName>
<AccountNumber>String</AccountNumber>
<AccountRouting>String</AccountRouting>
<AccountType>String</AccountType>
<Address1>String</Address1>
<Address2>String</Address2>
<AgentId>0</AgentId>
<AgentNumber>String</AgentNumber>
<AgentRegistrationTempId>0</AgentRegistrationTempId>
<AgreeToDate>0001-01-01T00:00:00</AgreeToDate>
<AgreeToDisclosures>false</AgreeToDisclosures>
<ApplicationId>String</ApplicationId>
<CellPhone>String</CellPhone>
<City>String</City>
<Company>String</Company>
<CreatedDate>0001-01-01T00:00:00</CreatedDate>
<DOB>0001-01-01T00:00:00</DOB>
<District>String</District>
<EIN>String</EIN>
<Email>String</Email>
<FirstName>String</FirstName>
<HomePhone>String</HomePhone>
<IsSecurityLicensed>false</IsSecurityLicensed>
<LastName>String</LastName>
<MiddleName>String</MiddleName>
<PaidDate>0001-01-01T00:00:00</PaidDate>
<Password>String</Password>
<Position>String</Position>
<RecruitedBy>String</RecruitedBy>
<SSN>String</SSN>
<School>String</School>
<SecurityLicense>String</SecurityLicense>
<State>String</State>
<StoreName>String</StoreName>
<Upline1>0</Upline1>
<Upline1Name>String</Upline1Name>
<Upline1Percent>0</Upline1Percent>
<Upline2>0</Upline2>
<Upline2Name>String</Upline2Name>
<Upline2Percent>0</Upline2Percent>
<WorkPhone>String</WorkPhone>
<Zip>String</Zip>
<w9_1>String</w9_1>
<w9_2>String</w9_2>
<w9_3_1>String</w9_3_1>
<w9_3_2>String</w9_3_2>
<w9_3_3>String</w9_3_3>
<w9_3_4>String</w9_3_4>
<w9_3_5>String</w9_3_5>
<w9_3_6>String</w9_3_6>
<w9_3_7>String</w9_3_7>
<w9_3_8>String</w9_3_8>
<w9_4_1>String</w9_4_1>
<w9_4_2>String</w9_4_2>
<w9_5>String</w9_5>
<w9_6>String</w9_6>
<w9_7>String</w9_7>
<ContractingComplete>0001-01-01T00:00:00</ContractingComplete>
<HasAgreement>false</HasAgreement>
<IsAgent>false</IsAgent>
<PackageMailed>0001-01-01T00:00:00</PackageMailed>
<TrackingNum>String</TrackingNum>
<Upline1AgentName>String</Upline1AgentName>
<Upline2AgentName>String</Upline2AgentName>
</AgentRegistrationTempExtended>
</ReportData>
<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>
</AgentRegistrationTempReportResponse>