Skip to content

Commit

Permalink
Update generated code (#1275)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
stripe-openapi[bot] authored Sep 28, 2023
1 parent 04792b3 commit e0d068c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v540
v563
2 changes: 1 addition & 1 deletion lib/stripe/resources/mandate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/payout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down
6 changes: 3 additions & 3 deletions lib/stripe/resources/refund.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/setup_attempt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions test/stripe/generated_examples_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit e0d068c

Please sign in to comment.