diff --git a/CHANGELOG.md b/CHANGELOG.md index ab9e2ecf..d1ff29eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v4.22.4](https://github.com/plivo/plivo-node/tree/v4.22.4) (2021-09-27) +**Bug Fix** + - Handle invalid destination number API response for send [SMS API](https://www.plivo.com/docs/sms/api/message/send-a-message/). + ## [v4.22.3](https://github.com/plivo/plivo-node/tree/v4.22.3) (2021-09-22) **Bug Fix** - Fix Typings for `Make call` & `Send SMS` API response. diff --git a/lib/resources/messages.js b/lib/resources/messages.js index 2218d4a6..57bba6c1 100644 --- a/lib/resources/messages.js +++ b/lib/resources/messages.js @@ -22,7 +22,9 @@ export class MessageResponse { this.apiId = params.apiId; this.message = params.message; this.messageUuid = params.messageUuid; - + if (params.invalidNumber != undefined ){ + this.invalid_number = params.invalidNumber; + } } } diff --git a/package.json b/package.json index fdd54272..e0851d5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.22.3", + "version": "4.22.4", "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": [ diff --git a/types/resources/messages.d.ts b/types/resources/messages.d.ts index 052ac6dd..7537e709 100644 --- a/types/resources/messages.d.ts +++ b/types/resources/messages.d.ts @@ -3,6 +3,7 @@ export class MessageResponse { apiId: string; message: string; messageUuid: Array; + invalidNumber?: Array; } export class MessageGetResponse { constructor(params: object);