CouponController

CouponController

Controller for coupons.

Constructor

new CouponController()

Source:

Methods

create(category) → {Promise.<any>}

Create a new coupon, return coupon ID if successful

Source:
Parameters:
Name Type Description
category Object

The Coupon Object

Returns:
Type:
Promise.<any>

(async) update(id, updateFields) → {Promise.<*>}

Update a coupon

Source:
Parameters:
Name Type Description
id string

The id of the Coupon Object

updateFields Object

Coupon fields to update

Returns:
Type:
Promise.<*>
  • The id of the Coupon Object