/* Options: Date: 2026-11-08 12:03:37 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: SalesForceCreateApplyCredit.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; class SalesForceCreditInvoiceDetails implements IConvertible { int? Invoice; double? AmountPaid; String? Region; String? CostCenter; SalesForceCreditInvoiceDetails({this.Invoice,this.AmountPaid,this.Region,this.CostCenter}); SalesForceCreditInvoiceDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Invoice = json['Invoice']; AmountPaid = JsonConverters.toDouble(json['AmountPaid']); Region = json['Region']; CostCenter = json['CostCenter']; return this; } Map toJson() => { 'Invoice': Invoice, 'AmountPaid': AmountPaid, 'Region': Region, 'CostCenter': CostCenter }; getTypeName() => "SalesForceCreditInvoiceDetails"; TypeContext? context = _ctx; } class SalesForceCreateApplyCreditReply implements IConvertible { int? ErrorCode; String? ErrorMessage; SalesForceCreateApplyCreditReply({this.ErrorCode,this.ErrorMessage}); SalesForceCreateApplyCreditReply.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ErrorCode = json['ErrorCode']; ErrorMessage = json['ErrorMessage']; return this; } Map toJson() => { 'ErrorCode': ErrorCode, 'ErrorMessage': ErrorMessage }; getTypeName() => "SalesForceCreateApplyCreditReply"; TypeContext? context = _ctx; } // @Route("/api/SalesForce/CreateApplyCredit", "POST") class SalesForceCreateApplyCredit implements IReturn, IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; String? UserId; int? BhUserId; int? CreditId; String? CurrencyType; String? CreditType; String? Notes; List? InvoiceDetails; SalesForceCreateApplyCredit({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.BhUserId,this.CreditId,this.CurrencyType,this.CreditType,this.Notes,this.InvoiceDetails}); SalesForceCreateApplyCredit.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']; BhUserId = json['BhUserId']; CreditId = json['CreditId']; CurrencyType = json['CurrencyType']; CreditType = json['CreditType']; Notes = json['Notes']; InvoiceDetails = JsonConverters.fromJson(json['InvoiceDetails'],'List',context!); return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'UserId': UserId, 'BhUserId': BhUserId, 'CreditId': CreditId, 'CurrencyType': CurrencyType, 'CreditType': CreditType, 'Notes': Notes, 'InvoiceDetails': JsonConverters.toJson(InvoiceDetails,'List',context!) }; createResponse() => SalesForceCreateApplyCreditReply(); getResponseTypeName() => "SalesForceCreateApplyCreditReply"; getTypeName() => "SalesForceCreateApplyCredit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'SalesForceCreditInvoiceDetails': TypeInfo(TypeOf.Class, create:() => SalesForceCreditInvoiceDetails()), 'SalesForceCreateApplyCreditReply': TypeInfo(TypeOf.Class, create:() => SalesForceCreateApplyCreditReply()), 'SalesForceCreateApplyCredit': TypeInfo(TypeOf.Class, create:() => SalesForceCreateApplyCredit()), 'List': TypeInfo(TypeOf.Class, create:() => []), });