|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CheckoutService
Provides checkout-related services.
Method Summary | |
---|---|
void |
calculateTaxAndBeforeTaxValue(ShoppingCart shoppingCart)
Complete the tax related calculation for the given shoppingCart. |
void |
checkout(ShoppingCart shoppingCart,
OrderPayment orderPayment)
Processes an order for the items in the specified shopping cart. |
void |
retrieveShippingOption(ShoppingCart shoppingCart)
Retrieve the valid shippingServiceLevels based on the given shoppingCart, and set the first one of the valid shippingServiceLevels as the selected shipping option by default. |
void |
setCustomerService(CustomerService customerService)
Set the customer service. |
void |
setOrderService(OrderService orderService)
Set the order service. |
void |
setRuleService(RuleService ruleService)
Set the rule service. |
void |
setShippingServiceLevelService(ShippingServiceLevelService shippingServiceLevelService)
Set the shippingServiceLevel service. |
void |
setShoppingCartService(ShoppingCartService shoppingCartService)
Set the shopping cart service. |
void |
setTaxJurisdictionService(TaxJurisdictionService taxJurisdictionService)
Set the taxJurisdiction service. |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
void calculateTaxAndBeforeTaxValue(ShoppingCart shoppingCart)
shoppingCart
- the current shopping cart.void checkout(ShoppingCart shoppingCart, OrderPayment orderPayment)
shoppingCart
- the cart to checkoutorderPayment
- the orderPayment representing the payment detail information.
Javadoc tags not used due to a Checkstyle processing error:
throws CardDeclinedException if the card is declined
throws CardExpiredException if the card has expired
throws CardErrorException if there was an error processing the given information
throws EpServiceException if the payment processing fails
throws InsufficientInventoryException if there is not enough inventory to complete the ordervoid retrieveShippingOption(ShoppingCart shoppingCart)
shoppingCart
- the current shopping cart.void setCustomerService(CustomerService customerService)
customerService
- the customer service.void setOrderService(OrderService orderService)
orderService
- the order servicevoid setRuleService(RuleService ruleService)
ruleService
- the rule servicevoid setShippingServiceLevelService(ShippingServiceLevelService shippingServiceLevelService)
shippingServiceLevelService
- the shippingServiceLevel service.void setShoppingCartService(ShoppingCartService shoppingCartService)
shoppingCartService
- the shopping cart servicevoid setTaxJurisdictionService(TaxJurisdictionService taxJurisdictionService)
taxJurisdictionService
- the taxJurisdiction service
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |