From e0d068c909d819b28f23005f9a672d857bca0d12 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:46:39 -0700 Subject: [PATCH] Update generated code (#1275) * Update generated code for v546 * Update generated code for v548 * Update generated code for v551 * Update generated code for v557 * Update generated code for v563 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/resources/mandate.rb | 2 +- lib/stripe/resources/payout.rb | 2 +- lib/stripe/resources/refund.rb | 6 +++--- lib/stripe/resources/setup_attempt.rb | 2 +- test/stripe/generated_examples_test.rb | 6 ++++++ 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a98b1d0aa..d2d999515 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v540 \ No newline at end of file +v563 \ 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 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. # 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 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 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 })