/* Options: Date: 2025-01-18 07:56:41 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetStripeWebhooks.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/payment/stripe/v1/webhook", "GET") // @ValidateRequest(Validator="IsAuthenticated") public class GetStripeWebhooks : IReturn, ICompany, Codable { public typealias Return = StripeWebhooksResponse /** * 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.") public var companyId:String? /** * Webhook Id to update events */ // @ApiMember(Description="Webhook Id to update events") public var webhookId:String required public init(){} } public class StripeWebhooksResponse : Codable { public var stripeWebhooks:[StripeWebhookResponse] = [] required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class StripeWebhookResponse : Codable { public var id:String public var events:[String] = [] public var url:String required public init(){} }