1
14
15 package com.liferay.portlet.shopping.service;
16
17
33 public class ShoppingCouponServiceWrapper implements ShoppingCouponService {
34 public ShoppingCouponServiceWrapper(
35 ShoppingCouponService shoppingCouponService) {
36 _shoppingCouponService = shoppingCouponService;
37 }
38
39 public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
40 java.lang.String code, boolean autoCode, java.lang.String name,
41 java.lang.String description, int startDateMonth, int startDateDay,
42 int startDateYear, int startDateHour, int startDateMinute,
43 int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
44 int endDateMinute, boolean neverExpire, boolean active,
45 java.lang.String limitCategories, java.lang.String limitSkus,
46 double minOrder, double discount, java.lang.String discountType,
47 com.liferay.portal.service.ServiceContext serviceContext)
48 throws com.liferay.portal.PortalException,
49 com.liferay.portal.SystemException {
50 return _shoppingCouponService.addCoupon(code, autoCode, name,
51 description, startDateMonth, startDateDay, startDateYear,
52 startDateHour, startDateMinute, endDateMonth, endDateDay,
53 endDateYear, endDateHour, endDateMinute, neverExpire, active,
54 limitCategories, limitSkus, minOrder, discount, discountType,
55 serviceContext);
56 }
57
58 public void deleteCoupon(long groupId, long couponId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 _shoppingCouponService.deleteCoupon(groupId, couponId);
62 }
63
64 public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
65 long groupId, long couponId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException {
68 return _shoppingCouponService.getCoupon(groupId, couponId);
69 }
70
71 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
72 long groupId, long companyId, java.lang.String code, boolean active,
73 java.lang.String discountType, boolean andOperator, int start, int end)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException {
76 return _shoppingCouponService.search(groupId, companyId, code, active,
77 discountType, andOperator, start, end);
78 }
79
80 public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
81 long couponId, java.lang.String name, java.lang.String description,
82 int startDateMonth, int startDateDay, int startDateYear,
83 int startDateHour, int startDateMinute, int endDateMonth,
84 int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
85 boolean neverExpire, boolean active, java.lang.String limitCategories,
86 java.lang.String limitSkus, double minOrder, double discount,
87 java.lang.String discountType,
88 com.liferay.portal.service.ServiceContext serviceContext)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException {
91 return _shoppingCouponService.updateCoupon(couponId, name, description,
92 startDateMonth, startDateDay, startDateYear, startDateHour,
93 startDateMinute, endDateMonth, endDateDay, endDateYear,
94 endDateHour, endDateMinute, neverExpire, active, limitCategories,
95 limitSkus, minOrder, discount, discountType, serviceContext);
96 }
97
98 public ShoppingCouponService getWrappedShoppingCouponService() {
99 return _shoppingCouponService;
100 }
101
102 private ShoppingCouponService _shoppingCouponService;
103 }