Skip to content

Commit

Permalink
adding more attribute on message object (#341)
Browse files Browse the repository at this point in the history
* adding more attribute on message object

* verison fix

* fix
  • Loading branch information
narayana-plivo authored Sep 6, 2024
1 parent 18f4656 commit a26250c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions lib/resources/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;
}
}

Expand Down
20 changes: 16 additions & 4 deletions lib/rest/request-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
}
});
}
Expand Down Expand Up @@ -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: ""
}
});
}
Expand Down Expand Up @@ -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: ""

},
{
Expand All @@ -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: ""
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit a26250c

Please sign in to comment.