From 48c52770c4f58799b719e0254ffed5d95c9256ce Mon Sep 17 00:00:00 2001 From: narayana Date: Fri, 1 Sep 2023 10:46:39 +0530 Subject: [PATCH 1/3] unrent fix --- lib/resources/powerpacks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources/powerpacks.js b/lib/resources/powerpacks.js index 2df1d4c9..d7f74832 100644 --- a/lib/resources/powerpacks.js +++ b/lib/resources/powerpacks.js @@ -313,7 +313,7 @@ export class Powerpack extends PlivoResource { remove_number(number, unrent = false) { var params = {}; - params['unrent'] = unrent.toString(); + params['unrent'] = unrent; let path = 'NumberPool/' + this.number_pool_id + '/Number/' + number + '/'; let client = this[clientKey]; return new Promise((resolve, reject) => { From 188c5ba72059a469e6f3505acdcb93bbfa4df67f Mon Sep 17 00:00:00 2001 From: narayana Date: Fri, 1 Sep 2023 10:48:55 +0530 Subject: [PATCH 2/3] fix --- lib/resources/powerpacks.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/resources/powerpacks.js b/lib/resources/powerpacks.js index d7f74832..1ae4130b 100644 --- a/lib/resources/powerpacks.js +++ b/lib/resources/powerpacks.js @@ -328,7 +328,7 @@ export class Powerpack extends PlivoResource { } remove_tollfree(tollfree, unrent = false) { var params = {}; - params['unrent'] = unrent.toString(); + params['unrent'] = unrent; let path = 'NumberPool/' + this.number_pool_id + '/Tollfree/' + tollfree + '/'; let client = this[clientKey]; return new Promise((resolve, reject) => { @@ -483,9 +483,7 @@ export class Powerpack extends PlivoResource { */ delete(unrent_numbers = false) { let params = {}; - if (typeof unrent_numbers === 'boolean') { - params.unrent_numbers = unrent_numbers.toString(); - } + params.unrent_numbers = unrent_numbers; let path = 'Powerpack/' + this.uuid + '/'; return super.customexecuteAction(path.toString().trim(), 'DELETE', params); } From 116404996f9eceee71ba7844931b71877aa4df80 Mon Sep 17 00:00:00 2001 From: renoldthomas-plivo Date: Fri, 1 Sep 2023 12:21:54 +0530 Subject: [PATCH 3/3] updated version for patch --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03ebaaf1..a1e419e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [v4.56.1](https://github.com/plivo/plivo-node/tree/v4.56.1) (2023-09-01) +**Bug Fix - unrent powerpack number** +- Fix for Error: invalid powerpack number delete request (400) - Unrent Powerpack Number + + ## [v4.56.0](https://github.com/plivo/plivo-node/tree/v4.56.0) (2023-08-25) **Feature - Added New Param 'carrier_fees', 'carrier_fees_rate', 'destination_network' in Get Message and List Message APIs** - Added new params on message get and list response diff --git a/package.json b/package.json index 86abd8f2..aaf37b3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.56.0", + "version": "4.56.1", "description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML", "homepage": "https://github.com/plivo/plivo-node", "files": [