Interface ChineseCheckoutFacade

    • Method Detail

      • getCart

        @Deprecated
        CartModel getCart()
        Deprecated.
        since 1905. Use super implementation instead.
        Gets the SessionCart.
        Returns:
        CartModel
      • mergeCart

        @Deprecated
        void mergeCart​(CartModel cartModel)
        Deprecated.
        since 1905
        Merges the cart.
        Parameters:
        cartModel - cart model
      • convertCart

        @Deprecated
        CartData convertCart​(CartModel cartModel)
        Deprecated.
        since 1905
        Converts the CartModel into CartData.
        Parameters:
        cartModel - The CartModel to be converted
        Returns:
        cart data converted from cart model
      • setPaymentMode

        void setPaymentMode​(PaymentModeModel paymentMode)
        Saves the PaymentMode in the cart.
        Parameters:
        paymentMode - The selected PaymentMode
      • reserveStock

        @Deprecated
        boolean reserveStock​(java.lang.String orderCode,
                             java.lang.String productCode,
                             int quantity,
                             java.util.Optional<PointOfServiceModel> pos)
                      throws InsufficientStockLevelException
        Deprecated.
        since 1905
        Reserves the stock after placing 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:
        true if reserve stock successfully, false otherwise
        Throws:
        InsufficientStockLevelException - when stock level is insufficient
      • getOrderDetailsForCode

        @Deprecated
        OrderData getOrderDetailsForCode​(java.lang.String code)
        Deprecated.
        since 1905. Use de.hybris.platform.commercefacades.order.OrderFacade.getOrderDetailsForCode(String) instead
        Gets the OrderDetails for code.
        Parameters:
        code - The code of the order
        Returns:
        order data
      • deleteStockLevelReservationHistoryEntry

        @Deprecated
        void deleteStockLevelReservationHistoryEntry​(java.lang.String code)
        Deprecated.
        since 1905
        Delete StockLevelReservationHistoryEntry after the user pay the order successfully.
        Parameters:
        code - The code of the order
      • hasNoChinesePaymentInfo

        boolean hasNoChinesePaymentInfo()
        Checks whether the cart has the ChinesePaymentInfo.
        Returns:
        false if the cart has chinese payment info, true otherwise
      • publishSubmitOrderEvent

        @Deprecated
        void publishSubmitOrderEvent​(java.lang.String orderCode)
        Deprecated.
        since 1905
        Publishes the SubmitOrderEvent.
        Parameters:
        orderCode - The code of the order
      • getOrderByCode

        @Deprecated
        OrderData getOrderByCode​(java.lang.String code)
        Deprecated.
        since 1905. Use de.hybris.platform.commercefacades.order.OrderFacade.getOrderDetailsForCode(String)
        Gets the OrderData by code.
        Parameters:
        code - The code of the order
        Returns:
        order data
      • submitOrder

        void submitOrder​(java.lang.String orderCode)
        Submits order when paying order.
        Parameters:
        orderCode - the order code
      • setPaymentInfo

        void setPaymentInfo​(java.lang.String paymentModeCode)
        Saves the ChinesePaymentInfo in the cart.
        Parameters:
        paymentModeCode - The code of PaymentMode which is set in ChinesePaymentInfo
      • getPaymentModeByCode

        PaymentModeData getPaymentModeByCode​(java.lang.String paymentModeCode)
        Gets the PaymentMode by code.
        Parameters:
        paymentModeCode - the code of payment mode
        Returns:
        payment mode data
      • createChinesePaymentRequestData

        ChinesePaymentRequestData createChinesePaymentRequestData​(java.lang.String orderCode)
        Creates Chinese payment request data.
        Parameters:
        orderCode - the order code
        Returns:
        chinese payment request data
      • buildPaymentRequestUrl

        java.lang.String buildPaymentRequestUrl​(java.lang.String orderCode)
        Builds order payment request url.
        Parameters:
        orderCode - the order code
        Returns:
        chinese payment request url
      • updatePaymentInfoForPlacingOrder

        void updatePaymentInfoForPlacingOrder​(OrderData orderData)
        Updates Payment info before placing order.
        Parameters:
        orderData - the order data
      • needPayInNewWindow

        boolean needPayInNewWindow()
        Checks whether to open a new window for payment.
        Returns:
        true if requires opening a new browser window for payment, false otherwise
      • syncPaymentStatusForOrder

        OrderData syncPaymentStatusForOrder​(java.lang.String orderCode)
        Checks latest payment status.
        Parameters:
        orderCode - the order code
        Returns:
        order data with latest payment status