Skip to content

Commit 2d0ff77

Browse files
authored
Release 22.11 (#48)
* Version up Add MaxiCodeMode enum Add MaxiCodeMode mode to MaxiCodeParams Delete Integer encodeMode from MaxiCodeParams
1 parent 6c0799b commit 2d0ff77

7 files changed

Lines changed: 122 additions & 19 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Freleases.aspose.cloud%2Fjava%2Frepo%2Fcom%2Faspose%2Faspose-barcode-cloud%2Fmaven-metadata.xml)](https://releases.aspose.cloud/java/repo/com/aspose/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- SDK version: 22.10.0
8+
- SDK version: 22.11.0
99

1010
## Demo applications
1111

@@ -68,7 +68,7 @@ Add this dependency to your project's POM:
6868
<dependency>
6969
<groupId>com.aspose</groupId>
7070
<artifactId>aspose-barcode-cloud</artifactId>
71-
<version>22.10.0</version>
71+
<version>22.11.0</version>
7272
<scope>compile</scope>
7373
</dependency>
7474
```
@@ -83,7 +83,7 @@ mvn clean package
8383

8484
Then manually install the following JARs:
8585

86-
- `target/aspose-barcode-cloud-22.10.0.jar`
86+
- `target/aspose-barcode-cloud-22.11.0.jar`
8787
- `target/lib/*.jar`
8888

8989
## Getting Started
@@ -230,6 +230,7 @@ Class | Method | HTTP request | Description
230230
- [ITF14BorderType](docs/ITF14BorderType.md)
231231
- [ITFParams](docs/ITFParams.md)
232232
- [MacroCharacter](docs/MacroCharacter.md)
233+
- [MaxiCodeMode](docs/MaxiCodeMode.md)
233234
- [MaxiCodeParams](docs/MaxiCodeParams.md)
234235
- [ObjectExist](docs/ObjectExist.md)
235236
- [Padding](docs/Padding.md)

docs/MaxiCodeMode.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
# MaxiCodeMode
3+
4+
## Enum
5+
6+
7+
* `MODE2` (value: `"Mode2"`)
8+
9+
* `MODE3` (value: `"Mode3"`)
10+
11+
* `MODE4` (value: `"Mode4"`)
12+
13+
* `MODE5` (value: `"Mode5"`)
14+
15+
* `MODE6` (value: `"Mode6"`)
16+
17+
18+

docs/MaxiCodeParams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**aspectRatio** | **Double** | Height/Width ratio of 2D BarCode module. | [optional]
8-
**encodeMode** | **Integer** | MaxiCode encode mode. | [optional]
8+
**mode** | [**MaxiCodeMode**](MaxiCodeMode.md) | Encoding mode for MaxiCode barcodes. | [optional]
99

1010

1111

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>aspose-barcode-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>aspose-barcode-cloud</name>
8-
<version>22.10.0</version>
8+
<version>22.11.0</version>
99
<url>https://www.aspose.cloud</url>
1010
<description>Aspose.BarCode Cloud SDK for Java</description>
1111
<scm>

src/main/java/com/aspose/barcode/cloud/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
public class ApiClient {
5151

5252
public final String apiVersion = "v3.0";
53-
public final String clientVersion = "22.10.0";
53+
public final String clientVersion = "22.11.0";
5454
private String baseUrl = "https://api.aspose.cloud";
5555
private String clientId;
5656
private String clientSecret;
@@ -96,7 +96,7 @@ protected ApiClient() {
9696
json = new JSON();
9797

9898
// Set default User-Agent.
99-
setUserAgent("Swagger-Codegen/22.10.0/java");
99+
setUserAgent("Swagger-Codegen/22.11.0/java");
100100

101101
addDefaultHeader("x-aspose-client", "java sdk");
102102
addDefaultHeader("x-aspose-client-version", clientVersion);
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="MaxiCodeMode.java">
3+
// Copyright (c) 2022 Aspose.BarCode for Cloud
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
package com.aspose.barcode.cloud.model;
27+
28+
import com.google.gson.TypeAdapter;
29+
import com.google.gson.annotations.JsonAdapter;
30+
import com.google.gson.stream.JsonReader;
31+
import com.google.gson.stream.JsonWriter;
32+
import java.io.IOException;
33+
34+
/** */
35+
@JsonAdapter(MaxiCodeMode.Adapter.class)
36+
public enum MaxiCodeMode {
37+
MODE2("Mode2"),
38+
39+
MODE3("Mode3"),
40+
41+
MODE4("Mode4"),
42+
43+
MODE5("Mode5"),
44+
45+
MODE6("Mode6");
46+
47+
private final String value;
48+
49+
MaxiCodeMode(String value) {
50+
this.value = value;
51+
}
52+
53+
public String getValue() {
54+
return value;
55+
}
56+
57+
@Override
58+
public String toString() {
59+
return String.valueOf(value);
60+
}
61+
62+
public static MaxiCodeMode fromValue(String text) {
63+
for (MaxiCodeMode b : MaxiCodeMode.values()) {
64+
if (String.valueOf(b.value).equals(text)) {
65+
return b;
66+
}
67+
}
68+
return null;
69+
}
70+
71+
public static class Adapter extends TypeAdapter<MaxiCodeMode> {
72+
@Override
73+
public void write(final JsonWriter jsonWriter, final MaxiCodeMode enumeration)
74+
throws IOException {
75+
jsonWriter.value(enumeration.getValue());
76+
}
77+
78+
@Override
79+
public MaxiCodeMode read(final JsonReader jsonReader) throws IOException {
80+
String value = jsonReader.nextString();
81+
return MaxiCodeMode.fromValue(String.valueOf(value));
82+
}
83+
}
84+
}

src/main/java/com/aspose/barcode/cloud/model/MaxiCodeParams.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class MaxiCodeParams {
3636
@SerializedName(value = "aspectRatio")
3737
private Double aspectRatio = null;
3838

39-
@SerializedName(value = "encodeMode")
40-
private Integer encodeMode = null;
39+
@SerializedName(value = "mode")
40+
private MaxiCodeMode mode = null;
4141

4242
/**
4343
* Height/Width ratio of 2D BarCode module.
@@ -54,17 +54,17 @@ public void setAspectRatio(Double aspectRatio) {
5454
}
5555

5656
/**
57-
* MaxiCode encode mode.
57+
* Encoding mode for MaxiCode barcodes.
5858
*
59-
* @return encodeMode
59+
* @return mode
6060
*/
61-
@ApiModelProperty(value = "MaxiCode encode mode.")
62-
public Integer getEncodeMode() {
63-
return encodeMode;
61+
@ApiModelProperty(value = "Encoding mode for MaxiCode barcodes.")
62+
public MaxiCodeMode getMode() {
63+
return mode;
6464
}
6565

66-
public void setEncodeMode(Integer encodeMode) {
67-
this.encodeMode = encodeMode;
66+
public void setMode(MaxiCodeMode mode) {
67+
this.mode = mode;
6868
}
6969

7070
@Override
@@ -77,12 +77,12 @@ public boolean equals(java.lang.Object o) {
7777
}
7878
MaxiCodeParams maxiCodeParams = (MaxiCodeParams) o;
7979
return Objects.equals(this.aspectRatio, maxiCodeParams.aspectRatio)
80-
&& Objects.equals(this.encodeMode, maxiCodeParams.encodeMode);
80+
&& Objects.equals(this.mode, maxiCodeParams.mode);
8181
}
8282

8383
@Override
8484
public int hashCode() {
85-
return Objects.hash(aspectRatio, encodeMode);
85+
return Objects.hash(aspectRatio, mode);
8686
}
8787

8888
@Override
@@ -91,7 +91,7 @@ public String toString() {
9191
sb.append("class MaxiCodeParams {\n");
9292

9393
sb.append(" aspectRatio: ").append(toIndentedString(aspectRatio)).append("\n");
94-
sb.append(" encodeMode: ").append(toIndentedString(encodeMode)).append("\n");
94+
sb.append(" mode: ").append(toIndentedString(mode)).append("\n");
9595
sb.append("}");
9696
return sb.toString();
9797
}

0 commit comments

Comments
 (0)