public class FlashbuyPlaceOrderMethodHook extends java.lang.Object implements CommercePlaceOrderMethodHook, FlashbuyOrderCompleteStrategy
| Constructor and Description |
|---|
FlashbuyPlaceOrderMethodHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPlaceOrder(CommerceCheckoutParameter parameter,
CommerceOrderResult result)
Executed after the place order
|
void |
beforePlaceOrder(CommerceCheckoutParameter parameter)
Executed before the place order
|
void |
beforeSubmitOrder(CommerceCheckoutParameter parameter,
CommerceOrderResult result)
Executed before the submit order
|
FlashbuyPromotionService |
getFlashbuyPromotionService() |
SiteConfigService |
getSiteConfigService() |
void |
orderComplete(AbstractOrderModel order,
java.lang.String str)
If get the order complete point from check process, Need to make flashbuy order complete
flashbuyPromotionService.allocate
|
void |
setFlashbuyPromotionService(FlashbuyPromotionService flashbuyPromotionService) |
void |
setSiteConfigService(SiteConfigService siteConfigService) |
public void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException
CommercePlaceOrderMethodHookafterPlaceOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutresult - object containing the order modelInvalidCartExceptionpublic void orderComplete(AbstractOrderModel order, java.lang.String str)
FlashbuyOrderCompleteStrategyorderComplete in interface FlashbuyOrderCompleteStrategypublic void beforePlaceOrder(CommerceCheckoutParameter parameter) throws InvalidCartException
CommercePlaceOrderMethodHookbeforePlaceOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutInvalidCartExceptionpublic void beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException
CommercePlaceOrderMethodHookbeforeSubmitOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutresult - object containing the order modelInvalidCartExceptionpublic SiteConfigService getSiteConfigService()
public void setSiteConfigService(SiteConfigService siteConfigService)
public FlashbuyPromotionService getFlashbuyPromotionService()
public void setFlashbuyPromotionService(FlashbuyPromotionService flashbuyPromotionService)
Copyright © 2018 SAP SE. All Rights Reserved.