Skip to content

Commit 73e243a

Browse files
committed
Add offnet compatibility
1 parent fdd4706 commit 73e243a

13 files changed

+31
-7
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,5 +227,4 @@ requirements.txt
227227
setup.cfg
228228
setup.py
229229
test/__init__.py
230-
test/test_default_api.py
231230
tox.ini

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
66

77
## [Unreleased]
88
None
9+
<a name="4.0.5"></a>
10+
11+
## [4.0.5] - 2022-11-01
12+
### Added
13+
- Add `offnet` property in IncomingNumber resource
14+
- Add `offnet` query parameter for listIncomingNumbers
15+
916
<a name="4.0.4"></a>
1017
## [4.0.4] - 2022-10-07
1118
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 1.0.0
7-
- Package version: 4.0.4
7+
- Package version: 4.0.5
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/)
1010

docs/DefaultApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,6 +2574,7 @@ with freeclimb.ApiClient(configuration) as api_client:
25742574
capabilities_toll_free = True # bool | (optional)
25752575
capabilities_ten_dlc = True # bool | (optional)
25762576
capabilities_short_code = True # bool | (optional)
2577+
offnet = True # bool | Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
25772578

25782579
# example passing only required values which don't have defaults set
25792580
try:
@@ -2587,7 +2588,7 @@ with freeclimb.ApiClient(configuration) as api_client:
25872588
# and optional values
25882589
try:
25892590
# List Incoming Numbers
2590-
api_response = api_instance.list_incoming_numbers(account_id, phone_number=phone_number, alias=alias, region=region, country=country, application_id=application_id, has_application=has_application, voice_enabled=voice_enabled, sms_enabled=sms_enabled, capabilities_voice=capabilities_voice, capabilities_sms=capabilities_sms, capabilities_toll_free=capabilities_toll_free, capabilities_ten_dlc=capabilities_ten_dlc, capabilities_short_code=capabilities_short_code)
2591+
api_response = api_instance.list_incoming_numbers(account_id, phone_number=phone_number, alias=alias, region=region, country=country, application_id=application_id, has_application=has_application, voice_enabled=voice_enabled, sms_enabled=sms_enabled, capabilities_voice=capabilities_voice, capabilities_sms=capabilities_sms, capabilities_toll_free=capabilities_toll_free, capabilities_ten_dlc=capabilities_ten_dlc, capabilities_short_code=capabilities_short_code, offnet=offnet)
25912592
pprint(api_response)
25922593
except freeclimb.ApiException as e:
25932594
print("Exception when calling DefaultApi->list_incoming_numbers: %s\n" % e)
@@ -2612,6 +2613,7 @@ Name | Type | Description | Notes
26122613
**capabilities_toll_free** | **bool**| | [optional]
26132614
**capabilities_ten_dlc** | **bool**| | [optional]
26142615
**capabilities_short_code** | **bool**| | [optional]
2616+
**offnet** | **bool**| Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. | [optional]
26152617

26162618
### Return type
26172619

docs/IncomingNumberResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**country** | **str, none_type** | Country of this phone number. | [optional]
1919
**voice_enabled** | **bool, none_type** | Indicates whether the phone number can handle Calls. Typically set to true for all numbers. | [optional]
2020
**sms_enabled** | **bool, none_type** | Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. | [optional]
21+
**offnet** | **bool, none_type** | The offnet field is a boolean representing whether the number is offnet registered or not. This field will be rendered only for requests to the IncomingPhone number resource. | [optional]
2122

2223
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2324

docs/IncomingNumberResultAllOf.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**country** | **str, none_type** | Country of this phone number. | [optional]
1515
**voice_enabled** | **bool, none_type** | Indicates whether the phone number can handle Calls. Typically set to true for all numbers. | [optional]
1616
**sms_enabled** | **bool, none_type** | Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. | [optional]
17+
**offnet** | **bool, none_type** | The offnet field is a boolean representing whether the number is offnet registered or not. This field will be rendered only for requests to the IncomingPhone number resource. | [optional]
1718

1819
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1920

freeclimb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "4.0.4"
14+
__version__ = "4.0.5"
1515

1616
# import ApiClient
1717
from freeclimb.api_client import ApiClient

freeclimb/api/default_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,7 @@ def __init__(self, api_client=None, account_id=None):
18931893
'capabilities_toll_free',
18941894
'capabilities_ten_dlc',
18951895
'capabilities_short_code',
1896+
'offnet',
18961897
],
18971898
'required': [
18981899
'account_id',
@@ -1938,6 +1939,8 @@ def __init__(self, api_client=None, account_id=None):
19381939
(bool,),
19391940
'capabilities_short_code':
19401941
(bool,),
1942+
'offnet':
1943+
(bool,),
19411944
},
19421945
'attribute_map': {
19431946
'account_id': 'accountId',
@@ -1954,6 +1957,7 @@ def __init__(self, api_client=None, account_id=None):
19541957
'capabilities_toll_free': 'capabilities.tollFree',
19551958
'capabilities_ten_dlc': 'capabilities.tenDLC',
19561959
'capabilities_short_code': 'capabilities.shortCode',
1960+
'offnet': 'offnet',
19571961
},
19581962
'location_map': {
19591963
'account_id': 'path',
@@ -1970,6 +1974,7 @@ def __init__(self, api_client=None, account_id=None):
19701974
'capabilities_toll_free': 'query',
19711975
'capabilities_ten_dlc': 'query',
19721976
'capabilities_short_code': 'query',
1977+
'offnet': 'query',
19731978
},
19741979
'collection_format_map': {
19751980
}
@@ -5533,6 +5538,7 @@ def list_incoming_numbers(
55335538
capabilities_toll_free (bool): [optional]
55345539
capabilities_ten_dlc (bool): [optional]
55355540
capabilities_short_code (bool): [optional]
5541+
offnet (bool): Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource.. [optional]
55365542
_return_http_data_only (bool): response data without head status
55375543
code and headers. Default is True.
55385544
_preload_content (bool): if False, the urllib3.HTTPResponse object

freeclimb/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'OpenAPI-Generator/4.0.4/python'
80+
self.user_agent = 'OpenAPI-Generator/4.0.5/python'
8181

8282
def __enter__(self):
8383
return self

freeclimb/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def to_debug_report(self):
405405
"OS: {env}\n"\
406406
"Python Version: {pyversion}\n"\
407407
"Version of the API: 1.0.0\n"\
408-
"SDK Package Version: 4.0.4".\
408+
"SDK Package Version: 4.0.5".\
409409
format(env=sys.platform, pyversion=sys.version)
410410

411411
def get_host_settings(self):

0 commit comments

Comments
 (0)