/* Options: Date: 2025-12-06 06:26:10 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.1fetch.co.za //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TestSubscription.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export class ApiServiceRequest implements IServiceRequest, IHasApiKey { /** @description The API Key required for authentication */ // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) public ApiKey: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export interface IServiceRequest { } export interface IHasApiKey { ApiKey: string; } export interface ILogRequest { } export enum WebhookSubscriptionEventType { DriverOnTheWay = 0, ArrivedAtWaypoint = 1, DepartedWaypoint = 2, OrderCompleted = 3, OrderCancelled = 4, } export interface IServiceResponse { WasSuccessful: boolean; Description: string; Heading: string; } export class ApiServiceResponse implements IServiceResponse { /** @description Information about the response. */ // @ApiMember(Description="Information about the response.", IsRequired=true) public Description: string; /** @description Heading or summary of the response. */ // @ApiMember(Description="Heading or summary of the response.", IsRequired=true) public Heading: string; /** @description Did the intended operation for this response complete successfully? */ // @ApiMember(DataType="boolean", Description="Did the intended operation for this response complete successfully?", IsRequired=true) public WasSuccessful: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/subscription/test", "GET,POST") // @Route("/subscription/test/{EventType}", "GET,POST") export class TestSubscription extends ApiServiceRequest implements IReturn, ILogRequest { /** @description The event type being subscribed to */ // @ApiMember(Description="The event type being subscribed to", IsRequired=true) public EventType: WebhookSubscriptionEventType; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'TestSubscription'; } public getMethod() { return 'POST'; } public createResponse() { return new ApiServiceResponse(); } }