PaymentInstrumentDataYooMoneyWallet
public class PaymentInstrumentDataYooMoneyWallet : PaymentMethodData
Data for payment via YooMoney from the wallet account. The wallet ID will be determined by the authorization data of the request.
-
The type of the source of funds for payments from the YooMoney.
Declaration
Swift
public let instrumentType: YooMoneyInstrumentType
-
YooMoney wallet authorization header.
Declaration
Swift
public let walletAuthorization: String
-
Creates instance of
PaymentInstrumentDataYooMoneyWallet
.Declaration
Swift
public init(instrumentType: YooMoneyInstrumentType, walletAuthorization: String, paymentMethodType: PaymentMethodType)
Parameters
instrumentType
The type of the source of funds for payments from the YooMoney.
walletAuthorization
YooMoney wallet authorization header.
paymentMethodType
Type of the source of funds for the payment.
Return Value
Instance of
PaymentInstrumentDataYooMoneyWallet
. -
Creates custom headers.
Declaration
Swift
public override func customHeaders() -> Headers
-
Creates a new instance by decoding from the given decoder. This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
required convenience public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.
-
Encodes this value into the given encoder. If the value fails to encode anything, encoder will encode an empty keyed container in its place. This function throws an error if any values are invalid for the given encoder’s format.
Declaration
Swift
override public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.