public class DefaultOrderUtilityImpl extends java.lang.Object implements OrderUtility
| Constructor and Description |
|---|
DefaultOrderUtilityImpl() |
| Modifier and Type | Method and Description |
|---|---|
OrderModel |
createOrderFromCart(CartModel cart,
AddressModel deliveryAddress,
AddressModel paymentAddress,
PaymentInfoModel paymentInfo)
Creates the order from cart.
|
OrderModel |
createOrderFromOrderTemplate(OrderModel template)
Creates the order from order template.
|
protected CalculationService |
getCalculationService() |
ModelService |
getModelService() |
OrderService |
getOrderService() |
void |
runOrder(OrderModel order)
Run order.
|
OrderModel |
runScheduledOrder(OrderModel order)
Run scheduled order.
|
void |
setCalculationService(CalculationService calculationService) |
void |
setModelService(ModelService modelService) |
void |
setOrderService(OrderService orderService) |
public OrderModel createOrderFromCart(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo) throws InvalidCartException
OrderUtilitycreateOrderFromCart in interface OrderUtilitycart - the cartInvalidCartExceptionpublic OrderModel createOrderFromOrderTemplate(OrderModel template)
OrderUtilitycreateOrderFromOrderTemplate in interface OrderUtilitytemplate - the templatepublic OrderModel runScheduledOrder(OrderModel order)
OrderUtilityrunScheduledOrder in interface OrderUtilityorder - the orderpublic void runOrder(OrderModel order)
OrderUtilityrunOrder in interface OrderUtilityorder - the orderprotected CalculationService getCalculationService()
public void setCalculationService(CalculationService calculationService)
public void setModelService(ModelService modelService)
public ModelService getModelService()
public void setOrderService(OrderService orderService)
public OrderService getOrderService()
Copyright © 2018 SAP SE. All Rights Reserved.