public class EntitlementPlaceOrderMethodHook extends java.lang.Object implements CommercePlaceOrderMethodHook
| Constructor and Description |
|---|
EntitlementPlaceOrderMethodHook() |
public void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel)
CommercePlaceOrderMethodHookafterPlaceOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutorderModel - object containing the order modelpublic void beforePlaceOrder(CommerceCheckoutParameter parameter)
CommercePlaceOrderMethodHookbeforePlaceOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutpublic void beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result)
CommercePlaceOrderMethodHookbeforeSubmitOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutresult - object containing the order modelprotected CommerceOrderResult createGrants(CommerceOrderResult commerceOrderResult) throws InvalidCartException
commerceOrderResult - the CommerceOrderResultInvalidCartException - if grants creation has been failed.protected void createEmsGrantData(OrderModel orderModel, AbstractOrderEntryModel entry, ProductEntitlementModel productEntitlementModel) throws EntitlementFacadeException
EntitlementFacadeExceptionprotected EmsGrantData convert(ProductEntitlementModel entitlement)
entitlement - ProductEntitlementModel to be converted.protected EntitlementFacadeDecorator getEntitlementFacadeDecorator()
public void setEntitlementFacadeDecorator(EntitlementFacadeDecorator entitlementFacadeDecorator)
protected Converter<ProductEntitlementModel,EmsGrantData> getProductEntitlementEmsGrantConverter()
public void setProductEntitlementEmsGrantConverter(Converter<ProductEntitlementModel,EmsGrantData> productEntitlementEmsGrantConverter)
protected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService service)
Copyright © 2018 SAP SE. All Rights Reserved.