Class AncillaryPROSPriceCalculationStrategy

java.lang.Object
de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
de.hybris.platform.prosservices.price.strategies.impl.AncillaryPROSPriceCalculationStrategy
All Implemented Interfaces:
ShoppingPriceCalculationStrategy

public class AncillaryPROSPriceCalculationStrategy extends AbstractPROSPriceCalculationStrategy
The type Ancillary pros price calculation strategy.
  • Constructor Details

    • AncillaryPROSPriceCalculationStrategy

      public AncillaryPROSPriceCalculationStrategy()
  • Method Details

    • getTaxValues

      public Collection<de.hybris.platform.util.TaxValue> getTaxValues(AbstractOrderEntryModel entry)
      Find pros ancillary product tax values list. This method should return the list of taxes associated to a certain ancillaries. For the current implementation, no tax value is associated to any ancillary. There is no element in the PROS SearchResponseMessage to handle ta values.
      Parameters:
      entry - the entry
      Returns:
      the collection
    • getBasePrice

      public de.hybris.platform.util.PriceValue getBasePrice(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException
      Description copied from interface: ShoppingPriceCalculationStrategy
      Get base price price value.
      Parameters:
      entry - the entry
      Returns:
      the price value
      Throws:
      de.hybris.platform.order.exceptions.CalculationException - the calculation exception
    • findPROSAncillaryProductBasePrice

      protected de.hybris.platform.util.PriceValue findPROSAncillaryProductBasePrice(AbstractOrderEntryModel orderEntryModel, MerchandisingResponseMessage merchandisingResponseMessage)
      Find pros ancillary product base price price value.
      Parameters:
      orderEntryModel - the order Entry Model
      merchandisingResponseMessage - the merchandising response message
      Returns:
      the price value
    • getFlightIds

      protected Set<String> getFlightIds(List<String> originDestinationIds, MerchandisingResponse merchandisingResponse)
      Get all the flight Ids for the origin destination ids
      Parameters:
      originDestinationIds - origin destination ids
      merchandisingResponse - merchandising response
      Returns:
      set of flight ids
    • getPassengerCodeToPTCMapping

      protected Map<String,String> getPassengerCodeToPTCMapping()
      Gets passenger code to ptc mapping.
      Returns:
      the passenger code to ptc mapping
    • setPassengerCodeToPTCMapping

      public void setPassengerCodeToPTCMapping(Map<String,String> passengerCodeToPTCMapping)
      Sets passenger code to ptc mapping.
      Parameters:
      passengerCodeToPTCMapping - the passenger code to ptc mapping
    • getProsMerchandisingService

      protected PROSMerchandisingService getProsMerchandisingService()
      Gets pros merchandising service.
      Returns:
      the pros merchandising service
    • setProsMerchandisingService

      public void setProsMerchandisingService(PROSMerchandisingService prosMerchandisingService)
      Sets pros merchandising service.
      Parameters:
      prosMerchandisingService - the pros merchandising service
    • getProsTransportOfferingService

      protected PROSTransportOfferingService getProsTransportOfferingService()
      Gets pros transport offering service.
      Returns:
      the pros transport offering service
    • setProsTransportOfferingService

      public void setProsTransportOfferingService(PROSTransportOfferingService prosTransportOfferingService)
      Sets pros transport offering service.
      Parameters:
      prosTransportOfferingService - the pros transport offering service