Trendsic Platform Service

<back to all web services

LSW_OLifE_AgentAggregateRequest

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

class LSW_OLifE implements IConvertible
{
    int? OLifeID;
    String? SourceInfo;
    DateTime? CreateDate;
    DateTime? TransExeDate;
    String? HoldingID;
    String? HoldingTypeCode;
    String? HoldingStatus;
    DateTime? AsOfDate;
    String? Policy_PolNumber;
    String? Policy_LineOfBusiness;
    String? Policy_ProductType;
    String? Policy_ProductCode;
    String? Policy_CarrierCode;
    String? Policy_PlanName;
    String? Policy_PolicyStatus;
    String? Policy_Jurisdiction;
    DateTime? Policy_StatusChangeDate;
    String? Policy_PaymentMode;
    String? Policy_PaymentModeTC;
    double? Policy_PaymentAmt;
    double? TotalPolicy_PaymentAmt;
    String? Policy_PaymentMethod;
    double? Life_TargetPremAmt;
    double? TotalLife_TargetPremAmt;
    double? Life_FaceAmt;
    double? TotalLife_FaceAmt;
    String? ApplicationInfo_TrackingID;
    String? ApplicationInfo_CWAAmt;
    String? TotalApplicationInfo_CWAAmt;
    String? ApplicationInfo_SubmissionType;
    DateTime? ApplicationInfo_HOPolicyMailDate;
    String? ApplicationInfo_HoUnderwriterName;
    DateTime? ApplicationInfo_PlacementEndDate;
    String? ApplicationInfo_NBContactName;
    DateTime? ApplicationInfo_SignedDate;
    String? Client;
    int? AgentID;
    String? AgentNM;
    String? Agent1Percent;
    String? AgentNM2;
    String? Agent2Percent;
    String? AgentNM3;
    String? Agent3Percent;
    String? AgentNM4;
    String? Agent4Percent;
    double? QualifyingLifePremium;
    double? TotalQualifyingLifePremium;
    double? AnnTransfer;
    double? TotalAnnTransfer;
    double? AnnFlow;
    double? TotalAnnFlow;
    double? Points;
    double? Life_Expected;
    double? TotalLife_Expected;
    String? FullName;
    int? InterestPercent;
    double? InterestPercentDecimal;
    int? Apps;

