Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMS-7107: Add fraud_check param support #352

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-16)
**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
Loading