-
public final class CardRepresents a payment card.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCard.BrandThe card brand (for example, Visa).
public enumCard.Typepublic enumCard.PrepaidType
-
Field Summary
Fields Modifier and Type Field Description private final Card.Brandbrandprivate final StringlastFourDigitsprivate final IntegerexpirationMonthprivate final IntegerexpirationYearprivate final StringpostalCodeprivate final Card.Typetypeprivate final Card.PrepaidTypeprepaidType
-
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.Brandcomponent1()final Stringcomponent2()final Integercomponent3()final Integercomponent4()final Stringcomponent5()final Card.Typecomponent6()final Card.PrepaidTypecomponent7()final Cardcopy(Card.Brand brand, String lastFourDigits, Integer expirationMonth, Integer expirationYear, String postalCode, Card.Type type, Card.PrepaidType prepaidType)final Card.BrandgetBrand()final StringgetLastFourDigits()final IntegergetExpirationMonth()final IntegergetExpirationYear()final StringgetPostalCode()final Card.TypegetType()final Card.PrepaidTypegetPrepaidType()-
-
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()
-
-
-
-