java.lang.Object
ma.glasnost.orika.CustomConverter<PackageData,Property>
de.hybris.platform.coreairlinepackagesocc.mapping.converters.PackageDataConverter
All Implemented Interfaces:
ma.glasnost.orika.Converter<PackageData,Property>, ma.glasnost.orika.MappedTypePair<PackageData,Property>

public class PackageDataConverter extends ma.glasnost.orika.CustomConverter<PackageData,Property>
This is to populate Search Response for the package converting the property data to the property response
  • Constructor Details

    • PackageDataConverter

      public PackageDataConverter()
  • Method Details

    • convert

      public Property convert(PackageData propertyData, ma.glasnost.orika.metadata.Type<? extends Property> type, ma.glasnost.orika.MappingContext mappingContext)
    • populateConfiguredRate

      protected ConfiguredRate populateConfiguredRate(RateRangeData rateRange)
      Populate configured rate
      Parameters:
      rateRange -
      Returns:
      configured rate
    • createPriceData

      protected Price createPriceData(PriceData priceData)
      Create Price Data
      Parameters:
      priceData - price data
      Returns:
    • populateImages

      protected void populateImages(PropertyData source, Property target)
      Populates images to the Property from PropertyData
      Parameters:
      source - the source object
      target - the target to fill
    • populateAddress

      protected void populateAddress(PropertyData source, Property target)
      Populates address to the Property from PropertyData
      Parameters:
      source - the source object
      target - the target to fill
    • populateRegion

      protected void populateRegion(AddressData source, Address target)
      Populates region to the Address from AddressData
      Parameters:
      source - the source object
      target - the target to fill
    • populateCountry

      protected void populateCountry(AddressData source, Address target)
      Populates country to the Address from AddressData
      Parameters:
      source - the source object
      target - the target to fill
    • populateAwards

      protected void populateAwards(PropertyData source, Property target)
      Populates awards to the Property from PropertyData
      Parameters:
      source - the source object
      target - the target to fill