import {RestRequestConfig} from '../../../../../../../Rest'; import {CallParty, TransferTarget} from '../../../../../../../definitions'; import Parent from '..'; import RingCentral from '../../../../../../..'; class Index { rc: RingCentral; parent: Parent; constructor(parent: Parent) { this.parent = parent; this.rc = parent.rc; } path(): string { return `${this.parent.path()}/transfer`; } /** * Operation: Transfer Call Party * Rate Limit Group: Light * Http post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/transfer */ async post( transferTarget: TransferTarget, config?: RestRequestConfig ): Promise { const r = await this.rc.post( this.path(), transferTarget, undefined, config ); return r.data; } } export default Index;