From 74056d89a9fe73274055b56be828e68914dace72 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Tue, 8 Oct 2024 23:38:25 +0530 Subject: [PATCH 1/2] verify dtmf param support --- CHANGELOG.md | 5 +++++ src/Plivo/Resources/Verify/VerifySession.php | 1 + src/Plivo/Version.php | 2 +- tests/Mocks/verifySessionListResponse.json | 7 ++++--- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d00be6a3..33427b39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log +## [4.66.1](https://github.com/plivo/plivo-php/tree/v4.66.1)(2024-10-10) +**Feature - Dtmf param in Create, Get and List Session** +- Support for the `dtmf` parameter in voice verify session request +- Added support for `dtmf` in GET and LIST verify session. +- ## [4.66.0](https://github.com/plivo/plivo-php/tree/v4.66.0)(2024-09-30) **Feature - Adding new param support for Number Masking session with single party ** - Added `create_session_with_single_party`, `virtual_number_cooloff_period` and `force_pin_authentication` attributes in Masking Session diff --git a/src/Plivo/Resources/Verify/VerifySession.php b/src/Plivo/Resources/Verify/VerifySession.php index aea1b534..aa487b6a 100644 --- a/src/Plivo/Resources/Verify/VerifySession.php +++ b/src/Plivo/Resources/Verify/VerifySession.php @@ -25,6 +25,7 @@ * @property ?string $charges * @property string $created_at * @property string $updated_at + * @property ?string $dtmf */ class VerifySession extends Resource { diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index 64e90e2d..85e93979 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -26,7 +26,7 @@ class Version * @const int PHP helper library patch number */ - const PATCH = 0; + const PATCH = 1; /** * @return string diff --git a/tests/Mocks/verifySessionListResponse.json b/tests/Mocks/verifySessionListResponse.json index bfb3aca5..2db47111 100644 --- a/tests/Mocks/verifySessionListResponse.json +++ b/tests/Mocks/verifySessionListResponse.json @@ -12,7 +12,7 @@ "app_uuid": "854f110a-6244-4481-9d28-dddf58c7014b", "alias": "default_app", "recipient": "918097480999", - "channel": "sms", + "channel": "voice", "status": "verified", "locale":"en", "count": 1, @@ -21,10 +21,11 @@ "destination_network": "AirTel", "attempt_details": [ { - "channel": "sms", + "channel": "voice", "attempt_uuid": "3ada0edc-849a-49f4-aae6-2de209955829", "status": "delivered", - "time": "2023-07-28T17:20:39.278163+05:30" + "time": "2023-07-28T17:20:39.278163+05:30", + "dtmf": 4 } ], "charges": { From 1e92aae2f62591491beb3eb487cfda83ad91e3de Mon Sep 17 00:00:00 2001 From: Narayana Shanbhog Plivo Date: Thu, 10 Oct 2024 14:32:06 +0530 Subject: [PATCH 2/2] Update VerifySession.php --- src/Plivo/Resources/Verify/VerifySession.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plivo/Resources/Verify/VerifySession.php b/src/Plivo/Resources/Verify/VerifySession.php index aa487b6a..474b796d 100644 --- a/src/Plivo/Resources/Verify/VerifySession.php +++ b/src/Plivo/Resources/Verify/VerifySession.php @@ -25,7 +25,7 @@ * @property ?string $charges * @property string $created_at * @property string $updated_at - * @property ?string $dtmf + * @property ?int $dtmf */ class VerifySession extends Resource { @@ -87,4 +87,4 @@ public function __construct( public function __debugInfo() { return $this->properties; } -} \ No newline at end of file +}