From 5424da3fffff8356fa2f0bcc53f888756fc4261d Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:23:14 +0000 Subject: [PATCH] Update generated code (#1430) * Update generated code for v1121 * Update generated code for v1126 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/resources/billing_portal/session.rb | 2 +- lib/stripe/resources/identity/verification_report.rb | 2 +- lib/stripe/resources/payment_method_domain.rb | 2 +- lib/stripe/resources/subscription.rb | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d1614a49..c903c351 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1111 \ No newline at end of file +v1126 \ No newline at end of file diff --git a/lib/stripe/resources/billing_portal/session.rb b/lib/stripe/resources/billing_portal/session.rb index c638e74e..ec681a38 100644 --- a/lib/stripe/resources/billing_portal/session.rb +++ b/lib/stripe/resources/billing_portal/session.rb @@ -16,7 +16,7 @@ module Stripe # Create sessions on-demand when customers intend to manage their subscriptions # and billing details. # - # Learn more in the [integration guide](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal). + # Related guide: [Customer management](https://stripe.com/customer-management) class Session < APIResource extend Stripe::APIOperations::Create diff --git a/lib/stripe/resources/identity/verification_report.rb b/lib/stripe/resources/identity/verification_report.rb index aaa0ec9d..854e08c2 100644 --- a/lib/stripe/resources/identity/verification_report.rb +++ b/lib/stripe/resources/identity/verification_report.rb @@ -13,7 +13,7 @@ module Stripe # API. To configure and create VerificationReports, use the # [VerificationSession](https://stripe.com/docs/api/identity/verification_sessions) API. # - # Related guides: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results). + # Related guide: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results). class VerificationReport < APIResource extend Stripe::APIOperations::List diff --git a/lib/stripe/resources/payment_method_domain.rb b/lib/stripe/resources/payment_method_domain.rb index 26a2c6f7..8ea787a5 100644 --- a/lib/stripe/resources/payment_method_domain.rb +++ b/lib/stripe/resources/payment_method_domain.rb @@ -5,7 +5,7 @@ module Stripe # A payment method domain represents a web domain that you have registered with Stripe. # Stripe Elements use registered payment method domains to control where certain payment methods are shown. # - # Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration). + # Related guide: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration). class PaymentMethodDomain < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index c26dcb43..6cbe07dc 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -115,7 +115,7 @@ module Stripe # Updates an existing subscription to match the specified parameters. # When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes. - # To preview how the proration is calculated, use the [upcoming invoice](https://stripe.com/docs/api/invoices/upcoming) endpoint. + # To preview how the proration is calculated, use the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. # # By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. # @@ -123,11 +123,11 @@ module Stripe # # # The billing interval is changed (for example, from monthly to yearly). - # The subscription moves from free to paid, or paid to free. + # The subscription moves from free to paid. # A trial starts or ends. # # - # In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. + # In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). # # If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). #