Interface ChineseCheckoutService

All Known Implementing Classes:
DefaultChineseCheckoutService

public interface ChineseCheckoutService
Service for Chinese checkout
  • 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 1905
      Reserve the stock after place order
      Parameters:
      orderCode - The code of the order
      productCode - The code of the product in the order
      quantity - The quantity to be reserved
      pos - The point of service to find stock
      Returns:
      If reserve stock successfully
      Throws:
      InsufficientStockLevelException - when stock level is insufficient
    • releaseStock

      @Deprecated(since="1905", forRemoval=true) void releaseStock(String orderCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1905
      Release 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 1905
      Delete the StockLevelReservationHistoryEntry after the user pay the order successfully
      Parameters:
      code - The code of the order
    • authorizePayment

      boolean authorizePayment(String securityCode, CartModel cartModel)
      Check whether the payment is authorized
      Parameters:
      securityCode - The security code
      cartModel - 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 PaymentMode
      cartModel - The current cart
    • getOrderByCode

      OrderModel getOrderByCode(String code)
      Getting the OrderModel by code
      Parameters:
      code - The code of the order
      Returns:
      order model
    • getSubmitOrderEventTask

      Optional<TaskModel> getSubmitOrderEventTask(String orderCode)
      Gets task model by order code
      Parameters:
      orderCode - the order code
      Returns:
      the optional of task model