Skip to content

Commit 6f76b72

Browse files
authored
SWI-8919 Switch to TN Lookup V2 (#270)
* generate with tn lookup v2 * remove old tests * api unit test file * unit tests for models * update enum tests * api unit tests * update to newest generator version * add git info * 7.17 is newest * add smoke test * update unit test * remove print * update test * remove oauth
1 parent 24b1c27 commit 6f76b72

File tree

127 files changed

+4585
-1519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+4585
-1519
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ stages:
1414
- pip install -r test-requirements.txt
1515
- pytest --cov=bandwidth
1616

17-
pytest-3.8:
18-
extends: .pytest
19-
image: python:3.8-alpine
2017
pytest-3.9:
2118
extends: .pytest
2219
image: python:3.9-alpine
@@ -29,3 +26,6 @@ pytest-3.11:
2926
pytest-3.12:
3027
extends: .pytest
3128
image: python:3.12-alpine
29+
pytest-3.13:
30+
extends: .pytest
31+
image: python:3.13-alpine

.openapi-generator/FILES

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ bandwidth/models/account_statistics.py
2323
bandwidth/models/additional_denial_reason.py
2424
bandwidth/models/address.py
2525
bandwidth/models/answer_callback.py
26+
bandwidth/models/async_lookup_request.py
2627
bandwidth/models/blocked_webhook.py
2728
bandwidth/models/bridge_complete_callback.py
2829
bandwidth/models/bridge_target_complete_callback.py
@@ -41,6 +42,7 @@ bandwidth/models/callback.py
4142
bandwidth/models/callback_method_enum.py
4243
bandwidth/models/card_width_enum.py
4344
bandwidth/models/code_request.py
45+
bandwidth/models/completed_lookup_status_enum.py
4446
bandwidth/models/conference.py
4547
bandwidth/models/conference_completed_callback.py
4648
bandwidth/models/conference_created_callback.py
@@ -52,11 +54,15 @@ bandwidth/models/conference_recording_metadata.py
5254
bandwidth/models/conference_redirect_callback.py
5355
bandwidth/models/conference_state_enum.py
5456
bandwidth/models/contact.py
57+
bandwidth/models/create_async_bulk_lookup_response.py
58+
bandwidth/models/create_async_bulk_lookup_response_data.py
5559
bandwidth/models/create_call.py
5660
bandwidth/models/create_call_response.py
57-
bandwidth/models/create_lookup_response.py
5861
bandwidth/models/create_message_request_error.py
5962
bandwidth/models/create_multi_channel_message_response.py
63+
bandwidth/models/create_sync_lookup_response.py
64+
bandwidth/models/create_sync_lookup_response_data.py
65+
bandwidth/models/deactivation_event_enum.py
6066
bandwidth/models/disconnect_callback.py
6167
bandwidth/models/diversion.py
6268
bandwidth/models/dtmf_callback.py
@@ -67,18 +73,24 @@ bandwidth/models/failure_webhook.py
6773
bandwidth/models/field_error.py
6874
bandwidth/models/file_format_enum.py
6975
bandwidth/models/gather_callback.py
76+
bandwidth/models/get_async_bulk_lookup_response.py
77+
bandwidth/models/get_async_bulk_lookup_response_data.py
78+
bandwidth/models/in_progress_lookup_status_enum.py
7079
bandwidth/models/inbound_callback.py
7180
bandwidth/models/inbound_callback_message.py
7281
bandwidth/models/inbound_callback_type_enum.py
7382
bandwidth/models/initiate_callback.py
83+
bandwidth/models/latest_message_delivery_status_enum.py
84+
bandwidth/models/line_type_enum.py
7485
bandwidth/models/link.py
86+
bandwidth/models/link_schema.py
7587
bandwidth/models/links_object.py
7688
bandwidth/models/list_message_direction_enum.py
7789
bandwidth/models/list_message_item.py
78-
bandwidth/models/lookup_request.py
90+
bandwidth/models/lookup_error_response.py
91+
bandwidth/models/lookup_error_schema.py
92+
bandwidth/models/lookup_error_schema_meta.py
7993
bandwidth/models/lookup_result.py
80-
bandwidth/models/lookup_status.py
81-
bandwidth/models/lookup_status_enum.py
8294
bandwidth/models/machine_detection_complete_callback.py
8395
bandwidth/models/machine_detection_configuration.py
8496
bandwidth/models/machine_detection_mode_enum.py
@@ -140,6 +152,7 @@ bandwidth/models/status_callback.py
140152
bandwidth/models/status_callback_message.py
141153
bandwidth/models/status_callback_type_enum.py
142154
bandwidth/models/stir_shaken.py
155+
bandwidth/models/sync_lookup_request.py
143156
bandwidth/models/telephone_number.py
144157
bandwidth/models/tfv_basic_authentication.py
145158
bandwidth/models/tfv_callback_status_enum.py
@@ -149,7 +162,6 @@ bandwidth/models/tfv_status_enum.py
149162
bandwidth/models/tfv_submission_info.py
150163
bandwidth/models/tfv_submission_wrapper.py
151164
bandwidth/models/thumbnail_alignment_enum.py
152-
bandwidth/models/tn_lookup_request_error.py
153165
bandwidth/models/transcribe_recording.py
154166
bandwidth/models/transcription.py
155167
bandwidth/models/transcription_available_callback.py
@@ -179,6 +191,7 @@ docs/AccountStatistics.md
179191
docs/AdditionalDenialReason.md
180192
docs/Address.md
181193
docs/AnswerCallback.md
194+
docs/AsyncLookupRequest.md
182195
docs/BlockedWebhook.md
183196
docs/BridgeCompleteCallback.md
184197
docs/BridgeTargetCompleteCallback.md
@@ -198,6 +211,7 @@ docs/CallbackMethodEnum.md
198211
docs/CallsApi.md
199212
docs/CardWidthEnum.md
200213
docs/CodeRequest.md
214+
docs/CompletedLookupStatusEnum.md
201215
docs/Conference.md
202216
docs/ConferenceCompletedCallback.md
203217
docs/ConferenceCreatedCallback.md
@@ -210,11 +224,15 @@ docs/ConferenceRedirectCallback.md
210224
docs/ConferenceStateEnum.md
211225
docs/ConferencesApi.md
212226
docs/Contact.md
227+
docs/CreateAsyncBulkLookupResponse.md
228+
docs/CreateAsyncBulkLookupResponseData.md
213229
docs/CreateCall.md
214230
docs/CreateCallResponse.md
215-
docs/CreateLookupResponse.md
216231
docs/CreateMessageRequestError.md
217232
docs/CreateMultiChannelMessageResponse.md
233+
docs/CreateSyncLookupResponse.md
234+
docs/CreateSyncLookupResponseData.md
235+
docs/DeactivationEventEnum.md
218236
docs/DisconnectCallback.md
219237
docs/Diversion.md
220238
docs/DtmfCallback.md
@@ -225,18 +243,24 @@ docs/FailureWebhook.md
225243
docs/FieldError.md
226244
docs/FileFormatEnum.md
227245
docs/GatherCallback.md
246+
docs/GetAsyncBulkLookupResponse.md
247+
docs/GetAsyncBulkLookupResponseData.md
248+
docs/InProgressLookupStatusEnum.md
228249
docs/InboundCallback.md
229250
docs/InboundCallbackMessage.md
230251
docs/InboundCallbackTypeEnum.md
231252
docs/InitiateCallback.md
253+
docs/LatestMessageDeliveryStatusEnum.md
254+
docs/LineTypeEnum.md
232255
docs/Link.md
256+
docs/LinkSchema.md
233257
docs/LinksObject.md
234258
docs/ListMessageDirectionEnum.md
235259
docs/ListMessageItem.md
236-
docs/LookupRequest.md
260+
docs/LookupErrorResponse.md
261+
docs/LookupErrorSchema.md
262+
docs/LookupErrorSchemaMeta.md
237263
docs/LookupResult.md
238-
docs/LookupStatus.md
239-
docs/LookupStatusEnum.md
240264
docs/MFAApi.md
241265
docs/MachineDetectionCompleteCallback.md
242266
docs/MachineDetectionConfiguration.md
@@ -305,6 +329,7 @@ docs/StatusCallback.md
305329
docs/StatusCallbackMessage.md
306330
docs/StatusCallbackTypeEnum.md
307331
docs/StirShaken.md
332+
docs/SyncLookupRequest.md
308333
docs/TelephoneNumber.md
309334
docs/TfvBasicAuthentication.md
310335
docs/TfvCallbackStatusEnum.md
@@ -314,7 +339,6 @@ docs/TfvStatusEnum.md
314339
docs/TfvSubmissionInfo.md
315340
docs/TfvSubmissionWrapper.md
316341
docs/ThumbnailAlignmentEnum.md
317-
docs/TnLookupRequestError.md
318342
docs/TollFreeVerificationApi.md
319343
docs/TranscribeRecording.md
320344
docs/Transcription.md

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.11.0
1+
7.17.0

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "3.8"
54
- "3.9"
65
- "3.10"
76
- "3.11"
87
- "3.12"
8+
- "3.13"
99
# uncomment the following if needed
10-
#- "3.12-dev" # 3.12 development branch
10+
#- "3.13-dev" # 3.13 development branch
1111
#- "nightly" # nightly build
1212
# command to install dependencies
1313
install:

README.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
55

66
- API version: 1.0.0
77
- Package version: 1.0.0
8-
- Generator version: 7.11.0
8+
- Generator version: 7.17.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010
For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com)
1111

