Trendsic Platform Service

<back to all web services

AgentNBCSummaryRequest

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

class AgentNBCSummary implements IConvertible
{
    String? PolicyType;
    int? PolicyCount;
    double? LifePolicyValue;
    double? FlowModalPremium;
    double? FlowAnnualPremium;
    double? TransferAmount;

    AgentNBCSummary({this.PolicyType,this.PolicyCount,this.LifePolicyValue,this.FlowModalPremium,this.FlowAnnualPremium,this.TransferAmount});
    AgentNBCSummary.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        PolicyType = json['PolicyType'];
        PolicyCount = json['PolicyCount'];
        LifePolicyValue = JsonConverters.toDouble(json['LifePolicyValue']);
        FlowModalPremium = JsonConverters.toDouble(json['FlowModalPremium']);
        FlowAnnualPremium = JsonConverters.toDouble(json['FlowAnnualPremium']);
        TransferAmount = JsonConverters.toDouble(json['TransferAmount']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'PolicyType': PolicyType,
        'PolicyCount': PolicyCount,
        'LifePolicyValue': LifePolicyValue,
        'FlowModalPremium': FlowModalPremium,
        'FlowAnnualPremium': FlowAnnualPremium,
        'TransferAmount': TransferAmount
    };

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

class AgentNBCSummaryResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<AgentNBCSummary>? result = [];

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

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

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

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

class AgentNBCSummaryRequest implements IConvertible
{
    int? AgentId;

    AgentNBCSummaryRequest({this.AgentId});
    AgentNBCSummaryRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AgentId = json['AgentId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AgentId': AgentId
    };

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

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

Dart AgentNBCSummaryRequest DTOs

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

HTTP + OTHER

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

GET /v1/AgentNBCSummary/{AgentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"result":[{"PolicyType":"String","PolicyCount":0,"LifePolicyValue":0,"FlowModalPremium":0,"FlowAnnualPremium":0,"TransferAmount":0}]}