Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public void setCustomBaseUrl(String customBaseUrl) {
<tr><td> 429 </td><td> Too Many Requests </td><td> - </td></tr>
<tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
</table>
* @deprecated
*/
@Deprecated
public okhttp3.Call createLookupCall(String accountId, LookupRequest lookupRequest, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -176,7 +179,9 @@ private okhttp3.Call createLookupValidateBeforeCall(String accountId, LookupRequ
<tr><td> 429 </td><td> Too Many Requests </td><td> - </td></tr>
<tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
</table>
* @deprecated
*/
@Deprecated
public CreateLookupResponse createLookup(String accountId, LookupRequest lookupRequest) throws ApiException {
ApiResponse<CreateLookupResponse> localVarResp = createLookupWithHttpInfo(accountId, lookupRequest);
return localVarResp.getData();
Expand All @@ -201,7 +206,9 @@ public CreateLookupResponse createLookup(String accountId, LookupRequest lookupR
<tr><td> 429 </td><td> Too Many Requests </td><td> - </td></tr>
<tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
</table>
* @deprecated
*/
@Deprecated
public ApiResponse<CreateLookupResponse> createLookupWithHttpInfo(String accountId, LookupRequest lookupRequest) throws ApiException {
okhttp3.Call localVarCall = createLookupValidateBeforeCall(accountId, lookupRequest, null);
Type localVarReturnType = new TypeToken<CreateLookupResponse>(){}.getType();
Expand All @@ -228,7 +235,9 @@ public ApiResponse<CreateLookupResponse> createLookupWithHttpInfo(String account
<tr><td> 429 </td><td> Too Many Requests </td><td> - </td></tr>
<tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
</table>
* @deprecated
*/
@Deprecated
public okhttp3.Call createLookupAsync(String accountId, LookupRequest lookupRequest, final ApiCallback<CreateLookupResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = createLookupValidateBeforeCall(accountId, lookupRequest, _callback);
Expand All @@ -255,7 +264,9 @@ public okhttp3.Call createLookupAsync(String accountId, LookupRequest lookupRequ
<tr><td> 429 </td><td> Too Many Requests </td><td> - </td></tr>
<tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
</table>
* @deprecated
*/
@Deprecated
public okhttp3.Call getLookupStatusCall(String accountId, String requestId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -337,7 +349,9 @@ private okhttp3.Call getLookupStatusValidateBeforeCall(String accountId, String
<tr><td> 429 </td><td> Too Many Requests </td><td> - </td></tr>
<tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
</table>
* @deprecated
*/
@Deprecated
public LookupStatus getLookupStatus(String accountId, String requestId) throws ApiException {
ApiResponse<LookupStatus> localVarResp = getLookupStatusWithHttpInfo(accountId, requestId);
return localVarResp.getData();
Expand All @@ -362,7 +376,9 @@ public LookupStatus getLookupStatus(String accountId, String requestId) throws A
<tr><td> 429 </td><td> Too Many Requests </td><td> - </td></tr>
<tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
</table>
* @deprecated
*/
@Deprecated
public ApiResponse<LookupStatus> getLookupStatusWithHttpInfo(String accountId, String requestId) throws ApiException {
okhttp3.Call localVarCall = getLookupStatusValidateBeforeCall(accountId, requestId, null);
Type localVarReturnType = new TypeToken<LookupStatus>(){}.getType();
Expand All @@ -389,7 +405,9 @@ public ApiResponse<LookupStatus> getLookupStatusWithHttpInfo(String accountId, S
<tr><td> 429 </td><td> Too Many Requests </td><td> - </td></tr>
<tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
</table>
* @deprecated
*/
@Deprecated
public okhttp3.Call getLookupStatusAsync(String accountId, String requestId, final ApiCallback<LookupStatus> _callback) throws ApiException {

okhttp3.Call localVarCall = getLookupStatusValidateBeforeCall(accountId, requestId, _callback);
Expand Down