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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"LSW_OLifE":[{"OLifeID":0,"SourceInfo":"String","CreateDate":"0001-01-01T00:00:00.0000000","TransExeDate":"0001-01-01T00:00:00.0000000","HoldingID":"String","HoldingTypeCode":"String","HoldingStatus":"String","AsOfDate":"0001-01-01T00:00:00.0000000","Policy_PolNumber":"String","Policy_LineOfBusiness":"String","Policy_ProductType":"String","Policy_ProductCode":"String","Policy_CarrierCode":"String","Policy_PlanName":"String","Policy_PolicyStatus":"String","Policy_Jurisdiction":"String","Policy_StatusChangeDate":"0001-01-01T00:00:00.0000000","Policy_PaymentMode":"String","Policy_PaymentModeTC":"String","Policy_PaymentAmt":0,"TotalPolicy_PaymentAmt":0,"Policy_PaymentMethod":"String","Life_TargetPremAmt":0,"TotalLife_TargetPremAmt":0,"Life_FaceAmt":0,"TotalLife_FaceAmt":0,"ApplicationInfo_TrackingID":"String","ApplicationInfo_CWAAmt":"String","TotalApplicationInfo_CWAAmt":"String","ApplicationInfo_SubmissionType":"String","ApplicationInfo_HOPolicyMailDate":"0001-01-01T00:00:00.0000000","ApplicationInfo_HoUnderwriterName":"String","ApplicationInfo_PlacementEndDate":"0001-01-01T00:00:00.0000000","ApplicationInfo_NBContactName":"String","ApplicationInfo_SignedDate":"0001-01-01T00:00:00.0000000","Client":"String","AgentID":0,"AgentNM":"String","Agent1Percent":"String","AgentNM2":"String","Agent2Percent":"String","AgentNM3":"String","Agent3Percent":"String","AgentNM4":"String","Agent4Percent":"String","QualifyingLifePremium":0,"TotalQualifyingLifePremium":0,"AnnTransfer":0,"TotalAnnTransfer":0,"AnnFlow":0,"TotalAnnFlow":0,"Points":0,"Life_Expected":0,"TotalLife_Expected":0,"FullName":"String","InterestPercent":0,"InterestPercentDecimal":0,"Apps":0}]}