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,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
Extends DefaultVoucherService for coupon specific logic. It overrides getAppliedVoucherCodes in order to use codes
stored in attribute AbstractOrderModel.couponCodes.
- See Also:
-
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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSearches for all applied vouchers for the specific cartgetAppliedVoucherCodes(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, saveIfModifiedMethods inherited from class de.hybris.platform.voucher.impl.AbstractVoucherService
getAbstractOrder, getCart, getOrder, getProduct, getRestriction, getUser, getVoucherMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
CouponVoucherService
public CouponVoucherService()
-
-
Method Details
-
getAppliedVoucherCodes
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
- Specified by:
getAppliedVoucherCodesin interfaceVoucherService- Overrides:
getAppliedVoucherCodesin classDefaultVoucherService
-