Skip to content

Commit 3453e4c

Browse files
committed
Update inventory changes input parameter to date-time
1 parent b59ec75 commit 3453e4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+192
-145
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Ten klient API zapewnia interfejsy Java dla Symfonia WebAPI, umożliwiając pły
6262
6363
## 📦 Informacje o wersji
6464

65-
- **Aktualna wersja**: `0.1.2`
65+
- **Aktualna wersja**: `0.1.3`
6666
- **Wymagana wersja Java**: Java 17+
6767

6868
## 🔓 Licencja
@@ -83,7 +83,7 @@ Możesz dodać bibliotekę do swojego projektu, dołączając zależność z Mav
8383
<dependency>
8484
<groupId>pl.wtx.symfonia</groupId>
8585
<artifactId>symfonia-erp-webapi-client</artifactId>
86-
<version>0.1.2</version>
86+
<version>0.1.3</version>
8787
</dependency>
8888
```
8989

@@ -101,7 +101,7 @@ Następnie dodaj zbudowany artefakt do swojego projektu:
101101
<dependency>
102102
<groupId>pl.wtx.symfonia</groupId>
103103
<artifactId>symfonia-erp-webapi-client</artifactId>
104-
<version>0.1.2</version>
104+
<version>0.1.3</version>
105105
</dependency>
106106
```
107107

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>pl.wtx.symfonia</groupId>
77
<artifactId>symfonia-erp-webapi-client</artifactId>
8-
<version>0.1.2</version>
8+
<version>0.1.3</version>
99
<packaging>jar</packaging>
1010

