Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains all Requests regarding vouchers.

Hierarchy

  • BaseExtend
    • Voucher

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Voucher(config: ApiConfig, request: Request): Voucher
  • Parameters

    • config: ApiConfig
    • request: Request

    Returns Voucher

Properties

config

config: ApiConfig

request

request: Request

Methods

getDiscount

  • getDiscount(__namedParameters: { accessFeeId?: number; itemId?: number; voucherCode: string }): Promise<AxiosResponse<VoucherDiscountPrice>>
  • Gets a discount on the selected price for a given code.

    method

    getDiscount

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

    Parameters

    • __namedParameters: { accessFeeId?: number; itemId?: number; voucherCode: string }
      • Optional accessFeeId?: number
      • Optional itemId?: number
      • voucherCode: string

    Returns Promise<AxiosResponse<VoucherDiscountPrice>>

    Contains the data:

    {
    amount: number;
    }

Generated using TypeDoc