Class SubscriptionPricePlanUsageChargePopulator<SOURCE extends SubscriptionPricePlanModel,TARGET extends SubscriptionPricePlanData>
java.lang.Object
de.hybris.platform.subscriptionfacades.product.converters.populator.SubscriptionPricePlanUsageChargePopulator<SOURCE,TARGET>
- Type Parameters:
SOURCE- source classTARGET- target class
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class SubscriptionPricePlanUsageChargePopulator<SOURCE extends SubscriptionPricePlanModel,TARGET extends SubscriptionPricePlanData>
extends Object
implements Populator<SOURCE,TARGET>
Populate DTO
SubscriptionPricePlanData.usageCharges with data from
SubscriptionPricePlanModel#_usageCharges.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Converter<VolumeUsageChargeModel,VolumeUsageChargeData> voidPopulate the target instance with values from the source instance.voidsetPerUnitUsageChargeConverter(Converter<PerUnitUsageChargeModel, PerUnitUsageChargeData> perUnitUsageChargeConverter) voidsetVolumeUsageChargeConverter(Converter<VolumeUsageChargeModel, VolumeUsageChargeData> volumeUsageChargeConverter)
-
Constructor Details
-
SubscriptionPricePlanUsageChargePopulator
public SubscriptionPricePlanUsageChargePopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<SOURCE extends SubscriptionPricePlanModel,TARGET extends SubscriptionPricePlanData> - Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getPerUnitUsageChargeConverter
protected Converter<PerUnitUsageChargeModel,PerUnitUsageChargeData> getPerUnitUsageChargeConverter() -
setPerUnitUsageChargeConverter
public void setPerUnitUsageChargeConverter(Converter<PerUnitUsageChargeModel, PerUnitUsageChargeData> perUnitUsageChargeConverter) -
getVolumeUsageChargeConverter
-
setVolumeUsageChargeConverter
public void setVolumeUsageChargeConverter(Converter<VolumeUsageChargeModel, VolumeUsageChargeData> volumeUsageChargeConverter)
-