Class CouponRaoPopulator
- java.lang.Object
-
- de.hybris.platform.couponservices.converters.populator.CouponRaoPopulator
-
- All Implemented Interfaces:
Populator<AbstractOrderModel,CartRAO>
public class CouponRaoPopulator extends java.lang.Object implements Populator<AbstractOrderModel,CartRAO>
Populates CartRAO.coupons from AbstractOrderModel.appliedCouponCodes.
-
-
Constructor Summary
Constructors Constructor Description CouponRaoPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CouponRAOgetCouponRAO(java.lang.String couponCode)protected CouponServicegetCouponService()voidpopulate(AbstractOrderModel cartModel, CartRAO cartRao)Populate the target instance with values from the source instance.voidsetCouponService(CouponService couponService)protected CouponRAOtoCouponRAO(AbstractCouponModel couponModel)
-
-
-
Method Detail
-
populate
public void populate(AbstractOrderModel cartModel, CartRAO cartRao)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AbstractOrderModel,CartRAO>- Parameters:
cartModel- the source objectcartRao- the target to fill
-
getCouponRAO
protected CouponRAO getCouponRAO(java.lang.String couponCode)
-
toCouponRAO
protected CouponRAO toCouponRAO(AbstractCouponModel couponModel)
-
getCouponService
protected CouponService getCouponService()
-
setCouponService
public void setCouponService(CouponService couponService)
-
-