/* Options: Date: 2026-11-08 11:52:13 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BillMeLaterSubscription.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiClientHeader implements IConvertible { int? ClientId; String? Referrer; String? IpAddress; int? LoggedInUserId; int? GroupId; String? Task; String? Machine; String? Location; int? CreatedBy; int? CampaignId; double? ReCaptchaScore; ApiClientHeader({this.ClientId,this.Referrer,this.IpAddress,this.LoggedInUserId,this.GroupId,this.Task,this.Machine,this.Location,this.CreatedBy,this.CampaignId,this.ReCaptchaScore}); ApiClientHeader.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClientId = json['ClientId']; Referrer = json['Referrer']; IpAddress = json['IpAddress']; LoggedInUserId = json['LoggedInUserId']; GroupId = json['GroupId']; Task = json['Task']; Machine = json['Machine']; Location = json['Location']; CreatedBy = json['CreatedBy']; CampaignId = json['CampaignId']; ReCaptchaScore = JsonConverters.toDouble(json['ReCaptchaScore']); return this; } Map toJson() => { 'ClientId': ClientId, 'Referrer': Referrer, 'IpAddress': IpAddress, 'LoggedInUserId': LoggedInUserId, 'GroupId': GroupId, 'Task': Task, 'Machine': Machine, 'Location': Location, 'CreatedBy': CreatedBy, 'CampaignId': CampaignId, 'ReCaptchaScore': ReCaptchaScore }; getTypeName() => "ApiClientHeader"; TypeContext? context = _ctx; } class SubscriberFormField implements IConvertible { int? FormTemplateFieldID; String? Name; String? Value; SubscriberFormField({this.FormTemplateFieldID,this.Name,this.Value}); SubscriberFormField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormTemplateFieldID = json['FormTemplateFieldID']; Name = json['Name']; Value = json['Value']; return this; } Map toJson() => { 'FormTemplateFieldID': FormTemplateFieldID, 'Name': Name, 'Value': Value }; getTypeName() => "SubscriberFormField"; TypeContext? context = _ctx; } class SubscriptionParameters implements IConvertible { int? FormTemplateID; int? SubscriptionInvoiceID; String? ClientSubscriberId; int? SignupTypeID; int? FrequencyID; bool? AutoRenew; int? CompanyID; int? UserID; int? ChapMemPayID; int? MemberSubscriptionInvID; List? Fields; int? CreatedBy; int? UpdatedBy; int? AptifyUpdateType; int? RenewedMemberSubscriptionInvID; int? ChapId; SubscriptionParameters({this.FormTemplateID,this.SubscriptionInvoiceID,this.ClientSubscriberId,this.SignupTypeID,this.FrequencyID,this.AutoRenew,this.CompanyID,this.UserID,this.ChapMemPayID,this.MemberSubscriptionInvID,this.Fields,this.CreatedBy,this.UpdatedBy,this.AptifyUpdateType,this.RenewedMemberSubscriptionInvID,this.ChapId}); SubscriptionParameters.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormTemplateID = json['FormTemplateID']; SubscriptionInvoiceID = json['SubscriptionInvoiceID']; ClientSubscriberId = json['ClientSubscriberId']; SignupTypeID = json['SignupTypeID']; FrequencyID = json['FrequencyID']; AutoRenew = json['AutoRenew']; CompanyID = json['CompanyID']; UserID = json['UserID']; ChapMemPayID = json['ChapMemPayID']; MemberSubscriptionInvID = json['MemberSubscriptionInvID']; Fields = JsonConverters.fromJson(json['Fields'],'List',context!); CreatedBy = json['CreatedBy']; UpdatedBy = json['UpdatedBy']; AptifyUpdateType = json['AptifyUpdateType']; RenewedMemberSubscriptionInvID = json['RenewedMemberSubscriptionInvID']; ChapId = json['ChapId']; return this; } Map toJson() => { 'FormTemplateID': FormTemplateID, 'SubscriptionInvoiceID': SubscriptionInvoiceID, 'ClientSubscriberId': ClientSubscriberId, 'SignupTypeID': SignupTypeID, 'FrequencyID': FrequencyID, 'AutoRenew': AutoRenew, 'CompanyID': CompanyID, 'UserID': UserID, 'ChapMemPayID': ChapMemPayID, 'MemberSubscriptionInvID': MemberSubscriptionInvID, 'Fields': JsonConverters.toJson(Fields,'List',context!), 'CreatedBy': CreatedBy, 'UpdatedBy': UpdatedBy, 'AptifyUpdateType': AptifyUpdateType, 'RenewedMemberSubscriptionInvID': RenewedMemberSubscriptionInvID, 'ChapId': ChapId }; getTypeName() => "SubscriptionParameters"; TypeContext? context = _ctx; } class CampaignInformation implements IConvertible { int? CampaignId; String? CampaignName; double? Amount; String? ChapPayID; CampaignInformation({this.CampaignId,this.CampaignName,this.Amount,this.ChapPayID}); CampaignInformation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CampaignId = json['CampaignId']; CampaignName = json['CampaignName']; Amount = JsonConverters.toDouble(json['Amount']); ChapPayID = json['ChapPayID']; return this; } Map toJson() => { 'CampaignId': CampaignId, 'CampaignName': CampaignName, 'Amount': Amount, 'ChapPayID': ChapPayID }; getTypeName() => "CampaignInformation"; TypeContext? context = _ctx; } class BillMeCloudServiceResponse implements IConvertible { bool? IsDuplicate; bool? IsSuccessful; String? ErrorCode; String? Message; bool? IsError; BillMeCloudServiceResponse({this.IsDuplicate,this.IsSuccessful,this.ErrorCode,this.Message,this.IsError}); BillMeCloudServiceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IsDuplicate = json['IsDuplicate']; IsSuccessful = json['IsSuccessful']; ErrorCode = json['ErrorCode']; Message = json['Message']; IsError = json['IsError']; return this; } Map toJson() => { 'IsDuplicate': IsDuplicate, 'IsSuccessful': IsSuccessful, 'ErrorCode': ErrorCode, 'Message': Message, 'IsError': IsError }; getTypeName() => "BillMeCloudServiceResponse"; TypeContext? context = _ctx; } class SubscriberFormField implements IConvertible { String? Name; String? Value; SubscriberFormField({this.Name,this.Value}); SubscriberFormField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Value = json['Value']; return this; } Map toJson() => { 'Name': Name, 'Value': Value }; getTypeName() => "SubscriberFormField"; TypeContext? context = _ctx; } class BillMePaymentResult extends BillMeCloudServiceResponse implements IConvertible { int? TransactionRecordID; BillMePaymentResult({this.TransactionRecordID}); BillMePaymentResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); TransactionRecordID = json['TransactionRecordID']; return this; } Map toJson() => super.toJson()..addAll({ 'TransactionRecordID': TransactionRecordID }); getTypeName() => "BillMePaymentResult"; TypeContext? context = _ctx; } class BillMeLaterSubscription implements IReturn, IConvertible { ApiClientHeader? Header; SubscriptionParameters? SubscriptionInfo; List? CampaignInfo; BillMeLaterSubscription({this.Header,this.SubscriptionInfo,this.CampaignInfo}); BillMeLaterSubscription.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Header = JsonConverters.fromJson(json['Header'],'ApiClientHeader',context!); SubscriptionInfo = JsonConverters.fromJson(json['SubscriptionInfo'],'SubscriptionParameters',context!); CampaignInfo = JsonConverters.fromJson(json['CampaignInfo'],'List',context!); return this; } Map toJson() => { 'Header': JsonConverters.toJson(Header,'ApiClientHeader',context!), 'SubscriptionInfo': JsonConverters.toJson(SubscriptionInfo,'SubscriptionParameters',context!), 'CampaignInfo': JsonConverters.toJson(CampaignInfo,'List',context!) }; createResponse() => BillMePaymentResult(); getResponseTypeName() => "BillMePaymentResult"; getTypeName() => "BillMeLaterSubscription"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'ApiClientHeader': TypeInfo(TypeOf.Class, create:() => ApiClientHeader()), 'SubscriberFormField': TypeInfo(TypeOf.Class, create:() => SubscriberFormField()), 'SubscriptionParameters': TypeInfo(TypeOf.Class, create:() => SubscriptionParameters()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CampaignInformation': TypeInfo(TypeOf.Class, create:() => CampaignInformation()), 'BillMeCloudServiceResponse': TypeInfo(TypeOf.Class, create:() => BillMeCloudServiceResponse()), 'BillMePaymentResult': TypeInfo(TypeOf.Class, create:() => BillMePaymentResult()), 'BillMeLaterSubscription': TypeInfo(TypeOf.Class, create:() => BillMeLaterSubscription()), 'List': TypeInfo(TypeOf.Class, create:() => []), });