Coupon class

Contains basic information about a coupon.

Syntax

new Coupon( id, customerId, couponType, status, serialNumber, validTo, code, views, uses )

Parameters

Name Type Description
id    
customerId    
couponType   the type of coupon.
status   the coupon's statu.s
serialNumber   The serial number of the coupon
validTo   valid date of the coupon
code   The code of coupon
views   view times of the coupon
uses   usage times of the coupon

Source

SY_Data_Objects.js line 261.