From 4d6011efcdd43a6420ae0e1dbaa2c3d103aec471 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 27 Apr 2023 15:44:17 +0000 Subject: [PATCH] Update generated code for v309 (#963) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- tests/test_generated_examples.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 22402537f..8d9af222c 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/tests/test_generated_examples.py b/tests/test_generated_examples.py index 2c0cc5413..4fe5ce206 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -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(