public class DefaultChineseCheckoutService extends java.lang.Object implements ChineseCheckoutService
ChineseCheckoutService. Delivers main functionality for chinese checkout service.| Constructor and Description |
|---|
DefaultChineseCheckoutService() |
public boolean reserveStock(java.lang.String orderCode,
java.lang.String productCode,
int quantity,
java.util.Optional<PointOfServiceModel> pos)
throws InsufficientStockLevelException
ChineseCheckoutServicereserveStock in interface ChineseCheckoutServiceorderCode - The code of the orderproductCode - The code of the product in the orderquantity - The quantity to be reservedpos - The point of service to find stockInsufficientStockLevelException - when stock level is insufficientpublic void releaseStock(java.lang.String orderCode)
ChineseCheckoutServicereleaseStock in interface ChineseCheckoutServiceorderCode - The code of the orderpublic void deleteStockLevelReservationHistoryEntry(java.lang.String orderCode)
ChineseCheckoutServicedeleteStockLevelReservationHistoryEntry in interface ChineseCheckoutServiceorderCode - The code of the orderpublic boolean authorizePayment(java.lang.String securityCode,
CartModel cartModel)
ChineseCheckoutServiceauthorizePayment in interface ChineseCheckoutServicesecurityCode - The security codecartModel - The current cartprotected boolean checkIfCurrentUserIsTheCartUser(CartModel cartModel)
protected CustomerModel getCurrentUserForCheckout()
public void setPaymentMode(PaymentModeModel paymentMode, CartModel cartModel)
ChineseCheckoutServicesetPaymentMode in interface ChineseCheckoutServicepaymentMode - The selected PaymentModecartModel - The current cartpublic OrderModel getOrderByCode(java.lang.String code)
ChineseCheckoutServicegetOrderByCode in interface ChineseCheckoutServicecode - The code of the orderprotected StockService getStockService()
public void setStockService(StockService stockService)
protected ProductService getProductService()
public void setProductService(ProductService productService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
protected DefaultWarehouseSelectionStrategy getDefaultWarehouseSelectionStrategy()
public void setDefaultWarehouseSelectionStrategy(DefaultWarehouseSelectionStrategy defaultWarehouseSelectionStrategy)
protected CheckoutCustomerStrategy getCheckoutCustomerStrategy()
public void setCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy)
protected ChineseStockLevelReservationHistoryEntryService getChineseStockLevelReservationHistoryEntryService()
public void setChineseStockLevelReservationHistoryEntryService(ChineseStockLevelReservationHistoryEntryService chineseStockLevelReservationHistoryEntryService)
protected ChineseOrderDao getChineseOrderDao()
public void setChineseOrderDao(ChineseOrderDao chineseOrderDao)
Copyright © 2018 SAP SE. All Rights Reserved.