From 4b425a8fc6465e189b39233d1cd706a697ed7df4 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:54:27 -0700 Subject: [PATCH 1/3] Update generated code (#1281) * Update generated code for v599 * Update generated code for v601 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/resources/issuing/token.rb | 2 +- .../resources/payment_method_configuration.rb | 2 +- test/stripe/generated_examples_test.rb | 20 +++++++++++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f8eb31b2e..bb650b273 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v580 \ No newline at end of file +v601 \ No newline at end of file diff --git a/lib/stripe/resources/issuing/token.rb b/lib/stripe/resources/issuing/token.rb index 59d3bc539..8b89833d9 100644 --- a/lib/stripe/resources/issuing/token.rb +++ b/lib/stripe/resources/issuing/token.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can view and manage these tokens through Stripe. + # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can [view and manage these tokens](https://stripe.com/docs/issuing/controls/token-management) through Stripe. class Token < APIResource extend Stripe::APIOperations::List include Stripe::APIOperations::Save diff --git a/lib/stripe/resources/payment_method_configuration.rb b/lib/stripe/resources/payment_method_configuration.rb index e6f61f032..e3955fa2a 100644 --- a/lib/stripe/resources/payment_method_configuration.rb +++ b/lib/stripe/resources/payment_method_configuration.rb @@ -14,7 +14,7 @@ module Stripe # # Related guides: # - [Payment Method Configurations API](https://stripe.com/docs/connect/payment-method-configurations) - # - [Multiple payment method configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs) + # - [Multiple configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs) # - [Multiple configurations for your Connect accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations) class PaymentMethodConfiguration < APIResource extend Stripe::APIOperations::Create diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index d9e9dad08..58688c867 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -602,6 +602,26 @@ class CodegennedExampleTest < Test::Unit::TestCase Stripe::Account.list_external_accounts("acct_xxxxxxxxxxxxx", { limit: 3 }) assert_requested :get, "#{Stripe.api_base}/v1/accounts/acct_xxxxxxxxxxxxx/external_accounts?limit=3" end + should "support requests with args: object, limit, parent_id" do + Stripe::Account.list_external_accounts( + "acct_xxxxxxxxxxxxx", + { + object: "bank_account", + limit: 3, + } + ) + assert_requested :get, "#{Stripe.api_base}/v1/accounts/acct_xxxxxxxxxxxxx/external_accounts?object=bank_account&limit=3" + end + should "support requests with args: object, limit, parent_id2" do + Stripe::Account.list_external_accounts( + "acct_xxxxxxxxxxxxx", + { + object: "card", + limit: 3, + } + ) + assert_requested :get, "#{Stripe.api_base}/v1/accounts/acct_xxxxxxxxxxxxx/external_accounts?object=card&limit=3" + end end context "ExternalAccount.update" do should "support requests with args: metadata, parent_id, id" do From d40be17ff289822d8d5d93059754e4e2bf8e249b Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:23:14 -0700 Subject: [PATCH 2/3] Update generated code for v603 (#1283) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/api_version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bb650b273..bbe0dc1c9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v601 \ No newline at end of file +v603 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index f6a6d2eeb..0b5fade16 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,6 +3,6 @@ module Stripe module ApiVersion - CURRENT = "2023-08-16" + CURRENT = "2023-10-16" end end From 9cb048b0536a8df50df8cd9757382f4dd7c6b8c5 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Mon, 16 Oct 2023 13:31:32 -0700 Subject: [PATCH 3/3] Bump version to 10.0.0 --- CHANGELOG.md | 11 +++++++++-- VERSION | 2 +- lib/stripe/version.rb | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38a7f0c26..1a3699442 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,15 @@ # Changelog +## 10.0.0 - 2023-10-16 +* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe-ruby`. +* [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code + - Updated pinned API version +* [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code + * Documentation only changes + ## 9.4.0 - 2023-10-05 * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code - * Add support for new resources `Issuing.Token` - * Add support for `list`, `retrieve`, and `update` methods on resource `Token` + * Add support for new resources `Issuing.Token` + * Add support for `list`, `retrieve`, and `update` methods on resource `Token` ## 9.3.0 - 2023-09-14 * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code diff --git a/VERSION b/VERSION index 8148c5594..a13e7b9c8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.4.0 +10.0.0 diff --git a/lib/stripe/version.rb b/lib/stripe/version.rb index 9c195ff45..0ced2edec 100644 --- a/lib/stripe/version.rb +++ b/lib/stripe/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stripe - VERSION = "9.4.0" + VERSION = "10.0.0" end