Interface CheckoutFacade
-
- All Known Implementing Classes:
B2BMultiStepCheckoutFlowFacade
,DefaultB2BAcceleratorCheckoutFacade
,DefaultB2BCheckoutFacade
,SapCreditCheckB2BAcceleratorCheckoutFacade
,SapCreditCheckB2BCheckoutFacade
,SapCreditCheckB2BMultiStepCheckoutFlowFacade
,SapOrdermgmtB2BAcceleratorCheckoutFacade
,SapOrdermgmtB2BCheckoutFacade
,SapOrdermgmtB2BMultiStepCheckoutFlowFacade
public interface CheckoutFacade
Defines an API for Checkout, responsible for managing all necessary information for checkout.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createCartFromOrder(java.lang.String orderCode)
CreatesCartModel
based on an order removes the current session carts and sets the new cart into the session.java.util.List<B2BDaysOfWeekData>
getDaysOfWeekForReplenishmentCheckoutSummary()
Call the Enum service to fetch the list of days in a week using DayOfWeek enumjava.util.List<B2BPaymentTypeData>
getPaymentTypes()
Gets the list of possible PaymentTypes for user selection in checkout summary<T extends AbstractOrderData>
TplaceOrder(PlaceOrderData placeOrderData)
Place Order functionScheduledCartData
scheduleOrder(TriggerData trigger)
Places the cart that's in the session as a scheduled order scheduled by the Trigger parameter<T extends AbstractOrderData>
TsetCostCenterForCart(java.lang.String costCenterCode, java.lang.String orderCode)
Sets the cost center on all the entries of the orderCartData
updateCheckoutCart(CartData cartData)
update the checkout cart data
-
-
-
Method Detail
-
updateCheckoutCart
CartData updateCheckoutCart(CartData cartData)
update the checkout cart data- Parameters:
cartData
-- Returns:
- CartData
-
setCostCenterForCart
<T extends AbstractOrderData> T setCostCenterForCart(java.lang.String costCenterCode, java.lang.String orderCode)
Sets the cost center on all the entries of the order- Parameters:
costCenterCode
- A unique identifier of a cost center, If null all entries of the order will be set with a null cost centerorderCode
- A unique identifier of an Order or Cart.- Returns:
- Order data
-
getPaymentTypes
java.util.List<B2BPaymentTypeData> getPaymentTypes()
Gets the list of possible PaymentTypes for user selection in checkout summary- Returns:
- B2BPaymentTypeEnum
-
getDaysOfWeekForReplenishmentCheckoutSummary
java.util.List<B2BDaysOfWeekData> getDaysOfWeekForReplenishmentCheckoutSummary()
Call the Enum service to fetch the list of days in a week using DayOfWeek enum- Returns:
- List of days in a week
-
scheduleOrder
ScheduledCartData scheduleOrder(TriggerData trigger)
Places the cart that's in the session as a scheduled order scheduled by the Trigger parameter- Parameters:
trigger
-- Returns:
- ScheduledCartData created
-
createCartFromOrder
void createCartFromOrder(java.lang.String orderCode)
CreatesCartModel
based on an order removes the current session carts and sets the new cart into the session.- Parameters:
orderCode
- The unique identifier for an order
-
placeOrder
<T extends AbstractOrderData> T placeOrder(PlaceOrderData placeOrderData) throws InvalidCartException
Place Order function- Parameters:
placeOrderData
-- Returns:
- OrderData
- Throws:
InvalidCartException
-
-