|
|||||||||
| 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 CustomerCreditCardpublic CustomerAddress getBillingAddress()
getBillingAddress in interface CustomerCreditCardpublic java.lang.String getCardHolderName()
getCardHolderName in interface CustomerCreditCardpublic java.lang.String getCardNumber()
getCardNumber in interface CustomerCreditCardpublic java.lang.String getCardType()
getCardType in interface CustomerCreditCardpublic java.lang.String getExpiryMonth()
getExpiryMonth in interface CustomerCreditCardpublic java.lang.String getExpiryYear()
getExpiryYear in interface CustomerCreditCardpublic int getIssueNumber()
getIssueNumber in interface CustomerCreditCardpublic java.lang.String getMaskedCardNumber()
getMaskedCardNumber in interface CustomerCreditCardpublic java.lang.String getSecurityCode()
getSecurityCode in interface CustomerCreditCardpublic java.lang.String getStartMonth()
getStartMonth in interface CustomerCreditCardpublic java.lang.String getStartYear()
getStartYear in interface CustomerCreditCardpublic java.lang.String getUnencryptedCardNumber()
getUnencryptedCardNumber in interface CustomerCreditCardpublic boolean isDefaultCard()
isDefaultCard in interface CustomerCreditCardpublic void setBillingAddress(CustomerAddress billingAddress)
setBillingAddress in interface CustomerCreditCardbillingAddress - the billingAddress to setpublic void setCardHolderName(java.lang.String cardHolderName)
setCardHolderName in interface CustomerCreditCardcardHolderName - the cardHolderName to setpublic void setCardNumber(java.lang.String cardNumber)
setCardNumber in interface CustomerCreditCardcardNumber - the cardNumber to setpublic void setCardType(java.lang.String cardType)
setCardType in interface CustomerCreditCardcardType - the cardType to setpublic void setDefaultCard(boolean defaultCard)
setDefaultCard in interface CustomerCreditCarddefaultCard - the defaultCard to setpublic void setDefaultValues()
setDefaultValues in interface PersistencesetDefaultValues in class AbstractEntityImplpublic void setExpiryMonth(java.lang.String expiryMonth)
setExpiryMonth in interface CustomerCreditCardexpiryMonth - the expiryMonth to setpublic void setExpiryYear(java.lang.String expiryYear)
setExpiryYear in interface CustomerCreditCardexpiryYear - the expiryYear to setpublic void setIssueNumber(int issueNumber)
setIssueNumber in interface CustomerCreditCardissueNumber - the issueNumber to setpublic void setSecurityCode(java.lang.String securityCode)
setSecurityCode in interface CustomerCreditCardsecurityCode - the security codepublic void setStartMonth(java.lang.String startMonth)
setStartMonth in interface CustomerCreditCardstartMonth - the startMonth to setpublic void setStartYear(java.lang.String startYear)
setStartYear in interface CustomerCreditCardstartYear - the startYear to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||