|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 OrderPayment
public java.math.BigDecimal getAmount()
getAmount
in interface OrderPayment
public java.lang.String getAuthorizationCode()
getAuthorizationCode
in interface OrderPayment
public java.lang.String getCardHolderName()
getCardHolderName
in interface OrderPayment
public java.lang.String getCardNumber()
getCardNumber
in interface OrderPayment
public java.lang.String getCardType()
getCardType
in interface OrderPayment
public java.util.Date getCreatedDate()
getCreatedDate
in interface OrderPayment
public java.lang.String getCurrencyCode()
getCurrencyCode
in interface OrderPayment
public java.lang.String getCvv2Code()
getCvv2Code
in interface OrderPayment
public java.lang.String getEmail()
getEmail
in interface OrderPayment
public java.lang.String getExpiryMonth()
getExpiryMonth
in interface OrderPayment
public java.lang.String getExpiryYear()
getExpiryYear
in interface OrderPayment
public java.lang.String getGatewayToken()
getGatewayToken
in interface OrderPayment
public java.lang.String getIssueNumber()
getIssueNumber
in interface OrderPayment
public java.lang.String getMaskedCardNumber()
getMaskedCardNumber
in interface OrderPayment
public java.lang.String getPaymentMethod()
getPaymentMethod
in interface OrderPayment
public java.lang.String getReferenceId()
getReferenceId
in interface OrderPayment
public java.lang.String getRequestToken()
getRequestToken
in interface OrderPayment
public java.util.Date getStartDate()
getStartDate
in interface OrderPayment
public OrderPaymentStatus getStatus()
getStatus
in interface OrderPayment
public java.lang.String getTransactionType()
getTransactionType
in interface OrderPayment
public java.lang.String getUnencryptedCardNumber()
getUnencryptedCardNumber
in interface OrderPayment
public void setAmount(java.math.BigDecimal amount)
setAmount
in interface OrderPayment
amount
- the amountpublic void setAuthorizationCode(java.lang.String authorizationCode)
setAuthorizationCode
in interface OrderPayment
authorizationCode
- the authorization codepublic void setCardHolderName(java.lang.String cardHolderName)
setCardHolderName
in interface OrderPayment
cardHolderName
- the name on the cardpublic void setCardNumber(java.lang.String number)
setCardNumber
in interface OrderPayment
number
- the credit card numberpublic void setCardType(java.lang.String cardType)
setCardType
in interface OrderPayment
cardType
- the card typepublic void setCreatedDate(java.util.Date createdDate)
setCreatedDate
in interface OrderPayment
createdDate
- the start datepublic void setCurrencyCode(java.lang.String currencyCode)
setCurrencyCode
in interface OrderPayment
currencyCode
- the currency code codepublic void setCvv2Code(java.lang.String cvv2Code)
setCvv2Code
in interface OrderPayment
cvv2Code
- the security codepublic void setEmail(java.lang.String email)
setEmail
in interface OrderPayment
email
- the customer's email addresspublic void setExpiryMonth(java.lang.String expiryMonth)
setExpiryMonth
in interface OrderPayment
expiryMonth
- the two digit expiry date monthpublic void setExpiryYear(java.lang.String expiryYear)
setExpiryYear
in interface OrderPayment
expiryYear
- the expiry date yearpublic void setGatewayToken(java.lang.String gatewayToken)
setGatewayToken
in interface OrderPayment
gatewayToken
- payment gateway tokenpublic void setIssueNumber(java.lang.String issueNumber)
setIssueNumber
in interface OrderPayment
issueNumber
- the issue numberpublic void setPaymentMethod(java.lang.String paymentMethod)
setPaymentMethod
in interface OrderPayment
paymentMethod
- the payment methodpublic void setReferenceId(java.lang.String referenceId)
setReferenceId
in interface OrderPayment
referenceId
- the reference idpublic void setRequestToken(java.lang.String requestToken)
setRequestToken
in interface OrderPayment
requestToken
- the request tokenpublic void setStartDate(java.util.Date startDate)
setStartDate
in interface OrderPayment
startDate
- the start datepublic void setStatus(OrderPaymentStatus status)
setStatus
in interface OrderPayment
status
- the status of the order paymentpublic void setTransactionType(java.lang.String transactionType)
setTransactionType
in interface OrderPayment
transactionType
- the payment transaction type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |