From 176f13b832ec7f4d04291ffe18fd053113f2e288 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 00:02:48 +0000 Subject: [PATCH] Update generated code for v557 --- OPENAPI_VERSION | 2 +- test/stripe/generated_examples_test.rb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 08b883915..aafdd30ff 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v551 \ No newline at end of file +v557 \ No newline at end of file diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index e7830b91c..b03c50f1b 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -2176,6 +2176,12 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_requested :post, "#{Stripe.api_base}/v1/subscriptions" end end + context "Subscription.delete_discount" do + should "support requests with args: subscription_exposed_id" do + Stripe::Subscription.delete_discount("sub_xyz") + assert_requested :delete, "#{Stripe.api_base}/v1/subscriptions/sub_xyz/discount?" + end + end context "Subscription.list" do should "support requests with args: limit" do Stripe::Subscription.list({ limit: 3 })