Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "5.11.1"
".": "5.11.2"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 138
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-e8d4bd51bf260b8a6cb9875718e36eab95d4e8d9490cd6c5c669eb69b82c2bf8.yml
openapi_spec_hash: bf321581a238ae891debcc5bb59dd501
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-11e1931d767cef402bbed5a965746d1933ae72db0f41881860593a0b1424fd80.yml
openapi_spec_hash: 9def941805f233f8761c4bdae88f6137
config_hash: 6c3a754258f0f77e9032a90a478ab76d
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 5.11.2 (2026-07-10)

Full Changelog: [v5.11.1...v5.11.2](https://github.com/trycourier/courier-php/compare/v5.11.1...v5.11.2)

### Documentation

* **openapi:** canonical type-id prefixes across all examples ([#162](https://github.com/trycourier/courier-php/issues/162)) ([1f883cb](https://github.com/trycourier/courier-php/commit/1f883cb20d6675abf337f0eb18b84d90472e5f4b))
* **openapi:** use canonical type-id prefixes in id examples ([#160](https://github.com/trycourier/courier-php/issues/160)) ([e400881](https://github.com/trycourier/courier-php/commit/e4008818317bdee7b7c2f65b64d3f155bf3458a8))

## 5.11.1 (2026-07-09)

Full Changelog: [v5.11.0...v5.11.1](https://github.com/trycourier/courier-php/compare/v5.11.0...v5.11.1)
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
namespace Courier;

// x-release-please-start-version
const VERSION = '5.11.1';
const VERSION = '5.11.2';
// x-release-please-end
12 changes: 6 additions & 6 deletions tests/Services/NotificationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public function testCreate(): void

$result = $this->client->notifications->create(
notification: [
'brand' => ['id' => 'brand_abc'],
'brand' => ['id' => 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag'],
'content' => ['elements' => [[]], 'version' => '2022-01-01'],
'name' => 'Welcome Email',
'routing' => ['strategyID' => 'rs_123'],
'subscription' => ['topicID' => 'marketing'],
'routing' => ['strategyID' => 'rs_01kx4h2jdafq8bk9amzvy6hbv0'],
'subscription' => ['topicID' => 'pt_01kx4h2jdafq8bk9a26x0kvd1t'],
'tags' => ['onboarding', 'welcome'],
],
);
Expand All @@ -63,13 +63,13 @@ public function testCreateWithOptionalParams(): void

$result = $this->client->notifications->create(
notification: [
'brand' => ['id' => 'brand_abc'],
'brand' => ['id' => 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag'],
'content' => [
'elements' => [['type' => 'channel']], 'version' => '2022-01-01',
],
'name' => 'Welcome Email',
'routing' => ['strategyID' => 'rs_123'],
'subscription' => ['topicID' => 'marketing'],
'routing' => ['strategyID' => 'rs_01kx4h2jdafq8bk9amzvy6hbv0'],
'subscription' => ['topicID' => 'pt_01kx4h2jdafq8bk9a26x0kvd1t'],
'tags' => ['onboarding', 'welcome'],
],
state: 'DRAFT',
Expand Down
12 changes: 6 additions & 6 deletions tests/Services/Users/PreferencesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testBulkReplace(): void
$result = $this->client->users->preferences->bulkReplace(
'user_id',
topics: [
['status' => 'OPTED_IN', 'topicID' => '74Q4QGFBEX481DP6JRPMV751H4XT'],
['status' => 'OPTED_IN', 'topicID' => 'pt_01kx4h2jdafq8bk996nn92357r'],
],
);

Expand All @@ -77,7 +77,7 @@ public function testBulkReplaceWithOptionalParams(): void
topics: [
[
'status' => 'OPTED_IN',
'topicID' => '74Q4QGFBEX481DP6JRPMV751H4XT',
'topicID' => 'pt_01kx4h2jdafq8bk996nn92357r',
'customRouting' => [
ChannelClassification::INBOX, ChannelClassification::EMAIL,
],
Expand All @@ -101,8 +101,8 @@ public function testBulkUpdate(): void
$result = $this->client->users->preferences->bulkUpdate(
'user_id',
topics: [
['status' => 'OPTED_IN', 'topicID' => '74Q4QGFBEX481DP6JRPMV751H4XT'],
['status' => 'OPTED_OUT', 'topicID' => '5Q4QGFBEX481DP6JRPMV751H4YU'],
['status' => 'OPTED_IN', 'topicID' => 'pt_01kx4h2jdafq8bk996nn92357r'],
['status' => 'OPTED_OUT', 'topicID' => 'pt_01kx4h2jdafq8bk99eyt3dx43x'],
],
);

Expand All @@ -122,15 +122,15 @@ public function testBulkUpdateWithOptionalParams(): void
topics: [
[
'status' => 'OPTED_IN',
'topicID' => '74Q4QGFBEX481DP6JRPMV751H4XT',
'topicID' => 'pt_01kx4h2jdafq8bk996nn92357r',
'customRouting' => [
ChannelClassification::INBOX, ChannelClassification::EMAIL,
],
'hasCustomRouting' => true,
],
[
'status' => 'OPTED_OUT',
'topicID' => '5Q4QGFBEX481DP6JRPMV751H4YU',
'topicID' => 'pt_01kx4h2jdafq8bk99eyt3dx43x',
'customRouting' => [ChannelClassification::DIRECT_MESSAGE],
'hasCustomRouting' => true,
],
Expand Down
Loading