Skip to content

Commit 89d946a

Browse files
committed
Change List Calls status variable from callStatus to status
1 parent 3592c37 commit 89d946a

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

docs/DefaultApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ Name | Type | Description | Notes
20122012

20132013
<a name="listCalls"></a>
20142014
# **listCalls**
2015-
> CallList listCalls(active, to, from, callStatus, startTime, endTime, parentCallId)
2015+
> CallList listCalls(active, to, from, status, startTime, endTime, parentCallId)
20162016
20172017
List Calls
20182018

@@ -2044,7 +2044,7 @@ public class Example {
20442044

20452045
String from = "from_example"; // String | Only show Calls from this phone number.
20462046

2047-
CallStatus callStatus = CallStatus.fromValue("queued"); // CallStatus | Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.
2047+
CallStatus status = CallStatus.fromValue("queued"); // CallStatus | Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.
20482048

20492049
String startTime = "startTime_example"; // String | Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
20502050

@@ -2053,7 +2053,7 @@ public class Example {
20532053
String parentCallId = "parentCallId_example"; // String | Only show Calls spawned by the call with this ID.
20542054

20552055
try {
2056-
CallList result = apiInstance.listCalls(active, to, from, callStatus, startTime, endTime, parentCallId);
2056+
CallList result = apiInstance.listCalls(active, to, from, status, startTime, endTime, parentCallId);
20572057
System.out.println(result);
20582058
} catch (ApiException e) {
20592059
System.err.println("Exception when calling DefaultApi#listCalls");
@@ -2073,7 +2073,7 @@ Name | Type | Description | Notes
20732073
**active** | **Boolean**| If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. | [optional] [default to false]
20742074
**to** | **String**| Only show Calls to this phone number. | [optional]
20752075
**from** | **String**| Only show Calls from this phone number. | [optional]
2076-
**callStatus** | [**CallStatus**](.md)| Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. | [optional] [enum: queued, ringing, inProgress, canceled, completed, failed, busy, noAnswer]
2076+
**status** | [**CallStatus**](.md)| Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. | [optional] [enum: queued, ringing, inProgress, canceled, completed, failed, busy, noAnswer]
20772077
**startTime** | **String**| Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. | [optional]
20782078
**endTime** | **String**| Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. | [optional]
20792079
**parentCallId** | **String**| Only show Calls spawned by the call with this ID. | [optional]

openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3031,7 +3031,7 @@
30313031
}
30323032
},
30333033
{
3034-
"name": "callStatus",
3034+
"name": "status",
30353035
"in": "query",
30363036
"description": "Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.",
30373037
"required": false,

src/main/java/com/github/freeclimbapi/DefaultApi.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3828,7 +3828,7 @@ public okhttp3.Call listCallRecordingsAsync(String callId, String dateCreated, f
38283828
* @param active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
38293829
* @param to Only show Calls to this phone number. (optional)
38303830
* @param from Only show Calls from this phone number. (optional)
3831-
* @param callStatus Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. (optional)
3831+
* @param status Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. (optional)
38323832
* @param startTime Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
38333833
* @param endTime Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
38343834
* @param parentCallId Only show Calls spawned by the call with this ID. (optional)
@@ -3841,7 +3841,7 @@ public okhttp3.Call listCallRecordingsAsync(String callId, String dateCreated, f
38413841
<tr><td> 200 </td><td> Successful retrieved call list </td><td> - </td></tr>
38423842
</table>
38433843
*/
3844-
public okhttp3.Call listCallsCall(Boolean active, String to, String from, CallStatus callStatus, String startTime, String endTime, String parentCallId, final ApiCallback _callback) throws ApiException {
3844+
public okhttp3.Call listCallsCall(Boolean active, String to, String from, CallStatus status, String startTime, String endTime, String parentCallId, final ApiCallback _callback) throws ApiException {
38453845
String basePath = null;
38463846

38473847
// Operation Servers
@@ -3880,8 +3880,8 @@ public okhttp3.Call listCallsCall(Boolean active, String to, String from, CallSt
38803880
localVarQueryParams.addAll(localVarApiClient.parameterToPair("from", from));
38813881
}
38823882

3883-
if (callStatus != null) {
3884-
localVarQueryParams.addAll(localVarApiClient.parameterToPair("callStatus", callStatus));
3883+
if (status != null) {
3884+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status));
38853885
}
38863886

38873887
if (startTime != null) {
@@ -3920,10 +3920,10 @@ public okhttp3.Call listCallsCall(Boolean active, String to, String from, CallSt
39203920
}
39213921

39223922
@SuppressWarnings("rawtypes")
3923-
private okhttp3.Call listCallsValidateBeforeCall(Boolean active, String to, String from, CallStatus callStatus, String startTime, String endTime, String parentCallId, final ApiCallback _callback) throws ApiException {
3923+
private okhttp3.Call listCallsValidateBeforeCall(Boolean active, String to, String from, CallStatus status, String startTime, String endTime, String parentCallId, final ApiCallback _callback) throws ApiException {
39243924

39253925

3926-
okhttp3.Call localVarCall = listCallsCall(active, to, from, callStatus, startTime, endTime, parentCallId, _callback);
3926+
okhttp3.Call localVarCall = listCallsCall(active, to, from, status, startTime, endTime, parentCallId, _callback);
39273927
return localVarCall;
39283928

39293929
}
@@ -3934,7 +3934,7 @@ private okhttp3.Call listCallsValidateBeforeCall(Boolean active, String to, Stri
39343934
* @param active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
39353935
* @param to Only show Calls to this phone number. (optional)
39363936
* @param from Only show Calls from this phone number. (optional)
3937-
* @param callStatus Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. (optional)
3937+
* @param status Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. (optional)
39383938
* @param startTime Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
39393939
* @param endTime Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
39403940
* @param parentCallId Only show Calls spawned by the call with this ID. (optional)
@@ -3946,8 +3946,8 @@ private okhttp3.Call listCallsValidateBeforeCall(Boolean active, String to, Stri
39463946
<tr><td> 200 </td><td> Successful retrieved call list </td><td> - </td></tr>
39473947
</table>
39483948
*/
3949-
public CallList listCalls(Boolean active, String to, String from, CallStatus callStatus, String startTime, String endTime, String parentCallId) throws ApiException {
3950-
ApiResponse<CallList> localVarResp = listCallsWithHttpInfo(active, to, from, callStatus, startTime, endTime, parentCallId);
3949+
public CallList listCalls(Boolean active, String to, String from, CallStatus status, String startTime, String endTime, String parentCallId) throws ApiException {
3950+
ApiResponse<CallList> localVarResp = listCallsWithHttpInfo(active, to, from, status, startTime, endTime, parentCallId);
39513951
return localVarResp.getData();
39523952
}
39533953

@@ -3957,7 +3957,7 @@ public CallList listCalls(Boolean active, String to, String from, CallStatus cal
39573957
* @param active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
39583958
* @param to Only show Calls to this phone number. (optional)
39593959
* @param from Only show Calls from this phone number. (optional)
3960-
* @param callStatus Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. (optional)
3960+
* @param status Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. (optional)
39613961
* @param startTime Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
39623962
* @param endTime Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
39633963
* @param parentCallId Only show Calls spawned by the call with this ID. (optional)
@@ -3969,8 +3969,8 @@ public CallList listCalls(Boolean active, String to, String from, CallStatus cal
39693969
<tr><td> 200 </td><td> Successful retrieved call list </td><td> - </td></tr>
39703970
</table>
39713971
*/
3972-
public ApiResponse<CallList> listCallsWithHttpInfo(Boolean active, String to, String from, CallStatus callStatus, String startTime, String endTime, String parentCallId) throws ApiException {
3973-
okhttp3.Call localVarCall = listCallsValidateBeforeCall(active, to, from, callStatus, startTime, endTime, parentCallId, null);
3972+
public ApiResponse<CallList> listCallsWithHttpInfo(Boolean active, String to, String from, CallStatus status, String startTime, String endTime, String parentCallId) throws ApiException {
3973+
okhttp3.Call localVarCall = listCallsValidateBeforeCall(active, to, from, status, startTime, endTime, parentCallId, null);
39743974
Type localVarReturnType = new TypeToken<CallList>(){}.getType();
39753975
return localVarApiClient.execute(localVarCall, localVarReturnType);
39763976
}
@@ -3981,7 +3981,7 @@ public ApiResponse<CallList> listCallsWithHttpInfo(Boolean active, String to, St
39813981
* @param active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
39823982
* @param to Only show Calls to this phone number. (optional)
39833983
* @param from Only show Calls from this phone number. (optional)
3984-
* @param callStatus Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. (optional)
3984+
* @param status Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;. (optional)
39853985
* @param startTime Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
39863986
* @param endTime Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
39873987
* @param parentCallId Only show Calls spawned by the call with this ID. (optional)
@@ -3994,9 +3994,9 @@ public ApiResponse<CallList> listCallsWithHttpInfo(Boolean active, String to, St
39943994
<tr><td> 200 </td><td> Successful retrieved call list </td><td> - </td></tr>
39953995
</table>
39963996
*/
3997-
public okhttp3.Call listCallsAsync(Boolean active, String to, String from, CallStatus callStatus, String startTime, String endTime, String parentCallId, final ApiCallback<CallList> _callback) throws ApiException {
3997+
public okhttp3.Call listCallsAsync(Boolean active, String to, String from, CallStatus status, String startTime, String endTime, String parentCallId, final ApiCallback<CallList> _callback) throws ApiException {
39983998

3999-
okhttp3.Call localVarCall = listCallsValidateBeforeCall(active, to, from, callStatus, startTime, endTime, parentCallId, _callback);
3999+
okhttp3.Call localVarCall = listCallsValidateBeforeCall(active, to, from, status, startTime, endTime, parentCallId, _callback);
40004000
Type localVarReturnType = new TypeToken<CallList>(){}.getType();
40014001
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
40024002
return localVarCall;

src/test/java/com/github/freeclimbapi/DefaultApiTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,15 +748,15 @@ public void listCallsTest() throws ApiException {
748748

749749
String from = fromStringTestValue();
750750

751-
CallStatus callStatus = callStatusCallStatusTestValue();
751+
CallStatus status = statusCallStatusTestValue();
752752

753753
String startTime = startTimeStringTestValue();
754754

755755
String endTime = endTimeStringTestValue();
756756

757757
String parentCallId = parentCallIdStringTestValue();
758758

759-
CallList response = apiInstance.listCalls(active, to, from, callStatus, startTime, endTime, parentCallId);
759+
CallList response = apiInstance.listCalls(active, to, from, status, startTime, endTime, parentCallId);
760760
// TODO: test validations
761761
assertEquals(response.getClass(), CallList.class);
762762

@@ -1459,7 +1459,7 @@ private MessageDirection directionMessageDirectionTestValue() {
14591459
return direction;
14601460
}
14611461

1462-
private CallStatus callStatusCallStatusTestValue() {
1462+
private CallStatus statusCallStatusTestValue() {
14631463
CallStatus status = CallStatus.QUEUED;
14641464
return status;
14651465
}

0 commit comments

Comments
 (0)