Class VoucherAppliedValuePopulator
- java.lang.Object
-
- de.hybris.platform.commercefacades.voucher.converters.populator.VoucherAppliedValuePopulator
-
- All Implemented Interfaces:
Populator<AbstractOrderModel,VoucherData>
public class VoucherAppliedValuePopulator extends java.lang.Object implements Populator<AbstractOrderModel,VoucherData>
Populate theVoucherDatawith the value applied to the voucher inAbstractOrderModel
Be aware that target's voucherCode attribute cannot be null.
-
-
Constructor Summary
Constructors Constructor Description VoucherAppliedValuePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VoucherModelfindVoucherModel(VoucherData voucherData)DiscountServicegetDiscountService()PriceDataFactorygetPriceDataFactory()VoucherModelServicegetVoucherModelService()VoucherServicegetVoucherService()voidpopulate(AbstractOrderModel source, VoucherData target)Populate the target instance with values from the source instance.voidsetDiscountService(DiscountService discountService)voidsetPriceDataFactory(PriceDataFactory priceDataFactory)voidsetVoucherModelService(VoucherModelService voucherModelService)voidsetVoucherService(VoucherService voucherService)
-
-
-
Method Detail
-
populate
public void populate(AbstractOrderModel source, VoucherData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AbstractOrderModel,VoucherData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
findVoucherModel
protected VoucherModel findVoucherModel(VoucherData voucherData)
-
getVoucherModelService
public VoucherModelService getVoucherModelService()
-
setVoucherModelService
public void setVoucherModelService(VoucherModelService voucherModelService)
-
getVoucherService
public VoucherService getVoucherService()
-
setVoucherService
public void setVoucherService(VoucherService voucherService)
-
getPriceDataFactory
public PriceDataFactory getPriceDataFactory()
-
setPriceDataFactory
public void setPriceDataFactory(PriceDataFactory priceDataFactory)
-
getDiscountService
public DiscountService getDiscountService()
-
setDiscountService
public void setDiscountService(DiscountService discountService)
-
-