/* Options: Date: 2026-11-08 11:38:06 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: SalesForceInvoiceCollection.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SalesForceInvoiceItem implements IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? ProductName; String? AmountDue; String? ProductType; int? ActPatternTypeId; DateTime? TermStartDate; DateTime? TermEndDate; int? RecognitionPeriod; String? RevenueAccount; String? AccountsReceivableAccount; String? LiabilityAccount; String? CreditExpenseAccount; String? InvoiceClearingAccount; String? CostCenter; String? Region; SalesForceInvoiceItem({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.ProductName,this.AmountDue,this.ProductType,this.ActPatternTypeId,this.TermStartDate,this.TermEndDate,this.RecognitionPeriod,this.RevenueAccount,this.AccountsReceivableAccount,this.LiabilityAccount,this.CreditExpenseAccount,this.InvoiceClearingAccount,this.CostCenter,this.Region}); SalesForceInvoiceItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; ProductName = json['ProductName']; AmountDue = json['AmountDue']; ProductType = json['ProductType']; ActPatternTypeId = json['ActPatternTypeId']; TermStartDate = JsonConverters.fromJson(json['TermStartDate'],'DateTime',context!); TermEndDate = JsonConverters.fromJson(json['TermEndDate'],'DateTime',context!); RecognitionPeriod = json['RecognitionPeriod']; RevenueAccount = json['RevenueAccount']; AccountsReceivableAccount = json['AccountsReceivableAccount']; LiabilityAccount = json['LiabilityAccount']; CreditExpenseAccount = json['CreditExpenseAccount']; InvoiceClearingAccount = json['InvoiceClearingAccount']; CostCenter = json['CostCenter']; Region = json['Region']; return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'ProductName': ProductName, 'AmountDue': AmountDue, 'ProductType': ProductType, 'ActPatternTypeId': ActPatternTypeId, 'TermStartDate': JsonConverters.toJson(TermStartDate,'DateTime',context!), 'TermEndDate': JsonConverters.toJson(TermEndDate,'DateTime',context!), 'RecognitionPeriod': RecognitionPeriod, 'RevenueAccount': RevenueAccount, 'AccountsReceivableAccount': AccountsReceivableAccount, 'LiabilityAccount': LiabilityAccount, 'CreditExpenseAccount': CreditExpenseAccount, 'InvoiceClearingAccount': InvoiceClearingAccount, 'CostCenter': CostCenter, 'Region': Region }; getTypeName() => "SalesForceInvoiceItem"; TypeContext? context = _ctx; } class SalesForceInvoice implements IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; String? UserId; String? OpportunityId; DateTime? InvoiceDueDate; int? Installments; int? Frequency; int? BhUserId; String? Description; bool? Deliver; String? CurrencyType; List? InvoiceItems; int? InvoiceNo; double? InvoiceAmt; String? ExternalInvBatchNo; bool? ExemptFromLateFee; SalesForceInvoice({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.OpportunityId,this.InvoiceDueDate,this.Installments,this.Frequency,this.BhUserId,this.Description,this.Deliver,this.CurrencyType,this.InvoiceItems,this.InvoiceNo,this.InvoiceAmt,this.ExternalInvBatchNo,this.ExemptFromLateFee}); SalesForceInvoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; GroupId = json['GroupId']; UserId = json['UserId']; OpportunityId = json['OpportunityId']; InvoiceDueDate = JsonConverters.fromJson(json['InvoiceDueDate'],'DateTime',context!); Installments = json['Installments']; Frequency = json['Frequency']; BhUserId = json['BhUserId']; Description = json['Description']; Deliver = json['Deliver']; CurrencyType = json['CurrencyType']; InvoiceItems = JsonConverters.fromJson(json['InvoiceItems'],'List',context!); InvoiceNo = json['InvoiceNo']; InvoiceAmt = JsonConverters.toDouble(json['InvoiceAmt']); ExternalInvBatchNo = json['ExternalInvBatchNo']; ExemptFromLateFee = json['ExemptFromLateFee']; return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'UserId': UserId, 'OpportunityId': OpportunityId, 'InvoiceDueDate': JsonConverters.toJson(InvoiceDueDate,'DateTime',context!), 'Installments': Installments, 'Frequency': Frequency, 'BhUserId': BhUserId, 'Description': Description, 'Deliver': Deliver, 'CurrencyType': CurrencyType, 'InvoiceItems': JsonConverters.toJson(InvoiceItems,'List',context!), 'InvoiceNo': InvoiceNo, 'InvoiceAmt': InvoiceAmt, 'ExternalInvBatchNo': ExternalInvBatchNo, 'ExemptFromLateFee': ExemptFromLateFee }; getTypeName() => "SalesForceInvoice"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } class SalesForceInvoiceReply implements IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; int? ErrorCode; String? ErrorMessage; int? InvBatchNo; double? InvAmount; SalesForceInvoiceReply({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.ErrorCode,this.ErrorMessage,this.InvBatchNo,this.InvAmount}); SalesForceInvoiceReply.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; ErrorCode = json['ErrorCode']; ErrorMessage = json['ErrorMessage']; InvBatchNo = json['InvBatchNo']; InvAmount = JsonConverters.toDouble(json['InvAmount']); return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'ErrorCode': ErrorCode, 'ErrorMessage': ErrorMessage, 'InvBatchNo': InvBatchNo, 'InvAmount': InvAmount }; getTypeName() => "SalesForceInvoiceReply"; TypeContext? context = _ctx; } class SalesForceInvoiceCollectionReply implements IHaveErrorField, IConvertible { List? InvoiceReply; bool? IsError; SalesForceInvoiceCollectionReply({this.InvoiceReply,this.IsError}); SalesForceInvoiceCollectionReply.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceReply = JsonConverters.fromJson(json['InvoiceReply'],'List',context!); IsError = json['IsError']; return this; } Map toJson() => { 'InvoiceReply': JsonConverters.toJson(InvoiceReply,'List',context!), 'IsError': IsError }; getTypeName() => "SalesForceInvoiceCollectionReply"; TypeContext? context = _ctx; } // @Route("/api/SalesForce/InvoiceCollection", "POST") class SalesForceInvoiceCollection implements IReturn, IConvertible { List? InvoiceCollection; SalesForceInvoiceCollection({this.InvoiceCollection}); SalesForceInvoiceCollection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceCollection = JsonConverters.fromJson(json['InvoiceCollection'],'List',context!); return this; } Map toJson() => { 'InvoiceCollection': JsonConverters.toJson(InvoiceCollection,'List',context!) }; createResponse() => SalesForceInvoiceCollectionReply(); getResponseTypeName() => "SalesForceInvoiceCollectionReply"; getTypeName() => "SalesForceInvoiceCollection"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'SalesForceInvoiceItem': TypeInfo(TypeOf.Class, create:() => SalesForceInvoiceItem()), 'SalesForceInvoice': TypeInfo(TypeOf.Class, create:() => SalesForceInvoice()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'IHaveErrorField': TypeInfo(TypeOf.Interface), 'SalesForceInvoiceReply': TypeInfo(TypeOf.Class, create:() => SalesForceInvoiceReply()), 'SalesForceInvoiceCollectionReply': TypeInfo(TypeOf.Class, create:() => SalesForceInvoiceCollectionReply()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SalesForceInvoiceCollection': TypeInfo(TypeOf.Class, create:() => SalesForceInvoiceCollection()), 'List': TypeInfo(TypeOf.Class, create:() => []), });