/* Options: Date: 2025-01-18 07:53:54 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //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: CreateWebhookEndpoint.* //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 System.Globalization; using ServiceStack.Data; using System.Net; using System.Net.Http.Headers; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/webhook/endpoints", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CreateWebhookEndpoint : IReturn, ICompany { public CreateWebhookEndpoint() { EventTypes = new List{}; } /// ///The company id, if empty will use the company id for the user you are logged in with. /// [ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", IsRequired=true, ParameterType="query")] public virtual Guid? CompanyId { get; set; } /// ///The webhook endpoint URL. /// [ApiMember(Description="The webhook endpoint URL.", IsRequired=true)] public virtual Uri Url { get; set; } /// ///List of event types. At least one event type is required. /// [ApiMember(Description="List of event types. At least one event type is required.", IsRequired=true)] [Validate("NotEmpty", ErrorCode="At least one event type is required.")] public virtual List EventTypes { get; set; } public virtual string Description { get; set; } [ApiMember] public virtual bool Disabled { get; set; } } public partial class WebhookEndpoint { public WebhookEndpoint() { EventTypes = new List{}; } public virtual string Description { get; set; } public virtual string Url { get; set; } public virtual string Id { get; set; } public virtual bool Disabled { get; set; } public virtual List EventTypes { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }