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