Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update generated code for beta #1216

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v305
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