Class DefaultGenericCouponWsFacades
java.lang.Object
de.hybris.platform.couponwebservices.facades.impl.DefaultGenericCouponWsFacades
- All Implemented Interfaces:
GenericCouponWsFacades
Default implementation of GenericCouponWsFacades interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CouponServiceprotected Converter<CouponResponse,CouponValidationResponseWsDTO> protected UserServicevoidsetCouponService(CouponService couponService) voidsetCouponValidationResponseWsDTOConverter(Converter<CouponResponse, CouponValidationResponseWsDTO> couponValidationResponseWsDTOConverter) voidsetUserService(UserService userService) validateCoupon(String couponCode, String customerId) Validates the given couponCode for the given customer, throws an exception if coupon code or customer id is invalid
-
Constructor Details
-
DefaultGenericCouponWsFacades
public DefaultGenericCouponWsFacades()
-
-
Method Details
-
validateCoupon
Description copied from interface:GenericCouponWsFacadesValidates the given couponCode for the given customer, throws an exception if coupon code or customer id is invalid- Specified by:
validateCouponin interfaceGenericCouponWsFacades- Parameters:
couponCode- a string to be used to validate a couponcustomerId- the user id- Returns:
- - an instance of
CouponValidationResponseWsDTO
-
getCouponService
-
setCouponService
-
getUserService
-
setUserService
-
getCouponValidationResponseWsDTOConverter
protected Converter<CouponResponse,CouponValidationResponseWsDTO> getCouponValidationResponseWsDTOConverter() -
setCouponValidationResponseWsDTOConverter
public void setCouponValidationResponseWsDTOConverter(Converter<CouponResponse, CouponValidationResponseWsDTO> couponValidationResponseWsDTOConverter)
-