@@ -26,16 +26,20 @@ public final class PepStatus {
2626
2727 private final Optional <PepRank > pepRank ;
2828
29+ private final Optional <String > category ;
30+
2931 private final Map <String , Object > additionalProperties ;
3032
3133 private PepStatus (
3234 boolean isPepHit ,
3335 Optional <CountryCode > pepCountry ,
3436 Optional <PepRank > pepRank ,
37+ Optional <String > category ,
3538 Map <String , Object > additionalProperties ) {
3639 this .isPepHit = isPepHit ;
3740 this .pepCountry = pepCountry ;
3841 this .pepRank = pepRank ;
42+ this .category = category ;
3943 this .additionalProperties = additionalProperties ;
4044 }
4145
@@ -54,6 +58,11 @@ public Optional<PepRank> getPepRank() {
5458 return pepRank ;
5559 }
5660
61+ @ JsonProperty ("category" )
62+ public Optional <String > getCategory () {
63+ return category ;
64+ }
65+
5766 @ java .lang .Override
5867 public boolean equals (Object other ) {
5968 if (this == other ) return true ;
@@ -66,12 +75,15 @@ public Map<String, Object> getAdditionalProperties() {
6675 }
6776
6877 private boolean equalTo (PepStatus other ) {
69- return isPepHit == other .isPepHit && pepCountry .equals (other .pepCountry ) && pepRank .equals (other .pepRank );
78+ return isPepHit == other .isPepHit
79+ && pepCountry .equals (other .pepCountry )
80+ && pepRank .equals (other .pepRank )
81+ && category .equals (other .category );
7082 }
7183
7284 @ java .lang .Override
7385 public int hashCode () {
74- return Objects .hash (this .isPepHit , this .pepCountry , this .pepRank );
86+ return Objects .hash (this .isPepHit , this .pepCountry , this .pepRank , this . category );
7587 }
7688
7789 @ java .lang .Override
@@ -99,12 +111,18 @@ public interface _FinalStage {
99111 _FinalStage pepRank (Optional <PepRank > pepRank );
100112
101113 _FinalStage pepRank (PepRank pepRank );
114+
115+ _FinalStage category (Optional <String > category );
116+
117+ _FinalStage category (String category );
102118 }
103119
104120 @ JsonIgnoreProperties (ignoreUnknown = true )
105121 public static final class Builder implements IsPepHitStage , _FinalStage {
106122 private boolean isPepHit ;
107123
124+ private Optional <String > category = Optional .empty ();
125+
108126 private Optional <PepRank > pepRank = Optional .empty ();
109127
110128 private Optional <CountryCode > pepCountry = Optional .empty ();
@@ -119,6 +137,7 @@ public Builder from(PepStatus other) {
119137 isPepHit (other .getIsPepHit ());
120138 pepCountry (other .getPepCountry ());
121139 pepRank (other .getPepRank ());
140+ category (other .getCategory ());
122141 return this ;
123142 }
124143
@@ -129,6 +148,19 @@ public _FinalStage isPepHit(boolean isPepHit) {
129148 return this ;
130149 }
131150
151+ @ java .lang .Override
152+ public _FinalStage category (String category ) {
153+ this .category = Optional .ofNullable (category );
154+ return this ;
155+ }
156+
157+ @ java .lang .Override
158+ @ JsonSetter (value = "category" , nulls = Nulls .SKIP )
159+ public _FinalStage category (Optional <String > category ) {
160+ this .category = category ;
161+ return this ;
162+ }
163+
132164 @ java .lang .Override
133165 public _FinalStage pepRank (PepRank pepRank ) {
134166 this .pepRank = Optional .ofNullable (pepRank );
@@ -157,7 +189,7 @@ public _FinalStage pepCountry(Optional<CountryCode> pepCountry) {
157189
158190 @ java .lang .Override
159191 public PepStatus build () {
160- return new PepStatus (isPepHit , pepCountry , pepRank , additionalProperties );
192+ return new PepStatus (isPepHit , pepCountry , pepRank , category , additionalProperties );
161193 }
162194 }
163195}
0 commit comments