diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a9c84fb..77838772 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [4.68.0](https://github.com/plivo/plivo-php/tree/v4.68.0) (2025-10-24) +**Feature - Added rejection_reason field to Regulatory Compliance APIs** +- Added `rejection_reason` field to ComplianceApplication +- Added support for `rejection_reason` in GET and LIST operations for regulatory compliance APIs + ## [4.67.0](https://github.com/plivo/plivo-php/tree/v4.67.0) (2025-04-30) **Feature - New Param added for Start Recording API.** - Support `record_channel_type` in Start Recording API and `recordChannelType` in Record XML. diff --git a/src/Plivo/Resources/RegulatoryCompliance/ComplianceApplication.php b/src/Plivo/Resources/RegulatoryCompliance/ComplianceApplication.php index d2667904..c1f85a3d 100644 --- a/src/Plivo/Resources/RegulatoryCompliance/ComplianceApplication.php +++ b/src/Plivo/Resources/RegulatoryCompliance/ComplianceApplication.php @@ -19,6 +19,7 @@ * @property array $documents * @property string $numberType * @property string $status + * @property string $rejectionReason */ class ComplianceApplication extends Resource { @@ -39,6 +40,10 @@ function __construct(BaseClient $client, array $response, $authId) 'status' => $response['status'] ]; + if (isset($response['rejection_reason'])) { + $this->properties['rejectionReason'] = $response['rejection_reason']; + } + $this->pathParams = [ 'authId' => $authId, 'complianceApplicationId' => $response['compliance_application_id'] diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index 0cad1587..917ff79b 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -20,7 +20,7 @@ class Version /** * @const int PHP helper library minor version number */ - const MINOR = 67; + const MINOR = 68; /** * @const int PHP helper library patch number