Class DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy
java.lang.Object
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy
- All Implemented Interfaces:
PROSRefundReissueTypeStrategy
public class DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy
extends DefaultPROSAbstractRemoveProductStrategy
implements PROSRefundReissueTypeStrategy
The Pros implementation of
PROSRefundReissueTypeStrategy interface to create an ancillary change fee.-
Field Summary
Fields inherited from class de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
DEFAULT_COMMERCE_ANCILLARY_REFUND_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAncillaryChangeFee(AbstractOrderEntryModel abstractOrderEntry, CartModel cartModel) This method creates an ancillary change fee to add to the cart.protected de.hybris.platform.servicelayer.model.ModelServiceGets model service.protected de.hybris.platform.product.ProductServiceGets product service.protected de.hybris.platform.commerceservices.order.CommerceCartServiceGets travel commerce cart service.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.voidsetProductService(de.hybris.platform.product.ProductService productService) Sets product service.voidsetTravelCommerceCartService(de.hybris.platform.commerceservices.order.CommerceCartService travelCommerceCartService) Sets travel commerce cart service.Methods inherited from class de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
getCommerceAncillaryBaggageRefundType, setOrderEntryToInactive
-
Constructor Details
-
DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy
public DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy()
-
-
Method Details
-
createAncillaryChangeFee
public void createAncillaryChangeFee(AbstractOrderEntryModel abstractOrderEntry, CartModel cartModel) throws CancelFlightException This method creates an ancillary change fee to add to the cart. Once the fee product is added to the cart, the association between the fee and the related order entry is saved in the orderEntries field. This association is needed since the price calculation strategy for the ancillaryChangeFee calculates basePrice and taxes from the linked order entries.- Specified by:
createAncillaryChangeFeein interfacePROSRefundReissueTypeStrategy- Parameters:
abstractOrderEntry- the abstract order EntrycartModel- the cartModel- Throws:
CancelFlightException
-
getProductService
protected de.hybris.platform.product.ProductService getProductService()Gets product service.- Returns:
- the product service
-
setProductService
public void setProductService(de.hybris.platform.product.ProductService productService) Sets product service.- Parameters:
productService- the product service
-
getTravelCommerceCartService
protected de.hybris.platform.commerceservices.order.CommerceCartService getTravelCommerceCartService()Gets travel commerce cart service.- Returns:
- the travel commerce cart service
-
setTravelCommerceCartService
public void setTravelCommerceCartService(de.hybris.platform.commerceservices.order.CommerceCartService travelCommerceCartService) Sets travel commerce cart service.- Parameters:
travelCommerceCartService- the travel commerce cart service
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()Gets model service.- Overrides:
getModelServicein classDefaultPROSAbstractRemoveProductStrategy- Returns:
- the model service
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.- Overrides:
setModelServicein classDefaultPROSAbstractRemoveProductStrategy- Parameters:
modelService- the model service
-