CreatePaymentMethodData constructor
const
CreatePaymentMethodData({
- required String type,
- @ElementConverter() Element? card,
- @JsonKey(name: "au_becs_debit") @ElementConverter() Element? auBecsDebit,
- @ElementConverter() Element? fpx,
- @JsonKey(name: "fpx[bank]") String? fpxBank,
- @JsonKey(name: "netbanking[bank]") String? netbankingBank,
- @ElementConverter() Element? ideal,
- @JsonKey(name: "ideal[bank]") String? idealBank,
- @JsonKey(name: "sepa_debit") @ElementConverter() Element? sepaDebit,
- @JsonKey(name: "sepa_debit[iban]") String? sepaDebitIban,
- @JsonKey(name: "upi[vpa]") String? upiVpa,
- @JsonKey(name: "billing_details") BillingDetails? billingDetails,
Implementation
const factory CreatePaymentMethodData({
/// Unique identifier for the object.
required String type,
/// A card or cardNumber Element.
@ElementConverter() Element? card,
/// An auBankAccount Element.
@JsonKey(name: "au_becs_debit") @ElementConverter() Element? auBecsDebit,
/// An fpx Element.
@ElementConverter() Element? fpx,
/// The customer's bank.
@JsonKey(name: "fpx[bank]") String? fpxBank,
/// The customer's bank.
@JsonKey(name: "netbanking[bank]") String? netbankingBank,
/// An idealBank Element.
@ElementConverter() Element? ideal,
/// The customer's bank.
@JsonKey(name: "ideal[bank]") String? idealBank,
/// An iban Element.
@JsonKey(name: "sepa_debit") @ElementConverter() Element? sepaDebit,
/// An IBAN account number.
@JsonKey(name: "sepa_debit[iban]") String? sepaDebitIban,
/// The customer's VPA.
@JsonKey(name: "upi[vpa]") String? upiVpa,
/// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
@JsonKey(name: "billing_details") BillingDetails? billingDetails,
}) = _CreatePaymentMethodData;