Package io.smooch.core
Class CreditCard
- java.lang.Object
-
- io.smooch.core.CreditCard
-
- All Implemented Interfaces:
java.io.Serializable
public final class CreditCard extends java.lang.Object implements java.io.Serializable
Object representing a user's credit card- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreditCard(java.lang.String cardNumber, int expYear, int expMonth, java.lang.String securityCode)
Create a credit card with the given details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCardNumber()
int
getExpMonth()
int
getExpYear()
java.lang.String
getSecurityCode()
void
setCardNumber(java.lang.String cardNumber)
void
setExpMonth(int expMonth)
void
setExpYear(int expYear)
void
setSecurityCode(java.lang.String securityCode)
-
-
-
Constructor Detail
-
CreditCard
public CreditCard(java.lang.String cardNumber, int expYear, int expMonth, java.lang.String securityCode)
Create a credit card with the given details.- Parameters:
cardNumber
- The card numberexpYear
- The expiration yearexpMonth
- The expiration monthsecurityCode
- The security code
-
-
Method Detail
-
getCardNumber
public java.lang.String getCardNumber()
-
getExpYear
public int getExpYear()
-
getExpMonth
public int getExpMonth()
-
getSecurityCode
public java.lang.String getSecurityCode()
-
setCardNumber
public void setCardNumber(java.lang.String cardNumber)
-
setExpYear
public void setExpYear(int expYear)
-
setExpMonth
public void setExpMonth(int expMonth)
-
setSecurityCode
public void setSecurityCode(java.lang.String securityCode)
-
-