CollectBankAccountParams constructor

  1. @JsonSerializable(explicitToJson: true)
const CollectBankAccountParams({
  1. required BillingDetails billingDetails,
  2. @Default(PaymentMethodType.USBankAccount) PaymentMethodType paymentMethodType,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory CollectBankAccountParams({
  /// Billingdetails of the account holder
  ///
  /// It is required to fill in the name in the billing details
  required BillingDetails billingDetails,

  /// The paymentmethod type. At this point only method [PaymentMethodType.USBankAccount]
  /// is supported.
  @Default(PaymentMethodType.USBankAccount)
  PaymentMethodType paymentMethodType,
}) = _CollectBankAccountParams;