Skip to content

Commit d0fb470

Browse files
parthiv-plivoParthiv Chandran
andauthored
fix: added rejectionReason to the compliance response (#364)
* fix: added rejectionReason to the compliance response * fix: added changelog and bumped package version * fix: addressed review comments * fix: fixed nullable rejectionResponse edge case * fix: corrected bump version to patch --------- Co-authored-by: Parthiv Chandran <parthiv.chandran@Parthivs-Mac.local>
1 parent cf306cf commit d0fb470

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Change Log
2+
## [v4.75.2](https://github.com/plivo/plivo-node/tree/v4.75.2) (2025-10-15)
3+
**Feature - Compliance application rejection reason**
4+
- Added `rejectionReason` to compliance application responses (get, create)
5+
- Updated TypeScript definitions to include `rejectionReason`
6+
27
## [v4.75.1](https://github.com/plivo/plivo-node/tree/v4.75.1) (2025-07-21)
38
**Feature - Comprehensive Compliance APIs TypeScript Support**
49
- Added missing `submit` method for compliance applications

lib/resources/complianceApplications.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class ComplianceApplicationResponse {
2424
this.numberType = params.numberType;
2525
this.complianceRequirementId= params.complianceRequirementId;
2626
this.documents = params.documents;
27+
this.rejectionReason = params.rejectionReason;
2728
this.createdAt = params.createdAt;
2829
}
2930
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plivo",
3-
"version": "4.75.1",
3+
"version": "4.75.2",
44
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",
55
"homepage": "https://github.com/plivo/plivo-node",
66
"files": [
@@ -67,6 +67,7 @@
6767
"jsonwebtoken": "^9.0.0",
6868
"lodash": "^4.17.4",
6969
"querystring": "^0.2.0",
70+
"request": "^2.88.2",
7071
"uri-parser": "^1.0.0",
7172
"utf8": "^2.1.2",
7273
"xml2js": "^0.5.0",

types/resources/complianceApplications.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export class ComplianceApplicationResponse {
1010
numberType: string;
1111
complianceRequirementId: string;
1212
documents: Array<Object>;
13+
rejectionReason?: string;
1314
createdAt: string;
1415
}
1516

0 commit comments

Comments
 (0)