Class AccommodationSearchResponseConverter

java.lang.Object
ma.glasnost.orika.CustomConverter<PropertyData,Property>
de.hybris.platform.coreaccommodationocc.mapping.converters.AccommodationSearchResponseConverter
All Implemented Interfaces:
ma.glasnost.orika.Converter<PropertyData,Property>, ma.glasnost.orika.MappedTypePair<PropertyData,Property>

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

    • AccommodationSearchResponseConverter

      public AccommodationSearchResponseConverter()
  • Method Details

    • convert

      public Property convert(PropertyData 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