Trendsic Platform Service

<back to all web services

AgentRegistrationTempReportRequest

Requires Authentication
Required role:Administrator
The following routes are available for this service:
GET/v1/AgentRegistrationTempReport
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 AgentRegistrationTempReportRequest implements IConvertible
{
    AgentRegistrationTempReportRequest();
    AgentRegistrationTempReportRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "AgentRegistrationTempReportRequest";
    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>[]),
    'AgentRegistrationTempReportRequest': TypeInfo(TypeOf.Class, create:() => AgentRegistrationTempReportRequest()),
});

Dart AgentRegistrationTempReportRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/AgentRegistrationTempReport HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	ReportData: 
	[
		{
			FullName: String String,
			Address: "String
String
String, String String",
			ContractingComplete: 0001-01-01,
			PackageMailed: 0001-01-01,
			TrackingNum: String,
			Upline1AgentName: String,
			Upline2AgentName: String,
			HasAgreement: False,
			IsAgent: False,
			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
		}
	]
}