/* Options: Date: 2025-12-06 06:25:40 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: AddSubscription.* //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", "POST") // @Route("/subscription/{EventType}", "POST") export class AddSubscription 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; /** @description The URL we should post the event data to */ // @ApiMember(Description="The URL we should post the event data to", IsRequired=true) public SubscriptionUrl: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'AddSubscription'; } public getMethod() { return 'POST'; } public createResponse() { return new ApiServiceResponse(); } }