Skip to content

Commit

Permalink
Merge pull request #285 from plivo/SMS-4946
Browse files Browse the repository at this point in the history
SMS-4946/SMS-4848: adding new param 'is_domestic' in Get Message and List Message API
  • Loading branch information
narayana-plivo authored Mar 3, 2023
2 parents 2a6a279 + 3635614 commit 2259f77
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 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.41.0](https://github.com/plivo/plivo-node/tree/v4.41.0) (2023-03-03)
**Adding new attribute - 'isDomestic' in Get Message and List Message APIs**
- Add `isDomestic` 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)

## [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
Expand Down
2 changes: 2 additions & 0 deletions lib/resources/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class MessageGetResponse {
this.tendlcRegistrationStatus = params.tendlcRegistrationStatus;
this.destinationCountryIso2 = params.destinationCountryIso2;
this.requesterIP = params.requesterIp;
this.isDomestic = params.isDomestic;
}
}

Expand All @@ -72,6 +73,7 @@ export class MessageListResponse {
this.tendlcRegistrationStatus = params.tendlcRegistrationStatus;
this.destinationCountryIso2 = params.destinationCountryIso2;
this.requesterIP = params.requesterIp;
this.isDomestic = params.isDomestic;
}
}

Expand Down
12 changes: 8 additions & 4 deletions lib/rest/request-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,8 @@ export function Request(config) {
total_amount: '0.00000',
total_rate: '0.00350',
units: 1,
requester_ip: "192.168.1.1"
requester_ip: "192.168.1.1",
is_domestic: false
}
});
}
Expand Down Expand Up @@ -1938,7 +1939,8 @@ export function Request(config) {
total_amount: '0.00000',
total_rate: '0.00350',
units: 1,
requester_ip: '192.168.1.2'
requester_ip: '192.168.1.2',
is_domestic: false
}
});
}
Expand Down Expand Up @@ -1967,7 +1969,8 @@ export function Request(config) {
total_amount: '0.00000',
total_rate: '0.00350',
units: 1,
requester_ip: "192.168.1.1"
requester_ip: "192.168.1.1",
is_domestic: false
},
{
error_code: '200',
Expand All @@ -1982,7 +1985,8 @@ export function Request(config) {
total_amount: '0.00000',
total_rate: '0.00350',
units: 1,
requester_ip: "192.168.1.2"
requester_ip: "192.168.1.2",
is_domestic: false
}
]
}
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.40.0",
"version": "4.41.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
2 changes: 2 additions & 0 deletions types/resources/messages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class MessageGetResponse {
units: string;
powerpackId: string;
requesterIp: string;
isDomestic: boolean;
}
export class MessageListResponse {
constructor(params: object);
Expand All @@ -39,6 +40,7 @@ export class MessageListResponse {
units: string;
powerpackId: string;
requesterIp: string;
isDomestic: boolean;
}
export class MMSMediaResponse {
constructor(params: object);
Expand Down

0 comments on commit 2259f77

Please sign in to comment.