Class VoucherAppliedValuePopulator
java.lang.Object
de.hybris.platform.commercefacades.voucher.converters.populator.VoucherAppliedValuePopulator
- All Implemented Interfaces:
Populator<AbstractOrderModel,VoucherData>
public class VoucherAppliedValuePopulator
extends Object
implements Populator<AbstractOrderModel,VoucherData>
Populate the
Be aware that target's voucherCode attribute cannot be null.
VoucherData with the value applied to the voucher in AbstractOrderModel Be aware that target's voucherCode attribute cannot be null.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected VoucherModelfindVoucherModel(VoucherData voucherData) 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)
-
Constructor Details
-
VoucherAppliedValuePopulator
public VoucherAppliedValuePopulator()
-
-
Method Details
-
populate
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
-
getVoucherModelService
-
setVoucherModelService
-
getVoucherService
-
setVoucherService
-
getPriceDataFactory
-
setPriceDataFactory
-
getDiscountService
-
setDiscountService
-