|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 BillingAndReviewFormBean
public java.util.Map getCardTypeMap()
getCardTypeMap
in interface BillingAndReviewFormBean
public Customer getCustomer()
getCustomer
in interface BillingAndReviewFormBean
public java.util.List getExistingCreditCards()
getExistingCreditCards
in interface BillingAndReviewFormBean
CustomerCreditCard
spublic java.util.Map getMonthMap()
getMonthMap
in interface BillingAndReviewFormBean
public OrderPayment getOrderPayment()
getOrderPayment
in interface BillingAndReviewFormBean
public CustomerCreditCard getSelectedExistingCreditCard()
getSelectedExistingCreditCard
in interface BillingAndReviewFormBean
CustomerCreditCard
or null if there
is no valid selected credit card.public long getSelectedExistingCreditCardUid()
getSelectedExistingCreditCardUid
in interface BillingAndReviewFormBean
public java.lang.String getSelectedPaymentOption()
getSelectedPaymentOption
in interface BillingAndReviewFormBean
public Address getShippingAddress()
getShippingAddress
in interface BillingAndReviewFormBean
public java.util.Map getYearMap()
getYearMap
in interface BillingAndReviewFormBean
public boolean isSaveCreditCardForFutureUse()
isSaveCreditCardForFutureUse
in interface BillingAndReviewFormBean
public boolean isValidateCvv2()
isValidateCvv2
in interface BillingAndReviewFormBean
public void setBillingAddress(Address billingAddress)
setBillingAddress
in interface BillingAndReviewFormBean
billingAddress
- the billing addresspublic void setCardTypes(java.util.List cardTypes)
setCardTypes
in interface BillingAndReviewFormBean
cardTypes
- a list of String card typespublic void setCustomer(Customer customer)
setCustomer
in interface BillingAndReviewFormBean
customer
- Customer.public void setExistingCreditCards(java.util.List existingCreditCards)
setExistingCreditCards
in interface BillingAndReviewFormBean
existingCreditCards
- a list of CustomerCreditCard
spublic void setOrderPayment(OrderPayment orderPayment)
setOrderPayment
in interface BillingAndReviewFormBean
orderPayment
- the orderPaymentpublic void setSaveCreditCardForFutureUse(boolean saveCreditCard)
setSaveCreditCardForFutureUse
in interface BillingAndReviewFormBean
saveCreditCard
- set to true to indicate that the new credit card information should be savedpublic void setSelectedExistingCreditCardUid(long selectedExistingCardUid)
setSelectedExistingCreditCardUid
in interface BillingAndReviewFormBean
selectedExistingCardUid
- the credit card UIDpublic void setSelectedPaymentOption(java.lang.String selectedPaymentOption)
setSelectedPaymentOption
in interface BillingAndReviewFormBean
selectedPaymentOption
- a payment option constant defined in this interfacepublic void setShippingAddress(Address shippingAddress)
setShippingAddress
in interface BillingAndReviewFormBean
shippingAddress
- the shipping addresspublic void setValidateCvv2(boolean validate)
setValidateCvv2
in interface BillingAndReviewFormBean
validate
- true if the cvv2 should be validated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |