@@ -49,6 +49,8 @@ public final class AchievementWithStatsResponse implements IAchievementWithStats
4949
5050 private final Optional <Integer > streakLength ;
5151
52+ private final Optional <Integer > anniversaryYears ;
53+
5254 private final Optional <List <String >> achievementIds ;
5355
5456 private final Optional <String > metricId ;
@@ -67,8 +69,9 @@ public final class AchievementWithStatsResponse implements IAchievementWithStats
6769
6870 private AchievementWithStatsResponse (int completions , double rarity , String id , String name ,
6971 AchievementResponseTrigger trigger , Optional <String > description , Optional <String > badgeUrl ,
70- Optional <String > key , Optional <Integer > streakLength , Optional <List <String >> achievementIds ,
71- Optional <String > metricId , Optional <Double > metricValue , Optional <String > metricName ,
72+ Optional <String > key , Optional <Integer > streakLength , Optional <Integer > anniversaryYears ,
73+ Optional <List <String >> achievementIds , Optional <String > metricId ,
74+ Optional <Double > metricValue , Optional <String > metricName ,
7275 List <AchievementResponseUserAttributesItem > userAttributes ,
7376 Optional <AchievementResponseEventAttribute > eventAttribute ,
7477 Optional <List <AchievementResponseEventAttributesItem >> eventAttributes ,
@@ -82,6 +85,7 @@ private AchievementWithStatsResponse(int completions, double rarity, String id,
8285 this .badgeUrl = badgeUrl ;
8386 this .key = key ;
8487 this .streakLength = streakLength ;
88+ this .anniversaryYears = anniversaryYears ;
8589 this .achievementIds = achievementIds ;
8690 this .metricId = metricId ;
8791 this .metricValue = metricValue ;
@@ -172,6 +176,15 @@ public Optional<Integer> getStreakLength() {
172176 return streakLength ;
173177 }
174178
179+ /**
180+ * @return The number of years after sign-up required to complete the achievement (only applicable if trigger = 'anniversary')
181+ */
182+ @ JsonProperty ("anniversaryYears" )
183+ @ java .lang .Override
184+ public Optional <Integer > getAnniversaryYears () {
185+ return anniversaryYears ;
186+ }
187+
175188 /**
176189 * @return The IDs of the prerequisite achievements that must be completed to earn this achievement (only applicable if trigger = 'achievement')
177190 */
@@ -244,12 +257,12 @@ public Map<String, Object> getAdditionalProperties() {
244257 }
245258
246259 private boolean equalTo (AchievementWithStatsResponse other ) {
247- 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 ) && eventAttributes .equals (other .eventAttributes );
260+ 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 ) && anniversaryYears . equals ( other . anniversaryYears ) && achievementIds .equals (other .achievementIds ) && metricId .equals (other .metricId ) && metricValue .equals (other .metricValue ) && metricName .equals (other .metricName ) && userAttributes .equals (other .userAttributes ) && eventAttribute .equals (other .eventAttribute ) && eventAttributes .equals (other .eventAttributes );
248261 }
249262
250263 @ java .lang .Override
251264 public int hashCode () {
252- 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 , this .eventAttributes );
265+ return Objects .hash (this .completions , this .rarity , this .id , this .name , this .trigger , this .description , this .badgeUrl , this .key , this .streakLength , this .anniversaryYears , this . achievementIds , this .metricId , this .metricValue , this .metricName , this .userAttributes , this .eventAttribute , this .eventAttributes );
253266 }
254267
255268 @ java .lang .Override
@@ -333,6 +346,13 @@ public interface _FinalStage {
333346
334347 _FinalStage streakLength (Integer streakLength );
335348
349+ /**
350+ * <p>The number of years after sign-up required to complete the achievement (only applicable if trigger = 'anniversary')</p>
351+ */
352+ _FinalStage anniversaryYears (Optional <Integer > anniversaryYears );
353+
354+ _FinalStage anniversaryYears (Integer anniversaryYears );
355+
336356 /**
337357 * <p>The IDs of the prerequisite achievements that must be completed to earn this achievement (only applicable if trigger = 'achievement')</p>
338358 */
@@ -414,6 +434,8 @@ public static final class Builder implements CompletionsStage, RarityStage, IdSt
414434
415435 private Optional <List <String >> achievementIds = Optional .empty ();
416436
437+ private Optional <Integer > anniversaryYears = Optional .empty ();
438+
417439 private Optional <Integer > streakLength = Optional .empty ();
418440
419441 private Optional <String > key = Optional .empty ();
@@ -439,6 +461,7 @@ public Builder from(AchievementWithStatsResponse other) {
439461 badgeUrl (other .getBadgeUrl ());
440462 key (other .getKey ());
441463 streakLength (other .getStreakLength ());
464+ anniversaryYears (other .getAnniversaryYears ());
442465 achievementIds (other .getAchievementIds ());
443466 metricId (other .getMetricId ());
444467 metricValue (other .getMetricValue ());
@@ -683,6 +706,29 @@ public _FinalStage achievementIds(Optional<List<String>> achievementIds) {
683706 return this ;
684707 }
685708
709+ /**
710+ * <p>The number of years after sign-up required to complete the achievement (only applicable if trigger = 'anniversary')</p>
711+ * @return Reference to {@code this} so that method calls can be chained together.
712+ */
713+ @ java .lang .Override
714+ public _FinalStage anniversaryYears (Integer anniversaryYears ) {
715+ this .anniversaryYears = Optional .ofNullable (anniversaryYears );
716+ return this ;
717+ }
718+
719+ /**
720+ * <p>The number of years after sign-up required to complete the achievement (only applicable if trigger = 'anniversary')</p>
721+ */
722+ @ java .lang .Override
723+ @ JsonSetter (
724+ value = "anniversaryYears" ,
725+ nulls = Nulls .SKIP
726+ )
727+ public _FinalStage anniversaryYears (Optional <Integer > anniversaryYears ) {
728+ this .anniversaryYears = anniversaryYears ;
729+ return this ;
730+ }
731+
686732 /**
687733 * <p>The length of the streak required to complete the achievement (only applicable if trigger = 'streak')</p>
688734 * @return Reference to {@code this} so that method calls can be chained together.
@@ -777,7 +823,7 @@ public _FinalStage description(Optional<String> description) {
777823
778824 @ java .lang .Override
779825 public AchievementWithStatsResponse build () {
780- return new AchievementWithStatsResponse (completions , rarity , id , name , trigger , description , badgeUrl , key , streakLength , achievementIds , metricId , metricValue , metricName , userAttributes , eventAttribute , eventAttributes , additionalProperties );
826+ return new AchievementWithStatsResponse (completions , rarity , id , name , trigger , description , badgeUrl , key , streakLength , anniversaryYears , achievementIds , metricId , metricValue , metricName , userAttributes , eventAttribute , eventAttributes , additionalProperties );
781827 }
782828
783829 @ java .lang .Override
0 commit comments