Class BaggagePROSPriceCalculationStrategy

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

public class BaggagePROSPriceCalculationStrategy extends AbstractPROSPriceCalculationStrategy
The type Baggage pros price calculation strategy.
  • Constructor Details

    • BaggagePROSPriceCalculationStrategy

      public BaggagePROSPriceCalculationStrategy()
  • 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
    • findPROSBaggageProductBasePrice

      protected de.hybris.platform.util.PriceValue findPROSBaggageProductBasePrice(AbstractOrderEntryModel orderEntryModel, MerchandisingResponseMessage merchandisingResponseMessage)
      Resolves price from merchandising response.
      Parameters:
      orderEntryModel - the order entry
      merchandisingResponseMessage - the merchandising response
      Returns:
      the price value
    • findPROSBaggageProductBasePriceFromShoppingSearchResponse

      protected de.hybris.platform.util.PriceValue findPROSBaggageProductBasePriceFromShoppingSearchResponse(AbstractOrderEntryModel orderEntryModel, SearchResponseWrapper searchResponseWrapper)
      Resolves price from searchResponseWrapper.
      Parameters:
      orderEntryModel - the order entry
      searchResponseWrapper - the searchResponseWrapper response
      Returns:
      the price value
    • 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
    • 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
    • getProsSearchResponseService

      protected PROSSearchResponseService getProsSearchResponseService()
      Gets the prosSearchResponseService
      Overrides:
      getProsSearchResponseService in class AbstractPROSPriceCalculationStrategy
      Returns:
      the prosSearchResponseService
    • setProsSearchResponseService

      public void setProsSearchResponseService(PROSSearchResponseService prosSearchResponseService)
      Sets the prosSearchResponseService
      Overrides:
      setProsSearchResponseService in class AbstractPROSPriceCalculationStrategy
      Parameters:
      prosSearchResponseService - the prosSearchResponseService
    • 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