Skip to content

Commit 344c031

Browse files
authored
Merge pull request #30 from FreeClimbAPI/VCSWP-18905
Update OutDial model
2 parents fc3529a + 8597c4d commit 344c031

File tree

13 files changed

+52
-40
lines changed

13 files changed

+52
-40
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
None
1111

12+
<a name="5.1.2"></a>
13+
14+
## [5.1.2] 2023-02-21
15+
16+
### Changed
17+
18+
- OutDial PerCL command callingNumber and destination types fixed
19+
1220
<a name="5.1.1"></a>
1321

1422
## [5.1.1] 2023-02-14

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.1</version>
43+
<version>5.1.2</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.1"
59+
implementation "com.github.freeclimbapi:freeclimb-java-client:5.1.2"
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.1.jar`
73+
* `target/freeclimb-java-client-5.1.2.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.1'
7+
version = '5.1.2'
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.1",
5+
version := "5.1.2",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/OutDial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**actionUrl** | **String** | URL to which FreeClimb sends an HTTP POST request. |
1212
**callConnectUrl** | **String** | URL to which FreeClimb makes an HTTP POST request informing the result of the OutDial. |
13-
**callingNumber** | **BigDecimal** | he caller ID to show to the called party when FreeClimb calls. This can be one of the following: The To or From number provided in the first Webhook to your webserver. Any phone number you have purchased from FreeClimb. |
14-
**destination** | **BigDecimal** | E.164 representation of the phone number to Call. |
13+
**callingNumber** | **String** | he caller ID to show to the called party when FreeClimb calls. This can be one of the following: The To or From number provided in the first Webhook to your webserver. Any phone number you have purchased from FreeClimb. |
14+
**destination** | **String** | E.164 representation of the phone number to Call. |
1515
**ifMachine** | **IfMachine** | | [optional]
1616
**ifMachineUrl** | **String** | When the &#x60;ifMachine&#x60; flag is set to &#x60;redirect&#x60;, this attribute specifies a URL to which FreeClimb makes a POST request when an answering machine or a fax machine is detected. This URL is required if the &#x60;ifMachine&#x60; flag is set to &#x60;redirect&#x60;. Otherwise, it should not be included. | [optional]
1717
**sendDigits** | **String** | DTMF tones to play to the outdialed Call. This is typically used to dial a number and then dial an extension. | [optional]

docs/OutDialAllOf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**actionUrl** | **String** | URL to which FreeClimb sends an HTTP POST request. |
1111
**callConnectUrl** | **String** | URL to which FreeClimb makes an HTTP POST request informing the result of the OutDial. |
12-
**callingNumber** | **BigDecimal** | he caller ID to show to the called party when FreeClimb calls. This can be one of the following: The To or From number provided in the first Webhook to your webserver. Any phone number you have purchased from FreeClimb. |
13-
**destination** | **BigDecimal** | E.164 representation of the phone number to Call. |
12+
**callingNumber** | **String** | he caller ID to show to the called party when FreeClimb calls. This can be one of the following: The To or From number provided in the first Webhook to your webserver. Any phone number you have purchased from FreeClimb. |
13+
**destination** | **String** | E.164 representation of the phone number to Call. |
1414
**ifMachine** | **IfMachine** | | [optional]
1515
**ifMachineUrl** | **String** | When the &#x60;ifMachine&#x60; flag is set to &#x60;redirect&#x60;, this attribute specifies a URL to which FreeClimb makes a POST request when an answering machine or a fax machine is detected. This URL is required if the &#x60;ifMachine&#x60; flag is set to &#x60;redirect&#x60;. Otherwise, it should not be included. | [optional]
1616
**sendDigits** | **String** | DTMF tones to play to the outdialed Call. This is typically used to dial a number and then dial an extension. | [optional]

openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,11 +751,11 @@
751751
},
752752
"callingNumber": {
753753
"description": "he caller ID to show to the called party when FreeClimb calls. This can be one of the following: The To or From number provided in the first Webhook to your webserver. Any phone number you have purchased from FreeClimb.",
754-
"type": "number"
754+
"type": "string"
755755
},
756756
"destination": {
757757
"description": "E.164 representation of the phone number to Call. ",
758-
"type": "number"
758+
"type": "string"
759759
},
760760
"ifMachine": {
761761
"$ref": "#/components/schemas/IfMachine"

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.1</version>
8+
<version>5.1.2</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.1/java");
134+
setUserAgent("OpenAPI-Generator/5.1.2/java");
135135

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

src/main/java/com/github/freeclimbapi/models/OutDial.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public class OutDial extends PerclCommand {
5050

5151
public static final String SERIALIZED_NAME_CALLING_NUMBER = "callingNumber";
5252
@SerializedName(SERIALIZED_NAME_CALLING_NUMBER)
53-
private BigDecimal callingNumber;
53+
private String callingNumber;
5454

5555
public static final String SERIALIZED_NAME_DESTINATION = "destination";
5656
@SerializedName(SERIALIZED_NAME_DESTINATION)
57-
private BigDecimal destination;
57+
private String destination;
5858

5959
public static final String SERIALIZED_NAME_IF_MACHINE = "ifMachine";
6060
@SerializedName(SERIALIZED_NAME_IF_MACHINE)
@@ -130,7 +130,7 @@ public void setCallConnectUrl(String callConnectUrl) {
130130
}
131131

132132

133-
public OutDial callingNumber(BigDecimal callingNumber) {
133+
public OutDial callingNumber(String callingNumber) {
134134

135135
this.callingNumber = callingNumber;
136136
return this;
@@ -143,17 +143,17 @@ public OutDial callingNumber(BigDecimal callingNumber) {
143143
@javax.annotation.Nonnull
144144
@ApiModelProperty(required = true, value = "he caller ID to show to the called party when FreeClimb calls. This can be one of the following: The To or From number provided in the first Webhook to your webserver. Any phone number you have purchased from FreeClimb.")
145145

146-
public BigDecimal getCallingNumber() {
146+
public String getCallingNumber() {
147147
return callingNumber;
148148
}
149149

150150

151-
public void setCallingNumber(BigDecimal callingNumber) {
151+
public void setCallingNumber(String callingNumber) {
152152
this.callingNumber = callingNumber;
153153
}
154154

155155

156-
public OutDial destination(BigDecimal destination) {
156+
public OutDial destination(String destination) {
157157

158158
this.destination = destination;
159159
return this;
@@ -166,12 +166,12 @@ public OutDial destination(BigDecimal destination) {
166166
@javax.annotation.Nonnull
167167
@ApiModelProperty(required = true, value = "E.164 representation of the phone number to Call. ")
168168

169-
public BigDecimal getDestination() {
169+
public String getDestination() {
170170
return destination;
171171
}
172172

173173

174-
public void setDestination(BigDecimal destination) {
174+
public void setDestination(String destination) {
175175
this.destination = destination;
176176
}
177177

0 commit comments

Comments
 (0)