From 09845b5dd97024b693de5e7a8a1dd73754c71f42 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 27 Oct 2025 15:53:55 -0400 Subject: [PATCH] SWI-8319 Deprecate TN Lookup V1 --- api/openapi.yaml | 2 ++ bandwidth.yml | 2 ++ .../sdk/api/PhoneNumberLookupApi.java | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/api/openapi.yaml b/api/openapi.yaml index a85e5348..70da3894 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -4694,6 +4694,7 @@ paths: url: https://mfa.bandwidth.com/api/v1 /accounts/{accountId}/tnlookup: post: + deprecated: true description: Create a Phone Number Lookup Request. operationId: createLookup parameters: @@ -4799,6 +4800,7 @@ paths: url: https://numbers.bandwidth.com/api/v1 /accounts/{accountId}/tnlookup/{requestId}: get: + deprecated: true description: Get an existing Phone Number Lookup Request. operationId: getLookupStatus parameters: diff --git a/bandwidth.yml b/bandwidth.yml index 3cc990a7..bf2c9ab0 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -1330,6 +1330,7 @@ paths: servers: *ref_2 /accounts/{accountId}/tnlookup: post: + deprecated: true summary: Create Lookup description: Create a Phone Number Lookup Request. operationId: createLookup @@ -1359,6 +1360,7 @@ paths: description: Production /accounts/{accountId}/tnlookup/{requestId}: get: + deprecated: true summary: Get Lookup Request Status description: Get an existing Phone Number Lookup Request. operationId: getLookupStatus diff --git a/src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java b/src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java index 11ff5ab2..397e6408 100644 --- a/src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java +++ b/src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java @@ -94,7 +94,9 @@ public void setCustomBaseUrl(String customBaseUrl) { 429 Too Many Requests - 500 Internal Server Error - + * @deprecated */ + @Deprecated public okhttp3.Call createLookupCall(String accountId, LookupRequest lookupRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -141,6 +143,7 @@ public okhttp3.Call createLookupCall(String accountId, LookupRequest lookupReque return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call createLookupValidateBeforeCall(String accountId, LookupRequest lookupRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set @@ -176,7 +179,9 @@ private okhttp3.Call createLookupValidateBeforeCall(String accountId, LookupRequ 429 Too Many Requests - 500 Internal Server Error - + * @deprecated */ + @Deprecated public CreateLookupResponse createLookup(String accountId, LookupRequest lookupRequest) throws ApiException { ApiResponse localVarResp = createLookupWithHttpInfo(accountId, lookupRequest); return localVarResp.getData(); @@ -201,7 +206,9 @@ public CreateLookupResponse createLookup(String accountId, LookupRequest lookupR 429 Too Many Requests - 500 Internal Server Error - + * @deprecated */ + @Deprecated public ApiResponse createLookupWithHttpInfo(String accountId, LookupRequest lookupRequest) throws ApiException { okhttp3.Call localVarCall = createLookupValidateBeforeCall(accountId, lookupRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -228,7 +235,9 @@ public ApiResponse createLookupWithHttpInfo(String account 429 Too Many Requests - 500 Internal Server Error - + * @deprecated */ + @Deprecated public okhttp3.Call createLookupAsync(String accountId, LookupRequest lookupRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createLookupValidateBeforeCall(accountId, lookupRequest, _callback); @@ -255,7 +264,9 @@ public okhttp3.Call createLookupAsync(String accountId, LookupRequest lookupRequ 429 Too Many Requests - 500 Internal Server Error - + * @deprecated */ + @Deprecated public okhttp3.Call getLookupStatusCall(String accountId, String requestId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -302,6 +313,7 @@ public okhttp3.Call getLookupStatusCall(String accountId, String requestId, fina return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getLookupStatusValidateBeforeCall(String accountId, String requestId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set @@ -337,7 +349,9 @@ private okhttp3.Call getLookupStatusValidateBeforeCall(String accountId, String 429 Too Many Requests - 500 Internal Server Error - + * @deprecated */ + @Deprecated public LookupStatus getLookupStatus(String accountId, String requestId) throws ApiException { ApiResponse localVarResp = getLookupStatusWithHttpInfo(accountId, requestId); return localVarResp.getData(); @@ -362,7 +376,9 @@ public LookupStatus getLookupStatus(String accountId, String requestId) throws A 429 Too Many Requests - 500 Internal Server Error - + * @deprecated */ + @Deprecated public ApiResponse getLookupStatusWithHttpInfo(String accountId, String requestId) throws ApiException { okhttp3.Call localVarCall = getLookupStatusValidateBeforeCall(accountId, requestId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -389,7 +405,9 @@ public ApiResponse getLookupStatusWithHttpInfo(String accountId, S 429 Too Many Requests - 500 Internal Server Error - + * @deprecated */ + @Deprecated public okhttp3.Call getLookupStatusAsync(String accountId, String requestId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLookupStatusValidateBeforeCall(accountId, requestId, _callback);