CollectBankAccountForPaymentParams constructor

const CollectBankAccountForPaymentParams({
  1. @JsonKey.new(name: 'payment_method_type') required String paymentMethodType,
  2. @JsonKey.new(name: 'payment_method_data') CollectBankAccountForPaymentMethodData? paymentMethodData,
})

Implementation

const factory CollectBankAccountForPaymentParams({
  /// The type of payment method to collect. Currently only
  /// `us_bank_account` is supported.
  @JsonKey(name: 'payment_method_type') required String paymentMethodType,

  /// Payment method data to prefill, including billing details.
  @JsonKey(name: 'payment_method_data')
  CollectBankAccountForPaymentMethodData? paymentMethodData,
}) = _CollectBankAccountForPaymentParams;