From 42f0c2c9d457886f49187e10a334fee09405fa7d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 12 Oct 2023 17:45:36 +0000 Subject: [PATCH 1/2] Update generated code for v599 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/payment_method_configuration.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8a06d2260..82db3f750 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v591 \ No newline at end of file +v599 \ No newline at end of file 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 From 7be7413461357bc05dbf630bc9919acc169c0c42 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 13 Oct 2023 21:44:27 +0000 Subject: [PATCH 2/2] Update generated code for v601 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/issuing/token.rb | 2 +- test/stripe/generated_examples_test.rb | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 82db3f750..bb650b273 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v599 \ 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/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index ae1cec314..ee9c56864 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