CreatePaymentMethodData constructor

const CreatePaymentMethodData({
  1. required String type,
  2. @ElementConverter() Element? card,
  3. @JsonKey(name: "au_becs_debit") @ElementConverter() Element? auBecsDebit,
  4. @ElementConverter() Element? fpx,
  5. @JsonKey(name: "fpx[bank]") String? fpxBank,
  6. @JsonKey(name: "netbanking[bank]") String? netbankingBank,
  7. @ElementConverter() Element? ideal,
  8. @JsonKey(name: "ideal[bank]") String? idealBank,
  9. @JsonKey(name: "sepa_debit") @ElementConverter() Element? sepaDebit,
  10. @JsonKey(name: "sepa_debit[iban]") String? sepaDebitIban,
  11. @JsonKey(name: "upi[vpa]") String? upiVpa,
  12. @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;