Package com.teamdev.jxbrowser.card
Interface CreditCard
public interface CreditCard
The credit card information persisted in the credit card store.
- Since:
- 7.23
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault StringThe name of the cardholder entered by the user.default MonthThe expiration month of the credit card.default intThe expiration year of the credit card.default CreditCardNetworknetwork()The network issuer of the card.static CreditCard.BuildernewBuilder(String number, YearMonth expirationDate) Creates a newCreditCardbuilder with the given required parameters.default Stringnumber()The card number.
-
Method Details
-
newBuilder
Creates a newCreditCardbuilder with the given required parameters.- Parameters:
number- the card number, consisting solely of digits, with no separatorsexpirationDate- the expiration date- Returns:
- a new
CreditCart.Builderinstance - Throws:
IllegalArgumentException- if the givennumbercontains non-digit characters- Since:
- 8.0.0
-
cardholder
The name of the cardholder entered by the user. -
number
The card number.The returned string consists solely of digits, with no separators.
-
expirationMonth
The expiration month of the credit card. -
expirationYear
default int expirationYear()The expiration year of the credit card. -
network
The network issuer of the card.
-