/* Options: Date: 2025-04-24 21:39:48 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: CreateStripeWebhook.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/payment/stripe/v1/webhook", "POST") public class CreateStripeWebhook : IReturn, ICompany, Codable { public typealias Return = StripeWebhookResponse /** * 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? /** * Events (webhooks) that are accepted by stripe. */ // @ApiMember(Description="Events (webhooks) that are accepted by stripe.") public var events:[String] = [] /** * Should webhook listen to customer events's */ // @ApiMember(Description="Should webhook listen to customer events's") public var connect:Bool /** * Url that stripe should send hook to. */ // @ApiMember(Description="Url that stripe should send hook to.") public var url:String required public init(){} } public class StripeWebhookResponse : Codable { public var id:String public var events:[String] = [] public var url:String required public init(){} } public protocol ICompany { var companyId:String? { get set } }