Class CouponVoucherService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.voucher.impl.AbstractVoucherService
-
- de.hybris.platform.voucher.impl.DefaultVoucherService
-
- de.hybris.platform.couponservices.services.impl.CouponVoucherService
-
- All Implemented Interfaces:
VoucherService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class CouponVoucherService extends DefaultVoucherService
Extends DefaultVoucherService for coupon specific logic. It overrides getAppliedVoucherCodes in order to use codes stored in attribute AbstractOrderModel.couponCodes.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description CouponVoucherService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>getAppliedVoucherCodes(CartModel cart)Searches for all applied vouchers for the specific cartjava.util.Collection<java.lang.String>getAppliedVoucherCodes(OrderModel order)-
Methods inherited from class de.hybris.platform.voucher.impl.DefaultVoucherService
afterOrderCreation, createVoucherInvalidation, delete, getAllVouchers, getAppliedVouchers, getPromotionVouchers, getSerialVouchers, getVoucher, redeemVoucher, redeemVoucher, refresh, releaseVoucher, releaseVoucher, reserveVoucher, save, saveIfModified
-
Methods inherited from class de.hybris.platform.voucher.impl.AbstractVoucherService
getAbstractOrder, getCart, getOrder, getProduct, getRestriction, getUser, getVoucher
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
getAppliedVoucherCodes
public java.util.Collection<java.lang.String> getAppliedVoucherCodes(CartModel cart)
Description copied from interface:VoucherServiceSearches for all applied vouchers for the specific cart- Specified by:
getAppliedVoucherCodesin interfaceVoucherService- Overrides:
getAppliedVoucherCodesin classDefaultVoucherService- Parameters:
cart- cart for which the vouchers are applied- Returns:
- all applied voucher codes
-
getAppliedVoucherCodes
public java.util.Collection<java.lang.String> getAppliedVoucherCodes(OrderModel order)
- Specified by:
getAppliedVoucherCodesin interfaceVoucherService- Overrides:
getAppliedVoucherCodesin classDefaultVoucherService
-
-