001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
039 @AccessControlled
040 @JSONWebService
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface ShoppingCouponService extends BaseService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
062 public void setBeanIdentifier(java.lang.String beanIdentifier);
063
064 public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
065 java.lang.String code, boolean autoCode, java.lang.String name,
066 java.lang.String description, int startDateMonth, int startDateDay,
067 int startDateYear, int startDateHour, int startDateMinute,
068 int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
069 int endDateMinute, boolean neverExpire, boolean active,
070 java.lang.String limitCategories, java.lang.String limitSkus,
071 double minOrder, double discount, java.lang.String discountType,
072 com.liferay.portal.service.ServiceContext serviceContext)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 public void deleteCoupon(long groupId, long couponId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
082 long groupId, long couponId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
088 long groupId, long companyId, java.lang.String code, boolean active,
089 java.lang.String discountType, boolean andOperator, int start, int end)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException;
092
093 public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
094 long couponId, java.lang.String name, java.lang.String description,
095 int startDateMonth, int startDateDay, int startDateYear,
096 int startDateHour, int startDateMinute, int endDateMonth,
097 int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
098 boolean neverExpire, boolean active, java.lang.String limitCategories,
099 java.lang.String limitSkus, double minOrder, double discount,
100 java.lang.String discountType,
101 com.liferay.portal.service.ServiceContext serviceContext)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException;
104 }