// This is Generated Source. import AnsweringRuleInfo from "../definitions/AnsweringRuleInfo"; import CompanyAnsweringRuleList from "../definitions/CompanyAnsweringRuleList"; import CreateAnsweringRuleRequest from "../definitions/CreateAnsweringRuleRequest"; import UpdateAnsweringRuleRequest from "../definitions/UpdateAnsweringRuleRequest"; import PathSegment from "../PathSegment"; export default class AnsweringRule extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("answering-rule", id, prv, service); } /** *

Since 1.0.15 (Release 7.0)

Returns the extension answering rules.

Required Permissions

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

Usage Plan Group

Light

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

Since 1.0.15 (Release 7.0)

Returns the extension answering rules.

Required Permissions

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

Usage Plan Group

Light

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

Since 1.0.24 (Release 8.0)

Creates a custom answering rule for a particular caller ID.

Required Permissions

PermissionDescription
EditExtensionsViewing and updating my extension info (includes extension name, number, email and phone number)

Usage Plan Group

Medium

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

Since 1.0.24 (Release 8.0)

Creates a custom answering rule for a particular caller ID.

Required Permissions

PermissionDescription
EditExtensionsViewing and updating my extension info (includes extension name, number, email and phone number)

Usage Plan Group

Medium

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

Since 1.0.24 (Release 8.0)

Updates a custom answering rule for a particular caller ID.

Required Permissions

PermissionDescription
EditExtensionsViewing and updating my extension info (includes extension name, number, email and phone number)

Usage Plan Group

Medium

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

Since 1.0.24 (Release 8.0)

Updates a custom answering rule for a particular caller ID.

Required Permissions

PermissionDescription
EditExtensionsViewing and updating my extension info (includes extension name, number, email and phone number)

Usage Plan Group

Medium

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

Since 1.0.31 (Release 9.2)

Returns a list of company answering rules.

Required Permissions

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

API Group

Medium

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

Since 1.0.31 (Release 9.2)

Returns a list of company answering rules.

Required Permissions

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

API Group

Medium

* return {ApiResponse} */ listRaw(): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: undefined, }); } } export interface GetQuery { /** * */ page?: string; /** * */ perPage?: string; }