From 0890e1fb0fa70239ad8133469136e61e6091a24b Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 27 Apr 2023 08:41:51 -0700 Subject: [PATCH] Update generated code for v309 (#1215) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- test/stripe/generated_examples_test.rb | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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