From ff558e713b75f31ef13bb374cfe57d27de54f54e Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 13 Apr 2023 07:56:46 -0700 Subject: [PATCH 1/2] Update generated code for v296 (#1208) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- test/stripe/generated_examples_test.rb | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 02b98f78e..22402537f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v291 \ No newline at end of file +v296 \ No newline at end of file diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index ab147194c..2cdb76b91 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -1137,6 +1137,16 @@ class CodegennedExampleTest < Test::Unit::TestCase ) assert_requested :post, "#{Stripe.api_base}/v1/payment_intents" end + should "support requests with args: amount, currency, payment_method_data" do + Stripe::PaymentIntent.create( + { + amount: 200, + currency: "usd", + payment_method_data: { type: "p24", p24: { bank: "blik" } }, + } + ) + assert_requested :post, "#{Stripe.api_base}/v1/payment_intents" + end end context "PaymentIntent.increment_authorization" do should "support requests with args: amount, id" do From f36db9462ad6a2719f50ed5447d8ce96fe25c839 Mon Sep 17 00:00:00 2001 From: Ricardo Trindade Date: Thu, 13 Apr 2023 19:02:04 +0200 Subject: [PATCH 2/2] Update shoulda-context version (#1209) Should-context was released July 2020 so I believe this dependency can be updated --- Gemfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 450146e6f..80baccd58 100644 --- a/Gemfile +++ b/Gemfile @@ -10,8 +10,7 @@ group :development do gem "rack", ">= 2.0.6" gem "rake" - # Update to 2.0.0 once it ships. - gem "shoulda-context", "2.0.0.rc4" + gem "shoulda-context", "2.0.0" gem "test-unit"