Skip to content

Commit 4f9a899

Browse files
authored
Merge pull request #24 from FreeClimbAPI/VCSWP-18112
Add offnet compatibility
2 parents fdd4706 + e355e62 commit 4f9a899

14 files changed

+82
-53
lines changed

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):

freeclimb/model/incoming_number_result.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def openapi_types():
107107
'country': (str, none_type,), # noqa: E501
108108
'voice_enabled': (bool, none_type,), # noqa: E501
109109
'sms_enabled': (bool, none_type,), # noqa: E501
110+
'offnet': (bool, none_type,), # noqa: E501
110111
}
111112

112113
@cached_property
@@ -130,6 +131,7 @@ def discriminator():
130131
'country': 'country', # noqa: E501
131132
'voice_enabled': 'voiceEnabled', # noqa: E501
132133
'sms_enabled': 'smsEnabled', # noqa: E501
134+
'offnet': 'offnet', # noqa: E501
133135
}
134136

135137
read_only_vars = {
@@ -186,6 +188,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
186188
country (str, none_type): Country of this phone number.. [optional] # noqa: E501
187189
voice_enabled (bool, none_type): Indicates whether the phone number can handle Calls. Typically set to true for all numbers.. [optional] # noqa: E501
188190
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] # noqa: E501
191+
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] # noqa: E501
189192
"""
190193

191194
_check_type = kwargs.pop('_check_type', True)
@@ -300,6 +303,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
300303
country (str, none_type): Country of this phone number.. [optional] # noqa: E501
301304
voice_enabled (bool, none_type): Indicates whether the phone number can handle Calls. Typically set to true for all numbers.. [optional] # noqa: E501
302305
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] # noqa: E501
306+
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] # noqa: E501
303307
"""
304308

305309
_check_type = kwargs.pop('_check_type', True)

freeclimb/model/incoming_number_result_all_of.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def openapi_types():
100100
'country': (str, none_type,), # noqa: E501
101101
'voice_enabled': (bool, none_type,), # noqa: E501
102102
'sms_enabled': (bool, none_type,), # noqa: E501
103+
'offnet': (bool, none_type,), # noqa: E501
103104
}
104105

105106
@cached_property
@@ -119,6 +120,7 @@ def discriminator():
119120
'country': 'country', # noqa: E501
120121
'voice_enabled': 'voiceEnabled', # noqa: E501
121122
'sms_enabled': 'smsEnabled', # noqa: E501
123+
'offnet': 'offnet', # noqa: E501
122124
}
123125

124126
read_only_vars = {
@@ -173,6 +175,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
173175
country (str, none_type): Country of this phone number.. [optional] # noqa: E501
174176
voice_enabled (bool, none_type): Indicates whether the phone number can handle Calls. Typically set to true for all numbers.. [optional] # noqa: E501
175177
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] # noqa: E501
178+
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] # noqa: E501
176179
"""
177180

178181
_check_type = kwargs.pop('_check_type', True)
@@ -265,6 +268,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
265268
country (str, none_type): Country of this phone number.. [optional] # noqa: E501
266269
voice_enabled (bool, none_type): Indicates whether the phone number can handle Calls. Typically set to true for all numbers.. [optional] # noqa: E501
267270
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] # noqa: E501
271+
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] # noqa: E501
268272
"""
269273

270274
_check_type = kwargs.pop('_check_type', True)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import setup, find_packages # noqa: H301
1313

1414
NAME = "FreeClimb"
15-
VERSION = "4.0.4"
15+
VERSION = "4.0.5"
1616
# To install the library, run the following
1717
#
1818
# python setup.py install

test/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def build_query_param(param):
5555
return 'empty'
5656
if param == 'direction':
5757
return 'inbound'
58+
if param == 'offnet':
59+
return True
5860
return 'TEST_' + param.upper()
5961

6062
@staticmethod

0 commit comments

Comments
 (0)