Interface CustomerCouponFacade
- All Known Implementing Classes:
DefaultCustomerCouponFacade
public interface CustomerCouponFacade
Deals with customer coupon related DTOs using existing service
-
Method Summary
Modifier and TypeMethodDescriptionGets assignable customer coupon dataGets assigned customer coupon dataGets customer coupon data of the current customergetCustomerCouponForCode(String couponId) Gets customer coupon data by coupon idgetPagedCouponsData(PageableData pageableData) Gets paginated customer coupon data by pageableDatagetPaginatedCoupons(SearchPageData searchPageData) Gets paginated customer coupon data by searchPageDatagetValidCouponForCode(String code) Gets valid customer coupon data by coupon codegrantCouponAccessForCurrentUser(String couponCode) Assigns customer coupon to the current customerbooleanisCouponOwnedByCurrentUser(String couponCode) Checks if the specific customer coupon is owned by the current customervoidreleaseCoupon(String couponCode) Releases the specific customer coupon of the current customervoidremoveCouponNotificationByCode(String couponCode) Removes customer coupon notificationsaveCouponNotification(String couponCode) Saves customer coupon notification
-
Method Details
-
getPagedCouponsData
Gets paginated customer coupon data by pageableData- Parameters:
pageableData- the data used for pagination- Returns:
- the paginated customer coupon data
-
grantCouponAccessForCurrentUser
Assigns customer coupon to the current customer- Parameters:
couponCode- the customer coupon code- Returns:
- the assigning result
-
getCouponsData
List<CustomerCouponData> getCouponsData()Gets customer coupon data of the current customer- Returns:
- the list of CustomerCouponData
-
saveCouponNotification
Saves customer coupon notification- Parameters:
couponCode- the coupon code- Returns:
- the customer coupon notification data
-
removeCouponNotificationByCode
Removes customer coupon notification- Parameters:
couponCode- the coupon code
-
getAssignableCustomerCoupons
Gets assignable customer coupon data- Parameters:
text- the text used for searching assignable customer coupons- Returns:
- the list of search results
-
getAssignedCustomerCoupons
Gets assigned customer coupon data- Parameters:
text- the text used for searching assigned customer coupons- Returns:
- the list of search results
-
releaseCoupon
Releases the specific customer coupon of the current customer- Parameters:
couponCode- the coupon code- Throws:
VoucherOperationException- throw when release voucher failed
-
getCustomerCouponForCode
Gets customer coupon data by coupon id- Parameters:
couponId- the coupon id- Returns:
- the CustomerCouponData
-
isCouponOwnedByCurrentUser
Checks if the specific customer coupon is owned by the current customer- Parameters:
couponCode- the coupon code- Returns:
- true if the coupon is owned by the current customer and false otherwise
-
getPaginatedCoupons
Gets paginated customer coupon data by searchPageData- Parameters:
searchPageData- the data used for pagination- Returns:
- the paginated customer coupon data
-
getValidCouponForCode
Gets valid customer coupon data by coupon code- Parameters:
code- the coupon code- Returns:
- the valid CustomerCouponData
-