/* Options: Date: 2026-11-08 11:51:56 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: SalesForceCancelInvoiceCollection.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } class SalesForceCancelInvoiceReply implements IHaveErrorField, IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; int? ErrorCode; String? ErrorMessage; String? InvoiceNumber; bool? IsError; SalesForceCancelInvoiceReply({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.ErrorCode,this.ErrorMessage,this.InvoiceNumber,this.IsError}); SalesForceCancelInvoiceReply.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']; InvoiceNumber = json['InvoiceNumber']; IsError = json['IsError']; return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'ErrorCode': ErrorCode, 'ErrorMessage': ErrorMessage, 'InvoiceNumber': InvoiceNumber, 'IsError': IsError }; getTypeName() => "SalesForceCancelInvoiceReply"; TypeContext? context = _ctx; } class SalesForceCancelInvoiceCollectionReply implements IHaveErrorField, IConvertible { List? CancelInvoiceReply; bool? IsError; SalesForceCancelInvoiceCollectionReply({this.CancelInvoiceReply,this.IsError}); SalesForceCancelInvoiceCollectionReply.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CancelInvoiceReply = JsonConverters.fromJson(json['CancelInvoiceReply'],'List',context!); IsError = json['IsError']; return this; } Map toJson() => { 'CancelInvoiceReply': JsonConverters.toJson(CancelInvoiceReply,'List',context!), 'IsError': IsError }; getTypeName() => "SalesForceCancelInvoiceCollectionReply"; TypeContext? context = _ctx; } // @Route("/api/SalesForce/CancelInvoice", "POST") class SalesForceCancelInvoice implements IReturn, IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; String? OpportunityId; String? InvoiceNumber; String? CancelledBy; String? CancelReason; String? Notes; SalesForceCancelInvoice({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.OpportunityId,this.InvoiceNumber,this.CancelledBy,this.CancelReason,this.Notes}); SalesForceCancelInvoice.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']; OpportunityId = json['OpportunityId']; InvoiceNumber = json['InvoiceNumber']; CancelledBy = json['CancelledBy']; CancelReason = json['CancelReason']; Notes = json['Notes']; return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'OpportunityId': OpportunityId, 'InvoiceNumber': InvoiceNumber, 'CancelledBy': CancelledBy, 'CancelReason': CancelReason, 'Notes': Notes }; createResponse() => SalesForceCancelInvoiceReply(); getResponseTypeName() => "SalesForceCancelInvoiceReply"; getTypeName() => "SalesForceCancelInvoice"; TypeContext? context = _ctx; } // @Route("/api/SalesForce/CancelInvoiceCollection", "POST") class SalesForceCancelInvoiceCollection implements IReturn, IConvertible { List? CancelInvoiceCollection; SalesForceCancelInvoiceCollection({this.CancelInvoiceCollection}); SalesForceCancelInvoiceCollection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CancelInvoiceCollection = JsonConverters.fromJson(json['CancelInvoiceCollection'],'List',context!); return this; } Map toJson() => { 'CancelInvoiceCollection': JsonConverters.toJson(CancelInvoiceCollection,'List',context!) }; createResponse() => SalesForceCancelInvoiceCollectionReply(); getResponseTypeName() => "SalesForceCancelInvoiceCollectionReply"; getTypeName() => "SalesForceCancelInvoiceCollection"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'IHaveErrorField': TypeInfo(TypeOf.Interface), 'SalesForceCancelInvoiceReply': TypeInfo(TypeOf.Class, create:() => SalesForceCancelInvoiceReply()), 'SalesForceCancelInvoiceCollectionReply': TypeInfo(TypeOf.Class, create:() => SalesForceCancelInvoiceCollectionReply()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SalesForceCancelInvoice': TypeInfo(TypeOf.Class, create:() => SalesForceCancelInvoice()), 'SalesForceCancelInvoiceCollection': TypeInfo(TypeOf.Class, create:() => SalesForceCancelInvoiceCollection()), 'List': TypeInfo(TypeOf.Class, create:() => []), });