diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 22402537..8d9af222 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v296 \ No newline at end of file +v309 \ No newline at end of file diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index 2cdb76b9..6298e2f0 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -1365,6 +1365,17 @@ module Stripe ) assert_requested :post, "#{Stripe.api_base}/v1/plans" end + should "support requests with args: amount, currency, interval, product2" do + Stripe::Plan.create( + { + amount: 2000, + currency: "usd", + interval: "month", + product: { name: "My product" }, + } + ) + assert_requested :post, "#{Stripe.api_base}/v1/plans" + end end context "Plan.delete" do should "support requests with args: id" do