-
public final class Card
Represents a payment card.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Card.Brand
The card brand (for example, Visa).
public enum
Card.Type
public enum
Card.PrepaidType
-
Field Summary
Fields Modifier and Type Field Description private final Card.Brand
brand
private final String
lastFourDigits
private final Integer
expirationMonth
private final Integer
expirationYear
private final String
postalCode
private final Card.Type
type
private final Card.PrepaidType
prepaidType
-
Constructor Summary
Constructors Constructor Description Card(Card.Brand brand, String lastFourDigits, Integer expirationMonth, Integer expirationYear, String postalCode, Card.Type type, Card.PrepaidType prepaidType)
-
Method Summary
Modifier and Type Method Description final Card.Brand
component1()
final String
component2()
final Integer
component3()
final Integer
component4()
final String
component5()
final Card.Type
component6()
final Card.PrepaidType
component7()
final Card
copy(Card.Brand brand, String lastFourDigits, Integer expirationMonth, Integer expirationYear, String postalCode, Card.Type type, Card.PrepaidType prepaidType)
final Card.Brand
getBrand()
final String
getLastFourDigits()
final Integer
getExpirationMonth()
final Integer
getExpirationYear()
final String
getPostalCode()
final Card.Type
getType()
final Card.PrepaidType
getPrepaidType()
-
-
Constructor Detail
-
Card
Card(Card.Brand brand, String lastFourDigits, Integer expirationMonth, Integer expirationYear, String postalCode, Card.Type type, Card.PrepaidType prepaidType)
-
-
Method Detail
-
component1
final Card.Brand component1()
-
component2
final String component2()
-
component3
final Integer component3()
-
component4
final Integer component4()
-
component5
final String component5()
-
component6
final Card.Type component6()
-
component7
final Card.PrepaidType component7()
-
copy
final Card copy(Card.Brand brand, String lastFourDigits, Integer expirationMonth, Integer expirationYear, String postalCode, Card.Type type, Card.PrepaidType prepaidType)
-
getBrand
final Card.Brand getBrand()
-
getLastFourDigits
final String getLastFourDigits()
-
getExpirationMonth
final Integer getExpirationMonth()
-
getExpirationYear
final Integer getExpirationYear()
-
getPostalCode
final String getPostalCode()
-
getPrepaidType
final Card.PrepaidType getPrepaidType()
-
-
-
-