/* Options: Date: 2024-11-21 14:22:48 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EAccountingInvoiceDraftConvertQuery.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum EAccountingInvoiceSendTypes { None = 'None', AutoInvoiceElectronic = 'AutoInvoiceElectronic', AutoInvoicePrint = 'AutoInvoicePrint', AutoInvoiceB2C = 'AutoInvoiceB2C', } export class InvoiceQueryResponse { public InvoiceId: string; public CreatedDate: string; public TotalAmount: number; public TotalVatAmount: number; public CustomerId: string; public Rows: InvoiceLineQueryResponse[]; public VatSpecification: VatSpecificationQueryResponse[]; public InvoiceDate: string; public DueDate: string; public DeliveryDate?: string; public Persons: Person[]; public InvoiceCustomerName: string; public InvoiceAddress: InvoiceAddress; public CustomerIsPrivatePerson: boolean; public TermsOfPaymentId: string; public TermsOfPaymentData: EAccountingTermsOfPaymentQueryResponse; public CustomerEmail: string; public InvoiceNumber: number; public CustomerNumber: string; public Notes: NoteQueryResponse[]; public NoteIds: string[]; public CreatedUtc: string; public ModifiedUtc: string; public IncludesVat: boolean; public SendType?: EAccountingInvoiceSendTypes; public IsSold: boolean; public PaymentDate?: string; public PaymentStatus: PaymentStatus; public PaymentStatusTitle: string; public CreditedBy: CreditedBy[]; public PriceSign: string; public BookingId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CreateInvoiceQueryResponse { public Invoice: InvoiceQueryResponse; public InvoiceUri: string; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/eaccounting/invoicedrafts/convert", "POST") export class EAccountingInvoiceDraftConvertQuery implements IReturn, ICompany { public InvoiceDraftId: string; public BookingId: number; /** @description 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) public SendType: EAccountingInvoiceSendTypes; public CompanyId?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'EAccountingInvoiceDraftConvertQuery'; } public getMethod() { return 'POST'; } public createResponse() { return new CreateInvoiceQueryResponse(); } }