CardPaymentMethod constructor

  1. @JsonSerializable(explicitToJson: true)
const CardPaymentMethod({
  1. String? brand,
  2. String? country,
  3. int? expYear,
  4. int? expMonth,
  5. String? funding,
  6. String? last4,
  7. String? preferredNetwork,
  8. List<String>? availableNetworks,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory CardPaymentMethod({
  /// The brand associated to the card e.g. (visa, amex).
  String? brand,

  /// Two letter iso code.
  String? country,

  /// four digit number representing the year of expiry of the card.
  int? expYear,

  /// two digit number representing the month of expire of the card.
  int? expMonth,

  /// card funding type e.g. (credit, debit).
  String? funding,

  /// last four digits of the card.
  String? last4,

  /// The preffered card brand for payment
  String? preferredNetwork,

  /// The available networks the card can run.
  List<String>? availableNetworks,
}) = _CardPaymentMethod;