/* Options: Date: 2024-11-21 14:20:30 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EAccountingInvoiceDraftConvertQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } enum EAccountingInvoiceSendTypes { None, AutoInvoiceElectronic, AutoInvoicePrint, AutoInvoiceB2C, } class InvoiceQueryResponse implements IConvertible { String? InvoiceId; DateTime? CreatedDate; double? TotalAmount; double? TotalVatAmount; String? CustomerId; List? Rows; List? VatSpecification; String? InvoiceDate; String? DueDate; DateTime? DeliveryDate; List? Persons; String? InvoiceCustomerName; InvoiceAddress? InvoiceAddress; bool? CustomerIsPrivatePerson; String? TermsOfPaymentId; EAccountingTermsOfPaymentQueryResponse? TermsOfPaymentData; String? CustomerEmail; int? InvoiceNumber; String? CustomerNumber; List? Notes; List? NoteIds; DateTime? CreatedUtc; DateTime? ModifiedUtc; bool? IncludesVat; EAccountingInvoiceSendTypes? SendType; bool? IsSold; DateTime? PaymentDate; PaymentStatus? PaymentStatus; String? PaymentStatusTitle; List? CreditedBy; String? PriceSign; String? BookingId; InvoiceQueryResponse({this.InvoiceId,this.CreatedDate,this.TotalAmount,this.TotalVatAmount,this.CustomerId,this.Rows,this.VatSpecification,this.InvoiceDate,this.DueDate,this.DeliveryDate,this.Persons,this.InvoiceCustomerName,this.InvoiceAddress,this.CustomerIsPrivatePerson,this.TermsOfPaymentId,this.TermsOfPaymentData,this.CustomerEmail,this.InvoiceNumber,this.CustomerNumber,this.Notes,this.NoteIds,this.CreatedUtc,this.ModifiedUtc,this.IncludesVat,this.SendType,this.IsSold,this.PaymentDate,this.PaymentStatus,this.PaymentStatusTitle,this.CreditedBy,this.PriceSign,this.BookingId}); InvoiceQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceId = json['InvoiceId']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); TotalAmount = JsonConverters.toDouble(json['TotalAmount']); TotalVatAmount = JsonConverters.toDouble(json['TotalVatAmount']); CustomerId = json['CustomerId']; Rows = JsonConverters.fromJson(json['Rows'],'List',context!); VatSpecification = JsonConverters.fromJson(json['VatSpecification'],'List',context!); InvoiceDate = json['InvoiceDate']; DueDate = json['DueDate']; DeliveryDate = JsonConverters.fromJson(json['DeliveryDate'],'DateTime',context!); Persons = JsonConverters.fromJson(json['Persons'],'List',context!); InvoiceCustomerName = json['InvoiceCustomerName']; InvoiceAddress = JsonConverters.fromJson(json['InvoiceAddress'],'InvoiceAddress',context!); CustomerIsPrivatePerson = json['CustomerIsPrivatePerson']; TermsOfPaymentId = json['TermsOfPaymentId']; TermsOfPaymentData = JsonConverters.fromJson(json['TermsOfPaymentData'],'EAccountingTermsOfPaymentQueryResponse',context!); CustomerEmail = json['CustomerEmail']; InvoiceNumber = json['InvoiceNumber']; CustomerNumber = json['CustomerNumber']; Notes = JsonConverters.fromJson(json['Notes'],'List',context!); NoteIds = JsonConverters.fromJson(json['NoteIds'],'List',context!); CreatedUtc = JsonConverters.fromJson(json['CreatedUtc'],'DateTime',context!); ModifiedUtc = JsonConverters.fromJson(json['ModifiedUtc'],'DateTime',context!); IncludesVat = json['IncludesVat']; SendType = JsonConverters.fromJson(json['SendType'],'EAccountingInvoiceSendTypes',context!); IsSold = json['IsSold']; PaymentDate = JsonConverters.fromJson(json['PaymentDate'],'DateTime',context!); PaymentStatus = JsonConverters.fromJson(json['PaymentStatus'],'PaymentStatus',context!); PaymentStatusTitle = json['PaymentStatusTitle']; CreditedBy = JsonConverters.fromJson(json['CreditedBy'],'List',context!); PriceSign = json['PriceSign']; BookingId = json['BookingId']; return this; } Map toJson() => { 'InvoiceId': InvoiceId, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'TotalAmount': TotalAmount, 'TotalVatAmount': TotalVatAmount, 'CustomerId': CustomerId, 'Rows': JsonConverters.toJson(Rows,'List',context!), 'VatSpecification': JsonConverters.toJson(VatSpecification,'List',context!), 'InvoiceDate': InvoiceDate, 'DueDate': DueDate, 'DeliveryDate': JsonConverters.toJson(DeliveryDate,'DateTime',context!), 'Persons': JsonConverters.toJson(Persons,'List',context!), 'InvoiceCustomerName': InvoiceCustomerName, 'InvoiceAddress': JsonConverters.toJson(InvoiceAddress,'InvoiceAddress',context!), 'CustomerIsPrivatePerson': CustomerIsPrivatePerson, 'TermsOfPaymentId': TermsOfPaymentId, 'TermsOfPaymentData': JsonConverters.toJson(TermsOfPaymentData,'EAccountingTermsOfPaymentQueryResponse',context!), 'CustomerEmail': CustomerEmail, 'InvoiceNumber': InvoiceNumber, 'CustomerNumber': CustomerNumber, 'Notes': JsonConverters.toJson(Notes,'List',context!), 'NoteIds': JsonConverters.toJson(NoteIds,'List',context!), 'CreatedUtc': JsonConverters.toJson(CreatedUtc,'DateTime',context!), 'ModifiedUtc': JsonConverters.toJson(ModifiedUtc,'DateTime',context!), 'IncludesVat': IncludesVat, 'SendType': JsonConverters.toJson(SendType,'EAccountingInvoiceSendTypes',context!), 'IsSold': IsSold, 'PaymentDate': JsonConverters.toJson(PaymentDate,'DateTime',context!), 'PaymentStatus': JsonConverters.toJson(PaymentStatus,'PaymentStatus',context!), 'PaymentStatusTitle': PaymentStatusTitle, 'CreditedBy': JsonConverters.toJson(CreditedBy,'List',context!), 'PriceSign': PriceSign, 'BookingId': BookingId }; getTypeName() => "InvoiceQueryResponse"; TypeContext? context = _ctx; } class CreateInvoiceQueryResponse implements IConvertible { InvoiceQueryResponse? Invoice; String? InvoiceUri; ResponseStatus? ResponseStatus; CreateInvoiceQueryResponse({this.Invoice,this.InvoiceUri,this.ResponseStatus}); CreateInvoiceQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Invoice = JsonConverters.fromJson(json['Invoice'],'InvoiceQueryResponse',context!); InvoiceUri = json['InvoiceUri']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Invoice': JsonConverters.toJson(Invoice,'InvoiceQueryResponse',context!), 'InvoiceUri': InvoiceUri, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CreateInvoiceQueryResponse"; TypeContext? context = _ctx; } // @Route("/eaccounting/invoicedrafts/convert", "POST") class EAccountingInvoiceDraftConvertQuery implements IReturn, ICompany, IConvertible, IPost { String? InvoiceDraftId; int? BookingId; /** * Used for sending the invoice via Auto-invoice Default:None, 0 = None, 1 = AutoInvoiceElectronic, 2 = AutoInvoicePrint, 3 = AutoInvoiceB2C = ['0', '1', '2', '3']. */ // @ApiMember(Description="Used for sending the invoice via Auto-invoice Default:None, 0 = None, 1 = AutoInvoiceElectronic, 2 = AutoInvoicePrint, 3 = AutoInvoiceB2C = ['0', '1', '2', '3'].", IsRequired=true) EAccountingInvoiceSendTypes? SendType; String? CompanyId; EAccountingInvoiceDraftConvertQuery({this.InvoiceDraftId,this.BookingId,this.SendType,this.CompanyId}); EAccountingInvoiceDraftConvertQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceDraftId = json['InvoiceDraftId']; BookingId = json['BookingId']; SendType = JsonConverters.fromJson(json['SendType'],'EAccountingInvoiceSendTypes',context!); CompanyId = json['CompanyId']; return this; } Map toJson() => { 'InvoiceDraftId': InvoiceDraftId, 'BookingId': BookingId, 'SendType': JsonConverters.toJson(SendType,'EAccountingInvoiceSendTypes',context!), 'CompanyId': CompanyId }; createResponse() => CreateInvoiceQueryResponse(); getResponseTypeName() => "CreateInvoiceQueryResponse"; getTypeName() => "EAccountingInvoiceDraftConvertQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'EAccountingInvoiceSendTypes': TypeInfo(TypeOf.Enum, enumValues:EAccountingInvoiceSendTypes.values), 'InvoiceQueryResponse': TypeInfo(TypeOf.Class, create:() => InvoiceQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'InvoiceLineQueryResponse': TypeInfo(TypeOf.Class, create:() => InvoiceLineQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'VatSpecificationQueryResponse': TypeInfo(TypeOf.Class, create:() => VatSpecificationQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Person': TypeInfo(TypeOf.Class, create:() => Person()), 'InvoiceAddress': TypeInfo(TypeOf.Class, create:() => InvoiceAddress()), 'EAccountingTermsOfPaymentQueryResponse': TypeInfo(TypeOf.Class, create:() => EAccountingTermsOfPaymentQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NoteQueryResponse': TypeInfo(TypeOf.Class, create:() => NoteQueryResponse()), 'PaymentStatus': TypeInfo(TypeOf.Class, create:() => PaymentStatus()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CreditedBy': TypeInfo(TypeOf.Class, create:() => CreditedBy()), 'CreateInvoiceQueryResponse': TypeInfo(TypeOf.Class, create:() => CreateInvoiceQueryResponse()), 'EAccountingInvoiceDraftConvertQuery': TypeInfo(TypeOf.Class, create:() => EAccountingInvoiceDraftConvertQuery()), });