Class DefaultOneOrderSDNBaggageAllowanceListTypeHandler

java.lang.Object
de.hybris.platform.oneorderfacades.handlers.sdn.impl.DefaultOneOrderSDNBaggageAllowanceListTypeHandler
All Implemented Interfaces:
OneOrderSDNDataListsHandler

public class DefaultOneOrderSDNBaggageAllowanceListTypeHandler extends Object implements OneOrderSDNDataListsHandler
The One Order implementation of OneOrderSDNDataListsHandler interface. This handler populates the BaggageAllowanceList type in the dataList attribute.
  • Constructor Details

    • DefaultOneOrderSDNBaggageAllowanceListTypeHandler

      public DefaultOneOrderSDNBaggageAllowanceListTypeHandler()
  • Method Details

    • handle

      public void handle(List<IATAServiceModel> iataServices, DataListsType dataListsType)
      Gets the hold item entries from the orderModel and creates a list of baggageAllowance types.
      Specified by:
      handle in interface OneOrderSDNDataListsHandler
      Parameters:
      iataServices - the iataServices
      dataListsType - the dataListsType
    • createBaggageAllowance

      protected BaggageAllowanceType createBaggageAllowance(CommerceAllowanceProductModel product)
      Create baggage allowance baggage allowance type.
      Parameters:
      product - the product
      Returns:
      the baggage allowance type
    • calculateMaxWeight

      protected MeasureType calculateMaxWeight(CommerceAllowanceProductModel product)
      Calculate max weight measure type.
      Parameters:
      product - the product
      Returns:
      the big decimal
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets the configurationService
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets the configurationService
      Parameters:
      configurationService - the configurationService