Skip to content

Commit 5fcd63a

Browse files
committed
Update
1 parent 3453e4c commit 5fcd63a

37 files changed

+136
-274
lines changed

src/main/java/pl/wtx/symfonia/api/client/InventoryStatesApi.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
import pl.wtx.symfonia.api.client.model.ApiError;
3131
import pl.wtx.symfonia.api.client.model.InventoryState;
32-
import java.time.OffsetDateTime;
3332

3433
import java.lang.reflect.Type;
3534
import java.util.ArrayList;
@@ -338,7 +337,7 @@ public okhttp3.Call getInventoryStatesByProductAsync(@javax.annotation.Nullable
338337
}
339338
/**
340339
* Build call for getInventoryStatesChanges
341-
* @param date Data od kiedy mają zostać pobrane zmiany. Data paramteru powinna zostac podana w formacie yyyy-MM-dd. (optional)
340+
* @param date Data od kiedy mają zostać pobrane zmiany. Data parametru powinna zostac podana w formacie ISO 8601 (np. 2025-09-29T16:00:00) (optional)
342341
* @param _callback Callback for upload/download progress
343342
* @return Call to execute
344343
* @throws ApiException If fail to serialize the request body object
@@ -351,7 +350,7 @@ public okhttp3.Call getInventoryStatesByProductAsync(@javax.annotation.Nullable
351350
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
352351
</table>
353352
*/
354-
public okhttp3.Call getInventoryStatesChangesCall(@javax.annotation.Nullable OffsetDateTime date, final ApiCallback _callback) throws ApiException {
353+
public okhttp3.Call getInventoryStatesChangesCall(@javax.annotation.Nullable String date, final ApiCallback _callback) throws ApiException {
355354
String basePath = null;
356355
// Operation Servers
357356
String[] localBasePaths = new String[] { };
@@ -400,15 +399,15 @@ public okhttp3.Call getInventoryStatesChangesCall(@javax.annotation.Nullable Off
400399
}
401400

402401
@SuppressWarnings("rawtypes")
403-
private okhttp3.Call getInventoryStatesChangesValidateBeforeCall(@javax.annotation.Nullable OffsetDateTime date, final ApiCallback _callback) throws ApiException {
402+
private okhttp3.Call getInventoryStatesChangesValidateBeforeCall(@javax.annotation.Nullable String date, final ApiCallback _callback) throws ApiException {
404403
return getInventoryStatesChangesCall(date, _callback);
405404

406405
}
407406

408407
/**
409408
* Metoda umozliwia pobranie stanow magazynowych i handlowych ktore zeminily sie od konkretenej daty.
410409
*
411-
* @param date Data od kiedy mają zostać pobrane zmiany. Data paramteru powinna zostac podana w formacie yyyy-MM-dd. (optional)
410+
* @param date Data od kiedy mają zostać pobrane zmiany. Data parametru powinna zostac podana w formacie ISO 8601 (np. 2025-09-29T16:00:00) (optional)
412411
* @return List&lt;InventoryState&gt;
413412
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
414413
* @http.response.details
@@ -420,15 +419,15 @@ private okhttp3.Call getInventoryStatesChangesValidateBeforeCall(@javax.annotati
420419
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
421420
</table>
422421
*/
423-
public List<InventoryState> getInventoryStatesChanges(@javax.annotation.Nullable OffsetDateTime date) throws ApiException {
422+
public List<InventoryState> getInventoryStatesChanges(@javax.annotation.Nullable String date) throws ApiException {
424423
ApiResponse<List<InventoryState>> localVarResp = getInventoryStatesChangesWithHttpInfo(date);
425424
return localVarResp.getData();
426425
}
427426

428427
/**
429428
* Metoda umozliwia pobranie stanow magazynowych i handlowych ktore zeminily sie od konkretenej daty.
430429
*
431-
* @param date Data od kiedy mają zostać pobrane zmiany. Data paramteru powinna zostac podana w formacie yyyy-MM-dd. (optional)
430+
* @param date Data od kiedy mają zostać pobrane zmiany. Data parametru powinna zostac podana w formacie ISO 8601 (np. 2025-09-29T16:00:00) (optional)
432431
* @return ApiResponse&lt;List&lt;InventoryState&gt;&gt;
433432
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
434433
* @http.response.details
@@ -440,7 +439,7 @@ public List<InventoryState> getInventoryStatesChanges(@javax.annotation.Nullable
440439
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
441440
</table>
442441
*/
443-
public ApiResponse<List<InventoryState>> getInventoryStatesChangesWithHttpInfo(@javax.annotation.Nullable OffsetDateTime date) throws ApiException {
442+
public ApiResponse<List<InventoryState>> getInventoryStatesChangesWithHttpInfo(@javax.annotation.Nullable String date) throws ApiException {
444443
okhttp3.Call localVarCall = getInventoryStatesChangesValidateBeforeCall(date, null);
445444
Type localVarReturnType = new TypeToken<List<InventoryState>>(){}.getType();
446445
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -449,7 +448,7 @@ public ApiResponse<List<InventoryState>> getInventoryStatesChangesWithHttpInfo(@
449448
/**
450449
* Metoda umozliwia pobranie stanow magazynowych i handlowych ktore zeminily sie od konkretenej daty. (asynchronously)
451450
*
452-
* @param date Data od kiedy mają zostać pobrane zmiany. Data paramteru powinna zostac podana w formacie yyyy-MM-dd. (optional)
451+
* @param date Data od kiedy mają zostać pobrane zmiany. Data parametru powinna zostac podana w formacie ISO 8601 (np. 2025-09-29T16:00:00) (optional)
453452
* @param _callback The callback to be executed when the API call finishes
454453
* @return The request call
455454
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -462,7 +461,7 @@ public ApiResponse<List<InventoryState>> getInventoryStatesChangesWithHttpInfo(@
462461
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
463462
</table>
464463
*/
465-
public okhttp3.Call getInventoryStatesChangesAsync(@javax.annotation.Nullable OffsetDateTime date, final ApiCallback<List<InventoryState>> _callback) throws ApiException {
464+
public okhttp3.Call getInventoryStatesChangesAsync(@javax.annotation.Nullable String date, final ApiCallback<List<InventoryState>> _callback) throws ApiException {
466465

467466
okhttp3.Call localVarCall = getInventoryStatesChangesValidateBeforeCall(date, _callback);
468467
Type localVarReturnType = new TypeToken<List<InventoryState>>(){}.getType();

src/main/java/pl/wtx/symfonia/api/client/invoker/ApiClient.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
*/
6262
public class ApiClient {
6363

64-
private String basePath = "http://127.0.0.1:9000/api";
64+
protected String basePath = "http://127.0.0.1:9000/api";
6565
protected List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>(Arrays.asList(
6666
new ServerConfiguration(
6767
"http://127.0.0.1:9000/api",
@@ -71,26 +71,26 @@ public class ApiClient {
7171
));
7272
protected Integer serverIndex = 0;
7373
protected Map<String, String> serverVariables = null;
74-
private boolean debugging = false;
75-
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
76-
private Map<String, String> defaultCookieMap = new HashMap<String, String>();
77-
private String tempFolderPath = null;
74+
protected boolean debugging = false;
75+
protected Map<String, String> defaultHeaderMap = new HashMap<String, String>();
76+
protected Map<String, String> defaultCookieMap = new HashMap<String, String>();
77+
protected String tempFolderPath = null;
7878

79-
private Map<String, Authentication> authentications;
79+
protected Map<String, Authentication> authentications;
8080

81-
private DateFormat dateFormat;
82-
private DateFormat datetimeFormat;
83-
private boolean lenientDatetimeFormat;
84-
private int dateLength;
81+
protected DateFormat dateFormat;
82+
protected DateFormat datetimeFormat;
83+
protected boolean lenientDatetimeFormat;
84+
protected int dateLength;
8585

86-
private InputStream sslCaCert;
87-
private boolean verifyingSsl;
88-
private KeyManager[] keyManagers;
86+
protected InputStream sslCaCert;
87+
protected boolean verifyingSsl;
88+
protected KeyManager[] keyManagers;
8989

90-
private OkHttpClient httpClient;
91-
private JSON json;
90+
protected OkHttpClient httpClient;
91+
protected JSON json;
9292

93-
private HttpLoggingInterceptor loggingInterceptor;
93+
protected HttpLoggingInterceptor loggingInterceptor;
9494

9595
/**
9696
* Basic constructor for ApiClient
@@ -119,11 +119,11 @@ public ApiClient(OkHttpClient client) {
119119
authentications = Collections.unmodifiableMap(authentications);
120120
}
121121

122-
private void initHttpClient() {
122+
protected void initHttpClient() {
123123
initHttpClient(Collections.<Interceptor>emptyList());
124124
}
125125

126-
private void initHttpClient(List<Interceptor> interceptors) {
126+
protected void initHttpClient(List<Interceptor> interceptors) {
127127
OkHttpClient.Builder builder = new OkHttpClient.Builder();
128128
builder.addNetworkInterceptor(getProgressInterceptor());
129129
for (Interceptor interceptor: interceptors) {
@@ -133,7 +133,7 @@ private void initHttpClient(List<Interceptor> interceptors) {
133133
httpClient = builder.build();
134134
}
135135

136-
private void init() {
136+
protected void init() {
137137
verifyingSsl = true;
138138

139139
json = new JSON();
@@ -693,7 +693,7 @@ public List<Pair> parameterToPair(String name, Object value) {
693693
* @param value The value of the parameter.
694694
* @return A list of {@code Pair} objects.
695695
*/
696-
public List<Pair> parameterToPairs(String collectionFormat, String name, Collection value) {
696+
public List<Pair> parameterToPairs(String collectionFormat, String name, Collection<?> value) {
697697
List<Pair> params = new ArrayList<Pair>();
698698

699699
// preconditions
@@ -800,7 +800,7 @@ public String collectionPathParameterToString(String collectionFormat, Collectio
800800
* @return The sanitized filename
801801
*/
802802
public String sanitizeFilename(String filename) {
803-
return filename.replaceAll(".*[/\\\\]", "");
803+
return filename.replaceFirst("^.*[/\\\\]", "");
804804
}
805805

806806
/**
@@ -1434,7 +1434,7 @@ public String guessContentTypeFromFile(File file) {
14341434
* @param key The key of the Header element
14351435
* @param file The file to add to the Header
14361436
*/
1437-
private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) {
1437+
protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) {
14381438
Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\"");
14391439
MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file));
14401440
mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType));
@@ -1447,7 +1447,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k
14471447
* @param key The key of the Header element
14481448
* @param obj The complex object to add to the Header
14491449
*/
1450-
private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) {
1450+
protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) {
14511451
RequestBody requestBody;
14521452
if (obj instanceof String) {
14531453
requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain"));
@@ -1469,7 +1469,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k
14691469
* Get network interceptor to add it to the httpClient to track download progress for
14701470
* async requests.
14711471
*/
1472-
private Interceptor getProgressInterceptor() {
1472+
protected Interceptor getProgressInterceptor() {
14731473
return new Interceptor() {
14741474
@Override
14751475
public Response intercept(Interceptor.Chain chain) throws IOException {
@@ -1490,7 +1490,7 @@ public Response intercept(Interceptor.Chain chain) throws IOException {
14901490
* Apply SSL related settings to httpClient according to the current values of
14911491
* verifyingSsl and sslCaCert.
14921492
*/
1493-
private void applySslSettings() {
1493+
protected void applySslSettings() {
14941494
try {
14951495
TrustManager[] trustManagers;
14961496
HostnameVerifier hostnameVerifier;
@@ -1552,7 +1552,7 @@ public boolean verify(String hostname, SSLSession session) {
15521552
}
15531553
}
15541554

1555-
private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException {
1555+
protected KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException {
15561556
try {
15571557
KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
15581558
keyStore.load(null, password);
@@ -1569,7 +1569,7 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti
15691569
* @return The string representation of the HTTP request body
15701570
* @throws pl.wtx.symfonia.api.client.invoker.ApiException If fail to serialize the request body object into a string
15711571
*/
1572-
private String requestBodyToString(RequestBody requestBody) throws ApiException {
1572+
protected String requestBodyToString(RequestBody requestBody) throws ApiException {
15731573
if (requestBody != null) {
15741574
try {
15751575
final Buffer buffer = new Buffer();

src/main/java/pl/wtx/symfonia/api/client/invoker/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* <p>ApiException class.</p>
2222
*/
2323
@SuppressWarnings("serial")
24-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
24+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
2525
public class ApiException extends Exception {
2626
private static final long serialVersionUID = 1L;
2727

src/main/java/pl/wtx/symfonia/api/client/invoker/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.concurrent.atomic.AtomicReference;
1818
import java.util.function.Supplier;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
2121
public class Configuration {
2222
public static final String VERSION = "1.0.0";
2323

src/main/java/pl/wtx/symfonia/api/client/invoker/Pair.java

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,25 @@
1313

1414
package pl.wtx.symfonia.api.client.invoker;
1515

16-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
16+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
1717
public class Pair {
18-
private String name = "";
19-
private String value = "";
18+
private final String name;
19+
private final String value;
2020

21-
public Pair (String name, String value) {
22-
setName(name);
23-
setValue(value);
24-
}
21+
public Pair(String name, String value) {
22+
this.name = isValidString(name) ? name : "";
23+
this.value = isValidString(value) ? value : "";
24+
}
2525

26-
private void setName(String name) {
27-
if (!isValidString(name)) {
28-
return;
29-
}
26+
public String getName() {
27+
return this.name;
28+
}
3029

31-
this.name = name;
32-
}
30+
public String getValue() {
31+
return this.value;
32+
}
3333

34-
private void setValue(String value) {
35-
if (!isValidString(value)) {
36-
return;
37-
}
38-
39-
this.value = value;
40-
}
41-
42-
public String getName() {
43-
return this.name;
44-
}
45-
46-
public String getValue() {
47-
return this.value;
48-
}
49-
50-
private boolean isValidString(String arg) {
51-
if (arg == null) {
52-
return false;
53-
}
54-
55-
return true;
56-
}
34+
private static boolean isValidString(String arg) {
35+
return arg != null;
36+
}
5737
}

src/main/java/pl/wtx/symfonia/api/client/invoker/ServerConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Representing a Server configuration.
2020
*/
21-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
21+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
2222
public class ServerConfiguration {
2323
public String URL;
2424
public String description;

src/main/java/pl/wtx/symfonia/api/client/invoker/ServerVariable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Representing a Server Variable for server URL template substitution.
2020
*/
21-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
21+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
2222
public class ServerVariable {
2323
public String description;
2424
public String defaultValue;

src/main/java/pl/wtx/symfonia/api/client/invoker/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Collection;
1717
import java.util.Iterator;
1818

19-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
19+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
2020
public class StringUtil {
2121
/**
2222
* Check if the given array contains the given value (with case-insensitive comparison).

src/main/java/pl/wtx/symfonia/api/client/invoker/auth/ApiKeyAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.Map;
2121
import java.util.List;
2222

23-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
23+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
2424
public class ApiKeyAuth implements Authentication {
2525
private final String location;
2626
private final String paramName;

src/main/java/pl/wtx/symfonia/api/client/invoker/auth/Authentication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.Map;
2121
import java.util.List;
2222

23-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
23+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
2424
public interface Authentication {
2525
/**
2626
* Apply authentication settings to header and query params.

0 commit comments

Comments
 (0)