/* Options: Date: 2024-07-03 13:37:35 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: GenerateRegisterDibsPaymentCardToken.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/token/GenerateRegisterDibsPaymentCardToken", "POST") // @ValidateRequest(Validator="IsAuthenticated") public class GenerateRegisterDibsPaymentCardToken : IReturn, ICompany, Codable { public typealias Return = TokenResponse /** * Enter the company you want to see add a token for, if blank and you are an admin, your company id will be used */ // @ApiMember(Description="Enter the company you want to see add a token for, if blank and you are an admin, your company id will be used", ParameterType="query") public var companyId:String? required public init(){} } public class TokenResponse : Codable { /** * The token indentifier */ // @ApiMember(Description="The token indentifier") public var tokenIdentifier:String public var type:Int /** * The unique token */ // @ApiMember(Description="The unique token", IsRequired=true) public var uniqueToken:String public var expirationDate:Date public var responseStatus:ResponseStatus required public init(){} } public protocol ICompany { var companyId:String? { get set } }