PaymentInstrumentYandexMoneyWallet
public class PaymentInstrumentYandexMoneyWallet : PaymentOptionYandexMoneyInstrument
Method of payment through Yandex.Money.
-
Wallet account number.
Declaration
Swift
public let accountId: String
-
The amount in the selected currency.
Declaration
Swift
public let balance: MonetaryAmount
-
init(paymentMethodType:confirmationType:charge:instrumentType:accountId:balance:identificationRequirement:)
Creates instance of
PaymentInstrumentYandexMoneyWallet
.Declaration
Swift
public init(paymentMethodType: PaymentMethodType, confirmationType: ConfirmationType?, charge: MonetaryAmount, instrumentType: YandexMoneyInstrumentType, accountId: String, balance: MonetaryAmount, identificationRequirement: IdentificationRequirement?)
Parameters
paymentMethodType
Type of the source of funds for the payment.
confirmationType
List of possible methods of payment confirmation. If payment confirmation is not required, the field is missing. Read more about the scenarios of confirmation of payment by the buyer.
charge
The amount to be paid by the buyer subject to possible currency conversion and additional fees in excess of the payment amount.
instrumentType
The type of the source of funds for payments from the Yandex.Money.
accountId
Wallet account number.
balance
The amount in the selected currency.
identificationRequirement
Required type of user identification.
Return Value
Instance of
PaymentInstrumentYandexMoneyWallet
.
-
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
public required init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.