public final class CreditCard extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getExpiryDate()
Returns the credit card owner expiry date.
|
String |
getNumber()
Returns the credit card number.
|
Address |
getOwnerAddress()
Returns the credit card owner address.
|
String |
getOwnerName()
Returns the credit card owner name.
|
CreditCardProvider |
getProvider()
Returns the enum representing the credit card provider.
|
String |
getSecurityCode()
Returns the credit card 3-digit security code.
|
int |
hashCode() |
String |
toString() |
public String getNumber()
4150 2591 8277 4861
public CreditCardProvider getProvider()
VISA
CreditCardProvider
public String getOwnerName()
Zoe Anderson
public Address getOwnerAddress()
10 Amos Alley, 1234-55 North Austinshire, Canada
public String getExpiryDate()
05/2030
public String getSecurityCode()
123
Copyright © 2021. All rights reserved.