    LSW_OLifE({this.OLifeID,this.SourceInfo,this.CreateDate,this.TransExeDate,this.HoldingID,this.HoldingTypeCode,this.HoldingStatus,this.AsOfDate,this.Policy_PolNumber,this.Policy_LineOfBusiness,this.Policy_ProductType,this.Policy_ProductCode,this.Policy_CarrierCode,this.Policy_PlanName,this.Policy_PolicyStatus,this.Policy_Jurisdiction,this.Policy_StatusChangeDate,this.Policy_PaymentMode,this.Policy_PaymentModeTC,this.Policy_PaymentAmt,this.TotalPolicy_PaymentAmt,this.Policy_PaymentMethod,this.Life_TargetPremAmt,this.TotalLife_TargetPremAmt,this.Life_FaceAmt,this.TotalLife_FaceAmt,this.ApplicationInfo_TrackingID,this.ApplicationInfo_CWAAmt,this.TotalApplicationInfo_CWAAmt,this.ApplicationInfo_SubmissionType,this.ApplicationInfo_HOPolicyMailDate,this.ApplicationInfo_HoUnderwriterName,this.ApplicationInfo_PlacementEndDate,this.ApplicationInfo_NBContactName,this.ApplicationInfo_SignedDate,this.Client,this.AgentID,this.AgentNM,this.Agent1Percent,this.AgentNM2,this.Agent2Percent,this.AgentNM3,this.Agent3Percent,this.AgentNM4,this.Agent4Percent,this.QualifyingLifePremium,this.TotalQualifyingLifePremium,this.AnnTransfer,this.TotalAnnTransfer,this.AnnFlow,this.TotalAnnFlow,this.Points,this.Life_Expected,this.TotalLife_Expected,this.FullName,this.InterestPercent,this.InterestPercentDecimal,this.Apps});
    LSW_OLifE.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        OLifeID = json['OLifeID'];
        SourceInfo = json['SourceInfo'];
        CreateDate = JsonConverters.fromJson(json['CreateDate'],'DateTime',context!);
        TransExeDate = JsonConverters.fromJson(json['TransExeDate'],'DateTime',context!);
        HoldingID = json['HoldingID'];
        HoldingTypeCode = json['HoldingTypeCode'];
        HoldingStatus = json['HoldingStatus'];
        AsOfDate = JsonConverters.fromJson(json['AsOfDate'],'DateTime',context!);
        Policy_PolNumber = json['Policy_PolNumber'];
        Policy_LineOfBusiness = json['Policy_LineOfBusiness'];
        Policy_ProductType = json['Policy_ProductType'];
        Policy_ProductCode = json['Policy_ProductCode'];
        Policy_CarrierCode = json['Policy_CarrierCode'];
        Policy_PlanName = json['Policy_PlanName'];
        Policy_PolicyStatus = json['Policy_PolicyStatus'];
        Policy_Jurisdiction = json['Policy_Jurisdiction'];
        Policy_StatusChangeDate = JsonConverters.fromJson(json['Policy_StatusChangeDate'],'DateTime',context!);
        Policy_PaymentMode = json['Policy_PaymentMode'];
        Policy_PaymentModeTC = json['Policy_PaymentModeTC'];
        Policy_PaymentAmt = JsonConverters.toDouble(json['Policy_PaymentAmt']);
        TotalPolicy_PaymentAmt = JsonConverters.toDouble(json['TotalPolicy_PaymentAmt']);
        Policy_PaymentMethod = json['Policy_PaymentMethod'];
        Life_TargetPremAmt = JsonConverters.toDouble(json['Life_TargetPremAmt']);
        TotalLife_TargetPremAmt = JsonConverters.toDouble(json['TotalLife_TargetPremAmt']);
        Life_FaceAmt = JsonConverters.toDouble(json['Life_FaceAmt']);
        TotalLife_FaceAmt = JsonConverters.toDouble(json['TotalLife_FaceAmt']);
        ApplicationInfo_TrackingID = json['ApplicationInfo_TrackingID'];
        ApplicationInfo_CWAAmt = json['ApplicationInfo_CWAAmt'];
        TotalApplicationInfo_CWAAmt = json['TotalApplicationInfo_CWAAmt'];
        ApplicationInfo_SubmissionType = json['ApplicationInfo_SubmissionType'];
        ApplicationInfo_HOPolicyMailDate = JsonConverters.fromJson(json['ApplicationInfo_HOPolicyMailDate'],'DateTime',context!);
        ApplicationInfo_HoUnderwriterName = json['ApplicationInfo_HoUnderwriterName'];
        ApplicationInfo_PlacementEndDate = JsonConverters.fromJson(json['ApplicationInfo_PlacementEndDate'],'DateTime',context!);
        ApplicationInfo_NBContactName = json['ApplicationInfo_NBContactName'];
        ApplicationInfo_SignedDate = JsonConverters.fromJson(json['ApplicationInfo_SignedDate'],'DateTime',context!);
        Client = json['Client'];
        AgentID = json['AgentID'];
        AgentNM = json['AgentNM'];
        Agent1Percent = json['Agent1Percent'];
        AgentNM2 = json['AgentNM2'];
        Agent2Percent = json['Agent2Percent'];
        AgentNM3 = json['AgentNM3'];
        Agent3Percent = json['Agent3Percent'];
        AgentNM4 = json['AgentNM4'];
        Agent4Percent = json['Agent4Percent'];
        QualifyingLifePremium = JsonConverters.toDouble(json['QualifyingLifePremium']);
        TotalQualifyingLifePremium = JsonConverters.toDouble(json['TotalQualifyingLifePremium']);
        AnnTransfer = JsonConverters.toDouble(json['AnnTransfer']);
        TotalAnnTransfer = JsonConverters.toDouble(json['TotalAnnTransfer']);
        AnnFlow = JsonConverters.toDouble(json['AnnFlow']);
        TotalAnnFlow = JsonConverters.toDouble(json['TotalAnnFlow']);
        Points = JsonConverters.toDouble(json['Points']);
        Life_Expected = JsonConverters.toDouble(json['Life_Expected']);
        TotalLife_Expected = JsonConverters.toDouble(json['TotalLife_Expected']);
        FullName = json['FullName'];
        InterestPercent = json['InterestPercent'];
        InterestPercentDecimal = JsonConverters.toDouble(json['InterestPercentDecimal']);
        Apps = json['Apps'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'OLifeID': OLifeID,
        'SourceInfo': SourceInfo,
        'CreateDate': JsonConverters.toJson(CreateDate,'DateTime',context!),
        'TransExeDate': JsonConverters.toJson(TransExeDate,'DateTime',context!),
        'HoldingID': HoldingID,
        'HoldingTypeCode': HoldingTypeCode,
        'HoldingStatus': HoldingStatus,
        'AsOfDate': JsonConverters.toJson(AsOfDate,'DateTime',context!),
        'Policy_PolNumber': Policy_PolNumber,
        'Policy_LineOfBusiness': Policy_LineOfBusiness,
        'Policy_ProductType': Policy_ProductType,
        'Policy_ProductCode': Policy_ProductCode,
        'Policy_CarrierCode': Policy_CarrierCode,
        'Policy_PlanName': Policy_PlanName,
        'Policy_PolicyStatus': Policy_PolicyStatus,
        'Policy_Jurisdiction': Policy_Jurisdiction,
        'Policy_StatusChangeDate': JsonConverters.toJson(Policy_StatusChangeDate,'DateTime',context!),
        'Policy_PaymentMode': Policy_PaymentMode,
        'Policy_PaymentModeTC': Policy_PaymentModeTC,
        'Policy_PaymentAmt': Policy_PaymentAmt,
        'TotalPolicy_PaymentAmt': TotalPolicy_PaymentAmt,
        'Policy_PaymentMethod': Policy_PaymentMethod,
        'Life_TargetPremAmt': Life_TargetPremAmt,
        'TotalLife_TargetPremAmt': TotalLife_TargetPremAmt,
        'Life_FaceAmt': Life_FaceAmt,
        'TotalLife_FaceAmt': TotalLife_FaceAmt,
        'ApplicationInfo_TrackingID': ApplicationInfo_TrackingID,
        'ApplicationInfo_CWAAmt': ApplicationInfo_CWAAmt,
        'TotalApplicationInfo_CWAAmt': TotalApplicationInfo_CWAAmt,
        'ApplicationInfo_SubmissionType': ApplicationInfo_SubmissionType,
        'ApplicationInfo_HOPolicyMailDate': JsonConverters.toJson(ApplicationInfo_HOPolicyMailDate,'DateTime',context!),
        'ApplicationInfo_HoUnderwriterName': ApplicationInfo_HoUnderwriterName,
        'ApplicationInfo_PlacementEndDate': JsonConverters.toJson(ApplicationInfo_PlacementEndDate,'DateTime',context!),
        'ApplicationInfo_NBContactName': ApplicationInfo_NBContactName,
        'ApplicationInfo_SignedDate': JsonConverters.toJson(ApplicationInfo_SignedDate,'DateTime',context!),
        'Client': Client,
        'AgentID': AgentID,
        'AgentNM': AgentNM,
        'Agent1Percent': Agent1Percent,
        'AgentNM2': AgentNM2,
        'Agent2Percent': Agent2Percent,
        'AgentNM3': AgentNM3,
        'Agent3Percent': Agent3Percent,
        'AgentNM4': AgentNM4,
        'Agent4Percent': Agent4Percent,
        'QualifyingLifePremium': QualifyingLifePremium,
        'TotalQualifyingLifePremium': TotalQualifyingLifePremium,
        'AnnTransfer': AnnTransfer,
        'TotalAnnTransfer': TotalAnnTransfer,
        'AnnFlow': AnnFlow,
        'TotalAnnFlow': TotalAnnFlow,
        'Points': Points,
        'Life_Expected': Life_Expected,
        'TotalLife_Expected': TotalLife_Expected,
        'FullName': FullName,
        'InterestPercent': InterestPercent,
        'InterestPercentDecimal': InterestPercentDecimal,
        'Apps': Apps
    };

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

class LSW_OLifEResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<LSW_OLifE>? LSW_OLifE = [];

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

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

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

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

class LSW_OLifE_AgentAggregateRequest implements IConvertible
{
    DateTime? StartDate;
    DateTime? EndDate;
    int? AgentID;

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

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

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

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

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

Dart LSW_OLifE_AgentAggregateRequest 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/LSW_OLifE/AgentAggregate/{StartDate}/{EndDate}/{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

<LSW_OLifEResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <LSW_OLifE>
    <LSW_OLifE>
      <Agent1Percent>String</Agent1Percent>
      <Agent2Percent>String</Agent2Percent>
      <Agent3Percent>String</Agent3Percent>
      <Agent4Percent>String</Agent4Percent>
      <AgentID>0</AgentID>
      <AgentNM>String</AgentNM>
      <AgentNM2>String</AgentNM2>
      <AgentNM3>String</AgentNM3>
      <AgentNM4>String</AgentNM4>
      <AnnFlow>0</AnnFlow>
      <AnnTransfer>0</AnnTransfer>
      <ApplicationInfo_CWAAmt>String</ApplicationInfo_CWAAmt>
      <ApplicationInfo_HOPolicyMailDate>0001-01-01T00:00:00</ApplicationInfo_HOPolicyMailDate>
      <ApplicationInfo_HoUnderwriterName>String</ApplicationInfo_HoUnderwriterName>
      <ApplicationInfo_NBContactName>String</ApplicationInfo_NBContactName>
      <ApplicationInfo_PlacementEndDate>0001-01-01T00:00:00</ApplicationInfo_PlacementEndDate>
      <ApplicationInfo_SignedDate>0001-01-01T00:00:00</ApplicationInfo_SignedDate>
      <ApplicationInfo_SubmissionType>String</ApplicationInfo_SubmissionType>
      <ApplicationInfo_TrackingID>String</ApplicationInfo_TrackingID>
      <Apps>0</Apps>
      <AsOfDate>0001-01-01T00:00:00</AsOfDate>
      <Client>String</Client>
      <CreateDate>0001-01-01T00:00:00</CreateDate>
      <FullName>String</FullName>
      <HoldingID>String</HoldingID>
      <HoldingStatus>String</HoldingStatus>
      <HoldingTypeCode>String</HoldingTypeCode>
      <InterestPercent>0</InterestPercent>
      <InterestPercentDecimal>0</InterestPercentDecimal>
      <Life_Expected>0</Life_Expected>
      <Life_FaceAmt>0</Life_FaceAmt>
      <Life_TargetPremAmt>0</Life_TargetPremAmt>
      <OLifeID>0</OLifeID>
      <Points>0</Points>
      <Policy_CarrierCode>String</Policy_CarrierCode>
      <Policy_Jurisdiction>String</Policy_Jurisdiction>
      <Policy_LineOfBusiness>String</Policy_LineOfBusiness>
      <Policy_PaymentAmt>0</Policy_PaymentAmt>
      <Policy_PaymentMethod>String</Policy_PaymentMethod>
      <Policy_PaymentMode>String</Policy_PaymentMode>
      <Policy_PaymentModeTC>String</Policy_PaymentModeTC>
      <Policy_PlanName>String</Policy_PlanName>
      <Policy_PolNumber>String</Policy_PolNumber>
      <Policy_PolicyStatus>String</Policy_PolicyStatus>
      <Policy_ProductCode>String</Policy_ProductCode>
      <Policy_ProductType>String</Policy_ProductType>
      <Policy_StatusChangeDate>0001-01-01T00:00:00</Policy_StatusChangeDate>
      <QualifyingLifePremium>0</QualifyingLifePremium>
      <SourceInfo>String</SourceInfo>
      <TotalAnnFlow>0</TotalAnnFlow>
      <TotalAnnTransfer>0</TotalAnnTransfer>
      <TotalApplicationInfo_CWAAmt>String</TotalApplicationInfo_CWAAmt>
      <TotalLife_Expected>0</TotalLife_Expected>
      <TotalLife_FaceAmt>0</TotalLife_FaceAmt>
      <TotalLife_TargetPremAmt>0</TotalLife_TargetPremAmt>
      <TotalPolicy_PaymentAmt>0</TotalPolicy_PaymentAmt>
      <TotalQualifyingLifePremium>0</TotalQualifyingLifePremium>
      <TransExeDate>0001-01-01T00:00:00</TransExeDate>
    </LSW_OLifE>
  </LSW_OLifE>
  <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>
</LSW_OLifEResponse>