/* Options: Date: 2026-02-14 10:00:00 Version: 10.04 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stf-api-uat.data-xchange.co.za //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddInvoice.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICommandResponse { } export class InvoiceMessage { public header: Header; public invoice: InvoiceClass; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class TokenDto implements ICommandResponse { public token: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Invoice */ // @Route("/invoice", "POST") // @Api(Description="Invoice") // @ApiResponse(Description="Add invoice request received", IsDefaultResponse=true, StatusCode=200) // @ApiResponse(Description="Invoice not accepted, Confirm Sender GLN", ResponseType="typeof(System.UnauthorizedAccessException)", StatusCode=403) export class AddInvoice implements IReturn { /** @description Invoice model containing all of the invoice data */ // @ApiMember(DataType="InvoiceMessage", Description="Invoice model containing all of the invoice data", Name="invoice", ParameterType="model") public invoice: InvoiceMessage; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'AddInvoice'; } public getMethod() { return 'POST'; } public createResponse() { return new TokenDto(); } }