/* Options: Date: 2026-02-22 02:37:31 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: True //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: ListWebhookMessageAttempts.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; 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 { public partial class ListMessageAttemptsResponse { public virtual List Attempts { get; set; } = []; public virtual bool Done { get; set; } public virtual string? Iterator { get; set; } } [Route("/webhook/messages/{MessageId}/attempts", "GET")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class ListWebhookMessageAttempts : IReturn, ICompany { /// ///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 ID of the webhook message. /// [ApiMember(Description="The ID of the webhook message.", IsRequired=true, ParameterType="path")] public virtual string MessageId { get; set; } /// ///Pagination iterator. /// [ApiMember(Description="Pagination iterator.")] public virtual string? Iterator { get; set; } /// ///Maximum number of attempts to return. /// [ApiMember(Description="Maximum number of attempts to return.")] public virtual int? Limit { get; set; } /// ///Filter by message status. 0 = Success, 1 = Pending, 2 = Fail, 3 = Sending. /// [ApiMember(Description="Filter by message status. 0 = Success, 1 = Pending, 2 = Fail, 3 = Sending.")] public virtual int? Status { get; set; } /// ///Filter by event types. /// [ApiMember(Description="Filter by event types.")] public virtual List? EventTypes { get; set; } /// ///Filter by endpoint ID. /// [ApiMember(Description="Filter by endpoint ID.")] public virtual string? EndpointId { get; set; } /// ///Filter attempts before this date. /// [ApiMember(Description="Filter attempts before this date.")] public virtual DateTime? Before { get; set; } /// ///Filter attempts after this date. /// [ApiMember(Description="Filter attempts after this date.")] public virtual DateTime? After { get; set; } } public partial class WebhookMessageAttempt { public virtual string Id { get; set; } public virtual string MessageId { get; set; } public virtual string EndpointId { get; set; } public virtual string Url { get; set; } public virtual string Status { get; set; } public virtual int? ResponseStatusCode { get; set; } public virtual DateTime Timestamp { get; set; } public virtual string TriggerType { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }