Interface ChineseCheckoutFacade
- All Superinterfaces:
AcceleratorCheckoutFacade,CheckoutFacade
- All Known Implementing Classes:
ChinesePaymentMockCheckoutFacade,DefaultChineseCheckoutFacade
The facade of ChineseCheckout
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade
AcceleratorCheckoutFacade.ExpressCheckoutResult -
Method Summary
Modifier and TypeMethodDescriptionbuildPaymentRequestUrl(String orderCode) Builds order payment request url.convertCart(CartModel cartModel) Deprecated, for removal: This API element is subject to removal in a future version.since 1905createChinesePaymentRequestData(String orderCode) Creates Chinese payment request data.Creates an order.voidDeprecated, for removal: This API element is subject to removal in a future version.since 1905getCart()Deprecated, for removal: This API element is subject to removal in a future version.since 1905.getOrderByCode(String code) Deprecated, for removal: This API element is subject to removal in a future version.since 1905.getOrderDetailsForCode(String code) Deprecated, for removal: This API element is subject to removal in a future version.since 1905.getPaymentModeByCode(String paymentModeCode) Gets the PaymentMode by code.booleanChecks whether the cart has the ChinesePaymentInfo.voidDeprecated, for removal: This API element is subject to removal in a future version.since 1905booleanChecks whether to open a new window for payment.voidpublishSubmitOrderEvent(String orderCode) Deprecated, for removal: This API element is subject to removal in a future version.since 1905booleanreserveStock(String orderCode, String productCode, int quantity, Optional<PointOfServiceModel> pos) Deprecated, for removal: This API element is subject to removal in a future version.since 1905voidsetPaymentInfo(String paymentModeCode) Saves the ChinesePaymentInfo in the cart.voidsetPaymentMode(PaymentModeModel paymentMode) Saves the PaymentMode in the cart.voidsubmitOrder(String orderCode) Submits order when paying order.syncPaymentStatusForOrder(String orderCode) Checks latest payment status.voidupdatePaymentInfoForPlacingOrder(OrderData orderData) Updates Payment info before placing order.Methods inherited from interface de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade
consolidateCheckoutCart, getCheckoutFlowGroupForCheckout, getConsolidatedPickupOptions, hasNoDeliveryAddress, hasNoDeliveryMode, hasNoPaymentInfo, hasValidCart, isExpressCheckoutAllowedForCart, isExpressCheckoutEnabledForStore, isNewAddressEnabledForCart, isRemoveAddressEnabledForCart, isTaxEstimationEnabledForCart, performExpressCheckoutMethods inherited from interface de.hybris.platform.commercefacades.order.CheckoutFacade
authorizePayment, containsTaxValues, createPaymentSubscription, getAddressDataForId, getBillingCountries, getCheckoutCart, getCountries, getDeliveryAddressForCode, getDeliveryCountries, getSupportedCardTypes, getSupportedDeliveryAddresses, getSupportedDeliveryModes, hasCheckoutCart, hasPickUpItems, hasShippingItems, placeOrder, prepareCartForCheckout, removeDeliveryAddress, removeDeliveryMode, setCheapestDeliveryModeForCheckout, setDefaultDeliveryAddressForCheckout, setDefaultPaymentInfoForCheckout, setDeliveryAddress, setDeliveryAddressIfAvailable, setDeliveryMode, setDeliveryModeIfAvailable, setPaymentDetails, setPaymentInfoIfAvailable
-
Method Details
-
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, for removal: This API element is subject to removal in a future version.since 1905Merges the cart.- Parameters:
cartModel- cart model
-
convertCart
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Converts the CartModel into CartData.- Parameters:
cartModel- The CartModel to be converted- Returns:
- cart data converted from cart model
-
setPaymentMode
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 1905Reserves the stock after placing order.- Parameters:
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 stock- Returns:
- true if reserve stock successfully, false otherwise
- Throws:
InsufficientStockLevelException- when stock level is insufficient
-
getOrderDetailsForCode
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) insteadGets 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 1905Delete 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
Creates an order.- Returns:
- order data after place order
- Throws:
BusinessException- when business error both before place order and after place order
-
publishSubmitOrderEvent
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Publishes the SubmitOrderEvent.- Parameters:
orderCode- The code of the order
-
getOrderByCode
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
Submits order when paying order.- Parameters:
orderCode- the order code
-
setPaymentInfo
Saves the ChinesePaymentInfo in the cart.- Parameters:
paymentModeCode- The code of PaymentMode which is set in ChinesePaymentInfo
-
getPaymentModeByCode
Gets the PaymentMode by code.- Parameters:
paymentModeCode- the code of payment mode- Returns:
- payment mode data
-
createChinesePaymentRequestData
Creates Chinese payment request data.- Parameters:
orderCode- the order code- Returns:
- chinese payment request data
-
buildPaymentRequestUrl
Builds order payment request url.- Parameters:
orderCode- the order code- Returns:
- chinese payment request url
-
updatePaymentInfoForPlacingOrder
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
Checks latest payment status.- Parameters:
orderCode- the order code- Returns:
- order data with latest payment status
-