Card class

A payment card.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

Card({required String number, required String expiry, String? name, String? securityCode, AddressPortable? billingAddress})
const
Card.fromJson(Map<String, dynamic> json)
factory

Properties

billingAddress AddressPortable?
The billing address for this card. Supports only the address_line_1, address_line_2, admin_area_1, admin_area_2, postal_code, and country_code properties.
final
expiry String
The card expiration year and month, in Internet date format.
final
hashCode int
The hash code for this object.
no setterinherited
name String?
The card holder's name as it appears on the card.
final
number String
The primary account number (PAN) for the payment card.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityCode String?
The three- or four-digit security code of the card. Also known as the CVV, CVC, CVN, CVE, or CID.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited