| POST,OPTIONS | /v1/AgentRegistrationTemp |
|---|
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 AgentRegistrationTempResponse implements IConvertible
{
bool? Success;
String? Message;
ResponseStatus? ResponseStatus;
int? AgentRegistrationTempId;
AgentRegistrationTempResponse({this.Success,this.Message,this.ResponseStatus,this.AgentRegistrationTempId});
AgentRegistrationTempResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
Message = json['Message'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
AgentRegistrationTempId = json['AgentRegistrationTempId'];
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'Message': Message,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'AgentRegistrationTempId': AgentRegistrationTempId
};
getTypeName() => "AgentRegistrationTempResponse";
TypeContext? context = _ctx;
}
class AgentRegistrationTempRequest extends AgentRegistrationTemp implements IConvertible
{
AgentRegistrationTempRequest();
AgentRegistrationTempRequest.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "AgentRegistrationTempRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'AgentRegistrationTemp': TypeInfo(TypeOf.Class, create:() => AgentRegistrationTemp()),
'AgentRegistrationTempResponse': TypeInfo(TypeOf.Class, create:() => AgentRegistrationTempResponse()),
'AgentRegistrationTempRequest': TypeInfo(TypeOf.Class, create:() => AgentRegistrationTempRequest()),
});
Dart AgentRegistrationTempRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/AgentRegistrationTemp HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
AgentRegistrationTempId: 0,
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: String,
AgreeToDisclosures: False,
AgreeToDate: 0001-01-01,
PaidDate: 0001-01-01,
AgentNumber: String,
Upline1Name: String,
Upline1: 0,
Upline2Name: String,
Upline2: 0,
RecruitedBy: String,
CreatedDate: 0001-01-01,
DOB: 0001-01-01,
SSN: String,
Password: String,
Upline1Percent: 0,
Upline2Percent: 0,
AgentId: 0,
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: String,
IsSecurityLicensed: False,
SecurityLicense: String,
Position: String,
School: String,
District: String,
StoreName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Success: False,
Message: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
AgentRegistrationTempId: 0
}