|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractEntityImpl
com.elasticpath.domain.customer.impl.CustomerCreditCardImpl
public class CustomerCreditCardImpl
The default implementation of Customer
.
Field Summary |
---|
Fields inherited from class com.elasticpath.domain.impl.AbstractEntityImpl |
---|
serialVersionUID |
Constructor Summary | |
---|---|
CustomerCreditCardImpl()
The default constructor. |
Method Summary | |
---|---|
void |
encrypt()
Encrypts the credit card number. |
CustomerAddress |
getBillingAddress()
|
java.lang.String |
getCardHolderName()
|
java.lang.String |
getCardNumber()
|
java.lang.String |
getCardType()
|
java.lang.String |
getExpiryMonth()
|
java.lang.String |
getExpiryYear()
|
int |
getIssueNumber()
|
java.lang.String |
getMaskedCardNumber()
Decrypts and returns the masked credit card number: ************5381. |
java.lang.String |
getSecurityCode()
Get the 3 or 4 digit security code from the back of the card. |
java.lang.String |
getStartMonth()
|
java.lang.String |
getStartYear()
|
java.lang.String |
getUnencryptedCardNumber()
Decrypts and returns the full credit card number. |
boolean |
isDefaultCard()
|
void |
setBillingAddress(CustomerAddress billingAddress)
|
void |
setCardHolderName(java.lang.String cardHolderName)
|
void |
setCardNumber(java.lang.String cardNumber)
|
void |
setCardType(java.lang.String cardType)
|
void |
setDefaultCard(boolean defaultCard)
|
void |
setDefaultValues()
Set default values for those fields need default values. |
void |
setExpiryMonth(java.lang.String expiryMonth)
|
void |
setExpiryYear(java.lang.String expiryYear)
|
void |
setIssueNumber(int issueNumber)
|
void |
setSecurityCode(java.lang.String securityCode)
Set the 3 or 4 digit security code from the back of the card. |
void |
setStartMonth(java.lang.String startMonth)
|
void |
setStartYear(java.lang.String startYear)
|
Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl |
---|
convertAttributeGroupAttributes, getGuid, setGuid |
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public CustomerCreditCardImpl()
Method Detail |
---|
public void encrypt()
encrypt
in interface CustomerCreditCard
public CustomerAddress getBillingAddress()
getBillingAddress
in interface CustomerCreditCard
public java.lang.String getCardHolderName()
getCardHolderName
in interface CustomerCreditCard
public java.lang.String getCardNumber()
getCardNumber
in interface CustomerCreditCard
public java.lang.String getCardType()
getCardType
in interface CustomerCreditCard
public java.lang.String getExpiryMonth()
getExpiryMonth
in interface CustomerCreditCard
public java.lang.String getExpiryYear()
getExpiryYear
in interface CustomerCreditCard
public int getIssueNumber()
getIssueNumber
in interface CustomerCreditCard
public java.lang.String getMaskedCardNumber()
getMaskedCardNumber
in interface CustomerCreditCard
public java.lang.String getSecurityCode()
getSecurityCode
in interface CustomerCreditCard
public java.lang.String getStartMonth()
getStartMonth
in interface CustomerCreditCard
public java.lang.String getStartYear()
getStartYear
in interface CustomerCreditCard
public java.lang.String getUnencryptedCardNumber()
getUnencryptedCardNumber
in interface CustomerCreditCard
public boolean isDefaultCard()
isDefaultCard
in interface CustomerCreditCard
public void setBillingAddress(CustomerAddress billingAddress)
setBillingAddress
in interface CustomerCreditCard
billingAddress
- the billingAddress to setpublic void setCardHolderName(java.lang.String cardHolderName)
setCardHolderName
in interface CustomerCreditCard
cardHolderName
- the cardHolderName to setpublic void setCardNumber(java.lang.String cardNumber)
setCardNumber
in interface CustomerCreditCard
cardNumber
- the cardNumber to setpublic void setCardType(java.lang.String cardType)
setCardType
in interface CustomerCreditCard
cardType
- the cardType to setpublic void setDefaultCard(boolean defaultCard)
setDefaultCard
in interface CustomerCreditCard
defaultCard
- the defaultCard to setpublic void setDefaultValues()
setDefaultValues
in interface Persistence
setDefaultValues
in class AbstractEntityImpl
public void setExpiryMonth(java.lang.String expiryMonth)
setExpiryMonth
in interface CustomerCreditCard
expiryMonth
- the expiryMonth to setpublic void setExpiryYear(java.lang.String expiryYear)
setExpiryYear
in interface CustomerCreditCard
expiryYear
- the expiryYear to setpublic void setIssueNumber(int issueNumber)
setIssueNumber
in interface CustomerCreditCard
issueNumber
- the issueNumber to setpublic void setSecurityCode(java.lang.String securityCode)
setSecurityCode
in interface CustomerCreditCard
securityCode
- the security codepublic void setStartMonth(java.lang.String startMonth)
setStartMonth
in interface CustomerCreditCard
startMonth
- the startMonth to setpublic void setStartYear(java.lang.String startYear)
setStartYear
in interface CustomerCreditCard
startYear
- the startYear to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |