Class BaggagePROSTotalPriceCalculationStrategy

java.lang.Object
de.hybris.platform.prosservices.order.strategies.impl.BaggagePROSTotalPriceCalculationStrategy
All Implemented Interfaces:
ShoppingTotalPriceCalculationStrategy

public class BaggagePROSTotalPriceCalculationStrategy extends Object implements ShoppingTotalPriceCalculationStrategy
The type Baggage pros total price calculation strategy.
  • Constructor Details

    • BaggagePROSTotalPriceCalculationStrategy

      public BaggagePROSTotalPriceCalculationStrategy()
  • Method Details

    • calculateTotal

      public double calculateTotal(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException
      Description copied from interface: ShoppingTotalPriceCalculationStrategy
      Calculate total double.
      Specified by:
      calculateTotal in interface ShoppingTotalPriceCalculationStrategy
      Parameters:
      entry - the entry
      Returns:
      the double
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • resolvePriceFromSearchResponse

      protected Double resolvePriceFromSearchResponse(AbstractOrderEntryModel entry, SearchResponseWrapper searchResponseWrapper)
      Resolves price from pros search response.
      Parameters:
      entry - the order entry
      searchResponseWrapper - the searchResponseWrapper response
      Returns:
      price
    • resolvePrice

      protected Double resolvePrice(AbstractOrderEntryModel orderEntryModel, MerchandisingResponseMessage merchandisingResponseMessage)
      Resolves price from merchandising response.
      Parameters:
      orderEntryModel - the order entry
      merchandisingResponseMessage - the merchandising response
      Returns:
      price
    • getProsTravelBundleTemplateService

      protected PROSTravelBundleTemplateService getProsTravelBundleTemplateService()
      Gets pros travel bundle template service.
      Returns:
      the pros travel bundle template service
    • setProsTravelBundleTemplateService

      public void setProsTravelBundleTemplateService(PROSTravelBundleTemplateService prosTravelBundleTemplateService)
      Sets pros travel bundle template service.
      Parameters:
      prosTravelBundleTemplateService - the pros travel bundle template service
    • 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 pros search response service.
      Returns:
      the pros search response service
    • setProsSearchResponseService

      public void setProsSearchResponseService(PROSSearchResponseService prosSearchResponseService)
      Sets pros search response service.
      Parameters:
      prosSearchResponseService - the pros search response 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