1212
## Requirements.
1313

14-
Python 3.8+
14+
Python 3.9+
1515

1616
## Installation & Usage
1717
### pip install
1818

1919
If the python package is hosted on a repository, you can install directly using:
2020

2121
```sh
22-
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
22+
pip install git+https://github.com/bandwidth/python-sdk.git
2323
```
24-
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
24+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/bandwidth/python-sdk.git`)
2525

2626
Then import the package:
2727
```python
@@ -121,8 +121,9 @@ Class | Method | HTTP request | Description
121121
*MessagesApi* | [**create_message**](docs/MessagesApi.md#create_message) | **POST** /users/{accountId}/messages | Create Message
122122
*MessagesApi* | [**list_messages**](docs/MessagesApi.md#list_messages) | **GET** /users/{accountId}/messages | List Messages
123123
*MultiChannelApi* | [**create_multi_channel_message**](docs/MultiChannelApi.md#create_multi_channel_message) | **POST** /users/{accountId}/messages/multiChannel | Create Multi-Channel Message
124-
*PhoneNumberLookupApi* | [**create_lookup**](docs/PhoneNumberLookupApi.md#create_lookup) | **POST** /accounts/{accountId}/tnlookup | Create Lookup
125-
*PhoneNumberLookupApi* | [**get_lookup_status**](docs/PhoneNumberLookupApi.md#get_lookup_status) | **GET** /accounts/{accountId}/tnlookup/{requestId} | Get Lookup Request Status
124+
*PhoneNumberLookupApi* | [**create_async_bulk_lookup**](docs/PhoneNumberLookupApi.md#create_async_bulk_lookup) | **POST** /accounts/{accountId}/phoneNumberLookup/bulk | Create Asynchronous Bulk Number Lookup
125+
*PhoneNumberLookupApi* | [**create_sync_lookup**](docs/PhoneNumberLookupApi.md#create_sync_lookup) | **POST** /accounts/{accountId}/phoneNumberLookup | Create Synchronous Number Lookup
126+
*PhoneNumberLookupApi* | [**get_async_bulk_lookup**](docs/PhoneNumberLookupApi.md#get_async_bulk_lookup) | **GET** /accounts/{accountId}/phoneNumberLookup/bulk/{requestId} | Get Asynchronous Bulk Number Lookup
126127
*RecordingsApi* | [**delete_recording**](docs/RecordingsApi.md#delete_recording) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Delete Recording
127128
*RecordingsApi* | [**delete_recording_media**](docs/RecordingsApi.md#delete_recording_media) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Delete Recording Media
128129
*RecordingsApi* | [**delete_recording_transcription**](docs/RecordingsApi.md#delete_recording_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription
@@ -154,6 +155,7 @@ Class | Method | HTTP request | Description
154155
- [AdditionalDenialReason](docs/AdditionalDenialReason.md)
155156
- [Address](docs/Address.md)
156157
- [AnswerCallback](docs/AnswerCallback.md)
158+
- [AsyncLookupRequest](docs/AsyncLookupRequest.md)
157159
- [BlockedWebhook](docs/BlockedWebhook.md)
158160
- [BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
159161
- [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
@@ -172,6 +174,7 @@ Class | Method | HTTP request | Description
172174
- [CallbackMethodEnum](docs/CallbackMethodEnum.md)
173175
- [CardWidthEnum](docs/CardWidthEnum.md)
174176
- [CodeRequest](docs/CodeRequest.md)
177+
- [CompletedLookupStatusEnum](docs/CompletedLookupStatusEnum.md)
175178
- [Conference](docs/Conference.md)
176179
- [ConferenceCompletedCallback](docs/ConferenceCompletedCallback.md)
177180
- [ConferenceCreatedCallback](docs/ConferenceCreatedCallback.md)
@@ -183,11 +186,15 @@ Class | Method | HTTP request | Description
183186
- [ConferenceRedirectCallback](docs/ConferenceRedirectCallback.md)
184187
- [ConferenceStateEnum](docs/ConferenceStateEnum.md)
185188
- [Contact](docs/Contact.md)
189+
- [CreateAsyncBulkLookupResponse](docs/CreateAsyncBulkLookupResponse.md)
190+
- [CreateAsyncBulkLookupResponseData](docs/CreateAsyncBulkLookupResponseData.md)
186191
- [CreateCall](docs/CreateCall.md)
187192
- [CreateCallResponse](docs/CreateCallResponse.md)
188-
- [CreateLookupResponse](docs/CreateLookupResponse.md)
189193
- [CreateMessageRequestError](docs/CreateMessageRequestError.md)
190194
- [CreateMultiChannelMessageResponse](docs/CreateMultiChannelMessageResponse.md)
195+
- [CreateSyncLookupResponse](docs/CreateSyncLookupResponse.md)
196+
- [CreateSyncLookupResponseData](docs/CreateSyncLookupResponseData.md)
197+
- [DeactivationEventEnum](docs/DeactivationEventEnum.md)
191198
- [DisconnectCallback](docs/DisconnectCallback.md)
192199
- [Diversion](docs/Diversion.md)
193200
- [DtmfCallback](docs/DtmfCallback.md)
@@ -198,18 +205,24 @@ Class | Method | HTTP request | Description
198205
- [FieldError](docs/FieldError.md)
199206
- [FileFormatEnum](docs/FileFormatEnum.md)
200207
- [GatherCallback](docs/GatherCallback.md)
208+
- [GetAsyncBulkLookupResponse](docs/GetAsyncBulkLookupResponse.md)
209+
- [GetAsyncBulkLookupResponseData](docs/GetAsyncBulkLookupResponseData.md)
210+
- [InProgressLookupStatusEnum](docs/InProgressLookupStatusEnum.md)
201211
- [InboundCallback](docs/InboundCallback.md)
202212
- [InboundCallbackMessage](docs/InboundCallbackMessage.md)
203213
- [InboundCallbackTypeEnum](docs/InboundCallbackTypeEnum.md)
204214
- [InitiateCallback](docs/InitiateCallback.md)
215+
- [LatestMessageDeliveryStatusEnum](docs/LatestMessageDeliveryStatusEnum.md)
216+
- [LineTypeEnum](docs/LineTypeEnum.md)
205217
- [Link](docs/Link.md)
218+
- [LinkSchema](docs/LinkSchema.md)
206219
- [LinksObject](docs/LinksObject.md)
207220
- [ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md)
208221
- [ListMessageItem](docs/ListMessageItem.md)
209-
- [LookupRequest](docs/LookupRequest.md)
222+
- [LookupErrorResponse](docs/LookupErrorResponse.md)
223+
- [LookupErrorSchema](docs/LookupErrorSchema.md)
224+
- [LookupErrorSchemaMeta](docs/LookupErrorSchemaMeta.md)
210225
- [LookupResult](docs/LookupResult.md)
211-
- [LookupStatus](docs/LookupStatus.md)
212-
- [LookupStatusEnum](docs/LookupStatusEnum.md)
213226
- [MachineDetectionCompleteCallback](docs/MachineDetectionCompleteCallback.md)
214227
- [MachineDetectionConfiguration](docs/MachineDetectionConfiguration.md)
215228
- [MachineDetectionModeEnum](docs/MachineDetectionModeEnum.md)
@@ -271,6 +284,7 @@ Class | Method | HTTP request | Description
271284
- [StatusCallbackMessage](docs/StatusCallbackMessage.md)
272285
- [StatusCallbackTypeEnum](docs/StatusCallbackTypeEnum.md)
273286
- [StirShaken](docs/StirShaken.md)
287+
- [SyncLookupRequest](docs/SyncLookupRequest.md)
274288
- [TelephoneNumber](docs/TelephoneNumber.md)
275289
- [TfvBasicAuthentication](docs/TfvBasicAuthentication.md)
276290
- [TfvCallbackStatusEnum](docs/TfvCallbackStatusEnum.md)
@@ -280,7 +294,6 @@ Class | Method | HTTP request | Description
280294
- [TfvSubmissionInfo](docs/TfvSubmissionInfo.md)
281295
- [TfvSubmissionWrapper](docs/TfvSubmissionWrapper.md)
282296
- [ThumbnailAlignmentEnum](docs/ThumbnailAlignmentEnum.md)
283-
- [TnLookupRequestError](docs/TnLookupRequestError.md)
284297
- [TranscribeRecording](docs/TranscribeRecording.md)
285298
- [Transcription](docs/Transcription.md)
286299
- [TranscriptionAvailableCallback](docs/TranscriptionAvailableCallback.md)

0 commit comments

Comments
 (0)