From 2497f51b5bacdc7d83e6143ddf233a7cbc71d8de Mon Sep 17 00:00:00 2001 From: Saurabh Newatiya Date: Wed, 22 Feb 2023 22:01:06 +0530 Subject: [PATCH 1/4] SMS-4946/SMS-4848: adding new param 'is_domestic' in Get Message and List Message API --- lib/resources/messages.js | 2 ++ lib/rest/request-test.js | 12 ++++++++---- types/resources/messages.d.ts | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/resources/messages.js b/lib/resources/messages.js index e8d5da35..bdded738 100644 --- a/lib/resources/messages.js +++ b/lib/resources/messages.js @@ -49,6 +49,7 @@ export class MessageGetResponse { this.tendlcRegistrationStatus = params.tendlcRegistrationStatus; this.destinationCountryIso2 = params.destinationCountryIso2; this.requesterIP = params.requesterIp; + this.isDomestic = params.isDomestic; } } @@ -72,6 +73,7 @@ export class MessageListResponse { this.tendlcRegistrationStatus = params.tendlcRegistrationStatus; this.destinationCountryIso2 = params.destinationCountryIso2; this.requesterIP = params.requesterIp; + this.isDomestic = params.isDomestic; } } diff --git a/lib/rest/request-test.js b/lib/rest/request-test.js index bd61c565..5959a307 100644 --- a/lib/rest/request-test.js +++ b/lib/rest/request-test.js @@ -1696,7 +1696,8 @@ export function Request(config) { total_amount: '0.00000', total_rate: '0.00350', units: 1, - requester_ip: "192.168.1.1" + requester_ip: "192.168.1.1", + is_domestic: false } }); } @@ -1938,7 +1939,8 @@ export function Request(config) { total_amount: '0.00000', total_rate: '0.00350', units: 1, - requester_ip: '192.168.1.2' + requester_ip: '192.168.1.2', + is_domestic: false } }); } @@ -1967,7 +1969,8 @@ export function Request(config) { total_amount: '0.00000', total_rate: '0.00350', units: 1, - requester_ip: "192.168.1.1" + requester_ip: "192.168.1.1", + is_domestic: false }, { error_code: '200', @@ -1982,7 +1985,8 @@ export function Request(config) { total_amount: '0.00000', total_rate: '0.00350', units: 1, - requester_ip: "192.168.1.2" + requester_ip: "192.168.1.2", + is_domestic: false } ] } diff --git a/types/resources/messages.d.ts b/types/resources/messages.d.ts index 8910dc28..3eb29f1e 100644 --- a/types/resources/messages.d.ts +++ b/types/resources/messages.d.ts @@ -22,6 +22,7 @@ export class MessageGetResponse { units: string; powerpackId: string; requesterIp: string; + isDomestic: boolean; } export class MessageListResponse { constructor(params: object); @@ -39,6 +40,7 @@ export class MessageListResponse { units: string; powerpackId: string; requesterIp: string; + isDomestic: boolean; } export class MMSMediaResponse { constructor(params: object); From c9f66cdb811e801db23a3d539988712621c3ec78 Mon Sep 17 00:00:00 2001 From: Saurabh Newatiya Date: Wed, 22 Feb 2023 22:12:59 +0530 Subject: [PATCH 2/4] updating version --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e87b6c0..90df7f7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ **Feature - Enhance MDR filtering capabilities ** - Added new fields on MDR object response +## [4.40.0](https://github.com/plivo/plivo-ruby/tree/v4.40.0) (2022-02-22) +**Adding new attribute - 'isDomestic' in Get Message and List Message APIs** +- Add `isDomestic` 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) + ## [4.39.0](https://github.com/plivo/plivo-node/tree/v4.39.0) (2022-01-25) **Feature - Added New Param(requesterIP) in Get Message and List Mssage APIs** - Add `requesterIP` 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) From a9a4bfeee70a91de8d68bd30b110c94500f253d8 Mon Sep 17 00:00:00 2001 From: Saurabh Newatiya Date: Wed, 22 Feb 2023 22:12:59 +0530 Subject: [PATCH 3/4] Rebasing with master --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90df7f7f..ade2b46b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ **Feature - Enhance MDR filtering capabilities ** - Added new fields on MDR object response -## [4.40.0](https://github.com/plivo/plivo-ruby/tree/v4.40.0) (2022-02-22) +## [4.40.0](https://github.com/plivo/plivo-node/tree/v4.40.0) (2022-02-22) **Adding new attribute - 'isDomestic' in Get Message and List Message APIs** - Add `isDomestic` 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) From 363561430cbbce3f613b6df8f997860d8281dbcc Mon Sep 17 00:00:00 2001 From: Saurabh Newatiya Date: Fri, 3 Mar 2023 15:57:55 +0530 Subject: [PATCH 4/4] version upgrade --- CHANGELOG.md | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ade2b46b..43e26595 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,12 @@ # Change Log +## [4.41.0](https://github.com/plivo/plivo-node/tree/v4.41.0) (2023-03-03) +**Adding new attribute - 'isDomestic' in Get Message and List Message APIs** +- Add `isDomestic` 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) + ## [4.40.0](https://github.com/plivo/plivo-node/tree/v4.40.0) (2023-02-23) **Feature - Enhance MDR filtering capabilities ** - Added new fields on MDR object response -## [4.40.0](https://github.com/plivo/plivo-node/tree/v4.40.0) (2022-02-22) -**Adding new attribute - 'isDomestic' in Get Message and List Message APIs** -- Add `isDomestic` 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) - ## [4.39.0](https://github.com/plivo/plivo-node/tree/v4.39.0) (2022-01-25) **Feature - Added New Param(requesterIP) in Get Message and List Mssage APIs** - Add `requesterIP` 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/package.json b/package.json index b5271071..bda5c9b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.40.0", + "version": "4.41.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": [