CardData constructor

CardData({
  1. required String id,
  2. String? merchantId,
  3. required String brand,
  4. required String last4,
  5. required String expMonth,
  6. required String expYear,
  7. required String name,
  8. String? email,
  9. String? phoneNumber,
  10. String? addressZip,
  11. bool? surchargeAllowed,
  12. bool? networkTokenize,
  13. String? addressLine1,
  14. String? addressLine2,
  15. String? addressCountry,
  16. String? addressCity,
  17. String? addressState,
  18. bool? storePaymentMethod,
  19. String? expiresAt,
  20. String? country,
  21. String? type,
  22. bool? prepaidBenefits,
})

Creates a new instance of CardData.

  • id: The unique identifier for the card.
  • merchantId: The merchant identifier associated with the card.
  • brand: The brand of the card (e.g., Visa, MasterCard).
  • last4: The last four digits of the card number.
  • expMonth: The expiration month of the card.
  • expYear: The expiration year of the card.
  • name: The name of the cardholder.
  • email: The email address associated with the cardholder.
  • phoneNumber: The phone number associated with the cardholder.
  • addressZip: The ZIP code associated with the card's billing address (optional).
  • surchargeAllowed: Whether surcharges are allowed on this card.
  • networkTokenize: Whether network tokenization is enabled.
  • addressLine1: The first line of the billing address.
  • addressLine2: The second line of the billing address.
  • addressCountry: The country of the billing address.
  • addressCity: The city of the billing address.
  • addressState: The state or region of the billing address.
  • storePaymentMethod: Whether this card should be stored as a payment method.
  • expiresAt: The expiration date of the card token.
  • country: The country of origin for the card.
  • type: The type of the card (e.g., Credit, Debit).
  • prepaidBenefits: Whether the card has prepaid benefits.

Implementation

CardData({
  required this.id,
  this.merchantId,
  required this.brand,
  required this.last4,
  required this.expMonth,
  required this.expYear,
  required this.name,
  this.email,
  this.phoneNumber,
  this.addressZip,
  this.surchargeAllowed,
  this.networkTokenize,
  this.addressLine1,
  this.addressLine2,
  this.addressCountry,
  this.addressCity,
  this.addressState,
  this.storePaymentMethod,
  this.expiresAt,
  this.country,
  this.type,
  this.prepaidBenefits,
});