Voucher
Contains all Requests regarding vouchers.
Table of Contents
- Methods
Methods
getDiscount
(
Object
-
data
Gets the discount for a given code.
Parameters:
-
data
Object- { voucherCode: string, accessFeeId: number }
Returns:
Object
Example:
InPlayer.Voucher
.getDiscount({
voucherCode: '120fwjhniudh42i7',,
accessFeeId: 2
})
.then(data => console.log(data));