Skip to content

Commit

Permalink
Update generated code for v309 (#963)
Browse files Browse the repository at this point in the history
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: pakrym-stripe <[email protected]>
  • Loading branch information
stripe-openapi[bot] and pakrym-stripe committed Apr 27, 2023
1 parent 8ee0b9b commit 4d6011e
Show file tree
Hide file tree
Showing 2 changed files with 10 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
9 changes: 9 additions & 0 deletions tests/test_generated_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,15 @@ def test_plan_create(self, request_mock):
)
request_mock.assert_requested("post", "/v1/plans")

def test_plan_create2(self, request_mock):
stripe.Plan.create(
amount=2000,
currency="usd",
interval="month",
product={"name": "My product"},
)
request_mock.assert_requested("post", "/v1/plans")

def test_plan_delete(self, request_mock):
stripe.Plan.delete("price_xxxxxxxxxxxxx")
request_mock.assert_requested(
Expand Down

0 comments on commit 4d6011e

Please sign in to comment.