public interface ChineseCheckoutService
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorizePayment(java.lang.String securityCode,
CartModel cartModel)
Check whether the payment is authorized
|
void |
deleteStockLevelReservationHistoryEntry(java.lang.String code)
Delete the StockLevelReservationHistoryEntry after the user pay the order successfully
|
OrderModel |
getOrderByCode(java.lang.String code)
Getting the OrderModel by code
|
java.util.Optional<TaskModel> |
getSubmitOrderEventTask(java.lang.String orderCode)
Gets task model by order code
|
void |
releaseStock(java.lang.String orderCode)
Release Stock after cancel order
|
boolean |
reserveStock(java.lang.String orderCode,
java.lang.String productCode,
int quantity,
java.util.Optional<PointOfServiceModel> pos)
Reserve the stock after place order
|
void |
setPaymentMode(PaymentModeModel paymentMode,
CartModel cartModel)
Save the PaymentMode information in the cart
|
boolean reserveStock(java.lang.String orderCode,
java.lang.String productCode,
int quantity,
java.util.Optional<PointOfServiceModel> pos)
throws InsufficientStockLevelException
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 stockInsufficientStockLevelException - when stock level is insufficientvoid releaseStock(java.lang.String orderCode)
orderCode - The code of the ordervoid deleteStockLevelReservationHistoryEntry(java.lang.String code)
code - The code of the orderboolean authorizePayment(java.lang.String securityCode,
CartModel cartModel)
securityCode - The security codecartModel - The current cartvoid setPaymentMode(PaymentModeModel paymentMode, CartModel cartModel)
paymentMode - The selected PaymentModecartModel - The current cartOrderModel getOrderByCode(java.lang.String code)
code - The code of the orderjava.util.Optional<TaskModel> getSubmitOrderEventTask(java.lang.String orderCode)
orderCode - the order codeCopyright © 2018 SAP SE. All Rights Reserved.