PaymentOptionYandexMoneyInstrument
public class PaymentOptionYandexMoneyInstrument : PaymentOption
The type of the source of funds for payments from the Yandex.Money
-
The type of the source of funds for payments from the Yandex.Money.
Declaration
Swift
public let instrumentType: YandexMoneyInstrumentType
-
Creates instance of
PaymentOptionYandexMoneyInstrument
.Declaration
Swift
public init(paymentMethodType: PaymentMethodType, confirmationType: ConfirmationType?, charge: MonetaryAmount, instrumentType: YandexMoneyInstrumentType, 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.
Return Value
Instance of
PaymentOptionYandexMoneyInstrument
.
-
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.