From c2bb4dbcebde1eff9d66d22450d939db971a9e5c Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik <99290280+kamil-stripe@users.noreply.github.com> Date: Wed, 2 Nov 2022 13:21:34 -0700 Subject: [PATCH 1/2] Codegen for openapi v204 (#1138) --- OPENAPI_VERSION | 2 +- lib/stripe/resources/refund.rb | 4 ++++ lib/stripe/resources/source.rb | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c13f8f95..fe802d3a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v184 \ No newline at end of file +v204 \ No newline at end of file diff --git a/lib/stripe/resources/refund.rb b/lib/stripe/resources/refund.rb index f7aa8a55..7d8ce075 100644 --- a/lib/stripe/resources/refund.rb +++ b/lib/stripe/resources/refund.rb @@ -6,6 +6,10 @@ module Stripe # but not yet refunded. Funds will be refunded to the credit or debit card that # was originally charged. # + # Stripe Tax users with recurring payments and invoices can create [Credit Notes](https://stripe.com/docs/api/credit_notes), + # which reduce overall tax liability because tax is correctly recalculated and + # apportioned to the related invoice. + # # Related guide: [Refunds](https://stripe.com/docs/refunds). class Refund < APIResource extend Stripe::APIOperations::Create diff --git a/lib/stripe/resources/source.rb b/lib/stripe/resources/source.rb index a93ccfb6..d474f59d 100644 --- a/lib/stripe/resources/source.rb +++ b/lib/stripe/resources/source.rb @@ -7,6 +7,10 @@ module Stripe # just like a `Card` object: once chargeable, they can be charged, or can be # attached to customers. # + # Stripe doesn't recommend using the deprecated [Sources API](https://stripe.com/docs/api/sources). + # We recommend that you adopt the [PaymentMethods API](https://stripe.com/docs/api/payment_methods). + # This newer API provides access to our latest features and payment method types. + # # Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers). class Source < APIResource extend Stripe::APIOperations::Create From 6dc009579d66639991624db877b5c1b065266249 Mon Sep 17 00:00:00 2001 From: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> Date: Wed, 2 Nov 2022 16:31:55 -0700 Subject: [PATCH 2/2] Disable AsciiComments rule (#1142) --- .rubocop.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index ec2771f5..c98f112b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -45,9 +45,7 @@ Style/AccessModifierDeclarations: EnforcedStyle: inline Style/AsciiComments: - AllowedChars: - - ’ - - € + Enabled: false Style/FrozenStringLiteralComment: EnforcedStyle: always