new Voucher(data, client)
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | An object containing voucher data |
client |
Client | The client being used |
- Source:
Methods
(async) delete() → {Promise.<void>}
Delete this voucher
- Source:
Returns:
void
- Type
- Promise.<void>
toJSON() → {Object}
Transforms object data to JSON format
- Source:
Returns:
Object data in JSON format
- Type
- Object
(async) update(data) → {Promise.<Voucher>}
Update this voucher
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | An object with updated voucher data |
- Source:
Returns:
Updated self
- Type
- Promise.<Voucher>