Interface ChineseCheckoutService
- All Known Implementing Classes:
DefaultChineseCheckoutService
public interface ChineseCheckoutService
Service for Chinese checkout
-
Method Summary
Modifier and TypeMethodDescriptionbooleanauthorizePayment(String securityCode, CartModel cartModel) Check whether the payment is authorizedvoidDeprecated, for removal: This API element is subject to removal in a future version.since 1905getOrderByCode(String code) Getting the OrderModel by codegetSubmitOrderEventTask(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 1905voidsetPaymentMode(PaymentModeModel paymentMode, CartModel cartModel) Save the PaymentMode information in the cart
-
Method Details
-
reserveStock
@Deprecated(since="1905", forRemoval=true) 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 1905Reserve the stock after place order- 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 1905Release Stock after cancel order- Parameters:
orderCode- The code of the order
-
deleteStockLevelReservationHistoryEntry
@Deprecated(since="1905", forRemoval=true) void deleteStockLevelReservationHistoryEntry(String code) Deprecated, for removal: This API element is subject to removal in a future version.since 1905Delete the StockLevelReservationHistoryEntry after the user pay the order successfully- Parameters:
code- The code of the order
-
authorizePayment
Check whether the payment is authorized- Parameters:
securityCode- The security codecartModel- The current cart- Returns:
- true if the owner of the cart is current use, false otherwise
-
setPaymentMode
Save the PaymentMode information in the cart- Parameters:
paymentMode- The selected PaymentModecartModel- The current cart
-
getOrderByCode
Getting the OrderModel by code- Parameters:
code- The code of the order- Returns:
- order model
-
getSubmitOrderEventTask
Gets task model by order code- Parameters:
orderCode- the order code- Returns:
- the optional of task model
-