Method

public struct Method : Decodable, Encodable
extension CheckoutAuthSessionGenerate.Method: ApiMethod

API method for CheckoutAuthSessionGenerate.

  • 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?
  • Creates instance of CheckoutAuthSessionGenerate.Method.

    Declaration

    Swift

    public init(
        merchantClientAuthorization: String,
        moneyCenterAuthorization: String?,
        authContextId: String,
        authType: AuthType
    )

    Parameters

    merchantClientAuthorization

    Merchant client key, issued in merchant’s personal account, in the format “ Basic [data]”.

    moneyCenterAuthorization

    Token issued by the Money authorization center in the format “Bearer [token]”.

    authContextId

    The identifier of the authorization context

    authType

    The type of authorization selected by the user

Decodable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Encodable

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

ApiMethod