@@ -44,6 +44,18 @@ class EventResponse extends JsonSerializableType
4444 #[JsonProperty('points ' ), ArrayType(['string ' => MetricEventPointsResponse::class])]
4545 public ?array $ points ;
4646
47+ /**
48+ * @var ?string $idempotencyKey The idempotency key used for the event, if one was provided.
49+ */
50+ #[JsonProperty('idempotencyKey ' )]
51+ public ?string $ idempotencyKey ;
52+
53+ /**
54+ * @var ?bool $idempotentReplayed Whether the event was replayed due to idempotency.
55+ */
56+ #[JsonProperty('idempotentReplayed ' )]
57+ public ?bool $ idempotentReplayed ;
58+
4759 /**
4860 * @param array{
4961 * eventId: string,
@@ -52,6 +64,8 @@ class EventResponse extends JsonSerializableType
5264 * achievements?: ?array<CompletedAchievementResponse>,
5365 * currentStreak?: ?MetricEventStreakResponse,
5466 * points?: ?array<string, MetricEventPointsResponse>,
67+ * idempotencyKey?: ?string,
68+ * idempotentReplayed?: ?bool,
5569 * } $values
5670 */
5771 public function __construct (
@@ -63,6 +77,8 @@ public function __construct(
6377 $ this ->achievements = $ values ['achievements ' ] ?? null ;
6478 $ this ->currentStreak = $ values ['currentStreak ' ] ?? null ;
6579 $ this ->points = $ values ['points ' ] ?? null ;
80+ $ this ->idempotencyKey = $ values ['idempotencyKey ' ] ?? null ;
81+ $ this ->idempotentReplayed = $ values ['idempotentReplayed ' ] ?? null ;
6682 }
6783
6884 /**
0 commit comments