Skip to content

Commit

Permalink
Merge branch 'master' of github.com:plivo/plivo-php into VT-8202
Browse files Browse the repository at this point in the history
  • Loading branch information
Abinaya-Shunmugavel committed Nov 5, 2024
2 parents 0fc196f + 42683ca commit 956c53b
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 9 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Change Log
## [4.65.4](https://github.com/plivo/plivo-php/tree/v4.65.4)(2024-09-11)
## [4.67.0](https://github.com/plivo/plivo-php/tree/v4.67.0)(2024-11-06)
**Feature - Adding few optional parameters to the existing machine detection params**
- Added six new optional machine detection params `machine_detection_maximum_speech_length`,`machine_detection_initial_silence`,`machine_detection_maximum_words`,`machine_detection_initial_greeting`,`machine_detection_silence`,`machine_detection_answer_time`

## [4.66.2](https://github.com/plivo/plivo-php/tree/v4.66.2) (2024-10-23)
**Feature - FraudCheck param in Create, Get and List Session**
- Support for the `fraud_check` parameter in sms verify session request
- Added support for `fraud_check` in GET and LIST verify session.

## [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

## [4.65.3](https://github.com/plivo/plivo-php/tree/v4.65.3)(2024-09-06)
**Feature - Adding more attribute on mdr object**
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ build:

start:
docker-compose up --build --remove-orphans --detach
docker attach $(shell docker-compose ps -q phpSDK)
# Wait for the container to be running before attaching
@while [ -z "$$(docker-compose ps -q phpSDK)" ]; do \
sleep 1; \
done
docker attach $$(docker-compose ps -q phpSDK)

test:
@[ "${CONTAINER}" ] && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ function __construct(BaseClient $plivoClient, $authId)
* + [string] UnknownCallerPlay - Sound url to play for unknown caller.
* + [string] SubAccount - SubAccount to create session.
* + [bool] GeoMatch - GeoMatch to filter no.
* + [boolean] ForcePinAuthentication - Specifies the cool-off period for reallocating the number to a new session. Must be a positive integer between 0 and 3600.
* + [number] VirtualNumberCooloffPeriod - Indicates if PIN is needed, even from the registered mobile number.
* + [boolean] CreateSessionWithSingleParty - Indicates if a session requires one party. Either first_party or second_party is mandatory.
* @return JSON output
* @throws PlivoValidationException,PlivoResponseException
Expand Down
4 changes: 3 additions & 1 deletion src/Plivo/Resources/Verify/VerifySession.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
* @property ?string $charges
* @property string $created_at
* @property string $updated_at
* @property ?int $dtmf
* @property ?string $fraud_check
*/
class VerifySession extends Resource
{
Expand Down Expand Up @@ -86,4 +88,4 @@ public function __construct(
public function __debugInfo() {
return $this->properties;
}
}
}
4 changes: 2 additions & 2 deletions src/Plivo/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ class Version
/**
* @const int PHP helper library minor version number
*/
const MINOR = 65;
const MINOR = 66;

/**
* @const int PHP helper library patch number
*/

const PATCH = 4;
const PATCH = 0;

/**
* @return string
Expand Down
20 changes: 16 additions & 4 deletions tests/Mocks/verifySessionListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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": {
Expand Down Expand Up @@ -128,11 +129,17 @@
"channel": "sms",
"status": "expired",
"locale":"en",
"count": 2,
"count": 3,
"requestor_ip": "110.226.182.196",
"destination_country_iso2": "IN",
"destination_network": "AirTel",
"attempt_details": [
{
"channel": "sms",
"attemp_uuid": "c8f5830a-65d2-46db-9088-5001627e65a8",
"status": "failed",
"time": "2023-07-28T17:07:02.280023+05:30"
},
{
"channel": "sms",
"attempt_uuid": "c8f5830a-65d2-46db-9088-5001627e65a9",
Expand All @@ -150,6 +157,11 @@
"total_charge": "0.48000",
"validation_charge": "0.0000",
"attempt_charges": [
{
"attempt_uuid": "c8f5830a-65d2-46db-9088-5001627e65a8",
"channel": "sms",
"charge": "0.000000"
},
{
"attempt_uuid": "c8f5830a-65d2-46db-9088-5001627e65a9",
"channel": "sms",
Expand Down

0 comments on commit 956c53b

Please sign in to comment.