// This is Generated Source. import LicenseInfo from "../definitions/LicenseInfo"; import LicenseList from "../definitions/LicenseList"; import PathSegment from "../PathSegment"; import BulkPurchase from "./BulkPurchase"; export default class Licenses extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("licenses", id, prv, service); } /** * */ bulkPurchase(id?: string) { return new BulkPurchase(this, id); } /** *

Since 1.0.31 (Release 9.2)

Returns list of licenses for a specific user.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Light

*/ list(query?: ListQuery): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: query, }).then((res) => { return res.json(); }); } /** *

Since 1.0.31 (Release 9.2)

Returns list of licenses for a specific user.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Light

* return {ApiResponse} */ listRaw(query?: ListQuery): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: query, }); } /** *

Since 1.0.31 (Release 9.2)

Returns license information by its ID.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Light

*/ get(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.31 (Release 9.2)

Returns license information by its ID.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Light

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } /** *

Since 1.0.31 (Release 9.2)

Removes a license for a specific user. Please note: It is not allowed to remove assigned licenses (only Webinars and Large Meetings can be assigned).

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)
EditExtensionsViewing and updating user extension info (includes extension name, number, email and phone number, assigned phone numbers, devices and other extension settings)
EditAccountsViewing and updating user account info (including name, business name, address and phone number/account number)

API Group

Medium

*/ delete(): Promise { return this._send({ body: undefined, ignoreId: true, method: "delete", query: undefined, }); } /** *

Since 1.0.31 (Release 9.2)

Removes a license for a specific user. Please note: It is not allowed to remove assigned licenses (only Webinars and Large Meetings can be assigned).

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)
EditExtensionsViewing and updating user extension info (includes extension name, number, email and phone number, assigned phone numbers, devices and other extension settings)
EditAccountsViewing and updating user account info (including name, business name, address and phone number/account number)

API Group

Medium

* return {ApiResponse} */ deleteRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "delete", query: undefined, }); } } export interface ListQuery { /** * Indicates the page number to retrieve. Only positive number values are allowed. The default value is '1' */ page?: number; /** * Indicates the page size (number of items). If not specified, the value is '25' by default */ perPage?: number; /** * Internal identifier of a license type. If not specified account licenses of all types are returned */ typeId?: number; }