From 8018dffe50e37f01c2edb8ffb45f5a260383ec7c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 19:46:37 +0000 Subject: [PATCH 1/2] feat(api): remove brand field from ElementalContent model --- .stats.yml | 4 ++-- lib/courier/models/elemental_content.rb | 9 +-------- rbi/courier/models/elemental_content.rbi | 12 +++--------- sig/courier/models/elemental_content.rbs | 14 +++----------- 4 files changed, 9 insertions(+), 30 deletions(-) diff --git a/.stats.yml b/.stats.yml index 17749e26..290f28d8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/lib/courier/models/elemental_content.rb b/lib/courier/models/elemental_content.rb index 3c37b02b..811745ef 100644 --- a/lib/courier/models/elemental_content.rb +++ b/lib/courier/models/elemental_content.rb @@ -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] # # @param version [String] For example, "2022-01-01" - # - # @param brand [String, nil] end end end diff --git a/rbi/courier/models/elemental_content.rbi b/rbi/courier/models/elemental_content.rbi index a90bf6b5..b37df9fc 100644 --- a/rbi/courier/models/elemental_content.rbi +++ b/rbi/courier/models/elemental_content.rbi @@ -29,9 +29,6 @@ module Courier sig { returns(String) } attr_accessor :version - sig { returns(T.nilable(String)) } - attr_accessor :brand - sig do params( elements: @@ -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 @@ -73,8 +68,7 @@ module Courier Courier::ElementalQuoteNodeWithType ) ], - version: String, - brand: T.nilable(String) + version: String } ) end diff --git a/sig/courier/models/elemental_content.rbs b/sig/courier/models/elemental_content.rbs index 8acc1c91..346fbafe 100644 --- a/sig/courier/models/elemental_content.rbs +++ b/sig/courier/models/elemental_content.rbs @@ -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 From a94874b462c90fde165e88938c156126a865be7f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 19:46:56 +0000 Subject: [PATCH 2/2] release: 4.8.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/courier/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f1a48d37..90eeef65 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.7.1" + ".": "4.8.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index f93bae61..33fdf1bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index e0b6500b..cfed93ba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - trycourier (4.7.1) + trycourier (4.8.0) cgi connection_pool diff --git a/README.md b/README.md index 3e2c2646..c601acbe 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "trycourier", "~> 4.7.1" +gem "trycourier", "~> 4.8.0" ``` diff --git a/lib/courier/version.rb b/lib/courier/version.rb index 4ef2cb5e..c802e4c8 100644 --- a/lib/courier/version.rb +++ b/lib/courier/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Courier - VERSION = "4.7.1" + VERSION = "4.8.0" end