/* Options: Date: 2025-11-23 04:32:50 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: TestWebhookEndpoint.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/webhook/endpoints/{Id}/test", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="Invalid request", StatusCode=400) // @ValidateRequest(Validator="IsAuthenticated") public class TestWebhookEndpoint : IReturn, ICompany, Codable { public typealias Return = TestWebhookEndpointResponse /** * 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 endpoint to test. */ // @ApiMember(Description="The ID of the webhook endpoint to test.", IsRequired=true, ParameterType="path") public var id:String? required public init(){} } public class TestWebhookEndpointResponse : Codable { public var messageId:String? required public init(){} } public protocol ICompany { var companyId:String? { get set } }