@@ -48,6 +48,8 @@ public final class AchievementWithStatsResponse implements IAchievementWithStats
4848
4949 private final Optional <Integer > streakLength ;
5050
51+ private final Optional <List <String >> achievementIds ;
52+
5153 private final Optional <String > metricId ;
5254
5355 private final Optional <Double > metricValue ;
@@ -62,8 +64,8 @@ public final class AchievementWithStatsResponse implements IAchievementWithStats
6264
6365 private AchievementWithStatsResponse (int completions , double rarity , String id , String name ,
6466 AchievementResponseTrigger trigger , Optional <String > description , Optional <String > badgeUrl ,
65- Optional <String > key , Optional <Integer > streakLength , Optional <String > metricId ,
66- Optional <Double > metricValue , Optional <String > metricName ,
67+ Optional <String > key , Optional <Integer > streakLength , Optional <List < String >> achievementIds ,
68+ Optional <String > metricId , Optional < Double > metricValue , Optional <String > metricName ,
6769 Optional <List <AchievementResponseUserAttributesItem >> userAttributes ,
6870 Optional <AchievementResponseEventAttribute > eventAttribute ,
6971 Map <String , Object > additionalProperties ) {
@@ -76,6 +78,7 @@ private AchievementWithStatsResponse(int completions, double rarity, String id,
7678 this .badgeUrl = badgeUrl ;
7779 this .key = key ;
7880 this .streakLength = streakLength ;
81+ this .achievementIds = achievementIds ;
7982 this .metricId = metricId ;
8083 this .metricValue = metricValue ;
8184 this .metricName = metricName ;
@@ -164,6 +167,15 @@ public Optional<Integer> getStreakLength() {
164167 return streakLength ;
165168 }
166169
170+ /**
171+ * @return The IDs of the prerequisite achievements that must be completed to earn this achievement (only applicable if trigger = 'achievement')
172+ */
173+ @ JsonProperty ("achievementIds" )
174+ @ java .lang .Override
175+ public Optional <List <String >> getAchievementIds () {
176+ return achievementIds ;
177+ }
178+
167179 /**
168180 * @return The ID of the metric associated with this achievement (only applicable if trigger = 'metric')
169181 */
@@ -219,12 +231,12 @@ public Map<String, Object> getAdditionalProperties() {
219231 }
220232
221233 private boolean equalTo (AchievementWithStatsResponse other ) {
222- return completions == other .completions && rarity == other .rarity && id .equals (other .id ) && name .equals (other .name ) && trigger .equals (other .trigger ) && description .equals (other .description ) && badgeUrl .equals (other .badgeUrl ) && key .equals (other .key ) && streakLength .equals (other .streakLength ) && metricId .equals (other .metricId ) && metricValue .equals (other .metricValue ) && metricName .equals (other .metricName ) && userAttributes .equals (other .userAttributes ) && eventAttribute .equals (other .eventAttribute );
234+ return completions == other .completions && rarity == other .rarity && id .equals (other .id ) && name .equals (other .name ) && trigger .equals (other .trigger ) && description .equals (other .description ) && badgeUrl .equals (other .badgeUrl ) && key .equals (other .key ) && streakLength .equals (other .streakLength ) && achievementIds . equals ( other . achievementIds ) && metricId .equals (other .metricId ) && metricValue .equals (other .metricValue ) && metricName .equals (other .metricName ) && userAttributes .equals (other .userAttributes ) && eventAttribute .equals (other .eventAttribute );
223235 }
224236
225237 @ java .lang .Override
226238 public int hashCode () {
227- return Objects .hash (this .completions , this .rarity , this .id , this .name , this .trigger , this .description , this .badgeUrl , this .key , this .streakLength , this .metricId , this .metricValue , this .metricName , this .userAttributes , this .eventAttribute );
239+ return Objects .hash (this .completions , this .rarity , this .id , this .name , this .trigger , this .description , this .badgeUrl , this .key , this .streakLength , this .achievementIds , this . metricId , this .metricValue , this .metricName , this .userAttributes , this .eventAttribute );
228240 }
229241
230242 @ java .lang .Override
@@ -304,6 +316,13 @@ public interface _FinalStage {
304316
305317 _FinalStage streakLength (Integer streakLength );
306318
319+ /**
320+ * <p>The IDs of the prerequisite achievements that must be completed to earn this achievement (only applicable if trigger = 'achievement')</p>
321+ */
322+ _FinalStage achievementIds (Optional <List <String >> achievementIds );
323+
324+ _FinalStage achievementIds (List <String > achievementIds );
325+
307326 /**
308327 * <p>The ID of the metric associated with this achievement (only applicable if trigger = 'metric')</p>
309328 */
@@ -365,6 +384,8 @@ public static final class Builder implements CompletionsStage, RarityStage, IdSt
365384
366385 private Optional <String > metricId = Optional .empty ();
367386
387+ private Optional <List <String >> achievementIds = Optional .empty ();
388+
368389 private Optional <Integer > streakLength = Optional .empty ();
369390
370391 private Optional <String > key = Optional .empty ();
@@ -390,6 +411,7 @@ public Builder from(AchievementWithStatsResponse other) {
390411 badgeUrl (other .getBadgeUrl ());
391412 key (other .getKey ());
392413 streakLength (other .getStreakLength ());
414+ achievementIds (other .getAchievementIds ());
393415 metricId (other .getMetricId ());
394416 metricValue (other .getMetricValue ());
395417 metricName (other .getMetricName ());
@@ -574,6 +596,29 @@ public _FinalStage metricId(Optional<String> metricId) {
574596 return this ;
575597 }
576598
599+ /**
600+ * <p>The IDs of the prerequisite achievements that must be completed to earn this achievement (only applicable if trigger = 'achievement')</p>
601+ * @return Reference to {@code this} so that method calls can be chained together.
602+ */
603+ @ java .lang .Override
604+ public _FinalStage achievementIds (List <String > achievementIds ) {
605+ this .achievementIds = Optional .ofNullable (achievementIds );
606+ return this ;
607+ }
608+
609+ /**
610+ * <p>The IDs of the prerequisite achievements that must be completed to earn this achievement (only applicable if trigger = 'achievement')</p>
611+ */
612+ @ java .lang .Override
613+ @ JsonSetter (
614+ value = "achievementIds" ,
615+ nulls = Nulls .SKIP
616+ )
617+ public _FinalStage achievementIds (Optional <List <String >> achievementIds ) {
618+ this .achievementIds = achievementIds ;
619+ return this ;
620+ }
621+
577622 /**
578623 * <p>The length of the streak required to complete the achievement (only applicable if trigger = 'streak')</p>
579624 * @return Reference to {@code this} so that method calls can be chained together.
@@ -668,7 +713,7 @@ public _FinalStage description(Optional<String> description) {
668713
669714 @ java .lang .Override
670715 public AchievementWithStatsResponse build () {
671- return new AchievementWithStatsResponse (completions , rarity , id , name , trigger , description , badgeUrl , key , streakLength , metricId , metricValue , metricName , userAttributes , eventAttribute , additionalProperties );
716+ return new AchievementWithStatsResponse (completions , rarity , id , name , trigger , description , badgeUrl , key , streakLength , achievementIds , metricId , metricValue , metricName , userAttributes , eventAttribute , additionalProperties );
672717 }
673718 }
674719}
0 commit comments