Skip to content

Commit

Permalink
SMS-7107: Add fraud_check param support (#352)
Browse files Browse the repository at this point in the history
* SMS-7107: Add fraud_check param support

* Update date
  • Loading branch information
mohsin-plivo authored Oct 23, 2024
1 parent d0eb2fd commit 42683ca
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Change Log
## [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
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
1 change: 1 addition & 0 deletions src/Plivo/Resources/Verify/VerifySession.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @property string $created_at
* @property string $updated_at
* @property ?int $dtmf
* @property ?string $fraud_check
*/
class VerifySession extends Resource
{
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Version
* @const int PHP helper library patch number
*/

const PATCH = 1;
const PATCH = 2;

/**
* @return string
Expand Down
13 changes: 12 additions & 1 deletion tests/Mocks/verifySessionListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,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 @@ -151,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 42683ca

Please sign in to comment.