diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 02b98f78..22402537 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 ab147194..2cdb76b9 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -1137,6 +1137,16 @@ module Stripe ) 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