PaymentInstrumentYooMoneyWallet

public class PaymentInstrumentYooMoneyWallet : PaymentOptionYooMoneyInstrument

Method of payment through YooMoney.

  • Wallet account number.

    Declaration

    Swift

    public let accountId: String
  • The amount in the selected currency.

    Declaration

    Swift

    public let balance: MonetaryAmount
  • Creates instance of PaymentInstrumentYooMoneyWallet.

    Declaration

    Swift

    public init(paymentMethodType: PaymentMethodType,
                confirmationTypes: Set<ConfirmationType>?,
                charge: MonetaryAmount,
                instrumentType: YooMoneyInstrumentType,
                accountId: String,
                balance: MonetaryAmount,
                identificationRequirement: IdentificationRequirement?,
                fee: Fee?,
                savePaymentMethod: SavePaymentMethod)

    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 YooMoney.

    accountId

    Wallet account number.

    balance

    The amount in the selected currency.

    identificationRequirement

    Required type of user identification.

    fee

    Commission from the buyer in excess of the payment amount. The field is present if there are commissions in excess of the payment amount.

    savePaymentMethod

    Indication of the possibility of saving payment data for repeated payments.

    Return Value

    Instance of PaymentInstrumentYooMoneyWallet.

Codable

  • 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.