public interface CouponWsFacades<T extends AbstractCouponWsDTO>
| Modifier and Type | Method and Description |
|---|---|
T |
createCoupon(T coupon)
Creates the coupon, given the coupon data.
|
SearchPageData<T> |
getCouponsSearchPageData(PageableData pageableData)
Returns a restricted size list (page) of available coupons
|
T |
getCouponWsDTO(String couponId)
Given the couponId string, returns the coupon DTO, otherwise throws exception
|
void |
updateCoupon(T coupon)
Updates the coupon identified by it couponId
|
void |
updateCouponStatus(String couponId,
Boolean active)
Updates status of a coupon identified by it couponId
|
CouponValidationResponseWsDTO |
validateCoupon(String couponId)
Validates the given couponId, throws an exception if coupon id is invalid
|
CouponValidationResponseWsDTO |
validateCoupon(String couponId,
String customerId)
Validates the given couponId for the given customer, throws an exception if coupon id or customer id is invalid
|
SearchPageData<T> getCouponsSearchPageData(PageableData pageableData)
pageableData - PageableData instanceT getCouponWsDTO(String couponId)
couponId - a string to be used to find a couponT createCoupon(T coupon)
coupon - - data to create coupon withvoid updateCoupon(T coupon)
coupon - - data to update coupon withvoid updateCouponStatus(String couponId, Boolean active)
couponId - - identifier of a coupon to set statusactive - - coupon status to setCouponValidationResponseWsDTO validateCoupon(String couponId)
couponId - a string to be used to validate a couponCouponValidationResponseWsDTOCouponNotFoundExceptionCouponValidationResponseWsDTO validateCoupon(String couponId, String customerId)
couponId - a string to be used to validate a couponcustomerId - the user idCouponValidationResponseWsDTOCouponNotFoundExceptionCopyright © 2017 SAP SE. All Rights Reserved.