From a6ec61f2a2aed20158a6905ab9dac87711d50bcb Mon Sep 17 00:00:00 2001 From: Prabhav Bansal <107188216+prabhav-plivo@users.noreply.github.com> Date: Thu, 4 May 2023 11:47:18 +0530 Subject: [PATCH] PHONUM-2779 (#301) * handled double underscores for renewaldate * handled double underscores for renewaldate * added lt * bump version --------- Co-authored-by: kalyan-plivo --- CHANGELOG.md | 5 +++++ lib/rest/utils.js | 2 ++ package.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d583e46..6a21cdfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [4.46.0](https://github.com/plivo/plivo-node/tree/v4.46.0) (2023-05-04) +**Adding new attribute - 'renewalDate' in Get Number and List Numbers APIs** +- Add New Param `renewalDate` to the response of the [list all numbers API], [list single number API] +- Add 3 new filters to AccountPhoneNumber - list all my numbers API:`renewal_date`, `renewal_date__gt`, `renewal_date__gte`,`renewal_date__lt` and `renewal_date__lte` (https://www.plivo.com/docs/numbers/api/account-phone-number#list-all-my-numbers) + ## [4.45.0](https://github.com/plivo/plivo-node/tree/v4.45.0) (2023-04-25) **Adding new attribute - 'isDomestic' in Get Message and List Message APIs** - Add `replacedSender` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) diff --git a/lib/rest/utils.js b/lib/rest/utils.js index 389b651e..fafa95c8 100644 --- a/lib/rest/utils.js +++ b/lib/rest/utils.js @@ -38,6 +38,8 @@ export function camelCaseRequestWrapper(requestFunc) { 'bill_duration__lt', 'bill_duration__lte', 'add_time__gt', 'add_time__gte', 'add_time__lt', 'add_time__lte', + 'renewal_date__gte','renewal_date__gt', + 'renewal_date__lte','renewal_date__lt', ] if (skipParamsFromSnakeCasing.indexOf(key) >= 0) { return key; diff --git a/package.json b/package.json index 756aeb91..fd21150f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.45.0", + "version": "4.46.0", "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": [