Method
public struct Method : Decodable, Encodable
API method for CheckoutAuthCheck.
-
OAuth2 token issued by the Yandex.Passport in the format
Bearer [token]
.Declaration
Swift
public let passportAuthorization: String
-
Merchant client key, issued in merchant’s personal account, in the format
Basic [data]
.Declaration
Swift
public let merchantClientAuthorization: String
-
Creates instance of CheckoutAuthCheck.Method.
Declaration
Swift
public init(passportAuthorization: String, merchantClientAuthorization: String, authContextId: String, authType: AuthType, answer: String)
Parameters
passportAuthorization
OAuth2 token issued by the Yandex.Passport in the format
Bearer [token]
.merchantClientAuthorization
Merchant client key, issued in merchant’s personal account, in the format
Basic [data]
.authContextId
The identifier of the authorization context
authType
The type of authorization selected by the user
answer
The authorization code entered by the user
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
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 }