public class DefaultB2BOrderService extends DefaultOrderService implements B2BOrderService
B2BOrderService| Constructor and Description |
|---|
DefaultB2BOrderService() |
public OrderModel createOrderFromCart(CartModel cart) throws InvalidCartException
InvalidCartExceptionprotected boolean isB2BContext(AbstractOrderModel order)
public List<OrderModel> getRejectedOrders(UserModel user)
B2BOrderServiceOrderStatus.REJECTED for a user.getRejectedOrders in interface B2BOrderServiceuser - the userpublic List<CartToOrderCronJobModel> getScheduledOrders(UserModel user)
B2BOrderServicegetScheduledOrders in interface B2BOrderServiceuser - A user who had a cart scheduled for replenishment.@Deprecated public CartToOrderCronJobModel findScheduledCartToOrderJob(String code)
getScheduledCartToOrderJobForCode(String) insteadB2BOrderServicefindScheduledCartToOrderJob in interface B2BOrderServicecode - the codepublic CartToOrderCronJobModel getScheduledCartToOrderJobForCode(String code)
B2BOrderServiceCronJobModel.CODE.getScheduledCartToOrderJobForCode in interface B2BOrderServicecode - the cron job's CronJobModel.CODEpublic List<OrderModel> getPendingApprovalOrders(UserModel user)
B2BOrderServiceOrderStatus.PENDING_APPROVALgetPendingApprovalOrders in interface B2BOrderServiceuser - the userpublic List<OrderModel> getApprovedOrders(UserModel user)
B2BOrderServiceOrderStatus.APPROVED for a user.getApprovedOrders in interface B2BOrderServiceuser - the user@Deprecated public OrderModel getOrderByCode(String code)
getOrderForCode(String) insteadB2BOrderServicegetOrderByCode in interface B2BOrderServicecode - the codepublic AbstractOrderModel getAbstractOrderForCode(String code)
B2BOrderServiceAbstractOrderModel.CODE.getAbstractOrderForCode in interface B2BOrderServicecode - the AbstractOrderModel.CODE of the orderpublic OrderModel getOrderForCode(String code)
B2BOrderServiceAbstractOrderModel.CODE.getOrderForCode in interface B2BOrderServicecode - the codepublic List<OrderModel> getErroredOrders(UserModel user)
B2BOrderServiceOrderStatus.B2B_PROCESSING_ERRORgetErroredOrders in interface B2BOrderServiceuser - the user@Deprecated public List<OrderModel> getRejectedByMerchantOrders(UserModel user)
getRejectedForMerchantOrders(UserModel) insteadB2BOrderServiceOrderStatus.REJECTED_BY_MERCHANT for a user.getRejectedByMerchantOrders in interface B2BOrderServiceuser - the userpublic List<OrderModel> getRejectedForMerchantOrders(UserModel user)
B2BOrderServiceOrderStatus.REJECTED_BY_MERCHANT for a user.getRejectedForMerchantOrders in interface B2BOrderServiceuser - the userpublic List<OrderModel> getPendingApprovalOrdersFromMerchant(UserModel user)
B2BOrderServiceOrderStatus.PENDING_APPROVAL_FROM_MERCHANTgetPendingApprovalOrdersFromMerchant in interface B2BOrderServiceuser - the user@Deprecated public List<OrderModel> getRejectedQuoteOrders(UserModel user)
getRejectedQuoteOrders in interface B2BOrderServiceuser - the user@Deprecated public List<OrderModel> getApprovedQuoteOrders(UserModel user)
getApprovedQuoteOrders in interface B2BOrderServiceuser - the user@Deprecated public List<OrderModel> getPendingQuoteOrders(UserModel user)
getPendingQuoteOrders in interface B2BOrderServiceuser - the user@Deprecated public boolean isQuoteAllowed(AbstractOrderModel source)
isQuoteAllowed in interface B2BOrderServicesource - the orderpublic void deleteOrder(String code)
deleteOrder in interface B2BOrderServicecode - the order to deletepublic double getTotalDiscount(AbstractOrderEntryModel entry)
B2BOrderServicegetTotalDiscount in interface B2BOrderServiceentry - the entry line item of an orderpublic boolean hasItemDiscounts(AbstractOrderModel order)
B2BOrderServicehasItemDiscounts in interface B2BOrderServiceorder - the orderpublic double getOrderEntryDiscountAmount(AbstractOrderEntryModel entry)
B2BOrderServicegetOrderEntryDiscountAmount in interface B2BOrderServiceentry - An AbstractOrderEntryModelpublic void setB2bOrderDao(B2BOrderDao b2bOrderDao)
public void setBaseDao(BaseDao baseDao)
protected I18NService getI18nService()
public void setI18nService(I18NService i18nService)
public void setB2bCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService)
protected CreateOrderFromCartStrategy getB2bCreateOrderFromCartStrategy()
public void setB2bCreateOrderFromCartStrategy(CreateOrderFromCartStrategy b2bCreateOrderFromCartStrategy)
protected CartToOrderCronJobModelDao getCartToOrderCronJobModelDao()
public void setCartToOrderCronJobModelDao(CartToOrderCronJobModelDao cartToOrderCronJobModelDao)
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
public void setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
protected UserService getUserService()
public void setUserService(UserService userService)
protected SearchRestrictionService getSearchRestrictionService()
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
protected BaseDao getBaseDao()
protected B2BOrderDao getB2bOrderDao()
protected B2BCustomerService<B2BCustomerModel,B2BUnitModel> getB2bCustomerService()
protected List<QuoteEvaluationStrategy> getB2bQuoteEvaluationStrategies()
public void setB2bQuoteEvaluationStrategies(List<QuoteEvaluationStrategy> b2bQuoteEvaluationStrategies)
public WorkflowProcessingService getWorkflowProcessingService()
public void setWorkflowProcessingService(WorkflowProcessingService workflowProcessingService)
Copyright © 2017 SAP SE. All Rights Reserved.