java.lang.Object
ma.glasnost.orika.CustomConverter<PackageProductData,DealProduct>
de.hybris.platform.coretravelpackagesocc.mapping.converters.DealProductConverter
All Implemented Interfaces:
ma.glasnost.orika.Converter<PackageProductData,DealProduct>, ma.glasnost.orika.MappedTypePair<PackageProductData,DealProduct>

public class DealProductConverter extends ma.glasnost.orika.CustomConverter<PackageProductData,DealProduct>
Converter from PackageProductData to DealProduct
  • Field Summary

    Fields inherited from class ma.glasnost.orika.CustomConverter

    destinationType, mapperFacade, sourceType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(PackageProductData packageProductData, ma.glasnost.orika.metadata.Type<? extends DealProduct> type, ma.glasnost.orika.MappingContext mappingContext)
     
    protected void
    setDiscount(DealProduct destination, PriceData priceData)
    Populate the discount array with the given PriceData

    Methods inherited from class ma.glasnost.orika.CustomConverter

    canConvert, equals, getAType, getBType, hashCode, setMapperFacade, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DealProductConverter

      public DealProductConverter()
  • Method Details

    • convert

      public DealProduct convert(PackageProductData packageProductData, ma.glasnost.orika.metadata.Type<? extends DealProduct> type, ma.glasnost.orika.MappingContext mappingContext)
    • setDiscount

      protected void setDiscount(DealProduct destination, PriceData priceData)
      Populate the discount array with the given PriceData
      Parameters:
      destination - the destination
      priceData - the priceData