From e46dc213970d0760637d0f83a23b180d5dbcc8cb Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 22 Sep 2023 02:21:32 +0000 Subject: [PATCH 1/5] Update generated code for v546 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/mandate.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a98b1d0aa..00aae46c6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v540 \ No newline at end of file +v546 \ No newline at end of file diff --git a/lib/stripe/resources/mandate.rb b/lib/stripe/resources/mandate.rb index 523c469cc..06983ff30 100644 --- a/lib/stripe/resources/mandate.rb +++ b/lib/stripe/resources/mandate.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - # A Mandate is a record of the permission a customer has given you to debit their payment method. + # A Mandate is a record of the permission that your customer gives you to debit their payment method. class Mandate < APIResource OBJECT_NAME = "mandate" end From 3659c7eb0f78d0d0c6554adcbd543d83871b6941 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 22 Sep 2023 16:55:35 +0000 Subject: [PATCH 2/5] Update generated code for v548 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/setup_attempt.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 00aae46c6..aa2c54c9a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v546 \ No newline at end of file +v548 \ No newline at end of file diff --git a/lib/stripe/resources/setup_attempt.rb b/lib/stripe/resources/setup_attempt.rb index 35bff2b92..f1cde191d 100644 --- a/lib/stripe/resources/setup_attempt.rb +++ b/lib/stripe/resources/setup_attempt.rb @@ -3,7 +3,7 @@ module Stripe # A SetupAttempt describes one attempted confirmation of a SetupIntent, - # whether that confirmation was successful or unsuccessful. You can use + # whether that confirmation is successful or unsuccessful. You can use # SetupAttempts to inspect details of a specific attempt at setting up a # payment method using a SetupIntent. class SetupAttempt < APIResource From 39367d9554890b9887fa0c079579e25e06c55102 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 12:00:49 +0000 Subject: [PATCH 3/5] Update generated code for v551 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/payout.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index aa2c54c9a..08b883915 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v548 \ No newline at end of file +v551 \ No newline at end of file diff --git a/lib/stripe/resources/payout.rb b/lib/stripe/resources/payout.rb index a714ceb5f..cccba9eb4 100644 --- a/lib/stripe/resources/payout.rb +++ b/lib/stripe/resources/payout.rb @@ -5,7 +5,7 @@ module Stripe # A `Payout` object is created when you receive funds from Stripe, or when you # initiate a payout to either a bank account or debit card of a [connected # Stripe account](https://stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts, - # as well as list all payouts. Payouts are made on [varying + # and list all payouts. Payouts are made on [varying # schedules](https://stripe.com/docs/connect/manage-payout-schedule), depending on your country and # industry. # From 5dbfbe40be12e38cfa969537f7dd249f22dbd22d 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:14 +0000 Subject: [PATCH 4/5] 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 cca383837..d9e9dad08 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -2170,6 +2170,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 }) From 98bdf7bd1765b8e749a13c0cdbae7b4f98848e34 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:47:08 +0000 Subject: [PATCH 5/5] Update generated code for v563 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/refund.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index aafdd30ff..d2d999515 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v557 \ No newline at end of file +v563 \ No newline at end of file diff --git a/lib/stripe/resources/refund.rb b/lib/stripe/resources/refund.rb index 847d0b45b..2bd7cf574 100644 --- a/lib/stripe/resources/refund.rb +++ b/lib/stripe/resources/refund.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - # `Refund` objects allow you to refund a charge that has previously been created - # but not yet refunded. Funds will be refunded to the credit or debit card that - # was originally charged. + # Refund objects allow you to refund a previously created charge that isn't + # refunded yet. Funds are refunded to the credit or debit card that's + # initially charged. # # Related guide: [Refunds](https://stripe.com/docs/refunds) class Refund < APIResource