Class CreditCardPaymentInfoImpl
java.lang.Object
org.broadleafcommerce.core.payment.domain.secure.CreditCardPaymentInfoImpl
- All Implemented Interfaces:
Serializable,CreditCardPayment,Referenced
- Author:
- jfischer
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRather than constructing directly, useSecureOrderPaymentService.create(org.broadleafcommerce.core.payment.service.type.PaymentType)so that the appropriateEncryptionModulecan be hooked up to this entity -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.broadleafcommerce.common.encryption.EncryptionModulegetId()getPan()The indirect link between non-secure data and the secure data represented here.inthashCode()voidsetCvvCode(String cvvCode) voidsetEncryptionModule(org.broadleafcommerce.common.encryption.EncryptionModule encryptionModule) Sets the encryption module used by to encrypt and decrypt the data saved in the blSecurePU persistence unit.voidsetExpirationMonth(Integer expirationMonth) voidsetExpirationYear(Integer expirationYear) voidvoidsetNameOnCard(String nameOnCard) voidvoidsetReferenceNumber(String referenceNumber) Set the link between this secure entity and theOrderPayment.
-
Field Details
-
encryptionModule
protected org.broadleafcommerce.common.encryption.EncryptionModule encryptionModule -
id
-
referenceNumber
-
pan
-
expirationMonth
-
expirationYear
-
nameOnCard
-
cvvCode
-
-
Constructor Details
-
CreditCardPaymentInfoImpl
protected CreditCardPaymentInfoImpl()Rather than constructing directly, useSecureOrderPaymentService.create(org.broadleafcommerce.core.payment.service.type.PaymentType)so that the appropriateEncryptionModulecan be hooked up to this entity
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceCreditCardPayment- Specified by:
getIdin interfaceReferenced- Returns:
- the id
-
setId
- Specified by:
setIdin interfaceCreditCardPayment- Specified by:
setIdin interfaceReferenced- Parameters:
id- the id to set
-
getReferenceNumber
Description copied from interface: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
Orderside of the domain, this is linked byOrderPayment.getReferenceNumber()on theOrderPaymententity.- Specified by:
getReferenceNumberin interfaceReferenced
-
setReferenceNumber
Description copied from interface:ReferencedSet the link between this secure entity and theOrderPayment. This should not be null as this is required- Specified by:
setReferenceNumberin interfaceReferenced
-
getPan
- Specified by:
getPanin interfaceCreditCardPayment- Returns:
- the pan
-
setPan
- Specified by:
setPanin interfaceCreditCardPayment- Parameters:
pan- the pan to set
-
getExpirationMonth
- Specified by:
getExpirationMonthin interfaceCreditCardPayment- Returns:
- the expirationMonth
-
setExpirationMonth
- Specified by:
setExpirationMonthin interfaceCreditCardPayment- Parameters:
expirationMonth- the expirationMonth to set
-
getExpirationYear
- Specified by:
getExpirationYearin interfaceCreditCardPayment- Returns:
- the expirationYear
-
setExpirationYear
- Specified by:
setExpirationYearin interfaceCreditCardPayment- Parameters:
expirationYear- the expirationYear to set
-
getNameOnCard
- Specified by:
getNameOnCardin interfaceCreditCardPayment- Returns:
- the nameOnCard
-
setNameOnCard
- Specified by:
setNameOnCardin interfaceCreditCardPayment- Parameters:
nameOnCard- the name on the card to set
-
getCvvCode
- Specified by:
getCvvCodein interfaceCreditCardPayment
-
setCvvCode
- Specified by:
setCvvCodein interfaceCreditCardPayment
-
getEncryptionModule
public org.broadleafcommerce.common.encryption.EncryptionModule getEncryptionModule()- Specified by:
getEncryptionModulein interfaceReferenced- Returns:
- the
EncryptionModuleused to encrypt and decrypt this secure information back and forth
-
setEncryptionModule
public void setEncryptionModule(org.broadleafcommerce.common.encryption.EncryptionModule encryptionModule) Description copied from interface:ReferencedSets the encryption module used by to encrypt and decrypt the data saved in the blSecurePU persistence unit. This normally corresponds to the blEncryptionModule Spring bean which should be automatically set after invokingSecureOrderPaymentService.findSecurePaymentInfo(String, org.broadleafcommerce.core.payment.service.type.PaymentType)andSecureOrderPaymentService.create(org.broadleafcommerce.core.payment.service.type.PaymentType).- Specified by:
setEncryptionModulein interfaceReferenced
-
hashCode
public int hashCode() -
equals
-