Skip to content

Commit fa8ed8b

Browse files
author
MousumiMohanty
committed
Merge branch 'developer' of ssh://bitbucket.c11.telesign.com:7999/sdk/php_telesign_enterprise into developer
2 parents 73ecdf3 + a84d280 commit fa8ed8b

6 files changed

Lines changed: 5 additions & 97 deletions

File tree

RELEASE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
4.0.0
2+
- Removed Legacy PID Contact from PHP FS SDK.
3+
- Removed Legacy PID Number Deactivation from PHP FS SDK.
4+
- Removed broken Telebureau methods in PHP FS SDK.
5+
16
3.4.0
27
- Added full support for App Verify API.
38

examples/phoneid_number_deactivation/1_check_phone_number_deactivated.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/phoneid/PhoneIdClient.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class PhoneIdClient extends _PhoneIdClient {
1717

1818
const PHONEID_STANDARD_RESOURCE = "/v1/phoneid/standard/%s";
1919
const PHONEID_SCORE_RESOURCE = "/v1/phoneid/score/%s";
20-
const PHONEID_CONTACT_RESOURCE = "/v1/phoneid/contact/%s";
2120
const PHONEID_LIVE_RESOURCE = "/v1/phoneid/live/%s";
22-
const PHONEID_NUMBER_DEACTIVATION_RESOURCE = "/v1/phoneid/number_deactivation/%s";
2321
const PHONEID_GET_INFO_PATH = "/v1/phoneid/%s";
2422
const PHONEID_GET_INFO_PATH_ALT = "/v1/phoneid";
2523

@@ -51,18 +49,6 @@ function score ($phone_number, $ucid, array $other = []) {
5149
]));
5250
}
5351

54-
/**
55-
* The PhoneID Contact API delivers contact information related to the subscriber's phone number to provide another
56-
* set of indicators for established risk engines.
57-
*
58-
* See https://developer.telesign.com/docs/rest_api-phoneid-contact for detailed API documentation.
59-
*/
60-
function contact ($phone_number, $ucid, array $other = []) {
61-
return $this->get(sprintf(self::PHONEID_CONTACT_RESOURCE, $phone_number), array_merge($other, [
62-
"ucid" => $ucid
63-
]));
64-
}
65-
6652
/**
6753
* The PhoneID Live API delivers insights such as whether a phone is active or disconnected, a device is reachable
6854
* or unreachable and its roaming status.
@@ -75,18 +61,6 @@ function live ($phone_number, $ucid, array $other = []) {
7561
]));
7662
}
7763

78-
/**
79-
* The PhoneID Number Deactivation API determines whether a phone number has been deactivated and when, based on
80-
* carriers' phone number data and TeleSign's proprietary analysis.
81-
*
82-
* See https://developer.telesign.com/docs/rest_api-phoneid-number-deactivation for detailed API documentation.
83-
*/
84-
function numberDeactivation ($phone_number, $ucid, array $other = []) {
85-
return $this->get(sprintf(self::PHONEID_NUMBER_DEACTIVATION_RESOURCE, $phone_number), array_merge($other, [
86-
"ucid" => $ucid
87-
]));
88-
}
89-
9064
/**
9165
* Enter a phone number with country code to receive detailed information about carrier, location, and other details.
9266
*

src/telebureau/TelebureauClient.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class TelebureauClient extends RestClient {
1414

1515
const TELEBUREAU_CREATE_RESOURCE = "/v1/telebureau/event";
1616
const TELEBUREAU_RETRIEVE_RESOURCE = "/v1/telebureau/event/%s";
17-
const TELEBUREAU_DELETE_RESOURCE = "/v1/telebureau/event/%s";
1817

1918
function __construct ($customer_id, $api_key, $rest_endpoint = "https://rest-ww.telesign.com", ...$other) {
2019
$sdk_version_origin = Config::getVersion('telesign/telesignenterprise');
@@ -41,14 +40,4 @@ function retrieveEvent ($reference_id, array $fields = []) {
4140
return $this->get(sprintf(self::TELEBUREAU_RETRIEVE_RESOURCE, $reference_id), $fields);
4241
}
4342

44-
/**
45-
* Deletes a previously submitted fraud event. You make this call in your web application after completion of the
46-
* create transaction for a telebureau event.
47-
*
48-
* See https://developer.telesign.com/docs/telebureau-api for detailed API documentation.
49-
*/
50-
function deleteEvent ($reference_id, array $fields = []) {
51-
return $this->delete(sprintf(self::TELEBUREAU_DELETE_RESOURCE, $reference_id), $fields);
52-
}
53-
5443
}

test/phoneid/PhoneIdClientTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ function getRequestExamples () {
2323
"uri" => self::EXAMPLE_REST_ENDPOINT . "/v1/phoneid/score/" . self::EXAMPLE_PHONE_NUMBER . "?optional_param=123&ucid=" . self::EXAMPLE_UCID,
2424
[]
2525
],
26-
[
27-
PhoneIdClient::class,
28-
"contact",
29-
[
30-
self::EXAMPLE_PHONE_NUMBER,
31-
self::EXAMPLE_UCID,
32-
[ "optional_param" => "123" ]
33-
],
34-
self::EXAMPLE_REST_ENDPOINT. "/v1/phoneid/contact/" . self::EXAMPLE_PHONE_NUMBER . "?optional_param=123&ucid=" . self::EXAMPLE_UCID,
35-
[]
36-
],
3726
[
3827
PhoneIdClient::class,
3928
"live",
@@ -45,17 +34,6 @@ function getRequestExamples () {
4534
self::EXAMPLE_REST_ENDPOINT. "/v1/phoneid/live/" . self::EXAMPLE_PHONE_NUMBER . "?optional_param=123&ucid=" . self::EXAMPLE_UCID,
4635
[]
4736
],
48-
[
49-
PhoneIdCLient::class,
50-
"numberDeactivation",
51-
[
52-
self::EXAMPLE_PHONE_NUMBER,
53-
self::EXAMPLE_UCID,
54-
[ "optional_param" => "123" ]
55-
],
56-
self::EXAMPLE_REST_ENDPOINT. "/v1/phoneid/number_deactivation/" . self::EXAMPLE_PHONE_NUMBER . "?optional_param=123&ucid=" . self::EXAMPLE_UCID,
57-
[]
58-
],
5937
[
6038
PhoneIdClient::class,
6139
"standard",

test/telebureau/TelebureauClientTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
final class TelebureauClientTest extends ClientTest {
99

1010
const EXAMPLE_PHONE_NUMBER = Example::PHONE_NUMBER;
11-
const EXAMPLE_UCID = Example::UCID;
1211
const EXAMPLE_REFERENCE_ID = Example::REFERENCE_ID;
1312
const EXAMPLE_FRAUD_TYPE = "chargeback";
1413

@@ -43,19 +42,6 @@ function getRequestExamples () {
4342
self::EXAMPLE_REST_ENDPOINT . "/v1/telebureau/event/". self::EXAMPLE_REFERENCE_ID . "?optional_param=123",
4443
[]
4544
],
46-
[
47-
TelebureauClient::class,
48-
"deleteEvent",
49-
[
50-
self::EXAMPLE_REFERENCE_ID,
51-
[
52-
"optional_param" => "123"
53-
]
54-
],
55-
self::EXAMPLE_REST_ENDPOINT . "/v1/telebureau/event/". self::EXAMPLE_REFERENCE_ID . "?optional_param=123",
56-
[]
57-
],
5845
];
5946
}
60-
6147
}

0 commit comments

Comments
 (0)