/* Options: Date: 2025-12-06 06:32: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: SubscriptionList.* //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 enum WebhookSubscriptionEventType { DriverOnTheWay = 0, ArrivedAtWaypoint = 1, DepartedWaypoint = 2, OrderCompleted = 3, OrderCancelled = 4, } export class SubscriptionDetail { public EventType: WebhookSubscriptionEventType; public EventName: string; public SubscriptionUrl: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } 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); } } export class SubscriptionListResponse extends ApiServiceResponse { public Subscriptions: SubscriptionDetail[]; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @Route("/subscription", "GET") export class SubscriptionList extends ApiServiceRequest implements IReturn { public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'SubscriptionList'; } public getMethod() { return 'GET'; } public createResponse() { return new SubscriptionListResponse(); } }