/* Options: Date: 2024-11-21 12:14:32 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: PaysonCheckout1IPNCallBack.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/payment/payson/v1/ipncallback", "POST") public class PaysonCheckout1IPNCallBack : IReturn, ICompany, Codable { public typealias Return = IpnCallBackResponse /** * 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? /** * Internal reference id (Could be booking, could be Article..) */ // @ApiMember(Description="Internal reference id (Could be booking, could be Article..)") public var bookingId:String /** * Internal reference id (Could be booking, could be Article..) */ // @ApiMember(Description="Internal reference id (Could be booking, could be Article..)") public var internalReferenceId:String /** * The payment token. */ // @ApiMember(Description="The payment token.") public var token:String /** * The payment content. */ // @ApiMember(Description="The payment content.") public var content:String /** * Article type (Could be Service, rebate code types, etc.. */ // @ApiMember(Description="Article type (Could be Service, rebate code types, etc..", IsRequired=true) public var articleTypeId:Int required public init(){} } public class IpnCallBackResponse : Codable { public var message:String public var success:Bool required public init(){} } public protocol ICompany { var companyId:String? { get set } }