diff --git a/CHANGELOG.md b/CHANGELOG.md index 6145f758..2dcae2ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## [4.52.0](https://github.com/plivo/plivo-php/tree/v4.52.0) (2023-07-18) +- Removed object_id and object_type in the parameter as well as response in [list all numbers API] + ## [v4.51.0](https://github.com/plivo/plivo-php/tree/v4.51.0) (2023-06-28) **Audio Streaming** - API support for starting, deleting, getting streams on a live call diff --git a/src/Plivo/Resources/Number/Number.php b/src/Plivo/Resources/Number/Number.php index c26ae4ab..81c88794 100644 --- a/src/Plivo/Resources/Number/Number.php +++ b/src/Plivo/Resources/Number/Number.php @@ -77,12 +77,6 @@ function __construct(BaseClient $client, array $response, $authId) 'renewalDate' => $response['renewal_date'], 'cnamLookup' => isset($response['cnam_lookup']) ? $response['cnam_lookup'] : null, ]; - if (isset($response['object_id'])) { - $this->properties['objectId'] = $response['object_id']; - } - if (isset($response['object_type'])) { - $this->properties['objectType'] = $response['object_type']; - } $this->pathParams = [ 'authId' => $authId, 'number' => $response['number'] diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index b6906849..38ae7a1f 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 = 51; + const MINOR = 52; /** * @const int PHP helper library patch number diff --git a/tests/Mocks/numberGetResponse.json b/tests/Mocks/numberGetResponse.json index fa632667..03d0b660 100644 --- a/tests/Mocks/numberGetResponse.json +++ b/tests/Mocks/numberGetResponse.json @@ -23,8 +23,6 @@ "compliance_application_id": "20372631212782797", "compliance_status": "submitted", "renewal_date": "2014-03-14", - "object_id": "9565321542215", - "object_type": "trunk", "tendlc_campaign_id": "CWDPZZX", "tendlc_registration_status": "UNREGISTERED", "toll_free_sms_verification": null diff --git a/tests/Mocks/numberListResponse.json b/tests/Mocks/numberListResponse.json index 257eb24f..370ded1f 100644 --- a/tests/Mocks/numberListResponse.json +++ b/tests/Mocks/numberListResponse.json @@ -32,8 +32,6 @@ "compliance_application_id": "20372631212782797", "compliance_status": "submitted", "renewal_date": "2014-09-05", - "object_id": "9565321542215", - "object_type": "trunk", "tendlc_campaign_id": "CWDPZZX", "tendlc_registration_status": "COMPLETED", "toll_free_sms_verification": null @@ -62,8 +60,6 @@ "compliance_application_id": "20372631212782797", "compliance_status": "submitted", "renewal_date": "2013-02-01", - "object_id": "9565321542215", - "object_type": "trunk", "tendlc_campaign_id": "CWDPZZX", "tendlc_registration_status": "PROCESSING", "toll_free_sms_verification": null @@ -92,8 +88,6 @@ "compliance_application_id": "20372631212782799", "compliance_status": "submitted", "renewal_date": "2013-04-25", - "object_id": "9565321542215", - "object_type": "trunk", "tendlc_campaign_id": null, "tendlc_registration_status": null, "toll_free_sms_verification": "unverified"