Method
public struct Method : Decodable, Encodable
extension CheckoutTokenIssueInit.Method: ApiMethod
API method for CheckoutTokenIssueInit.
-
Merchant client key, issued in merchant’s personal account, in the format “ Basic [data]”.
Declaration
Swift
public let merchantClientAuthorization: String
-
Token issued by the Money authorization center in the format “Bearer [token]”.
Declaration
Swift
public let moneyCenterAuthorization: String?
-
The ID of the authorization instance in the application.
Declaration
Swift
public let instanceName: String
-
Amount with currency.
Declaration
Swift
public let singleAmountMax: MonetaryAmount?
-
How many times are allowed to pay a generated token: one-time or unlimited.
Declaration
Swift
public let paymentUsageLimit: PaymentUsageLimit
-
ThreatMetrix mobile session ID.
Declaration
Swift
public let tmxSessionId: String
-
init(merchantClientAuthorization:
moneyCenterAuthorization: instanceName: singleAmountMax: paymentUsageLimit: tmxSessionId: ) Creates instance of CheckoutTokenIssueInit.Method.
Declaration
Swift
public init( merchantClientAuthorization: String, moneyCenterAuthorization: String?, instanceName: String, singleAmountMax: MonetaryAmount?, paymentUsageLimit: PaymentUsageLimit, tmxSessionId: String )
Parameters
merchantClientAuthorization
Merchant client key, issued in merchant’s personal account, in the format “ Basic [data]”.
moneyCenterAuthorization
Token issued by the Money authorization center
instanceName
The ID of the authorization instance in the application.
singleAmountMax
Amount with currency.
paymentUsageLimit
How many times are allowed to pay a generated token: one-time or unlimited.
tmxSessionId
ThreatMetrix mobile session ID.
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public typealias Response = CheckoutTokenIssueInit
-
Declaration
Swift
public var hostProviderKey: String { get }
-
Declaration
Swift
public var httpMethod: HTTPMethod { get }
-
Declaration
Swift
public var parametersEncoding: ParametersEncoding { get }
-
Declaration
Swift
public func urlInfo(from hostProvider: HostProvider) throws -> URLInfo
-
Declaration
Swift
public var headers: Headers { get }