@Entity public class CreditCardPaymentInfoImpl extends Object implements CreditCardPayment
| Modifier and Type | Field and Description |
|---|---|
protected String |
cvvCode |
protected EncryptionModule |
encryptionModule |
protected Integer |
expirationMonth |
protected Integer |
expirationYear |
protected Long |
id |
protected String |
nameOnCard |
protected String |
pan |
protected String |
referenceNumber |
| Modifier | Constructor and Description |
|---|---|
protected |
CreditCardPaymentInfoImpl()
Rather than constructing directly, use
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)
so that the appropriate EncryptionModule can be hooked up to this entity |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCvvCode() |
EncryptionModule |
getEncryptionModule() |
Integer |
getExpirationMonth() |
Integer |
getExpirationYear() |
Long |
getId() |
String |
getNameOnCard() |
String |
getPan() |
String |
getReferenceNumber()
The indirect link between non-secure data and the secure data represented here.
|
int |
hashCode() |
void |
setCvvCode(String cvvCode) |
void |
setEncryptionModule(EncryptionModule encryptionModule)
Sets the encryption module used by to encrypt and decrypt the data saved in the blSecurePU persistence unit.
|
void |
setExpirationMonth(Integer expirationMonth) |
void |
setExpirationYear(Integer expirationYear) |
void |
setId(Long id) |
void |
setNameOnCard(String nameOnCard) |
void |
setPan(String pan) |
void |
setReferenceNumber(String referenceNumber)
Set the link between this secure entity and the
OrderPayment. |
protected EncryptionModule encryptionModule
protected Long id
protected String referenceNumber
protected String pan
protected Integer expirationMonth
protected Integer expirationYear
protected String nameOnCard
protected String cvvCode
protected CreditCardPaymentInfoImpl()
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)
so that the appropriate EncryptionModule can be hooked up to this entitypublic Long getId()
getId in interface CreditCardPaymentgetId in interface Referencedpublic void setId(Long id)
setId in interface CreditCardPaymentsetId in interface Referencedid - the id to setpublic String getReferenceNumber()
ReferencedThe indirect link between non-secure data and the secure data represented here. Since implementing entities should be in a separate persistence unit (blSecurePU), this is the only avenue to show a relationship between the two.
From the Order side of the domain, this is linked by OrderPayment.getReferenceNumber() on the
OrderPayment entity.
getReferenceNumber in interface ReferencedOrderPayment#getReferenceNumber()}public void setReferenceNumber(String referenceNumber)
ReferencedOrderPayment. This should not be null as this is requiredsetReferenceNumber in interface Referencedpublic String getPan()
getPan in interface CreditCardPaymentpublic void setPan(String pan)
setPan in interface CreditCardPaymentpan - the pan to setpublic Integer getExpirationMonth()
getExpirationMonth in interface CreditCardPaymentpublic void setExpirationMonth(Integer expirationMonth)
setExpirationMonth in interface CreditCardPaymentexpirationMonth - the expirationMonth to setpublic Integer getExpirationYear()
getExpirationYear in interface CreditCardPaymentpublic void setExpirationYear(Integer expirationYear)
setExpirationYear in interface CreditCardPaymentexpirationYear - the expirationYear to setpublic String getNameOnCard()
getNameOnCard in interface CreditCardPaymentpublic void setNameOnCard(String nameOnCard)
setNameOnCard in interface CreditCardPaymentnameOnCard - the name on the card to setpublic String getCvvCode()
getCvvCode in interface CreditCardPaymentpublic void setCvvCode(String cvvCode)
setCvvCode in interface CreditCardPaymentpublic EncryptionModule getEncryptionModule()
getEncryptionModule in interface ReferencedEncryptionModule used to encrypt and decrypt this secure information back and forthpublic void setEncryptionModule(EncryptionModule encryptionModule)
ReferencedSecureOrderPaymentService#findSecurePaymentInfo(String, org.broadleafcommerce.core.payment.service.type.PaymentType)
and SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType).setEncryptionModule in interface ReferencedSecureOrderPaymentService#findSecurePaymentInfo(String, org.broadleafcommerce.core.payment.service.type.PaymentType)},
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)}Copyright © 2015. All Rights Reserved.