Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Voucher

Contains all Requests regarding vouchers.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    Returns Voucher

Properties

config

config: ApiConfig

request

request: Request

setConfig

setConfig: (env: Env) => void

Type declaration

    • (env: Env): void
    • Parameters

      Returns void

Methods

getDiscount

  • Gets the discount for a given code.

    method

    getDiscount

    async
    example
    InPlayer.Voucher
    .getDiscount('/vouchers/discount', {
       accessFeeId: 134,
       voucherCode: 'FOOrGmv60pT'
    })
    .then(data => console.log(data));

    Parameters

    • data: DiscountData

      { voucherCode: string accessFeeId?: number, itemId?: number, }

    Returns Promise<AxiosResponse<VoucherDiscountPrice>>

Generated using TypeDoc