Interface ChineseCheckoutService

    • Method Detail

      • reserveStock

        @Deprecated(since="1905",
                    forRemoval=true)
        boolean reserveStock​(java.lang.String orderCode,
                             java.lang.String productCode,
                             int quantity,
                             java.util.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​(java.lang.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​(java.lang.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​(java.lang.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​(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