Skip to content

Commit

Permalink
Merge pull request #216 from plivo/PHONUM-2419
Browse files Browse the repository at this point in the history
adding 10dlc and TF changes
  • Loading branch information
kalyan-plivo authored Oct 14, 2022
2 parents 92b5bf3 + cf9000a commit 25a2587
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
## [4.27.0](https://github.com/plivo/plivo-python/tree/v4.27.0) (2022-10-14)
**Adding new attributes to Account PhoneNumber object**
-Added 3 new keys to AccountPhoneNumber object:`tendlc_registration_status`, `tendlc_campaign_id` and `toll_free_sms_verification` (https://www.plivo.com/docs/numbers/api/account-phone-number#the-accountphonenumber-object)
-Added 3 new filters to AccountPhoneNumber - list all my numbers API:`tendlc_registration_status`, `tendlc_campaign_id` and `toll_free_sms_verification` (https://www.plivo.com/docs/numbers/api/account-phone-number#list-all-my-numbers)

## [4.26.2](https://github.com/plivo/plivo-python/tree/v4.26.2) (2022-09-28)
**10DLC: Adding more attributes to campaign creation request**
Expand Down
3 changes: 3 additions & 0 deletions plivo/resources/numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def list(self,
subaccount=None,
alias=None,
services=None,
tendlc_registration_status=None,
tendlc_campaign_id=None,
toll_free_sms_verification=None,
limit=20,
offset=0):
return self.client.request(
Expand Down
2 changes: 1 addition & 1 deletion plivo/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '4.26.2'
__version__ = '4.27.0'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='plivo',
version='4.26.2',
version='4.27.0',
description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML',
long_description=long_description,
url='https://github.com/plivo/plivo-python',
Expand Down
10 changes: 10 additions & 0 deletions tests/resources/fixtures/numberGetResponse.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{
"added_on": "2014-02-14",
"active": false,
"alias": null,
"api_id": "88625e5e-1c92-11e4-80aa-12313f048015",
"application": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Application/29986316244302815/",
"carrier": "Plivo",
"monthly_rental_rate": "0.80000",
"number": "17609915566",
"number_type": "local",
"city": "USA",
"compliance_application_id": null,
"compliance_status": null,
"country": "United States",
"mms_enabled": false,
"mms_rate": "0.00000",
"tendlc_campaign_id": null,
"tendlc_registration_status": "UNREGISTERED",
"toll_free_sms_verification": null,
"region": "California, UNITED STATES",
"resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Number/17609915566/",
"sms_enabled": true,
Expand Down
31 changes: 30 additions & 1 deletion tests/resources/fixtures/numberListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
"sms_enabled": true,
"sms_rate": "0.00000",
"sub_account": null,
"active": true,
"city": "USA",
"compliance_application_id": null,
"compliance_status": null,
"country": "United States",
"mms_enabled": false,
"mms_rate": "0.00000",
"tendlc_campaign_id": "C012345",
"tendlc_registration_status": "PROCESSING",
"toll_free_sms_verification": null,
"voice_enabled": true,
"voice_rate": "0.00850"
},
Expand All @@ -37,6 +47,16 @@
"sms_enabled": true,
"sms_rate": "0.00000",
"sub_account": null,
"active": true,
"city": "USA",
"compliance_application_id": null,
"compliance_status": null,
"country": "United States",
"mms_enabled": false,
"mms_rate": "0.00000",
"tendlc_campaign_id": "C012345",
"tendlc_registration_status": "REGISTERED",
"toll_free_sms_verification": null,
"voice_enabled": true,
"voice_rate": "0.00850"
},
Expand All @@ -47,12 +67,21 @@
"carrier": "Plivo",
"monthly_rental_rate": "0.80000",
"number": "14152753408",
"number_type": "local",
"number_type": "tollfree",
"region": "California, UNITED STATES",
"resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Number/14152753408/",
"sms_enabled": true,
"sms_rate": "0.00000",
"sub_account": null,
"city": "USA",
"compliance_application_id": null,
"compliance_status": null,
"country": "United States",
"mms_enabled": false,
"mms_rate": "0.00000",
"tendlc_campaign_id": null,
"tendlc_registration_status": null,
"toll_free_sms_verification": "verified",
"voice_enabled": true,
"voice_rate": "0.00850"
}
Expand Down

0 comments on commit 25a2587

Please sign in to comment.