Skip to content

Commit

Permalink
Merge pull request #280 from plivo/messaging-list-ext
Browse files Browse the repository at this point in the history
extending message object filter option
  • Loading branch information
narayana-plivo authored Feb 23, 2023
2 parents 1905748 + 334249d commit 2a6a279
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
## [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.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)
Expand Down
8 changes: 7 additions & 1 deletion lib/resources/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export class MessageGetResponse {
this.totalAmount = params.totalAmount;
this.totalRate = params.totalRate;
this.units = params.units;
this.powerpackID = params.powerpackId;
this.powerpackID = params.powerpackId
this.tendlcCampaignId = params.tendlcCampaignId;
this.tendlcRegistrationStatus = params.tendlcRegistrationStatus;
this.destinationCountryIso2 = params.destinationCountryIso2;
this.requesterIP = params.requesterIp;
}
}
Expand All @@ -65,6 +68,9 @@ export class MessageListResponse {
this.totalRate = params.totalRate;
this.units = params.units;
this.powerpackID = params.powerpackId;
this.tendlcCampaignId = params.tendlcCampaignId;
this.tendlcRegistrationStatus = params.tendlcRegistrationStatus;
this.destinationCountryIso2 = params.destinationCountryIso2;
this.requesterIP = params.requesterIp;
}
}
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.39.0",
"version": "4.40.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": [
Expand Down

0 comments on commit 2a6a279

Please sign in to comment.