Skip to content

Commit 3592c37

Browse files
committed
Edits made to fix callStatus bug in java sdk
1 parent 344c031 commit 3592c37

File tree

16 files changed

+71
-66
lines changed

16 files changed

+71
-66
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,3 +286,4 @@ src/main/java/com/github/freeclimbapi/auth/ApiKeyAuth.java
286286
src/main/java/com/github/freeclimbapi/auth/Authentication.java
287287
src/main/java/com/github/freeclimbapi/auth/HttpBasicAuth.java
288288
src/main/java/com/github/freeclimbapi/auth/HttpBearerAuth.java
289+
src/test/java/com/github/freeclimbapi/DefaultApiTest.java

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.github.freeclimbapi</groupId>
4242
<artifactId>freeclimb-java-client</artifactId>
43-
<version>5.1.2</version>
43+
<version>5.1.3</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.github.freeclimbapi:freeclimb-java-client:5.1.2"
59+
implementation "com.github.freeclimbapi:freeclimb-java-client:5.1.3"
6060
}
6161
```
6262

@@ -70,7 +70,7 @@ mvn clean package
7070

7171
Then manually install the following JARs:
7272

73-
* `target/freeclimb-java-client-5.1.2.jar`
73+
* `target/freeclimb-java-client-5.1.3.jar`
7474
* `target/lib/*.jar`
7575

7676
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.github.freeclimbapi'
7-
version = '5.1.2'
7+
version = '5.1.3'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.github.freeclimbapi",
44
name := "freeclimb-java-client",
5-
version := "5.1.2",
5+
version := "5.1.3",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CallResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
1717
**from** | **String** | Phone number that initiated this Call. | [optional]
1818
**to** | **String** | Phone number that received this Call. | [optional]
1919
**phoneNumberId** | **String** | If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI). | [optional]
20-
**status** | **CallStatus** | | [optional]
20+
**callStatus** | **CallStatus** | | [optional]
2121
**startTime** | **String** | Start time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional]
2222
**connectTime** | **String** | Time the Call was answered (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional]
2323
**endTime** | **String** | End time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call did not complete successfully. | [optional]

docs/CallResultAllOf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
1313
**from** | **String** | Phone number that initiated this Call. | [optional]
1414
**to** | **String** | Phone number that received this Call. | [optional]
1515
**phoneNumberId** | **String** | If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI). | [optional]
16-
**status** | **CallStatus** | | [optional]
16+
**callStatus** | **CallStatus** | | [optional]
1717
**startTime** | **String** | Start time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional]
1818
**connectTime** | **String** | Time the Call was answered (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional]
1919
**endTime** | **String** | End time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call did not complete successfully. | [optional]

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, status, startTime, endTime, parentCallId)
2015+
> CallList listCalls(active, to, from, callStatus, 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 status = CallStatus.fromValue("queued"); // CallStatus | Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.
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`.
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, status, startTime, endTime, parentCallId);
2056+
CallList result = apiInstance.listCalls(active, to, from, callStatus, 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-
**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]
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]
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@
16471647
"description": "If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI).",
16481648
"nullable": true
16491649
},
1650-
"status": {
1650+
"callStatus": {
16511651
"$ref": "#/components/schemas/CallStatus",
16521652
"nullable": true
16531653
},
@@ -1835,7 +1835,7 @@
18351835
},
18361836
"level": {
18371837
"$ref": "#/components/schemas/LogLevel",
1838-
1838+
18391839
"nullable": true
18401840
},
18411841
"requestId": {
@@ -3031,7 +3031,7 @@
30313031
}
30323032
},
30333033
{
3034-
"name": "status",
3034+
"name": "callStatus",
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,

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>freeclimb-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>freeclimb-java-client</name>
8-
<version>5.1.2</version>
8+
<version>5.1.3</version>
99
<url>https://github.com/freeclimbapi/java-sdk</url>
1010
<description>FreeClimb Java Client</description>
1111
<scm>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private void init() {
131131
json = new JSON();
132132

133133
// Set default User-Agent.
134-
setUserAgent("OpenAPI-Generator/5.1.2/java");
134+
setUserAgent("OpenAPI-Generator/5.1.3/java");
135135

136136
authentications = new HashMap<String, Authentication>();
137137
}

0 commit comments

Comments
 (0)