PaymentInstrumentYandexMoneyLinkedBankCard

public class PaymentInstrumentYandexMoneyLinkedBankCard : PaymentOptionYandexMoneyInstrument

The payment method is a linked bank card of Yandex.Money.

  • Map binding ID.

    • Pattern: [0-9]{1,20}
    • MaxLength: 20
    • Example: 123456789

    Declaration

    Swift

    public let cardId: String
  • Custom name of the card.

    Declaration

    Swift

    public let cardName: String?
  • Masked (6/4) card number.

    • MaxLength: 19
    • Example: 518901******0446

    Declaration

    Swift

    public let cardMask: String
  • Type of Bank card.

    • Example: MasterCard

    Declaration

    Swift

    public let cardType: BankCardType
  • Creates instance of PaymentInstrumentYandexMoneyLinkedBankCard.

    Declaration

    Swift

    public init(paymentMethodType: PaymentMethodType,
                confirmationType: ConfirmationType?,
                charge: MonetaryAmount,
                instrumentType: YandexMoneyInstrumentType,
                cardId: String,
                cardName: String?,
                cardMask: String,
                cardType: BankCardType,
                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.

    cardId

    Map binding ID.

    cardName

    Custom name of the card.

    cardMask

    Masked (6/4) card number.

    cardType

    Type of Bank card.

    identificationRequirement

    Required type of user identification.

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