Interface ChineseCheckoutFacade

All Superinterfaces:
AcceleratorCheckoutFacade, CheckoutFacade
All Known Implementing Classes:
ChinesePaymentMockCheckoutFacade, DefaultChineseCheckoutFacade

public interface ChineseCheckoutFacade extends AcceleratorCheckoutFacade
The facade of ChineseCheckout
  • Method Details

    • getCart

      @Deprecated(since="1905", forRemoval=true) CartModel getCart()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1905. Use super implementation instead.
      Gets the SessionCart.
      Returns:
      CartModel
    • mergeCart

      @Deprecated(since="1905", forRemoval=true) void mergeCart(CartModel cartModel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1905
      Merges the cart.
      Parameters:
      cartModel - cart model
    • convertCart

      @Deprecated(since="1905", forRemoval=true) CartData convertCart(CartModel cartModel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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(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
      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(since="1905", forRemoval=true) OrderData getOrderDetailsForCode(String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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(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 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
    • createOrder

      OrderData createOrder() throws BusinessException
      Creates an order.
      Returns:
      order data after place order
      Throws:
      BusinessException - when business error both before place order and after place order
    • publishSubmitOrderEvent

      @Deprecated(since="1905", forRemoval=true) void publishSubmitOrderEvent(String orderCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1905
      Publishes the SubmitOrderEvent.
      Parameters:
      orderCode - The code of the order
    • getOrderByCode

      @Deprecated(since="1905", forRemoval=true) OrderData getOrderByCode(String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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(String orderCode)
      Submits order when paying order.
      Parameters:
      orderCode - the order code
    • setPaymentInfo

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

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

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

      String buildPaymentRequestUrl(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(String orderCode)
      Checks latest payment status.
      Parameters:
      orderCode - the order code
      Returns:
      order data with latest payment status