PaymentOptionYooMoneyInstrument
public class PaymentOptionYooMoneyInstrument : PaymentOption
The type of the source of funds for payments from the YooMoney
-
The type of the source of funds for payments from the YooMoney.
Declaration
Swift
public let instrumentType: YooMoneyInstrumentType
-
init(paymentMethodType:
confirmationTypes: charge: instrumentType: identificationRequirement: fee: savePaymentMethod: ) Creates instance of
PaymentOptionYooMoneyInstrument
.Declaration
Swift
public init(paymentMethodType: PaymentMethodType, confirmationTypes: Set<ConfirmationType>?, charge: MonetaryAmount, instrumentType: YooMoneyInstrumentType, 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.
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
PaymentOptionYooMoneyInstrument
.
-
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.