Skip to content

Commit 5836341

Browse files
committed
Rozbudowany obiekt ContractorCriteriaFilter
1 parent 3e6842d commit 5836341

File tree

3 files changed

+46
-20
lines changed

3 files changed

+46
-20
lines changed

README.md

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

66-
- **Aktualna wersja**: `0.1.4`
66+
- **Aktualna wersja**: `0.1.5`
6767
- **Wymagana wersja Java**: Java 17+
6868

6969
## 🔓 Licencja
@@ -84,7 +84,7 @@ Możesz dodać bibliotekę do swojego projektu, dołączając zależność z Mav
8484
<dependency>
8585
<groupId>pl.wtx.symfonia</groupId>
8686
<artifactId>symfonia-erp-webapi-client</artifactId>
87-
<version>0.1.4</version>
87+
<version>0.1.5</version>
8888
</dependency>
8989
```
9090

@@ -102,7 +102,7 @@ Następnie dodaj zbudowany artefakt do swojego projektu:
102102
<dependency>
103103
<groupId>pl.wtx.symfonia</groupId>
104104
<artifactId>symfonia-erp-webapi-client</artifactId>
105-
<version>0.1.4</version>
105+
<version>0.1.5</version>
106106
</dependency>
107107
```
108108

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.4</version>
8+
<version>0.1.5</version>
99
<packaging>jar</packaging>
1010

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

src/main/java/pl/wtx/symfonia/api/client/model/ContractorCriteriaFilter.java

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,43 @@
5050
*/
5151
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0")
5252
public class ContractorCriteriaFilter {
53+
public static final String SERIALIZED_NAME_ACTIVE = "Active";
54+
@SerializedName(SERIALIZED_NAME_ACTIVE)
55+
@javax.annotation.Nullable
56+
private Boolean active;
57+
5358
public static final String SERIALIZED_NAME_CATALOG_ID = "CatalogId";
5459
@SerializedName(SERIALIZED_NAME_CATALOG_ID)
5560
@javax.annotation.Nullable
5661
private Integer catalogId;
5762

58-
public static final String SERIALIZED_NAME_ACTIVE = "Active";
59-
@SerializedName(SERIALIZED_NAME_ACTIVE)
63+
public static final String SERIALIZED_NAME_KIND_ID = "KindId";
64+
@SerializedName(SERIALIZED_NAME_KIND_ID)
6065
@javax.annotation.Nullable
61-
private Boolean active;
66+
private Integer kindId;
6267

6368
public ContractorCriteriaFilter() {
6469
}
6570

71+
public ContractorCriteriaFilter active(@javax.annotation.Nullable Boolean active) {
72+
this.active = active;
73+
return this;
74+
}
75+
76+
/**
77+
* Kryterium wyszukiwania po statusie aktywnosci kontrahenta. Jezeli wartosc bedzie pusta to kryterium wyszukiwania zostanie pominiete.
78+
* @return active
79+
*/
80+
@javax.annotation.Nullable
81+
public Boolean getActive() {
82+
return active;
83+
}
84+
85+
public void setActive(@javax.annotation.Nullable Boolean active) {
86+
this.active = active;
87+
}
88+
89+
6690
public ContractorCriteriaFilter catalogId(@javax.annotation.Nullable Integer catalogId) {
6791
this.catalogId = catalogId;
6892
return this;
@@ -82,22 +106,22 @@ public void setCatalogId(@javax.annotation.Nullable Integer catalogId) {
82106
}
83107

84108

85-
public ContractorCriteriaFilter active(@javax.annotation.Nullable Boolean active) {
86-
this.active = active;
109+
public ContractorCriteriaFilter kindId(@javax.annotation.Nullable Integer kindId) {
110+
this.kindId = kindId;
87111
return this;
88112
}
89113

90114
/**
91-
* Kryterium wyszukiwania po statusie aktywnosci kontrahenta. Jezeli wartosc bedzie pusta to kryterium wyszukiwania zostanie pominiete.
92-
* @return active
115+
* Kryterium wyszukiwania po id rodzaju kontrahenta. Jezeli wartosc bedzie pusta to kryterium wyszukiwania zostanie pominiete.
116+
* @return kindId
93117
*/
94118
@javax.annotation.Nullable
95-
public Boolean getActive() {
96-
return active;
119+
public Integer getKindId() {
120+
return kindId;
97121
}
98122

99-
public void setActive(@javax.annotation.Nullable Boolean active) {
100-
this.active = active;
123+
public void setKindId(@javax.annotation.Nullable Integer kindId) {
124+
this.kindId = kindId;
101125
}
102126

103127

@@ -111,21 +135,23 @@ public boolean equals(Object o) {
111135
return false;
112136
}
113137
ContractorCriteriaFilter contractorCriteriaFilter = (ContractorCriteriaFilter) o;
114-
return Objects.equals(this.catalogId, contractorCriteriaFilter.catalogId) &&
115-
Objects.equals(this.active, contractorCriteriaFilter.active);
138+
return Objects.equals(this.active, contractorCriteriaFilter.active) &&
139+
Objects.equals(this.catalogId, contractorCriteriaFilter.catalogId) &&
140+
Objects.equals(this.kindId, contractorCriteriaFilter.kindId);
116141
}
117142

118143
@Override
119144
public int hashCode() {
120-
return Objects.hash(catalogId, active);
145+
return Objects.hash(active, catalogId, kindId);
121146
}
122147

123148
@Override
124149
public String toString() {
125150
StringBuilder sb = new StringBuilder();
126151
sb.append("class ContractorCriteriaFilter {\n");
127-
sb.append(" catalogId: ").append(toIndentedString(catalogId)).append("\n");
128152
sb.append(" active: ").append(toIndentedString(active)).append("\n");
153+
sb.append(" catalogId: ").append(toIndentedString(catalogId)).append("\n");
154+
sb.append(" kindId: ").append(toIndentedString(kindId)).append("\n");
129155
sb.append("}");
130156
return sb.toString();
131157
}
@@ -147,7 +173,7 @@ private String toIndentedString(Object o) {
147173

148174
static {
149175
// a set of all properties/fields (JSON key names)
150-
openapiFields = new HashSet<String>(Arrays.asList("CatalogId", "Active"));
176+
openapiFields = new HashSet<String>(Arrays.asList("Active", "CatalogId", "KindId"));
151177

152178
// a set of required properties/fields (JSON key names)
153179
openapiRequiredFields = new HashSet<String>(0);

0 commit comments

Comments
 (0)