/* Options: Date: 2026-02-22 02:44:10 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: ListWebhookMessageAttempts.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/webhook/messages/{MessageId}/attempts", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class ListWebhookMessageAttempts : IReturn, ICompany, Codable { public typealias Return = ListMessageAttemptsResponse /** * 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 var companyId:String? /** * The ID of the webhook message. */ // @ApiMember(Description="The ID of the webhook message.", IsRequired=true, ParameterType="path") public var messageId:String? /** * Pagination iterator. */ // @ApiMember(Description="Pagination iterator.") public var iterator:String? /** * Maximum number of attempts to return. */ // @ApiMember(Description="Maximum number of attempts to return.") public var limit:Int? /** * 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 var status:Int? /** * Filter by event types. */ // @ApiMember(Description="Filter by event types.") public var eventTypes:[String]? /** * Filter by endpoint ID. */ // @ApiMember(Description="Filter by endpoint ID.") public var endpointId:String? /** * Filter attempts before this date. */ // @ApiMember(Description="Filter attempts before this date.") public var before:Date? /** * Filter attempts after this date. */ // @ApiMember(Description="Filter attempts after this date.") public var after:Date? required public init(){} } public class ListMessageAttemptsResponse : Codable { public var attempts:[WebhookMessageAttempt] = [] public var done:Bool? public var iterator:String? required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class WebhookMessageAttempt : Codable { public var id:String? public var messageId:String? public var endpointId:String? public var url:String? public var status:String? public var responseStatusCode:Int? public var timestamp:Date? public var triggerType:String? required public init(){} }