|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.sfweb.formbean.impl.EpFormBeanImpl
com.elasticpath.sfweb.formbean.impl.BillingAndReviewFormBeanImpl
public class BillingAndReviewFormBeanImpl
Bean used to provide and capture information from the Billing and Review screen.
| Field Summary |
|---|
| Fields inherited from interface com.elasticpath.sfweb.formbean.BillingAndReviewFormBean |
|---|
PAYMENT_OPTION_EXISTING_CREDIT_CARD, PAYMENT_OPTION_NEW_CREDIT_CARD, PAYMENT_OPTION_PAYPAL_EXPRESS |
| Constructor Summary | |
|---|---|
BillingAndReviewFormBeanImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
Address |
getBillingAddress()
Get the billing address. |
java.util.Map |
getCardTypeMap()
Get a map of the card types for the Spring input form. |
Customer |
getCustomer()
Gets the Customer. |
java.util.List |
getExistingCreditCards()
Retrieve the collection of existing credit cards that the customer may use for payment. |
java.util.Map |
getMonthMap()
Get a map of the numbers of months of the year for the Spring form input for credit card expiry. |
OrderPayment |
getOrderPayment()
Get the orderPayment used to collect payment information. |
CustomerCreditCard |
getSelectedExistingCreditCard()
Returns the existing credit card selected by the user. |
long |
getSelectedExistingCreditCardUid()
Returns the id of the existing credit card selected by the user. |
java.lang.String |
getSelectedPaymentOption()
Get the payment option that the user has selected. |
Address |
getShippingAddress()
Get the shipping address. |
java.util.Map |
getYearMap()
Get a map of years for the Spring form input for credit card expiry. |
boolean |
isSaveCreditCardForFutureUse()
Indicates whether the user wishes to save a new credit card. |
boolean |
isValidateCvv2()
True if the cvv2 code (Card Security Code) should be validated. |
void |
setBillingAddress(Address billingAddress)
Set the billing address. |
void |
setCardTypes(java.util.List cardTypes)
Set the card types available as a list of Strings. |
void |
setCustomer(Customer customer)
Sets the Customer. |
void |
setExistingCreditCards(java.util.List existingCreditCards)
Set the collection of existing credit cards that the customer may use for payment. |
void |
setOrderPayment(OrderPayment orderPayment)
Set the orderPayment used to collect payment information. |
void |
setSaveCreditCardForFutureUse(boolean saveCreditCard)
Set whether new credit card information should be saved for future use. |
void |
setSelectedExistingCreditCardUid(long selectedExistingCardUid)
Sets the id of the existing credit card selected by the user. |
void |
setSelectedPaymentOption(java.lang.String selectedPaymentOption)
Set the payment option that the user has selected. |
void |
setShippingAddress(Address shippingAddress)
Set the shipping address. |
void |
setValidateCvv2(boolean validate)
Set whether or not the cvv2 code should be validated. |
| Methods inherited from class com.elasticpath.sfweb.formbean.impl.EpFormBeanImpl |
|---|
getElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.sfweb.formbean.EpFormBean |
|---|
getElasticPath |
| Constructor Detail |
|---|
public BillingAndReviewFormBeanImpl()
| Method Detail |
|---|
public Address getBillingAddress()
getBillingAddress in interface BillingAndReviewFormBeanpublic java.util.Map getCardTypeMap()
getCardTypeMap in interface BillingAndReviewFormBeanpublic Customer getCustomer()
getCustomer in interface BillingAndReviewFormBeanpublic java.util.List getExistingCreditCards()
getExistingCreditCards in interface BillingAndReviewFormBeanCustomerCreditCardspublic java.util.Map getMonthMap()
getMonthMap in interface BillingAndReviewFormBeanpublic OrderPayment getOrderPayment()
getOrderPayment in interface BillingAndReviewFormBeanpublic CustomerCreditCard getSelectedExistingCreditCard()
getSelectedExistingCreditCard in interface BillingAndReviewFormBeanCustomerCreditCard or null if there
is no valid selected credit card.public long getSelectedExistingCreditCardUid()
getSelectedExistingCreditCardUid in interface BillingAndReviewFormBeanpublic java.lang.String getSelectedPaymentOption()
getSelectedPaymentOption in interface BillingAndReviewFormBeanpublic Address getShippingAddress()
getShippingAddress in interface BillingAndReviewFormBeanpublic java.util.Map getYearMap()
getYearMap in interface BillingAndReviewFormBeanpublic boolean isSaveCreditCardForFutureUse()
isSaveCreditCardForFutureUse in interface BillingAndReviewFormBeanpublic boolean isValidateCvv2()
isValidateCvv2 in interface BillingAndReviewFormBeanpublic void setBillingAddress(Address billingAddress)
setBillingAddress in interface BillingAndReviewFormBeanbillingAddress - the billing addresspublic void setCardTypes(java.util.List cardTypes)
setCardTypes in interface BillingAndReviewFormBeancardTypes - a list of String card typespublic void setCustomer(Customer customer)
setCustomer in interface BillingAndReviewFormBeancustomer - Customer.public void setExistingCreditCards(java.util.List existingCreditCards)
setExistingCreditCards in interface BillingAndReviewFormBeanexistingCreditCards - a list of CustomerCreditCardspublic void setOrderPayment(OrderPayment orderPayment)
setOrderPayment in interface BillingAndReviewFormBeanorderPayment - the orderPaymentpublic void setSaveCreditCardForFutureUse(boolean saveCreditCard)
setSaveCreditCardForFutureUse in interface BillingAndReviewFormBeansaveCreditCard - set to true to indicate that the new credit card information should be savedpublic void setSelectedExistingCreditCardUid(long selectedExistingCardUid)
setSelectedExistingCreditCardUid in interface BillingAndReviewFormBeanselectedExistingCardUid - the credit card UIDpublic void setSelectedPaymentOption(java.lang.String selectedPaymentOption)
setSelectedPaymentOption in interface BillingAndReviewFormBeanselectedPaymentOption - a payment option constant defined in this interfacepublic void setShippingAddress(Address shippingAddress)
setShippingAddress in interface BillingAndReviewFormBeanshippingAddress - the shipping addresspublic void setValidateCvv2(boolean validate)
setValidateCvv2 in interface BillingAndReviewFormBeanvalidate - true if the cvv2 should be validated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||