Interface ChineseCheckoutService
-
- All Known Implementing Classes:
DefaultChineseCheckoutService
public interface ChineseCheckoutServiceService for Chinese checkout
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanauthorizePayment(java.lang.String securityCode, CartModel cartModel)Check whether the payment is authorizedvoiddeleteStockLevelReservationHistoryEntry(java.lang.String code)Deprecated.since 1905OrderModelgetOrderByCode(java.lang.String code)Getting the OrderModel by codejava.util.Optional<TaskModel>getSubmitOrderEventTask(java.lang.String orderCode)Gets task model by order codevoidreleaseStock(java.lang.String orderCode)Deprecated.since 1905booleanreserveStock(java.lang.String orderCode, java.lang.String productCode, int quantity, java.util.Optional<PointOfServiceModel> pos)Deprecated.since 1905voidsetPaymentMode(PaymentModeModel paymentMode, CartModel cartModel)Save the PaymentMode information in the cart
-
-
-
Method Detail
-
reserveStock
@Deprecated boolean reserveStock(java.lang.String orderCode, java.lang.String productCode, int quantity, java.util.Optional<PointOfServiceModel> pos) throws InsufficientStockLevelExceptionDeprecated.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 void releaseStock(java.lang.String orderCode)
Deprecated.since 1905Release Stock after cancel order- Parameters:
orderCode- The code of the order
-
deleteStockLevelReservationHistoryEntry
@Deprecated void deleteStockLevelReservationHistoryEntry(java.lang.String code)
Deprecated.since 1905Delete the StockLevelReservationHistoryEntry after the user pay the order successfully- Parameters:
code- The code of the order
-
authorizePayment
boolean authorizePayment(java.lang.String securityCode, CartModel cartModel)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
void setPaymentMode(PaymentModeModel paymentMode, CartModel cartModel)
Save the PaymentMode information in the cart- Parameters:
paymentMode- The selected PaymentModecartModel- The current cart
-
getOrderByCode
OrderModel getOrderByCode(java.lang.String code)
Getting the OrderModel by code- Parameters:
code- The code of the order- Returns:
- order model
-
getSubmitOrderEventTask
java.util.Optional<TaskModel> getSubmitOrderEventTask(java.lang.String orderCode)
Gets task model by order code- Parameters:
orderCode- the order code- Returns:
- the optional of task model
-
-