Skip to content
Open
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 @@
{
".": "4.7.1"
".": "4.8.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 81
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-3fc1c86b4a83a16393aaf17d1fb3ac6098d30dd057ba872973b57285a7a3f0d0.yml
openapi_spec_hash: 02a545d217b13399f311e99561f9de1d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-b3852cdd1020811766572923d26a6c95f4a538bf4c7268462b6ba39f34480b3e.yml
openapi_spec_hash: b2e2f2357342e9a6b16a591d0b946e38
config_hash: 0789c3cddc625bb9712b3bded274ab6c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.8.0 (2026-02-12)

Full Changelog: [v4.7.1...v4.8.0](https://github.com/trycourier/courier-ruby/compare/v4.7.1...v4.8.0)

### Features

* **api:** remove brand field from ElementalContent model ([8018dff](https://github.com/trycourier/courier-ruby/commit/8018dffe50e37f01c2edb8ffb45f5a260383ec7c))

## 4.7.1 (2026-02-07)

Full Changelog: [v4.7.0...v4.7.1](https://github.com/trycourier/courier-ruby/compare/v4.7.0...v4.7.1)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
trycourier (4.7.1)
trycourier (4.8.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "trycourier", "~> 4.7.1"
gem "trycourier", "~> 4.8.0"
```

<!-- x-release-please-end -->
Expand Down
9 changes: 1 addition & 8 deletions lib/courier/models/elemental_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,10 @@ class ElementalContent < Courier::Internal::Type::BaseModel
# @return [String]
required :version, String

# @!attribute brand
#
# @return [String, nil]
optional :brand, String, nil?: true

# @!method initialize(elements:, version:, brand: nil)
# @!method initialize(elements:, version:)
# @param elements [Array<Courier::Models::ElementalTextNodeWithType, Courier::Models::ElementalMetaNodeWithType, Courier::Models::ElementalChannelNodeWithType, Courier::Models::ElementalImageNodeWithType, Courier::Models::ElementalActionNodeWithType, Courier::Models::ElementalDividerNodeWithType, Courier::Models::ElementalQuoteNodeWithType>]
#
# @param version [String] For example, "2022-01-01"
#
# @param brand [String, nil]
end
end
end
2 changes: 1 addition & 1 deletion lib/courier/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Courier
VERSION = "4.7.1"
VERSION = "4.8.0"
end
12 changes: 3 additions & 9 deletions rbi/courier/models/elemental_content.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ module Courier
sig { returns(String) }
attr_accessor :version

sig { returns(T.nilable(String)) }
attr_accessor :brand

sig do
params(
elements:
Expand All @@ -46,15 +43,13 @@ module Courier
Courier::ElementalQuoteNodeWithType::OrHash
)
],
version: String,
brand: T.nilable(String)
version: String
).returns(T.attached_class)
end
def self.new(
elements:,
# For example, "2022-01-01"
version:,
brand: nil
version:
)
end

Expand All @@ -73,8 +68,7 @@ module Courier
Courier::ElementalQuoteNodeWithType
)
],
version: String,
brand: T.nilable(String)
version: String
}
)
end
Expand Down
14 changes: 3 additions & 11 deletions sig/courier/models/elemental_content.rbs
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
module Courier
module Models
type elemental_content =
{
elements: ::Array[Courier::Models::elemental_node],
version: String,
brand: String?
}
{ elements: ::Array[Courier::Models::elemental_node], version: String }

class ElementalContent < Courier::Internal::Type::BaseModel
attr_accessor elements: ::Array[Courier::Models::elemental_node]

attr_accessor version: String

attr_accessor brand: String?

def initialize: (
elements: ::Array[Courier::Models::elemental_node],
version: String,
?brand: String?
version: String
) -> void

def to_hash: -> {
elements: ::Array[Courier::Models::elemental_node],
version: String,
brand: String?
version: String
}
end
end
Expand Down