// This is Generated Source. import GetRingOutStatusResponse from "../definitions/GetRingOutStatusResponse"; import MakeRingOutRequest from "../definitions/MakeRingOutRequest"; import PathSegment from "../PathSegment"; export default class RingOut extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("ring-out", id, prv, service); } /** *

Since 1.0.7 (Release 5.16)

Makes a 2-leg RingOut call.

Required Permissions

PermissionDescription
RingOutPerforming two-legged ring-out phone calls

Usage Plan Group

Heavy

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

Since 1.0.7 (Release 5.16)

Makes a 2-leg RingOut call.

Required Permissions

PermissionDescription
RingOutPerforming two-legged ring-out phone calls

Usage Plan Group

Heavy

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

Since 1.0.7 (Release 5.16)

Returns the status of a 2-leg RingOut call.

Required Permissions

PermissionDescription
RingOutPerforming two-legged ring-out phone calls

Usage Plan Group

Light

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

Since 1.0.7 (Release 5.16)

Returns the status of a 2-leg RingOut call.

Required Permissions

PermissionDescription
RingOutPerforming two-legged ring-out phone calls

Usage Plan Group

Light

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

Cancels the 2-leg RingOut call.

Required Permissions

PermissionDescription
RingOutPerforming two-legged ring-out phone calls

Usage Plan Group

Heavy

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

Cancels the 2-leg RingOut call.

Required Permissions

PermissionDescription
RingOutPerforming two-legged ring-out phone calls

Usage Plan Group

Heavy

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