From f88b73722f233495259beb6d87f481d641447a38 Mon Sep 17 00:00:00 2001 From: ashutoshkumar-plivo Date: Mon, 12 Aug 2024 12:18:41 +0530 Subject: [PATCH 1/5] SMS-6997: add brand_name and app_hash in create and list api --- CHANGELOG.md | 5 +++++ src/Plivo/Resources/Verify/VerifySessionInterface.php | 5 ++++- src/Plivo/Version.php | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2db8c0dd..ca1b2df0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log # Change Log +## [4.66.0](https://github.com/plivo/plivo-php/tree/v4.66.0)(2024-08-12) +**Feature - Adding support for brand_name and app_hash in Create,Get and List Session** +- Added new request param `brand_name` and `app_hash` in create Session API +- Added support for `brand_name` and `app_hash` param in get and list Session response + ## [4.65.0](https://github.com/plivo/plivo-php/tree/v4.65.0)(2024-07-11) **Feature - Adding support for Locale param in Create, Get and List Session** - Added new request param `locale` in create Session API diff --git a/src/Plivo/Resources/Verify/VerifySessionInterface.php b/src/Plivo/Resources/Verify/VerifySessionInterface.php index 6020a413..af4af3cc 100644 --- a/src/Plivo/Resources/Verify/VerifySessionInterface.php +++ b/src/Plivo/Resources/Verify/VerifySessionInterface.php @@ -98,6 +98,8 @@ public function get($sessionUuid) * + [string] : app_uuid - Filter the results by App UUID. * + [string]: country - Filter the results by country. For e.g. Filter results for India using 'IN' as the value. * + [string]: alias - Filter the results using alias of verify application. + * + [string]: brand_name - Filter the results using brand_name of sessions + * + [string]: app_hash - Filter the results using app_hash of verify application. * @return VerifySessionList output */ public function list( $optionalArgs = []) @@ -144,7 +146,8 @@ public function list( $optionalArgs = []) *
AttemptSequence - The attempt number for which the session status is received. For e.g. is two attempted are made within a session, 1st via SMS and 2nd via Voice, then callbacks received for SMS would have AttemptSequence value as 1 and for Voice it would be 2. *
SessionStatus - The status of the session(in-progress/validated/expired). *
Locale - The template text to be selected while sending sms. - * + *
Brandname - The brand_name can be dynamically passed in request payload + *
AppHash - The brand_name can be dynamically passed in request payload * + [string] :method - The method used to call the url. Defaults to POST. * @return VerifySessionCreateResponse output * @throws PlivoValidationException,PlivoResponseException diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index 805287e7..3188fb37 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 = 65; + const MINOR = 66; /** * @const int PHP helper library patch number From 7221b0ddb2ce027340b43e3143ef51f50bca1349 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Tue, 13 Aug 2024 19:30:19 +0530 Subject: [PATCH 2/5] code length property --- src/Plivo/Resources/Verify/VerifySessionInterface.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Plivo/Resources/Verify/VerifySessionInterface.php b/src/Plivo/Resources/Verify/VerifySessionInterface.php index af4af3cc..d882fb9a 100644 --- a/src/Plivo/Resources/Verify/VerifySessionInterface.php +++ b/src/Plivo/Resources/Verify/VerifySessionInterface.php @@ -147,6 +147,7 @@ public function list( $optionalArgs = []) *
SessionStatus - The status of the session(in-progress/validated/expired). *
Locale - The template text to be selected while sending sms. *
Brandname - The brand_name can be dynamically passed in request payload + *
CodeLength - The otp length can be dynamically passed in request payload between 4 to 8 *
AppHash - The brand_name can be dynamically passed in request payload * + [string] :method - The method used to call the url. Defaults to POST. * @return VerifySessionCreateResponse output From 78115b475f87400d97ca7950c7f0c5aa05c5b549 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Fri, 6 Sep 2024 14:17:34 +0530 Subject: [PATCH 3/5] version update --- CHANGELOG.md | 10 ++++------ src/Plivo/Version.php | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca1b2df0..ea11978f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,8 @@ # Change Log - -# Change Log -## [4.66.0](https://github.com/plivo/plivo-php/tree/v4.66.0)(2024-08-12) -**Feature - Adding support for brand_name and app_hash in Create,Get and List Session** -- Added new request param `brand_name` and `app_hash` in create Session API -- Added support for `brand_name` and `app_hash` param in get and list Session response +## [4.66.2](https://github.com/plivo/plivo-php/tree/v4.66.2)(2024-09-06) +**Feature - Adding support for brand_name,app_hash ,code_length in Create,Get and List Session** +- Added new request param `brand_name`, `code_length` and `app_hash` in create Session API +- Added support for `brand_name`, `code_length` and `app_hash` param in get and list Session response ## [4.65.0](https://github.com/plivo/plivo-php/tree/v4.65.0)(2024-07-11) **Feature - Adding support for Locale param in Create, Get and List Session** diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index 3188fb37..4a983c31 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 = 0; + const PATCH = 2; /** * @return string */ From 05e9166bb0b472888c0de1c93a2dcc568ee342a0 Mon Sep 17 00:00:00 2001 From: Narayana Shanbhog Plivo Date: Fri, 6 Sep 2024 14:20:30 +0530 Subject: [PATCH 4/5] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9caf606..16d0315f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # Change Log -## [4.66.2](https://github.com/plivo/plivo-php/tree/v4.66.2)(2024-09-06) +## [4.65.2](https://github.com/plivo/plivo-php/tree/v4.65.2)(2024-09-06) **Feature - Adding support for brand_name,app_hash ,code_length in Create,Get and List Session** - Added new request param `brand_name`, `code_length` and `app_hash` in create Session API - Added support for `brand_name`, `code_length` and `app_hash` param in get and list Session response From 4311ef38056883cd6be64a203aa42b517c6430c8 Mon Sep 17 00:00:00 2001 From: Narayana Shanbhog Plivo Date: Fri, 6 Sep 2024 14:20:44 +0530 Subject: [PATCH 5/5] Update Version.php --- src/Plivo/Version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index d2ba459f..295e1d1c 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 = 66; + const MINOR = 65; /** * @const int PHP helper library patch number