Class DefaultChineseCheckoutFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
de.hybris.platform.acceleratorfacades.order.impl.DefaultAcceleratorCheckoutFacade
de.hybris.platform.chinesepaymentfacades.checkout.impl.DefaultChineseCheckoutFacade
- All Implemented Interfaces:
AcceleratorCheckoutFacade,ChineseCheckoutFacade,CheckoutFacade
- Direct Known Subclasses:
ChinesePaymentMockCheckoutFacade
public class DefaultChineseCheckoutFacade
extends DefaultAcceleratorCheckoutFacade
implements ChineseCheckoutFacade
Implementation for
ChineseCheckoutFacade. Delivers main functionality for chinese checkout.-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade
AcceleratorCheckoutFacade.ExpressCheckoutResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthorizePayment(String securityCode) Authorize payment for the order.protected ChinesePaymentRequestDatabuildChinesePaymentRequestData(String url, Date expiredDate) Deprecated, for removal: This API element is subject to removal in a future version.since 2005protected ChinesePaymentRequestDatabuildChinesePaymentRequestData(String url, Date expiredDate, String orderCode) buildPaymentRequestUrl(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.protected TaskModelcreateSubmitOrderEventTask(OrderModel orderModel) 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.Deprecated, for removal: This API element is subject to removal in a future version.since 1905Method gets checkout cart, if any exist.protected ChineseCheckoutServiceprotected DefaultChineseOrderServiceDeprecated, for removal: This API element is subject to removal in a future version.since 1905protected ChinesePaymentServicesStrategyprotected ConfigurationServiceprotected EventPublishingSubmitOrderStrategyDeprecated, for removal: This API element is subject to removal in a future version.since 1905getOrderByCode(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.protected longprotected OrderFacadegetPaymentModeByCode(String paymentModeCode) Gets the PaymentMode by code.protected Converter<PaymentModeModel,PaymentModeData> protected PaymentModeServiceprotected longprotected TaskServicebooleanChecks 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 1905voidsetCartChinesePaymentInfoConverter(Converter<CartModel, CartData> cartChinesePaymentInfoConverter) voidsetCartConverter(Converter<CartModel, CartData> cartConverter) Deprecated, for removal: This API element is subject to removal in a future version.since 1905voidsetChineseCheckoutService(ChineseCheckoutService chineseCheckoutService) voidsetChineseOrderService(DefaultChineseOrderService chineseOrderService) Deprecated, for removal: This API element is subject to removal in a future version.since 1905voidsetChinesePaymentServicesStrategy(ChinesePaymentServicesStrategy chinesePaymentServicesStrategy) voidsetConfigurationService(ConfigurationService configurationService) voidsetEventPublishingSubmitOrderStrategy(EventPublishingSubmitOrderStrategy eventPublishingSubmitOrderStrategy) Deprecated, for removal: This API element is subject to removal in a future version.since 1905voidsetOrderExpiredInterval(long orderExpiredInterval) voidsetOrderFacade(OrderFacade orderFacade) voidsetPaymentInfo(String paymentModeCode) Saves the ChinesePaymentInfo in the cart.voidsetPaymentMode(PaymentModeModel paymentMode) Saves the PaymentMode in the cart.voidsetPaymentModeConverter(Converter<PaymentModeModel, PaymentModeData> paymentModeConverter) voidsetPaymentModeService(PaymentModeService paymentModeService) voidsetScheduleDelay(long scheduleDelay) voidsetTaskService(TaskService taskService) 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 class de.hybris.platform.acceleratorfacades.order.impl.DefaultAcceleratorCheckoutFacade
consolidateCheckoutCart, getAcceleratorCheckoutService, getCartModificationConverter, getCheckoutFlowGroupForCheckout, getConsolidatedPickupOptions, getExpressCheckoutDeliveryResult, getPointOfServiceDistanceConverter, getPointOfServiceService, getUiExperienceService, hasNoDeliveryAddress, hasNoDeliveryMode, hasNoPaymentInfo, hasValidCart, isExpressCheckoutAllowedForCart, isExpressCheckoutAllowedForShippingCart, isExpressCheckoutAllowedPickupOnlyCart, isExpressCheckoutEnabledForStore, isNewAddressEnabledForCart, isRemoveAddressEnabledForCart, isTaxEstimationEnabledForCart, performExpressCheckout, placeOrder, setAcceleratorCheckoutService, setCartModificationConverter, setPointOfServiceDistanceConverter, setPointOfServiceService, setUiExperienceServiceMethods inherited from class de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
afterPlaceOrder, beforePlaceOrder, checkIfCurrentUserIsTheCartUser, containsTaxValues, convert, createCommerceCheckoutParameter, createDeliveryAddressModel, createPaymentSubscription, getAddressConverter, getAddressDataForId, getAddressReversePopulator, getBaseStoreService, getBillingCountries, getCardTypeConverter, getCartFacade, getCartService, getCheckoutCustomerStrategy, getCommerceCardTypeService, getCommerceCheckoutService, getCommonI18NService, getCountries, getCountryConverter, getCreditCardPaymentInfoConverter, getCurrentUserForCheckout, getCustomerAccountService, getDeliveryAddress, getDeliveryAddressForCode, getDeliveryAddressModelForCode, getDeliveryCountries, getDeliveryMode, getDeliveryModeConverter, getDeliveryService, getEnumerationService, getModelService, getOrderConverter, getPaymentDetails, getPaymentProvider, getPriceDataFactory, getSupportedCardTypes, getSupportedDeliveryAddresses, getSupportedDeliveryModes, getUserService, getZoneDeliveryModeConverter, hasCheckoutCart, hasItemsMatchingPredicate, hasPickUpItems, hasShippingItems, isSupportedDeliveryMode, placeOrder, prepareCartForCheckout, removeDeliveryAddress, removeDeliveryMode, setAddressConverter, setAddressReversePopulator, setBaseStoreService, setCardTypeConverter, setCartFacade, setCartService, setCheapestDeliveryModeForCheckout, setCheckoutCustomerStrategy, setCommerceCardTypeService, setCommerceCheckoutService, setCommonI18NService, setCountryConverter, setCreditCardPaymentInfoConverter, setCustomerAccountService, setDefaultDeliveryAddressForCheckout, setDefaultPaymentInfoForCheckout, setDeliveryAddress, setDeliveryAddressIfAvailable, setDeliveryMode, setDeliveryModeConverter, setDeliveryModeIfAvailable, setDeliveryService, setEnumerationService, setModelService, setOrderConverter, setPaymentDetails, setPaymentInfoIfAvailable, setPriceDataFactory, setUserService, setZoneDeliveryModeConverterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
containsTaxValues, createPaymentSubscription, getAddressDataForId, getBillingCountries, getCountries, getDeliveryAddressForCode, getDeliveryCountries, getSupportedCardTypes, getSupportedDeliveryAddresses, getSupportedDeliveryModes, hasCheckoutCart, hasPickUpItems, hasShippingItems, placeOrder, prepareCartForCheckout, removeDeliveryAddress, removeDeliveryMode, setCheapestDeliveryModeForCheckout, setDefaultDeliveryAddressForCheckout, setDefaultPaymentInfoForCheckout, setDeliveryAddress, setDeliveryAddressIfAvailable, setDeliveryMode, setDeliveryModeIfAvailable, setPaymentDetails, setPaymentInfoIfAvailable
-
Constructor Details
-
DefaultChineseCheckoutFacade
public DefaultChineseCheckoutFacade()
-
-
Method Details
-
createOrder
Description copied from interface:ChineseCheckoutFacadeCreates an order.- Specified by:
createOrderin interfaceChineseCheckoutFacade- Returns:
- order data after place order
- Throws:
BusinessException- when business error both before place order and after place order
-
getCart
Deprecated, for removal: This API element is subject to removal in a future version.since 1905. Use super implementation instead.Description copied from interface:ChineseCheckoutFacadeGets the SessionCart.- Specified by:
getCartin interfaceChineseCheckoutFacade- Overrides:
getCartin classDefaultCheckoutFacade- Returns:
- CartModel
-
mergeCart
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Description copied from interface:ChineseCheckoutFacadeMerges the cart.- Specified by:
mergeCartin interfaceChineseCheckoutFacade- Parameters:
cartModel- cart model
-
convertCart
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Description copied from interface:ChineseCheckoutFacadeConverts the CartModel into CartData.- Specified by:
convertCartin interfaceChineseCheckoutFacade- Parameters:
cartModel- The CartModel to be converted- Returns:
- cart data converted from cart model
-
setPaymentMode
Description copied from interface:ChineseCheckoutFacadeSaves the PaymentMode in the cart.- Specified by:
setPaymentModein interfaceChineseCheckoutFacade- Parameters:
paymentMode- The selected PaymentMode
-
authorizePayment
Description copied from interface:CheckoutFacadeAuthorize payment for the order. The order must have a subscription payment details set on it before the payment can be authorized.- Specified by:
authorizePaymentin interfaceCheckoutFacade- Overrides:
authorizePaymentin classDefaultCheckoutFacade- Parameters:
securityCode- the 3 or 4 number CV2 or CVV security code- Returns:
- true if successful
-
reserveStock
@Deprecated(since="1905", forRemoval=true) public 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 1905Description copied from interface:ChineseCheckoutFacadeReserves the stock after placing order.- Specified by:
reserveStockin interfaceChineseCheckoutFacade- 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
-
getCheckoutCart
Description copied from interface:CheckoutFacadeMethod gets checkout cart, if any exist.- Specified by:
getCheckoutCartin interfaceCheckoutFacade- Overrides:
getCheckoutCartin classDefaultCheckoutFacade- Returns:
- cart data if cart exists
-
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) insteadDescription copied from interface:ChineseCheckoutFacadeGets the OrderDetails for code.- Specified by:
getOrderDetailsForCodein interfaceChineseCheckoutFacade- Parameters:
code- The code of the order- Returns:
- order data
-
deleteStockLevelReservationHistoryEntry
@Deprecated(since="1905", forRemoval=true) public void deleteStockLevelReservationHistoryEntry(String code) Deprecated, for removal: This API element is subject to removal in a future version.since 1905Description copied from interface:ChineseCheckoutFacadeDelete StockLevelReservationHistoryEntry after the user pay the order successfully.- Specified by:
deleteStockLevelReservationHistoryEntryin interfaceChineseCheckoutFacade- Parameters:
code- 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)Description copied from interface:ChineseCheckoutFacadeGets the OrderData by code.- Specified by:
getOrderByCodein interfaceChineseCheckoutFacade- Parameters:
code- The code of the order- Returns:
- order data
-
hasNoChinesePaymentInfo
public boolean hasNoChinesePaymentInfo()Description copied from interface:ChineseCheckoutFacadeChecks whether the cart has the ChinesePaymentInfo.- Specified by:
hasNoChinesePaymentInfoin interfaceChineseCheckoutFacade- Returns:
- false if the cart has chinese payment info, true otherwise
-
publishSubmitOrderEvent
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Description copied from interface:ChineseCheckoutFacadePublishes the SubmitOrderEvent.- Specified by:
publishSubmitOrderEventin interfaceChineseCheckoutFacade- Parameters:
orderCode- The code of the order
-
buildChinesePaymentRequestData
@Deprecated(since="2005", forRemoval=true) protected ChinesePaymentRequestData buildChinesePaymentRequestData(String url, Date expiredDate) Deprecated, for removal: This API element is subject to removal in a future version.since 2005 -
submitOrder
Description copied from interface:ChineseCheckoutFacadeSubmits order when paying order.- Specified by:
submitOrderin interfaceChineseCheckoutFacade- Parameters:
orderCode- the order code
-
setPaymentInfo
Description copied from interface:ChineseCheckoutFacadeSaves the ChinesePaymentInfo in the cart.- Specified by:
setPaymentInfoin interfaceChineseCheckoutFacade- Parameters:
paymentModeCode- The code of PaymentMode which is set in ChinesePaymentInfo
-
getPaymentModeByCode
Description copied from interface:ChineseCheckoutFacadeGets the PaymentMode by code.- Specified by:
getPaymentModeByCodein interfaceChineseCheckoutFacade- Parameters:
paymentModeCode- the code of payment mode- Returns:
- payment mode data
-
buildPaymentRequestUrl
Description copied from interface:ChineseCheckoutFacadeBuilds order payment request url.- Specified by:
buildPaymentRequestUrlin interfaceChineseCheckoutFacade- Parameters:
orderCode- the order code- Returns:
- chinese payment request url
-
createChinesePaymentRequestData
Description copied from interface:ChineseCheckoutFacadeCreates Chinese payment request data.- Specified by:
createChinesePaymentRequestDatain interfaceChineseCheckoutFacade- Parameters:
orderCode- the order code- Returns:
- chinese payment request data
-
updatePaymentInfoForPlacingOrder
Description copied from interface:ChineseCheckoutFacadeUpdates Payment info before placing order.- Specified by:
updatePaymentInfoForPlacingOrderin interfaceChineseCheckoutFacade- Parameters:
orderData- the order data
-
needPayInNewWindow
public boolean needPayInNewWindow()Description copied from interface:ChineseCheckoutFacadeChecks whether to open a new window for payment.- Specified by:
needPayInNewWindowin interfaceChineseCheckoutFacade- Returns:
- true if requires opening a new browser window for payment, false otherwise
-
syncPaymentStatusForOrder
Description copied from interface:ChineseCheckoutFacadeChecks latest payment status.- Specified by:
syncPaymentStatusForOrderin interfaceChineseCheckoutFacade- Parameters:
orderCode- the order code- Returns:
- order data with latest payment status
-
createSubmitOrderEventTask
-
buildContextDataForSubmitOrderEventTask
-
buildChinesePaymentRequestData
protected ChinesePaymentRequestData buildChinesePaymentRequestData(String url, Date expiredDate, String orderCode) -
getCartConverter
@Deprecated(since="1905", forRemoval=true) protected Converter<CartModel,CartData> getCartConverter()Deprecated, for removal: This API element is subject to removal in a future version.since 1905 -
setCartConverter
@Deprecated(since="1905", forRemoval=true) public void setCartConverter(Converter<CartModel, CartData> cartConverter) Deprecated, for removal: This API element is subject to removal in a future version.since 1905 -
getChineseCheckoutService
-
setChineseCheckoutService
-
getChineseOrderService
@Deprecated(since="1905", forRemoval=true) protected DefaultChineseOrderService getChineseOrderService()Deprecated, for removal: This API element is subject to removal in a future version.since 1905 -
setChineseOrderService
@Deprecated(since="1905", forRemoval=true) public void setChineseOrderService(DefaultChineseOrderService chineseOrderService) Deprecated, for removal: This API element is subject to removal in a future version.since 1905 -
getCartChinesePaymentInfoConverter
-
setCartChinesePaymentInfoConverter
-
getEventPublishingSubmitOrderStrategy
@Deprecated(since="1905", forRemoval=true) protected EventPublishingSubmitOrderStrategy getEventPublishingSubmitOrderStrategy()Deprecated, for removal: This API element is subject to removal in a future version.since 1905 -
setEventPublishingSubmitOrderStrategy
@Deprecated(since="1905", forRemoval=true) public void setEventPublishingSubmitOrderStrategy(EventPublishingSubmitOrderStrategy eventPublishingSubmitOrderStrategy) Deprecated, for removal: This API element is subject to removal in a future version.since 1905 -
getConfigurationService
-
setConfigurationService
-
getTaskService
-
setTaskService
-
getScheduleDelay
protected long getScheduleDelay() -
setScheduleDelay
public void setScheduleDelay(long scheduleDelay) -
getChinesePaymentServicesStrategy
-
setChinesePaymentServicesStrategy
public void setChinesePaymentServicesStrategy(ChinesePaymentServicesStrategy chinesePaymentServicesStrategy) -
getPaymentModeService
-
setPaymentModeService
-
getPaymentModeConverter
-
setPaymentModeConverter
public void setPaymentModeConverter(Converter<PaymentModeModel, PaymentModeData> paymentModeConverter) -
getOrderFacade
-
setOrderFacade
-
getOrderExpiredInterval
protected long getOrderExpiredInterval() -
setOrderExpiredInterval
public void setOrderExpiredInterval(long orderExpiredInterval)
-