1111
<name>Symfonia ERP WebAPI Client</name>

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
9191
<tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
9292
</table>
9393
*/
94-
public okhttp3.Call getContractorsCall(String id, String code, String nip, final ApiCallback _callback) throws ApiException {
94+
public okhttp3.Call getContractorsCall(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code, @javax.annotation.Nullable String nip, final ApiCallback _callback) throws ApiException {
9595
String basePath = null;
9696
// Operation Servers
9797
String[] localBasePaths = new String[] { };
@@ -148,7 +148,7 @@ public okhttp3.Call getContractorsCall(String id, String code, String nip, final
148148
}
149149

150150
@SuppressWarnings("rawtypes")
151-
private okhttp3.Call getContractorsValidateBeforeCall(String id, String code, String nip, final ApiCallback _callback) throws ApiException {
151+
private okhttp3.Call getContractorsValidateBeforeCall(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code, @javax.annotation.Nullable String nip, final ApiCallback _callback) throws ApiException {
152152
return getContractorsCall(id, code, nip, _callback);
153153

154154
}
@@ -171,7 +171,7 @@ private okhttp3.Call getContractorsValidateBeforeCall(String id, String code, St
171171
<tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
172172
</table>
173173
*/
174-
public List<Contractor> getContractors(String id, String code, String nip) throws ApiException {
174+
public List<Contractor> getContractors(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code, @javax.annotation.Nullable String nip) throws ApiException {
175175
ApiResponse<List<Contractor>> localVarResp = getContractorsWithHttpInfo(id, code, nip);
176176
return localVarResp.getData();
177177
}
@@ -194,7 +194,7 @@ public List<Contractor> getContractors(String id, String code, String nip) throw
194194
<tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
195195
</table>
196196
*/
197-
public ApiResponse<List<Contractor>> getContractorsWithHttpInfo(String id, String code, String nip) throws ApiException {
197+
public ApiResponse<List<Contractor>> getContractorsWithHttpInfo(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code, @javax.annotation.Nullable String nip) throws ApiException {
198198
okhttp3.Call localVarCall = getContractorsValidateBeforeCall(id, code, nip, null);
199199
Type localVarReturnType = new TypeToken<List<Contractor>>(){}.getType();
200200
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -219,7 +219,7 @@ public ApiResponse<List<Contractor>> getContractorsWithHttpInfo(String id, Strin
219219
<tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
220220
</table>
221221
*/
222-
public okhttp3.Call getContractorsAsync(String id, String code, String nip, final ApiCallback<List<Contractor>> _callback) throws ApiException {
222+
public okhttp3.Call getContractorsAsync(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code, @javax.annotation.Nullable String nip, final ApiCallback<List<Contractor>> _callback) throws ApiException {
223223

224224
okhttp3.Call localVarCall = getContractorsValidateBeforeCall(id, code, nip, _callback);
225225
Type localVarReturnType = new TypeToken<List<Contractor>>(){}.getType();

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

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

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

3434
import java.lang.reflect.Type;
3535
import java.util.ArrayList;
@@ -211,7 +211,7 @@ public okhttp3.Call getInventoryStatesAsync(final ApiCallback<List<InventoryStat
211211
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
212212
</table>
213213
*/
214-
public okhttp3.Call getInventoryStatesByProductCall(String id, String code, final ApiCallback _callback) throws ApiException {
214+
public okhttp3.Call getInventoryStatesByProductCall(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code, final ApiCallback _callback) throws ApiException {
215215
String basePath = null;
216216
// Operation Servers
217217
String[] localBasePaths = new String[] { };
@@ -264,7 +264,7 @@ public okhttp3.Call getInventoryStatesByProductCall(String id, String code, fina
264264
}
265265

266266
@SuppressWarnings("rawtypes")
267-
private okhttp3.Call getInventoryStatesByProductValidateBeforeCall(String id, String code, final ApiCallback _callback) throws ApiException {
267+
private okhttp3.Call getInventoryStatesByProductValidateBeforeCall(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code, final ApiCallback _callback) throws ApiException {
268268
return getInventoryStatesByProductCall(id, code, _callback);
269269

270270
}
@@ -285,7 +285,7 @@ private okhttp3.Call getInventoryStatesByProductValidateBeforeCall(String id, St
285285
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
286286
</table>
287287
*/
288-
public List<InventoryState> getInventoryStatesByProduct(String id, String code) throws ApiException {
288+
public List<InventoryState> getInventoryStatesByProduct(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code) throws ApiException {
289289
ApiResponse<List<InventoryState>> localVarResp = getInventoryStatesByProductWithHttpInfo(id, code);
290290
return localVarResp.getData();
291291
}
@@ -306,7 +306,7 @@ public List<InventoryState> getInventoryStatesByProduct(String id, String code)
306306
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
307307
</table>
308308
*/
309-
public ApiResponse<List<InventoryState>> getInventoryStatesByProductWithHttpInfo(String id, String code) throws ApiException {
309+
public ApiResponse<List<InventoryState>> getInventoryStatesByProductWithHttpInfo(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code) throws ApiException {
310310
okhttp3.Call localVarCall = getInventoryStatesByProductValidateBeforeCall(id, code, null);
311311
Type localVarReturnType = new TypeToken<List<InventoryState>>(){}.getType();
312312
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -329,7 +329,7 @@ public ApiResponse<List<InventoryState>> getInventoryStatesByProductWithHttpInfo
329329
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
330330
</table>
331331
*/
332-
public okhttp3.Call getInventoryStatesByProductAsync(String id, String code, final ApiCallback<List<InventoryState>> _callback) throws ApiException {
332+
public okhttp3.Call getInventoryStatesByProductAsync(@javax.annotation.Nullable String id, @javax.annotation.Nullable String code, final ApiCallback<List<InventoryState>> _callback) throws ApiException {
333333

334334
okhttp3.Call localVarCall = getInventoryStatesByProductValidateBeforeCall(id, code, _callback);
335335
Type localVarReturnType = new TypeToken<List<InventoryState>>(){}.getType();
@@ -351,7 +351,7 @@ public okhttp3.Call getInventoryStatesByProductAsync(String id, String code, fin
351351
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
352352
</table>
353353
*/
354-
public okhttp3.Call getInventoryStatesChangesCall(LocalDate date, final ApiCallback _callback) throws ApiException {
354+
public okhttp3.Call getInventoryStatesChangesCall(@javax.annotation.Nullable OffsetDateTime date, final ApiCallback _callback) throws ApiException {
355355
String basePath = null;
356356
// Operation Servers
357357
String[] localBasePaths = new String[] { };
@@ -400,7 +400,7 @@ public okhttp3.Call getInventoryStatesChangesCall(LocalDate date, final ApiCallb
400400
}
401401

402402
@SuppressWarnings("rawtypes")
403-
private okhttp3.Call getInventoryStatesChangesValidateBeforeCall(LocalDate date, final ApiCallback _callback) throws ApiException {
403+
private okhttp3.Call getInventoryStatesChangesValidateBeforeCall(@javax.annotation.Nullable OffsetDateTime date, final ApiCallback _callback) throws ApiException {
404404
return getInventoryStatesChangesCall(date, _callback);
405405

406406
}
@@ -420,7 +420,7 @@ private okhttp3.Call getInventoryStatesChangesValidateBeforeCall(LocalDate date,
420420
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
421421
</table>
422422
*/
423-
public List<InventoryState> getInventoryStatesChanges(LocalDate date) throws ApiException {
423+
public List<InventoryState> getInventoryStatesChanges(@javax.annotation.Nullable OffsetDateTime date) throws ApiException {
424424
ApiResponse<List<InventoryState>> localVarResp = getInventoryStatesChangesWithHttpInfo(date);
425425
return localVarResp.getData();
426426
}
@@ -440,7 +440,7 @@ public List<InventoryState> getInventoryStatesChanges(LocalDate date) throws Api
440440
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
441441
</table>
442442
*/
443-
public ApiResponse<List<InventoryState>> getInventoryStatesChangesWithHttpInfo(LocalDate date) throws ApiException {
443+
public ApiResponse<List<InventoryState>> getInventoryStatesChangesWithHttpInfo(@javax.annotation.Nullable OffsetDateTime date) throws ApiException {
444444
okhttp3.Call localVarCall = getInventoryStatesChangesValidateBeforeCall(date, null);
445445
Type localVarReturnType = new TypeToken<List<InventoryState>>(){}.getType();
446446
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -462,7 +462,7 @@ public ApiResponse<List<InventoryState>> getInventoryStatesChangesWithHttpInfo(L
462462
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
463463
</table>
464464
*/
465-
public okhttp3.Call getInventoryStatesChangesAsync(LocalDate date, final ApiCallback<List<InventoryState>> _callback) throws ApiException {
465+
public okhttp3.Call getInventoryStatesChangesAsync(@javax.annotation.Nullable OffsetDateTime date, final ApiCallback<List<InventoryState>> _callback) throws ApiException {
466466

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

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
8888
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
8989
</table>
9090
*/
91-
public okhttp3.Call getInvoicesForOrderCall(String orderNumber, final ApiCallback _callback) throws ApiException {
91+
public okhttp3.Call getInvoicesForOrderCall(@javax.annotation.Nullable String orderNumber, final ApiCallback _callback) throws ApiException {
9292
String basePath = null;
9393
// Operation Servers
9494
String[] localBasePaths = new String[] { };
@@ -137,7 +137,7 @@ public okhttp3.Call getInvoicesForOrderCall(String orderNumber, final ApiCallbac
137137
}
138138

139139
@SuppressWarnings("rawtypes")
140-
private okhttp3.Call getInvoicesForOrderValidateBeforeCall(String orderNumber, final ApiCallback _callback) throws ApiException {
140+
private okhttp3.Call getInvoicesForOrderValidateBeforeCall(@javax.annotation.Nullable String orderNumber, final ApiCallback _callback) throws ApiException {
141141
return getInvoicesForOrderCall(orderNumber, _callback);
142142

143143
}
@@ -156,7 +156,7 @@ private okhttp3.Call getInvoicesForOrderValidateBeforeCall(String orderNumber, f
156156
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
157157
</table>
158158
*/
159-
public List<OrderFV> getInvoicesForOrder(String orderNumber) throws ApiException {
159+
public List<OrderFV> getInvoicesForOrder(@javax.annotation.Nullable String orderNumber) throws ApiException {
160160
ApiResponse<List<OrderFV>> localVarResp = getInvoicesForOrderWithHttpInfo(orderNumber);
161161
return localVarResp.getData();
162162
}
@@ -175,7 +175,7 @@ public List<OrderFV> getInvoicesForOrder(String orderNumber) throws ApiException
175175
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
176176
</table>
177177
*/
178-
public ApiResponse<List<OrderFV>> getInvoicesForOrderWithHttpInfo(String orderNumber) throws ApiException {
178+
public ApiResponse<List<OrderFV>> getInvoicesForOrderWithHttpInfo(@javax.annotation.Nullable String orderNumber) throws ApiException {
179179
okhttp3.Call localVarCall = getInvoicesForOrderValidateBeforeCall(orderNumber, null);
180180
Type localVarReturnType = new TypeToken<List<OrderFV>>(){}.getType();
181181
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -196,7 +196,7 @@ public ApiResponse<List<OrderFV>> getInvoicesForOrderWithHttpInfo(String orderNu
196196
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
197197
</table>
198198
*/
199-
public okhttp3.Call getInvoicesForOrderAsync(String orderNumber, final ApiCallback<List<OrderFV>> _callback) throws ApiException {
199+
public okhttp3.Call getInvoicesForOrderAsync(@javax.annotation.Nullable String orderNumber, final ApiCallback<List<OrderFV>> _callback) throws ApiException {
200200

201201
okhttp3.Call localVarCall = getInvoicesForOrderValidateBeforeCall(orderNumber, _callback);
202202
Type localVarReturnType = new TypeToken<List<OrderFV>>(){}.getType();
@@ -217,7 +217,7 @@ public okhttp3.Call getInvoicesForOrderAsync(String orderNumber, final ApiCallba
217217
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
218218
</table>
219219
*/
220-
public okhttp3.Call getOrderCall(String number, final ApiCallback _callback) throws ApiException {
220+
public okhttp3.Call getOrderCall(@javax.annotation.Nullable String number, final ApiCallback _callback) throws ApiException {
221221
String basePath = null;
222222
// Operation Servers
223223
String[] localBasePaths = new String[] { };
@@ -266,7 +266,7 @@ public okhttp3.Call getOrderCall(String number, final ApiCallback _callback) thr
266266
}
267267

268268
@SuppressWarnings("rawtypes")
269-
private okhttp3.Call getOrderValidateBeforeCall(String number, final ApiCallback _callback) throws ApiException {
269+
private okhttp3.Call getOrderValidateBeforeCall(@javax.annotation.Nullable String number, final ApiCallback _callback) throws ApiException {
270270
return getOrderCall(number, _callback);
271271

272272
}
@@ -285,7 +285,7 @@ private okhttp3.Call getOrderValidateBeforeCall(String number, final ApiCallback
285285
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
286286
</table>
287287
*/
288-
public Order getOrder(String number) throws ApiException {
288+
public Order getOrder(@javax.annotation.Nullable String number) throws ApiException {
289289
ApiResponse<Order> localVarResp = getOrderWithHttpInfo(number);
290290
return localVarResp.getData();
291291
}
@@ -304,7 +304,7 @@ public Order getOrder(String number) throws ApiException {
304304
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
305305
</table>
306306
*/
307-
public ApiResponse<Order> getOrderWithHttpInfo(String number) throws ApiException {
307+
public ApiResponse<Order> getOrderWithHttpInfo(@javax.annotation.Nullable String number) throws ApiException {
308308
okhttp3.Call localVarCall = getOrderValidateBeforeCall(number, null);
309309
Type localVarReturnType = new TypeToken<Order>(){}.getType();
310310
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -325,7 +325,7 @@ public ApiResponse<Order> getOrderWithHttpInfo(String number) throws ApiExceptio
325325
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
326326
</table>
327327
*/
328-
public okhttp3.Call getOrderAsync(String number, final ApiCallback<Order> _callback) throws ApiException {
328+
public okhttp3.Call getOrderAsync(@javax.annotation.Nullable String number, final ApiCallback<Order> _callback) throws ApiException {
329329

330330
okhttp3.Call localVarCall = getOrderValidateBeforeCall(number, _callback);
331331
Type localVarReturnType = new TypeToken<Order>(){}.getType();

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
8989
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
9090
</table>
9191
*/
92-
public okhttp3.Call addNewOrdersIssueCall(OrderIssue orderIssue, Boolean issue, final ApiCallback _callback) throws ApiException {
92+
public okhttp3.Call addNewOrdersIssueCall(@javax.annotation.Nonnull OrderIssue orderIssue, @javax.annotation.Nullable Boolean issue, final ApiCallback _callback) throws ApiException {
9393
String basePath = null;
9494
// Operation Servers
9595
String[] localBasePaths = new String[] { };
@@ -139,7 +139,7 @@ public okhttp3.Call addNewOrdersIssueCall(OrderIssue orderIssue, Boolean issue,
139139
}
140140

141141
@SuppressWarnings("rawtypes")
142-
private okhttp3.Call addNewOrdersIssueValidateBeforeCall(OrderIssue orderIssue, Boolean issue, final ApiCallback _callback) throws ApiException {
142+
private okhttp3.Call addNewOrdersIssueValidateBeforeCall(@javax.annotation.Nonnull OrderIssue orderIssue, @javax.annotation.Nullable Boolean issue, final ApiCallback _callback) throws ApiException {
143143
// verify the required parameter 'orderIssue' is set
144144
if (orderIssue == null) {
145145
throw new ApiException("Missing the required parameter 'orderIssue' when calling addNewOrdersIssue(Async)");
@@ -164,7 +164,7 @@ private okhttp3.Call addNewOrdersIssueValidateBeforeCall(OrderIssue orderIssue,
164164
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
165165
</table>
166166
*/
167-
public Order addNewOrdersIssue(OrderIssue orderIssue, Boolean issue) throws ApiException {
167+
public Order addNewOrdersIssue(@javax.annotation.Nonnull OrderIssue orderIssue, @javax.annotation.Nullable Boolean issue) throws ApiException {
168168
ApiResponse<Order> localVarResp = addNewOrdersIssueWithHttpInfo(orderIssue, issue);
169169
return localVarResp.getData();
170170
}
@@ -184,7 +184,7 @@ public Order addNewOrdersIssue(OrderIssue orderIssue, Boolean issue) throws ApiE
184184
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
185185
</table>
186186
*/
187-
public ApiResponse<Order> addNewOrdersIssueWithHttpInfo(OrderIssue orderIssue, Boolean issue) throws ApiException {
187+
public ApiResponse<Order> addNewOrdersIssueWithHttpInfo(@javax.annotation.Nonnull OrderIssue orderIssue, @javax.annotation.Nullable Boolean issue) throws ApiException {
188188
okhttp3.Call localVarCall = addNewOrdersIssueValidateBeforeCall(orderIssue, issue, null);
189189
Type localVarReturnType = new TypeToken<Order>(){}.getType();
190190
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -206,7 +206,7 @@ public ApiResponse<Order> addNewOrdersIssueWithHttpInfo(OrderIssue orderIssue, B
206206
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
207207
</table>
208208
*/
209-
public okhttp3.Call addNewOrdersIssueAsync(OrderIssue orderIssue, Boolean issue, final ApiCallback<Order> _callback) throws ApiException {
209+
public okhttp3.Call addNewOrdersIssueAsync(@javax.annotation.Nonnull OrderIssue orderIssue, @javax.annotation.Nullable Boolean issue, final ApiCallback<Order> _callback) throws ApiException {
210210

211211
okhttp3.Call localVarCall = addNewOrdersIssueValidateBeforeCall(orderIssue, issue, _callback);
212212
Type localVarReturnType = new TypeToken<Order>(){}.getType();

0 commit comments

Comments
 (0)