Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
linenumberstrue
...
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
languagejs
linenumberstrue
...
voucher.has('products.blacklist') // => false
...

Parameter key:string (required)

The key tob e checked in the flexAttributes of the voucher.

...

Code Block
languagejs
linenumberstrue
...
voucher.increment('timesUsed') 
...

Parameter key:string (required)

The key to be incremented in the flexAttributes of the voucher.

...

Code Block
languagejs
linenumberstrue
...
voucher.remove('products.blacklist')
...

Parameter key:string (required)

The key to be removed from the flexAttributes of the voucher.

...

Code Block
languagejs
linenumberstrue
...
voucher.set('promoteOnFrontPage', true, [options])
...

Parameter key:string (required)

The key to be set in the flexAttributes of the order.

...