|
|||||||||
| 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.AbstractValueObjectImpl
com.elasticpath.domain.order.impl.OrderPaymentImpl
public class OrderPaymentImpl
Represents customer payment information.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Fields inherited from interface com.elasticpath.domain.order.OrderPayment |
|---|
AUTHORIZATION_TRANSACTION, CAPTURE_TRANSACTION, CREDIT_TRANSACTION |
| Constructor Summary | |
|---|---|
OrderPaymentImpl()
|
|
| Method Summary | |
|---|---|
void |
encryptCardNumber()
Encrypts the credit card number. |
java.math.BigDecimal |
getAmount()
Get the amount of this payment. |
java.lang.String |
getAuthorizationCode()
Get the authorization code. |
java.lang.String |
getCardHolderName()
Set the card holder name. |
java.lang.String |
getCardNumber()
Get the encrypted credit cart number. |
java.lang.String |
getCardType()
Get the vendor/brand of the credit card (e.g. |
java.util.Date |
getCreatedDate()
Get the date that this order was created on. |
java.lang.String |
getCurrencyCode()
Get the currency code (e.g. |
java.lang.String |
getCvv2Code()
Get the card security code (found near the signature on the back of the card). |
java.lang.String |
getEmail()
Get the customer's email address (Required for card processing). |
java.lang.String |
getExpiryMonth()
Get the two-digit expiry date month. |
java.lang.String |
getExpiryYear()
Get the two-digit expiry date year. |
java.lang.String |
getGatewayToken()
Return the payment gateway token. |
java.lang.String |
getIssueNumber()
Get the issue number used by some U.K. |
java.lang.String |
getMaskedCardNumber()
Decrypts and returns the masked credit card number: ************5381. |
java.lang.String |
getPaymentMethod()
Get the payment method. |
java.lang.String |
getReferenceId()
Get the reference id. |
java.lang.String |
getRequestToken()
Get the request token. |
java.util.Date |
getStartDate()
Get the card start date Used by some U.K. |
OrderPaymentStatus |
getStatus()
Get the status of the order payment. |
java.lang.String |
getTransactionType()
Get the payment transaction type, i.e. |
java.lang.String |
getUnencryptedCardNumber()
Decrypts and returns the full credit card number. |
void |
setAmount(java.math.BigDecimal amount)
Set the amount of this payment. |
void |
setAuthorizationCode(java.lang.String authorizationCode)
Set the authorization code. |
void |
setCardHolderName(java.lang.String cardHolderName)
Get the card holder name. |
void |
setCardNumber(java.lang.String number)
Set the credit card number. |
void |
setCardType(java.lang.String cardType)
Set the vendor/brand of the credit card (e.g. |
void |
setCreatedDate(java.util.Date createdDate)
Set the date that the order is created. |
void |
setCurrencyCode(java.lang.String currencyCode)
Set the currency code. |
void |
setCvv2Code(java.lang.String cvv2Code)
Set the security code (found near the signature on the back of the card). |
void |
setEmail(java.lang.String email)
Set the customer's email address (Required for card processing). |
void |
setExpiryMonth(java.lang.String expiryMonth)
Set the expiry two-digit date month. |
void |
setExpiryYear(java.lang.String expiryYear)
Set the two-digit expiry date year. |
void |
setGatewayToken(java.lang.String gatewayToken)
Store the temporary token needed by some payment gateway, i.e. |
void |
setIssueNumber(java.lang.String issueNumber)
Set the issue number used by some U.K. |
void |
setPaymentMethod(java.lang.String paymentMethod)
Set the payment method such as "C.O.D." or "Verisign". |
void |
setReferenceId(java.lang.String referenceId)
Set the reference id. |
void |
setRequestToken(java.lang.String requestToken)
Set the request token. |
void |
setStartDate(java.util.Date startDate)
Set the cart start date used by some U.K. |
void |
setStatus(OrderPaymentStatus status)
Set the status of the order payment. |
void |
setTransactionType(java.lang.String transactionType)
Get the payment transaction type, i.e. |
| Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, 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.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public OrderPaymentImpl()
| Method Detail |
|---|
public void encryptCardNumber()
encryptCardNumber in interface OrderPaymentpublic java.math.BigDecimal getAmount()
getAmount in interface OrderPaymentpublic java.lang.String getAuthorizationCode()
getAuthorizationCode in interface OrderPaymentpublic java.lang.String getCardHolderName()
getCardHolderName in interface OrderPaymentpublic java.lang.String getCardNumber()
getCardNumber in interface OrderPaymentpublic java.lang.String getCardType()
getCardType in interface OrderPaymentpublic java.util.Date getCreatedDate()
getCreatedDate in interface OrderPaymentpublic java.lang.String getCurrencyCode()
getCurrencyCode in interface OrderPaymentpublic java.lang.String getCvv2Code()
getCvv2Code in interface OrderPaymentpublic java.lang.String getEmail()
getEmail in interface OrderPaymentpublic java.lang.String getExpiryMonth()
getExpiryMonth in interface OrderPaymentpublic java.lang.String getExpiryYear()
getExpiryYear in interface OrderPaymentpublic java.lang.String getGatewayToken()
getGatewayToken in interface OrderPaymentpublic java.lang.String getIssueNumber()
getIssueNumber in interface OrderPaymentpublic java.lang.String getMaskedCardNumber()
getMaskedCardNumber in interface OrderPaymentpublic java.lang.String getPaymentMethod()
getPaymentMethod in interface OrderPaymentpublic java.lang.String getReferenceId()
getReferenceId in interface OrderPaymentpublic java.lang.String getRequestToken()
getRequestToken in interface OrderPaymentpublic java.util.Date getStartDate()
getStartDate in interface OrderPaymentpublic OrderPaymentStatus getStatus()
getStatus in interface OrderPaymentpublic java.lang.String getTransactionType()
getTransactionType in interface OrderPaymentpublic java.lang.String getUnencryptedCardNumber()
getUnencryptedCardNumber in interface OrderPaymentpublic void setAmount(java.math.BigDecimal amount)
setAmount in interface OrderPaymentamount - the amountpublic void setAuthorizationCode(java.lang.String authorizationCode)
setAuthorizationCode in interface OrderPaymentauthorizationCode - the authorization codepublic void setCardHolderName(java.lang.String cardHolderName)
setCardHolderName in interface OrderPaymentcardHolderName - the name on the cardpublic void setCardNumber(java.lang.String number)
setCardNumber in interface OrderPaymentnumber - the credit card numberpublic void setCardType(java.lang.String cardType)
setCardType in interface OrderPaymentcardType - the card typepublic void setCreatedDate(java.util.Date createdDate)
setCreatedDate in interface OrderPaymentcreatedDate - the start datepublic void setCurrencyCode(java.lang.String currencyCode)
setCurrencyCode in interface OrderPaymentcurrencyCode - the currency code codepublic void setCvv2Code(java.lang.String cvv2Code)
setCvv2Code in interface OrderPaymentcvv2Code - the security codepublic void setEmail(java.lang.String email)
setEmail in interface OrderPaymentemail - the customer's email addresspublic void setExpiryMonth(java.lang.String expiryMonth)
setExpiryMonth in interface OrderPaymentexpiryMonth - the two digit expiry date monthpublic void setExpiryYear(java.lang.String expiryYear)
setExpiryYear in interface OrderPaymentexpiryYear - the expiry date yearpublic void setGatewayToken(java.lang.String gatewayToken)
setGatewayToken in interface OrderPaymentgatewayToken - payment gateway tokenpublic void setIssueNumber(java.lang.String issueNumber)
setIssueNumber in interface OrderPaymentissueNumber - the issue numberpublic void setPaymentMethod(java.lang.String paymentMethod)
setPaymentMethod in interface OrderPaymentpaymentMethod - the payment methodpublic void setReferenceId(java.lang.String referenceId)
setReferenceId in interface OrderPaymentreferenceId - the reference idpublic void setRequestToken(java.lang.String requestToken)
setRequestToken in interface OrderPaymentrequestToken - the request tokenpublic void setStartDate(java.util.Date startDate)
setStartDate in interface OrderPaymentstartDate - the start datepublic void setStatus(OrderPaymentStatus status)
setStatus in interface OrderPaymentstatus - the status of the order paymentpublic void setTransactionType(java.lang.String transactionType)
setTransactionType in interface OrderPaymenttransactionType - the payment transaction type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||