Skip to content

Commit

Permalink
Update generated code for v309 (#1215)
Browse files Browse the repository at this point in the history
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Apr 27, 2023
1 parent f36db94 commit 0890e1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v296
v309
11 changes: 11 additions & 0 deletions test/stripe/generated_examples_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,17 @@ class CodegennedExampleTest < Test::Unit::TestCase
)
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
Expand Down

0 comments on commit 0890e1f

Please sign in to comment.