From d148c776fe63ee81798d32610567c72e53b8175e Mon Sep 17 00:00:00 2001 From: ashutoshkumar Date: Mon, 29 Jan 2024 15:56:05 +0530 Subject: [PATCH] SMS-6589: Log Redaction Enhancement --- CHANGELOG.md | 5 +++++ src/Plivo/Resources/Message/Message.php | 4 ++++ src/Plivo/Version.php | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aa6b5a6..7cd5a136 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [4.59.2](https://github.com/plivo/plivo-php/tree/v4.59.2) (2024-01-29) +**Feature - Log Redaction Enhancement** +- Added log attribute in GET and List MDR response +- Change log field from bool to string in send SMS + ## [4.59.1](https://github.com/plivo/plivo-php/tree/v4.59.1) (2024-01-12) **Bug fix - Plivo Signature validation-V3 URL constructor** - Fixed the URL constructor for signature validation which was failing when the URL did not contain query parameters. diff --git a/src/Plivo/Resources/Message/Message.php b/src/Plivo/Resources/Message/Message.php index 54329388..bd8d6b5a 100644 --- a/src/Plivo/Resources/Message/Message.php +++ b/src/Plivo/Resources/Message/Message.php @@ -28,6 +28,7 @@ * @property ?string $conversationOrigin * @property ?string $conversationExpirationTimestamp * @property ?bool $isDomestic + * @property ?string $log */ class Message extends Resource { @@ -117,6 +118,9 @@ public function __construct( if (!empty($response['carrier_fees'])) { $this->properties['carrier_fees'] = $response['carrier_fees']; } + if (!empty($response['log'])) { + $this->properties['log'] = $response['log']; + } $this->pathParams = [ 'authId' => $authId, diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index 220447b6..e2638ea8 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -25,7 +25,7 @@ class Version /** * @const int PHP helper library patch number */ - const PATCH = 1; + const PATCH = 2; /** * @return string */