CardData constructor
CardData({
- required String id,
- String? merchantId,
- required String brand,
- required String last4,
- required String expMonth,
- required String expYear,
- required String name,
- String? email,
- String? phoneNumber,
- String? addressZip,
- bool? surchargeAllowed,
- bool? networkTokenize,
- String? addressLine1,
- String? addressLine2,
- String? addressCountry,
- String? addressCity,
- String? addressState,
- bool? storePaymentMethod,
- String? expiresAt,
- String? country,
- String? type,
- 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,
});