/* Options: Date: 2024-11-21 12:28:10 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: QvicklyCheckoutIpnCallBack.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/payment/billmate/v1/ipncallback", "POST") public class QvicklyCheckoutIpnCallBack : 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 /** * The payment credentials. */ // @ApiMember(Description="The payment credentials.") public var credentials:CredentialsResponse /** * The payment ipn callback data. */ // @ApiMember(Description="The payment ipn callback data.") public var data:QvicklyIpnCallbackResponseData /** * 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 } } public class CredentialsResponse : Codable { public var hash:String public var id:String public var version:String public var client:String public var serverdata:ServerDataResponse public var time:String public var test:String public var language:String required public init(){} } public class QvicklyIpnCallbackResponseData : Codable { public var number:String public var status:String public var orderid:String public var url:String required public init(){} } public class ServerDataResponse : Codable { public var httP_HOST:String public var httP_CONNECTION:String public var httP_CACHE_CONTROL:String public var httP_ACCEPT:String public var httP_USER_AGENT:String public var httP_ACCEPT_ENCODING:String public var httP_ACCEPT_LANGUAGE:String public var path:String public var serveR_SOFTWARE:String public var serveR_NAME:String public var serveR_ADDR:String public var serveR_PORT:String public var remotE_ADDR:String public var remotE_PORT:String public var gatewaY_INTERFACE:String public var serveR_PROTOCOL:String public var requesT_METHOD:String public var querY_STRING:String public var requesT_TIME:String required public init(){} }