Skip to content

Commit

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

* version bumping
  • Loading branch information
narayana-plivo authored Sep 6, 2024
1 parent 3653c06 commit 2cc25fe
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 23 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
## [4.55.4](https://github.com/plivo/plivo-python/tree/v4.55.4) (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
-

## [4.55.3](https://github.com/plivo/plivo-python/tree/v4.55.3) (2024-09-06)
**Feature - Adding support for brand_name, code_length and app_hash in Create,Get and List Session**
- Added new request param `brand_name` , `app_hash` and `code_length` in create Session API
Expand Down
2 changes: 1 addition & 1 deletion plivo/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '4.55.3'
__version__ = '4.55.4'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='plivo',
version='4.55.3',
version='4.55.4',
description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML',
long_description=long_description,
url='https://github.com/plivo/plivo-python',
Expand Down
5 changes: 4 additions & 1 deletion tests/resources/fixtures/messageGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
}
100 changes: 80 additions & 20 deletions tests/resources/fixtures/messageListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -34,7 +37,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -48,7 +54,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -62,7 +71,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -76,7 +88,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -90,7 +105,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -104,7 +122,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -118,7 +139,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": "000",
Expand All @@ -132,7 +156,10 @@
"to_number": "919876543210",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -146,7 +173,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": "000",
Expand All @@ -160,7 +190,10 @@
"to_number": "919876543210",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -174,7 +207,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": "000",
Expand All @@ -188,7 +224,10 @@
"to_number": "919876543210",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -202,7 +241,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": "000",
Expand All @@ -216,7 +258,10 @@
"to_number": "919876543210",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": null,
Expand All @@ -230,7 +275,10 @@
"to_number": "911231231231",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": "000",
Expand All @@ -244,7 +292,10 @@
"to_number": "919876543210",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": "000",
Expand All @@ -258,7 +309,10 @@
"to_number": "919876543210",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": "000",
Expand All @@ -272,7 +326,10 @@
"to_number": "919876543210",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
},
{
"error_code": "000",
Expand All @@ -286,7 +343,10 @@
"to_number": "919876543210",
"total_amount": "0.00250",
"total_rate": "0.00250",
"units": 1
"units": 1,
"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": ""
}
]
}

0 comments on commit 2cc25fe

Please sign in to comment.