Skip to content

Commit 1cfe6e8

Browse files
ivankamkinIvan Kamkin
andauthored
Version up (#46)
Pdf417MacroTerminator enum added Co-authored-by: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com>
1 parent cded853 commit 1cfe6e8

7 files changed

Lines changed: 129 additions & 8 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%2Frepository.aspose.cloud%2Frepo%2Fcom%2Faspose%2Faspose-barcode-cloud%2Fmaven-metadata.xml)](https://repository.aspose.cloud/repo/com/aspose/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- SDK version: 22.9.0
8+
- SDK version: 22.10.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.9.0</version>
71+
<version>22.10.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.9.0.jar`
86+
- `target/aspose-barcode-cloud-22.10.0.jar`
8787
- `target/lib/*.jar`
8888

8989
## Getting Started
@@ -237,6 +237,7 @@ Class | Method | HTTP request | Description
237237
- [PatchFormat](docs/PatchFormat.md)
238238
- [Pdf417CompactionMode](docs/Pdf417CompactionMode.md)
239239
- [Pdf417ErrorLevel](docs/Pdf417ErrorLevel.md)
240+
- [Pdf417MacroTerminator](docs/Pdf417MacroTerminator.md)
240241
- [Pdf417Params](docs/Pdf417Params.md)
241242
- [PostalParams](docs/PostalParams.md)
242243
- [PresetType](docs/PresetType.md)

docs/Pdf417MacroTerminator.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Pdf417MacroTerminator
3+
4+
## Enum
5+
6+
7+
* `AUTO` (value: `"Auto"`)
8+
9+
* `NONE` (value: `"None"`)
10+
11+
* `SET` (value: `"Set"`)
12+
13+
14+

docs/Pdf417Params.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
2424
**macroAddressee** | **String** | Macro Pdf417 barcode addressee name | [optional]
2525
**macroECIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields. | [optional]
2626
**code128Emulation** | [**Code128Emulation**](Code128Emulation.md) | Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. | [optional]
27+
**pdf417MacroTerminator** | [**Pdf417MacroTerminator**](Pdf417MacroTerminator.md) | Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417. | [optional]
2728

2829

2930

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.9.0</version>
8+
<version>22.10.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.9.0";
53+
public final String clientVersion = "22.10.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.9.0/java");
99+
setUserAgent("Swagger-Codegen/22.10.0/java");
100100

101101
addDefaultHeader("x-aspose-client", "java sdk");
102102
addDefaultHeader("x-aspose-client-version", clientVersion);
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="Pdf417MacroTerminator.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(Pdf417MacroTerminator.Adapter.class)
36+
public enum Pdf417MacroTerminator {
37+
AUTO("Auto"),
38+
39+
NONE("None"),
40+
41+
SET("Set");
42+
43+
private final String value;
44+
45+
Pdf417MacroTerminator(String value) {
46+
this.value = value;
47+
}
48+
49+
public String getValue() {
50+
return value;
51+
}
52+
53+
@Override
54+
public String toString() {
55+
return String.valueOf(value);
56+
}
57+
58+
public static Pdf417MacroTerminator fromValue(String text) {
59+
for (Pdf417MacroTerminator b : Pdf417MacroTerminator.values()) {
60+
if (String.valueOf(b.value).equals(text)) {
61+
return b;
62+
}
63+
}
64+
return null;
65+
}
66+
67+
public static class Adapter extends TypeAdapter<Pdf417MacroTerminator> {
68+
@Override
69+
public void write(final JsonWriter jsonWriter, final Pdf417MacroTerminator enumeration)
70+
throws IOException {
71+
jsonWriter.value(enumeration.getValue());
72+
}
73+
74+
@Override
75+
public Pdf417MacroTerminator read(final JsonReader jsonReader) throws IOException {
76+
String value = jsonReader.nextString();
77+
return Pdf417MacroTerminator.fromValue(String.valueOf(value));
78+
}
79+
}
80+
}

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

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ public class Pdf417Params {
9494
@SerializedName(value = "code128Emulation")
9595
private Code128Emulation code128Emulation = null;
9696

97+
@SerializedName(value = "pdf417MacroTerminator")
98+
private Pdf417MacroTerminator pdf417MacroTerminator = null;
99+
97100
/**
98101
* Height/Width ratio of 2D BarCode module.
99102
*
@@ -402,6 +405,23 @@ public void setCode128Emulation(Code128Emulation code128Emulation) {
402405
this.code128Emulation = code128Emulation;
403406
}
404407

408+
/**
409+
* Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the
410+
* segment. Applied only for Macro PDF417.
411+
*
412+
* @return pdf417MacroTerminator
413+
*/
414+
@ApiModelProperty(
415+
value =
416+
"Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.")
417+
public Pdf417MacroTerminator getPdf417MacroTerminator() {
418+
return pdf417MacroTerminator;
419+
}
420+
421+
public void setPdf417MacroTerminator(Pdf417MacroTerminator pdf417MacroTerminator) {
422+
this.pdf417MacroTerminator = pdf417MacroTerminator;
423+
}
424+
405425
@Override
406426
public boolean equals(java.lang.Object o) {
407427
if (this == o) {
@@ -430,7 +450,8 @@ public boolean equals(java.lang.Object o) {
430450
&& Objects.equals(this.macroFileName, pdf417Params.macroFileName)
431451
&& Objects.equals(this.macroAddressee, pdf417Params.macroAddressee)
432452
&& Objects.equals(this.macroECIEncoding, pdf417Params.macroECIEncoding)
433-
&& Objects.equals(this.code128Emulation, pdf417Params.code128Emulation);
453+
&& Objects.equals(this.code128Emulation, pdf417Params.code128Emulation)
454+
&& Objects.equals(this.pdf417MacroTerminator, pdf417Params.pdf417MacroTerminator);
434455
}
435456

436457
@Override
@@ -455,7 +476,8 @@ public int hashCode() {
455476
macroFileName,
456477
macroAddressee,
457478
macroECIEncoding,
458-
code128Emulation);
479+
code128Emulation,
480+
pdf417MacroTerminator);
459481
}
460482

461483
@Override
@@ -489,6 +511,9 @@ public String toString() {
489511
sb.append(" macroAddressee: ").append(toIndentedString(macroAddressee)).append("\n");
490512
sb.append(" macroECIEncoding: ").append(toIndentedString(macroECIEncoding)).append("\n");
491513
sb.append(" code128Emulation: ").append(toIndentedString(code128Emulation)).append("\n");
514+
sb.append(" pdf417MacroTerminator: ")
515+
.append(toIndentedString(pdf417MacroTerminator))
516+
.append("\n");
492517
sb.append("}");
493518
return sb.toString();
494519
}

0 commit comments

Comments
 (0)