Skip to content

Commit 020e69b

Browse files
Automatically update PHP SDK
1 parent dd6c09b commit 020e69b

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trophy/php",
3-
"version": "1.0.21",
3+
"version": "1.0.22",
44
"description": "Trophy PHP Library",
55
"keywords": [
66
"trophy",

‎src/Types/EventResponse.php‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)