Class DefaultChineseCheckoutService
java.lang.Object
de.hybris.platform.chinesepaymentservices.checkout.impl.DefaultChineseCheckoutService
- All Implemented Interfaces:
ChineseCheckoutService
Implementation for
ChineseCheckoutService. Delivers main functionality for chinese checkout service.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthorizePayment(String securityCode, CartModel cartModel) Check whether the payment is authorizedprotected booleancheckIfCurrentUserIsTheCartUser(CartModel cartModel) voiddeleteStockLevelReservationHistoryEntry(String orderCode) Deprecated, for removal: This API element is subject to removal in a future version.since 1905protected BaseStoreServiceprotected CheckoutCustomerStrategyprotected ChineseOrderDaoprotected CustomerModelprotected DefaultWarehouseSelectionStrategyprotected ModelServicegetOrderByCode(String code) Getting the OrderModel by codeprotected ProductServiceprotected StockServiceDeprecated, for removal: This API element is subject to removal in a future version.since 1905getSubmitOrderEventTask(String orderCode) Gets task model by order codevoidreleaseStock(String orderCode) Deprecated, for removal: This API element is subject to removal in a future version.since 1905booleanreserveStock(String orderCode, String productCode, int quantity, Optional<PointOfServiceModel> pos) Deprecated, for removal: This API element is subject to removal in a future version.since 1905voidsetBaseStoreService(BaseStoreService baseStoreService) voidsetCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy) voidsetChineseOrderDao(ChineseOrderDao chineseOrderDao) voidsetChineseStockLevelReservationHistoryEntryService(ChineseStockLevelReservationHistoryEntryService chineseStockLevelReservationHistoryEntryService) voidsetDefaultWarehouseSelectionStrategy(DefaultWarehouseSelectionStrategy defaultWarehouseSelectionStrategy) voidsetModelService(ModelService modelService) voidsetPaymentMode(PaymentModeModel paymentMode, CartModel cartModel) Save the PaymentMode information in the cartvoidsetProductService(ProductService productService) voidsetStockService(StockService stockService) Deprecated, for removal: This API element is subject to removal in a future version.since 1905
-
Constructor Details
-
DefaultChineseCheckoutService
public DefaultChineseCheckoutService()
-
-
Method Details
-
reserveStock
@Deprecated(since="1905", forRemoval=true) public boolean reserveStock(String orderCode, String productCode, int quantity, Optional<PointOfServiceModel> pos) throws InsufficientStockLevelException Deprecated, for removal: This API element is subject to removal in a future version.since 1905Description copied from interface:ChineseCheckoutServiceReserve the stock after place order- Specified by:
reserveStockin interfaceChineseCheckoutService- Parameters:
orderCode- The code of the orderproductCode- The code of the product in the orderquantity- The quantity to be reservedpos- The point of service to find stock- Returns:
- If reserve stock successfully
- Throws:
InsufficientStockLevelException- when stock level is insufficient
-
releaseStock
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Description copied from interface:ChineseCheckoutServiceRelease Stock after cancel order- Specified by:
releaseStockin interfaceChineseCheckoutService- Parameters:
orderCode- The code of the order
-
deleteStockLevelReservationHistoryEntry
@Deprecated(since="1905", forRemoval=true) public void deleteStockLevelReservationHistoryEntry(String orderCode) Deprecated, for removal: This API element is subject to removal in a future version.since 1905Description copied from interface:ChineseCheckoutServiceDelete the StockLevelReservationHistoryEntry after the user pay the order successfully- Specified by:
deleteStockLevelReservationHistoryEntryin interfaceChineseCheckoutService- Parameters:
orderCode- The code of the order
-
getSubmitOrderEventTask
Description copied from interface:ChineseCheckoutServiceGets task model by order code- Specified by:
getSubmitOrderEventTaskin interfaceChineseCheckoutService- Parameters:
orderCode- the order code- Returns:
- the optional of task model
-
authorizePayment
Description copied from interface:ChineseCheckoutServiceCheck whether the payment is authorized- Specified by:
authorizePaymentin interfaceChineseCheckoutService- Parameters:
securityCode- The security codecartModel- The current cart- Returns:
- true if the owner of the cart is current use, false otherwise
-
checkIfCurrentUserIsTheCartUser
-
getCurrentUserForCheckout
-
setPaymentMode
Description copied from interface:ChineseCheckoutServiceSave the PaymentMode information in the cart- Specified by:
setPaymentModein interfaceChineseCheckoutService- Parameters:
paymentMode- The selected PaymentModecartModel- The current cart
-
getOrderByCode
Description copied from interface:ChineseCheckoutServiceGetting the OrderModel by code- Specified by:
getOrderByCodein interfaceChineseCheckoutService- Parameters:
code- The code of the order- Returns:
- order model
-
getStockService
Deprecated, for removal: This API element is subject to removal in a future version.since 1905 -
setStockService
Deprecated, for removal: This API element is subject to removal in a future version.since 1905 -
getProductService
-
setProductService
-
getModelService
-
setModelService
-
getBaseStoreService
-
setBaseStoreService
-
getDefaultWarehouseSelectionStrategy
-
setDefaultWarehouseSelectionStrategy
public void setDefaultWarehouseSelectionStrategy(DefaultWarehouseSelectionStrategy defaultWarehouseSelectionStrategy) -
getCheckoutCustomerStrategy
-
setCheckoutCustomerStrategy
-
getChineseStockLevelReservationHistoryEntryService
protected ChineseStockLevelReservationHistoryEntryService getChineseStockLevelReservationHistoryEntryService() -
setChineseStockLevelReservationHistoryEntryService
public void setChineseStockLevelReservationHistoryEntryService(ChineseStockLevelReservationHistoryEntryService chineseStockLevelReservationHistoryEntryService) -
getChineseOrderDao
-
setChineseOrderDao
-