Skip to content

Commit 4111656

Browse files
feat(SmartcarVehicleRequest): add support for boolean body params (#134)
* feat(SmartcarVehicleRequest): add support for boolean body params * docs: update version
1 parent cf00588 commit 4111656

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ The recommended method for obtaining the SDK is via Gradle or Maven through the
1010

1111
### Gradle
1212
```groovy
13-
compile "com.smartcar.sdk:java-sdk:3.8.0"
13+
compile "com.smartcar.sdk:java-sdk:3.9.0"
1414
```
1515

1616
### Maven
1717
```xml
1818
<dependency>
1919
<groupId>com.smartcar.sdk</groupId>
2020
<artifactId>java-sdk</artifactId>
21-
<version>3.8.0</version>
21+
<version>3.9.0</version>
2222
</dependency>
2323
```
2424

2525
### Jar Direct Download
26-
* [java-sdk-3.8.0.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.8.0/java-sdk-3.8.0.jar)
27-
* [java-sdk-3.8.0-sources.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.8.0/java-sdk-3.8.0-sources.jar)
28-
* [java-sdk-3.8.0-javadoc.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.8.0/java-sdk-3.8.0-javadoc.jar)
26+
* [java-sdk-3.9.0.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.9.0/java-sdk-3.9.0.jar)
27+
* [java-sdk-3.9.0-sources.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.9.0/java-sdk-3.9.0-sources.jar)
28+
* [java-sdk-3.9.0-javadoc.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.9.0/java-sdk-3.9.0-javadoc.jar)
2929

30-
Signatures and other downloads available at [Maven Central](https://search.maven.org/artifact/com.smartcar.sdk/java-sdk/3.8.0/jar).
30+
Signatures and other downloads available at [Maven Central](https://search.maven.org/artifact/com.smartcar.sdk/java-sdk/3.9.0/jar).
3131

3232
## Usage
3333

@@ -136,5 +136,5 @@ In accordance with the Semantic Versioning specification, the addition of suppor
136136
[ci-url]: https://travis-ci.com/smartcar/java-sdk
137137
[coverage-image]: https://codecov.io/gh/smartcar/java-sdk/branch/master/graph/badge.svg?token=nZAITx7w3X
138138
[coverage-url]: https://codecov.io/gh/smartcar/java-sdk
139-
[javadoc-image]: https://img.shields.io/badge/javadoc-3.8.0-brightgreen.svg
139+
[javadoc-image]: https://img.shields.io/badge/javadoc-3.9.0-brightgreen.svg
140140
[javadoc-url]: https://smartcar.github.io/java-sdk

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
libGroup=com.smartcar.sdk
22
libName=java-sdk
3-
libVersion=3.8.0
3+
libVersion=3.9.0
44
libDescription=Smartcar Java SDK

src/main/java/com/smartcar/sdk/SmartcarVehicleRequest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ public Builder addBodyParameter(String key, String value) {
5353
return this;
5454
}
5555

56+
public Builder addBodyParameter(String key, Boolean value) {
57+
this.body.add(key, value);
58+
return this;
59+
}
60+
5661
public Builder addBodyParameter(String key, JsonArray values) {
5762
this.body.add(key, values);
5863
return this;
@@ -108,4 +113,4 @@ private SmartcarVehicleRequest(Builder builder) {
108113

109114
public String getFlags() { return this.flags; }
110115

111-
}
116+
}

0 commit comments

Comments
 (0)