/* Options: Date: 2025-12-06 06:28:06 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.1fetch.co.za //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: TestSubscription.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using WebService.ClientServiceModel.Base; using CommonService.Api.Operations.Base; using CommonService.Api.Operations; using BusinessLogic.Entities; using WebService.ClientServiceModel; namespace BusinessLogic.Entities { public enum WebhookSubscriptionEventType { DriverOnTheWay = 0, ArrivedAtWaypoint = 1, DepartedWaypoint = 2, OrderCompleted = 3, OrderCancelled = 4, } } namespace CommonService.Api.Operations { public partial interface IHasApiKey { string ApiKey { get; set; } } public partial interface ILogRequest { } } namespace CommonService.Api.Operations.Base { public partial interface IServiceRequest { } public partial interface IServiceResponse { bool WasSuccessful { get; set; } string Description { get; set; } string Heading { get; set; } } } namespace WebService.ClientServiceModel { [Route("/subscription/test", "GET,POST")] [Route("/subscription/test/{EventType}", "GET,POST")] public partial class TestSubscription : ApiServiceRequest, IReturn, ILogRequest { /// ///The event type being subscribed to /// [ApiMember(Description="The event type being subscribed to", IsRequired=true)] public virtual WebhookSubscriptionEventType EventType { get; set; } } } namespace WebService.ClientServiceModel.Base { public partial class ApiServiceRequest : IServiceRequest, IHasApiKey { /// ///The API Key required for authentication /// [ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)] public virtual string ApiKey { get; set; } } public partial class ApiServiceResponse : IServiceResponse { /// ///Information about the response. /// [ApiMember(Description="Information about the response.", IsRequired=true)] public virtual string Description { get; set; } /// ///Heading or summary of the response. /// [ApiMember(Description="Heading or summary of the response.", IsRequired=true)] public virtual string Heading { get; set; } /// ///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 virtual bool WasSuccessful { get; set; } } }