...
Code Block | ||||
---|---|---|---|---|
| ||||
... voucher.get('procuts.whitelist') // => 'rhino\.integration\.products\.EligibleProducts\.*' ... |
Parameter key:string (required)
The key to be looked up in the flexAttributes of the voucher.
...
Code Block | ||||
---|---|---|---|---|
| ||||
... voucher.has('products.blacklist') // => false ... |
Parameter key:string (required)
The key tob e checked in the flexAttributes of the voucher.
...
Code Block | ||||
---|---|---|---|---|
| ||||
... voucher.increment('timesUsed') ... |
Parameter key:string (required)
The key to be incremented in the flexAttributes of the voucher.
...
Code Block | ||||
---|---|---|---|---|
| ||||
... voucher.remove('products.blacklist') ... |
Parameter key:string (required)
The key to be removed from the flexAttributes of the voucher.
...
Code Block | ||||
---|---|---|---|---|
| ||||
... voucher.set('promoteOnFrontPage', true, [options]) ... |
Parameter key:string (required)
The key to be set in the flexAttributes of the order.
...