Documentation ¶
Index ¶
- type Service
- func (s *Service) AddCoupon(code string, autoCode bool, name string, description string, ...) (map[string]interface{}, error)
- func (s *Service) DeleteCoupon(groupId int64, couponId int64) error
- func (s *Service) GetCoupon(groupId int64, couponId int64) (map[string]interface{}, error)
- func (s *Service) Search(groupId int64, companyId int64, code string, active bool, discountType string, ...) ([]interface{}, error)
- func (s *Service) UpdateCoupon(couponId int64, name string, description string, startDateMonth int, ...) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AddCoupon ¶
func (s *Service) AddCoupon(code string, autoCode bool, name string, description string, startDateMonth int, startDateDay int, startDateYear int, startDateHour int, startDateMinute int, endDateMonth int, endDateDay int, endDateYear int, endDateHour int, endDateMinute int, neverExpire bool, active bool, limitCategories string, limitSkus string, minOrder float64, discount float64, discountType string, serviceContext *liferay.ObjectWrapper) (map[string]interface{}, error)
func (*Service) UpdateCoupon ¶
func (s *Service) UpdateCoupon(couponId int64, name string, description string, startDateMonth int, startDateDay int, startDateYear int, startDateHour int, startDateMinute int, endDateMonth int, endDateDay int, endDateYear int, endDateHour int, endDateMinute int, neverExpire bool, active bool, limitCategories string, limitSkus string, minOrder float64, discount float64, discountType string, serviceContext *liferay.ObjectWrapper) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.