/* Options: Date: 2026-02-22 02:43:42 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: ListWebhookMessageAttempts.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/webhook/messages/{MessageId}/attempts", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class ListWebhookMessageAttempts implements 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 UUID CompanyId = null; /** * The ID of the webhook message. */ @ApiMember(Description="The ID of the webhook message.", IsRequired=true, ParameterType="path") public String MessageId = null; /** * Pagination iterator. */ @ApiMember(Description="Pagination iterator.") public String Iterator = null; /** * Maximum number of attempts to return. */ @ApiMember(Description="Maximum number of attempts to return.") public Integer Limit = null; /** * 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 Integer Status = null; /** * Filter by event types. */ @ApiMember(Description="Filter by event types.") public ArrayList EventTypes = null; /** * Filter by endpoint ID. */ @ApiMember(Description="Filter by endpoint ID.") public String EndpointId = null; /** * Filter attempts before this date. */ @ApiMember(Description="Filter attempts before this date.") public Date Before = null; /** * Filter attempts after this date. */ @ApiMember(Description="Filter attempts after this date.") public Date After = null; public UUID getCompanyId() { return CompanyId; } public ListWebhookMessageAttempts setCompanyId(UUID value) { this.CompanyId = value; return this; } public String getMessageId() { return MessageId; } public ListWebhookMessageAttempts setMessageId(String value) { this.MessageId = value; return this; } public String getIterator() { return Iterator; } public ListWebhookMessageAttempts setIterator(String value) { this.Iterator = value; return this; } public Integer getLimit() { return Limit; } public ListWebhookMessageAttempts setLimit(Integer value) { this.Limit = value; return this; } public Integer getStatus() { return Status; } public ListWebhookMessageAttempts setStatus(Integer value) { this.Status = value; return this; } public ArrayList getEventTypes() { return EventTypes; } public ListWebhookMessageAttempts setEventTypes(ArrayList value) { this.EventTypes = value; return this; } public String getEndpointId() { return EndpointId; } public ListWebhookMessageAttempts setEndpointId(String value) { this.EndpointId = value; return this; } public Date getBefore() { return Before; } public ListWebhookMessageAttempts setBefore(Date value) { this.Before = value; return this; } public Date getAfter() { return After; } public ListWebhookMessageAttempts setAfter(Date value) { this.After = value; return this; } private static Object responseType = ListMessageAttemptsResponse.class; public Object getResponseType() { return responseType; } } public static class ListMessageAttemptsResponse { public ArrayList Attempts = new ArrayList(); public Boolean Done = null; public String Iterator = null; public ArrayList getAttempts() { return Attempts; } public ListMessageAttemptsResponse setAttempts(ArrayList value) { this.Attempts = value; return this; } public Boolean isDone() { return Done; } public ListMessageAttemptsResponse setDone(Boolean value) { this.Done = value; return this; } public String getIterator() { return Iterator; } public ListMessageAttemptsResponse setIterator(String value) { this.Iterator = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } public static class WebhookMessageAttempt { public String Id = null; public String MessageId = null; public String EndpointId = null; public String Url = null; public String Status = null; public Integer ResponseStatusCode = null; public Date Timestamp = null; public String TriggerType = null; public String getId() { return Id; } public WebhookMessageAttempt setId(String value) { this.Id = value; return this; } public String getMessageId() { return MessageId; } public WebhookMessageAttempt setMessageId(String value) { this.MessageId = value; return this; } public String getEndpointId() { return EndpointId; } public WebhookMessageAttempt setEndpointId(String value) { this.EndpointId = value; return this; } public String getUrl() { return Url; } public WebhookMessageAttempt setUrl(String value) { this.Url = value; return this; } public String getStatus() { return Status; } public WebhookMessageAttempt setStatus(String value) { this.Status = value; return this; } public Integer getResponseStatusCode() { return ResponseStatusCode; } public WebhookMessageAttempt setResponseStatusCode(Integer value) { this.ResponseStatusCode = value; return this; } public Date getTimestamp() { return Timestamp; } public WebhookMessageAttempt setTimestamp(Date value) { this.Timestamp = value; return this; } public String getTriggerType() { return TriggerType; } public WebhookMessageAttempt setTriggerType(String value) { this.TriggerType = value; return this; } } }