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] 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 c13f8f959..fe802d3a4 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 f7aa8a55c..7d8ce075f 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 a93ccfb69..d474f59d9 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