|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BillingAndReviewFormBean
Bean used to provide and capture information from the Billing and Review screen.
Field Summary | |
---|---|
static java.lang.String |
PAYMENT_OPTION_EXISTING_CREDIT_CARD
Indicates the user wishes to pay with an existing card. |
static java.lang.String |
PAYMENT_OPTION_NEW_CREDIT_CARD
Indicates that the user wishes to enter new credit card information. |
static java.lang.String |
PAYMENT_OPTION_PAYPAL_EXPRESS
Indicates that the user wishes to pay via paypal. |
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 paymentOption)
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 interface com.elasticpath.sfweb.formbean.EpFormBean |
---|
getElasticPath |
Field Detail |
---|
static final java.lang.String PAYMENT_OPTION_EXISTING_CREDIT_CARD
setSelectedExistingCreditCardUid
.
static final java.lang.String PAYMENT_OPTION_NEW_CREDIT_CARD
static final java.lang.String PAYMENT_OPTION_PAYPAL_EXPRESS
Method Detail |
---|
Address getBillingAddress()
java.util.Map getCardTypeMap()
Customer getCustomer()
java.util.List getExistingCreditCards()
CustomerCreditCard
sjava.util.Map getMonthMap()
OrderPayment getOrderPayment()
CustomerCreditCard getSelectedExistingCreditCard()
CustomerCreditCard
or null if there
is no valid selected credit card.long getSelectedExistingCreditCardUid()
java.lang.String getSelectedPaymentOption()
Address getShippingAddress()
java.util.Map getYearMap()
boolean isSaveCreditCardForFutureUse()
boolean isValidateCvv2()
void setBillingAddress(Address billingAddress)
billingAddress
- the billing addressvoid setCardTypes(java.util.List cardTypes)
cardTypes
- a list of String card typesvoid setCustomer(Customer customer)
customer
- Customer.void setExistingCreditCards(java.util.List existingCreditCards)
existingCreditCards
- a list of CustomerCreditCard
svoid setOrderPayment(OrderPayment orderPayment)
orderPayment
- the credit cardvoid setSaveCreditCardForFutureUse(boolean saveCreditCard)
saveCreditCard
- set to true to indicate that the new credit card information should be savedvoid setSelectedExistingCreditCardUid(long selectedExistingCardUid)
selectedExistingCardUid
- the credit card UIDvoid setSelectedPaymentOption(java.lang.String paymentOption)
paymentOption
- a payment option constant defined in this interfacevoid setShippingAddress(Address shippingAddress)
shippingAddress
- the shipping addressvoid setValidateCvv2(boolean validate)
validate
- true if the cvv2 should be validated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |