/* Options: Date: 2025-05-10 00:31:58 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PrintReceiptRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class BaseRequest { /** @description This is your AIM API Key provided by Tri-Tech */ // @DataMember // @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") public ApiKey: string; // @DataMember // @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") public OAuthToken: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class BaseSecureRequest extends BaseRequest { /** @description */ // @DataMember // @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header") public Token: string; /** @description */ // @DataMember // @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header") public DeviceId: string; /** @description */ // @DataMember // @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header") public AppId: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @DataContract export class BaseResponse { /** @description */ // @DataMember // @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") public Status: BaseResponseResult; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class PrintReceiptResponse extends BaseResponse { // @DataMember public PdfStream: string; // @DataMember public EmailSubject: string; // @DataMember public EmailBody: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } /** @description PrintReceiptRequires active-e Customer Service */ // @Route("/PrintReceipt", "POST, GET") // @DataContract export class PrintReceiptRequest extends BaseSecureRequest implements IReturn { // @DataMember public Ref: string; /** @description Can be STREAM, PRINT, or EMAIL. Defaults to STREAM */ // @DataMember // @ApiMember(Description="Can be STREAM, PRINT, or EMAIL. Defaults to STREAM", Name="OutputType", ParameterType="query") public OutputType: string; /** @description Only applies to OutputTypes of PRINT and EMAIL. The listening workstation to handle the request. */ // @DataMember // @ApiMember(Description="Only applies to OutputTypes of PRINT and EMAIL. The listening workstation to handle the request.", Name="OutputWorkstation", ParameterType="query") public OutputWorkstation?: number; /** @description Only applies to OutputType of EMAIL. The email address to send to. */ // @DataMember // @ApiMember(Description="Only applies to OutputType of EMAIL. The email address to send to.", Name="OutputTo", ParameterType="query") public OutputTo: string; /** @description Only applies to employee logins. Customer account of the receipt. */ // @DataMember // @ApiMember(Description="Only applies to employee logins. Customer account of the receipt.", Name="CustomerAcct", ParameterType="query") public CustomerAcct?: number; /** @description Date of the receipt. */ // @DataMember // @ApiMember(Description="Date of the receipt.", Name="Date", ParameterType="query") public Date?: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'PrintReceiptRequest'; } public getMethod() { return 'POST'; } public createResponse() { return new PrintReceiptResponse(); } }