From 45d7e30a61358b47d68c1ae074f2cb2164a20f23 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 13 Jul 2023 14:48:02 -0700 Subject: [PATCH 1/2] Update generated code for v413 (#1244) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/object_types.rb | 1 + lib/stripe/resources.rb | 1 + lib/stripe/resources/tax/settings.rb | 15 +++++++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 lib/stripe/resources/tax/settings.rb diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 103b9dcf..0b391be3 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v406 \ No newline at end of file +v413 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index bf515014..f244fdc0 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -90,6 +90,7 @@ module Stripe SubscriptionItem::OBJECT_NAME => SubscriptionItem, SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule, Tax::Calculation::OBJECT_NAME => Tax::Calculation, + Tax::Settings::OBJECT_NAME => Tax::Settings, Tax::Transaction::OBJECT_NAME => Tax::Transaction, TaxCode::OBJECT_NAME => TaxCode, TaxId::OBJECT_NAME => TaxId, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 8f853a6f..58f3e450 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -77,6 +77,7 @@ require "stripe/resources/subscription" require "stripe/resources/subscription_item" require "stripe/resources/subscription_schedule" require "stripe/resources/tax/calculation" +require "stripe/resources/tax/settings" require "stripe/resources/tax/transaction" require "stripe/resources/tax_code" require "stripe/resources/tax_id" diff --git a/lib/stripe/resources/tax/settings.rb b/lib/stripe/resources/tax/settings.rb new file mode 100644 index 00000000..6a177a0a --- /dev/null +++ b/lib/stripe/resources/tax/settings.rb @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Tax + # You can use Tax `Settings` to manage configurations used by Stripe Tax calculations. + # + # Related guide: [Using the Settings API](https://stripe.com/docs/tax/settings-api) + class Settings < SingletonAPIResource + include Stripe::APIOperations::Save + + OBJECT_NAME = "tax.settings" + end + end +end From ded501370d162515c3030911da6fb4cf5ffb3596 Mon Sep 17 00:00:00 2001 From: Annie Li Date: Thu, 13 Jul 2023 15:11:59 -0700 Subject: [PATCH 2/2] Bump version to 8.6.0 --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ VERSION | 2 +- lib/stripe/version.rb | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 036e64fa..e7e26abf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 8.6.0 - 2023-07-13 +* [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code + * Add support for new resource `Tax.Settings` + * Add support for `retrieve` and `update` methods on resource `Settings` +* [#1241](https://github.com/stripe/stripe-ruby/pull/1241) Update generated code + +* [#1209](https://github.com/stripe/stripe-ruby/pull/1209) Update shoulda-context version +* [#1235](https://github.com/stripe/stripe-ruby/pull/1235) Allow "error" string as log level +* [#1238](https://github.com/stripe/stripe-ruby/pull/1238) Update log level error message to include `error` +* [#1231](https://github.com/stripe/stripe-ruby/pull/1231) fix: variable typo in README for instrumentation +* [#1234](https://github.com/stripe/stripe-ruby/pull/1234) Update generated code + +* [#1230](https://github.com/stripe/stripe-ruby/pull/1230) Update generated code + * Release specs are identical. +* [#1226](https://github.com/stripe/stripe-ruby/pull/1226) Update generated code + +* [#1223](https://github.com/stripe/stripe-ruby/pull/1223) Update generated code + +* [#1225](https://github.com/stripe/stripe-ruby/pull/1225) Downgrade jaro_winkler +* [#1219](https://github.com/stripe/stripe-ruby/pull/1219) Update generated code + + Documentation updates. +* [#1215](https://github.com/stripe/stripe-ruby/pull/1215) Update generated code + +* [#1208](https://github.com/stripe/stripe-ruby/pull/1208) Update generated code + +* [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code + + ## 8.5.0 - 2023-03-30 * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code * Remove support for `create` method on resource `Tax.Transaction` diff --git a/VERSION b/VERSION index 6d289079..acd405b1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.5.0 +8.6.0 diff --git a/lib/stripe/version.rb b/lib/stripe/version.rb index 7aa32668..e448ae30 100644 --- a/lib/stripe/version.rb +++ b/lib/stripe/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stripe - VERSION = "8.5.0" + VERSION = "8.6.0" end