PaymentInstrumentDataYooMoneyLinkedBankCard

public class PaymentInstrumentDataYooMoneyLinkedBankCard : PaymentMethodData

Data for payment via YooMoney from the attached Bank card.

  • The type of the source of funds for payments from the YooMoney.

    Declaration

    Swift

    public let instrumentType: YooMoneyInstrumentType
  • ID card.

    Declaration

    Swift

    public let cardId: String
  • csc

    The CVC2 or CVV2 code, 3 or 4 characters, is printed on the back of the card.

    Declaration

    Swift

    public let csc: String
  • YooMoney wallet authorization header.

    Declaration

    Swift

    public let walletAuthorization: String
  • Creates instance of PaymentInstrumentDataYooMoneyLinkedBankCard.

    Declaration

    Swift

    public init(instrumentType: YooMoneyInstrumentType,
                cardId: String,
                csc: String,
                walletAuthorization: String,
                paymentMethodType: PaymentMethodType)

    Parameters

    instrumentType

    Type of the source of funds for the payment.

    cardId

    ID card.

    csc

    The CVC2 or CVV2 code, 3 or 4 characters, is printed on the back of the card.

    walletAuthorization

    YooMoney wallet authorization header.

    paymentMethodType

    Type of the source of funds for the payment.

    Return Value

    Instance of PaymentInstrumentDataYooMoneyLinkedBankCard.

  • Creates custom headers.

    Declaration

    Swift

    public override func customHeaders() -> Headers

Decodable

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

Encodable

  • Undocumented

    Declaration

    Swift

    public override func encode(to encoder: Encoder) throws