diff --git a/CHANGELOG.md b/CHANGELOG.md index 33b27c55..b14cbef8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log + +## [v4.68.3](https://github.com/plivo/plivo-node/tree/v4.68.3) (2024-09-06) +**Feature - Adding more attribute on mdr object** +- Added `message_sent_time`, `message_updated_time` and `error-message` on get and list Message API + ## [v4.68.2](https://github.com/plivo/plivo-node/tree/v4.68.2) (2024-09-06) **Feature - Adding support for brand_name and app_hash in Create,Get and List Session** - Added new request param `brand_name` and `app_hash` in create Session API diff --git a/lib/resources/messages.js b/lib/resources/messages.js index 34a6ac81..9cad9f28 100644 --- a/lib/resources/messages.js +++ b/lib/resources/messages.js @@ -63,6 +63,9 @@ export class MessageGetResponse { this.carrierFees = params.carrierFees; this.carrierFeesRate = params.carrierFeesRate; this.log = params.log; + this.messageSentTime = params.messageSentTime; + this.messageUpdatedTime = params.messageUpdatedTime; + this.errorMessage = params.errorMessage; } } @@ -98,6 +101,9 @@ export class MessageListResponse { this.carrierFees = params.carrierFees; this.carrierFeesRate = params.carrierFeesRate; this.log = params.log; + this.messageSentTime = params.messageSentTime; + this.messageUpdatedTime = params.messageUpdatedTime; + this.errorMessage = params.errorMessage; } } diff --git a/lib/rest/request-test.js b/lib/rest/request-test.js index a1886518..50a2ec9d 100644 --- a/lib/rest/request-test.js +++ b/lib/rest/request-test.js @@ -2058,7 +2058,10 @@ export function Request(config) { total_rate: '0.00350', units: 1, requester_ip: "192.168.1.1", - is_domestic: false + is_domestic: false, + message_sent_time: "2024-08-21 18:28:49.244057+05:30", + message_updated_time: "2024-08-21 18:28:51.94772+05:30", + error_message: "" } }); } @@ -2310,7 +2313,10 @@ export function Request(config) { conversation_expiration_timestamp: "2023-08-03 23:02:00+05:30", destination_network: "Verizon", carrier_fees_rate: "0.420", - carrier_fees: "0.001" + carrier_fees: "0.001", + message_sent_time: "2024-08-21 18:28:49.244057+05:30", + message_updated_time: "2024-08-21 18:28:51.94772+05:30", + error_message: "" } }); } @@ -2349,7 +2355,10 @@ export function Request(config) { conversation_expiration_timestamp: "2023-08-03 23:02:00+05:30", destination_network: "Verizon", carrier_fees_rate: "0.420", - carrier_fees: "0.001" + carrier_fees: "0.001", + message_sent_time: "2024-08-21 18:28:49.244057+05:30", + message_updated_time: "2024-08-21 18:28:51.94772+05:30", + error_message: "" }, { @@ -2375,7 +2384,10 @@ export function Request(config) { conversation_expiration_timestamp: null, destination_network: "Verizon", carrier_fees_rate: "0.420", - carrier_fees: "0.001" + carrier_fees: "0.001", + message_sent_time: "2024-08-21 18:28:49.244057+05:30", + message_updated_time: "2024-08-21 18:28:51.94772+05:30", + error_message: "" } ] } diff --git a/package.json b/package.json index 9c79c5b2..74d27f92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.68.2", + "version": "4.68.3", "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": [