Skip to content

Update generated code for beta#1801

Merged
stripe-openapi[bot] merged 8 commits intobetafrom
latest-codegen-beta
Mar 23, 2026
Merged

Update generated code for beta#1801
stripe-openapi[bot] merged 8 commits intobetafrom
latest-codegen-beta

Conversation

@stripe-openapi
Copy link
Copy Markdown
Contributor

@stripe-openapi stripe-openapi bot commented Feb 27, 2026

Codegen for openapi v2205 and proto spec .

Changelog

  • Add support for new resources ProductCatalog::TrialOffer, Tax::Location, and V2::Core::BatchJob
  • Add support for create method on resource ProductCatalog::TrialOffer
  • Add support for create, list, and retrieve methods on resource Tax::Location
  • Add support for cancel, create, and retrieve methods on resource V2::Core::BatchJob
  • Add support for performance_location on Tax::CalculationCreateParams::LineItem and Tax::CalculationLineItem
  • Add support for trial_offer on InvoiceCreatePreviewParams::ScheduleDetail::Amendment::ItemAction::Add, InvoiceCreatePreviewParams::ScheduleDetail::Amendment::ItemAction::Set, InvoiceCreatePreviewParams::ScheduleDetail::Phase::Item, QuoteCreateParams::Line::Action::AddItem, QuoteCreateParams::Line::Action::SetItem, QuoteLine::Action::AddItem, QuoteLine::Action::SetItem, QuotePreviewSubscriptionSchedule::Phase::Item, QuoteUpdateParams::Line::Action::AddItem, QuoteUpdateParams::Line::Action::SetItem, SubscriptionSchedule::Phase::Item, SubscriptionScheduleAmendParams::Amendment::ItemAction::Add, SubscriptionScheduleAmendParams::Amendment::ItemAction::Set, SubscriptionScheduleCreateParams::Phase::Item, and SubscriptionScheduleUpdateParams::Phase::Item
  • Add support for risk_reserved on Balance
  • ⚠️ Remove support for source_type on Charge::PaymentMethodDetail::StripeBalance, ConfirmationToken::PaymentMethodPreview::StripeBalance, ConfirmationTokenCreateParams::PaymentMethodDatum::StripeBalance, PaymentAttemptRecord::PaymentMethodDetail::StripeBalance, PaymentIntentConfirmParams::PaymentMethodDatum::StripeBalance, PaymentIntentCreateParams::PaymentMethodDatum::StripeBalance, PaymentIntentUpdateParams::PaymentMethodDatum::StripeBalance, PaymentMethod::StripeBalance, PaymentMethodCreateParams::StripeBalance, PaymentRecord::PaymentMethodDetail::StripeBalance, SetupIntentConfirmParams::PaymentMethodDatum::StripeBalance, SetupIntentCreateParams::PaymentMethodDatum::StripeBalance, and SetupIntentUpdateParams::PaymentMethodDatum::StripeBalance
  • Add support for tax_details on Checkout::SessionCreateParams::LineItem::PriceDatum::ProductDatum, Checkout::SessionUpdateParams::LineItem::PriceDatum::ProductDatum, InvoiceAddLinesParams::Line::PriceDatum::ProductDatum, InvoiceLineItemUpdateParams::PriceDatum::ProductDatum, InvoiceUpdateLinesParams::Line::PriceDatum::ProductDatum, PaymentLinkCreateParams::LineItem::PriceDatum::ProductDatum, PlanCreateParams::Product, PriceCreateParams::ProductDatum, ProductCreateParams, and ProductUpdateParams
  • Add support for pending_invoice_item_interval on Checkout::SessionUpdateParams::SubscriptionDatum
  • Add support for hosted and ui_mode on FinancialConnections::SessionCreateParams and FinancialConnections::Session
  • Add support for url on FinancialConnections::Session
  • Add support for expires_after_seconds on Invoice::PaymentSetting::PaymentMethodOption::Pix, InvoiceCreateParams::PaymentSetting::PaymentMethodOption::Pix, InvoiceUpdateParams::PaymentSetting::PaymentMethodOption::Pix, QuotePreviewInvoice::PaymentSetting::PaymentMethodOption::Pix, Subscription::PaymentSetting::PaymentMethodOption::Pix, SubscriptionCreateParams::PaymentSetting::PaymentMethodOption::Pix, and SubscriptionUpdateParams::PaymentSetting::PaymentMethodOption::Pix
  • Add support for current_trial on InvoiceCreatePreviewParams::SubscriptionDetail::Item, SubscriptionCreateParams::Item, SubscriptionItemCreateParams, SubscriptionItemUpdateParams, SubscriptionItem, and SubscriptionUpdateParams::Item
  • Add support for surcharge on PaymentIntent::AmountDetail, PaymentIntentCaptureParams::AmountDetail, PaymentIntentConfirmParams::AmountDetail, PaymentIntentCreateParams::AmountDetail, PaymentIntentIncrementAuthorizationParams::AmountDetail, and PaymentIntentUpdateParams::AmountDetail
  • Add support for amount_details and payment_details on PaymentIntentDecrementAuthorizationParams
  • Add support for mandate_options on PaymentIntent::PaymentMethodOption::StripeBalance
  • Add support for managed_payments on PaymentLinkCreateParams and PaymentLink
  • Add support for stripe_balance on SetupIntent::PaymentMethodOption, SetupIntentConfirmParams::PaymentMethodOption, SetupIntentCreateParams::PaymentMethodOption, and SetupIntentUpdateParams::PaymentMethodOption
  • Add support for billing_cycle_anchor on Subscription::TrialSetting::EndBehavior, SubscriptionCreateParams::TrialSetting::EndBehavior, and SubscriptionUpdateParams::TrialSetting::EndBehavior
  • Add support for admissions_tax, attendance_tax, entertainment_tax, gross_receipts_tax, hospitality_tax, luxury_tax, resort_tax, and tourism_tax on Tax::Registration::CountryOption::Me
  • Add support for requirements on TaxCode
  • ⚠️ Change type of V2::Billing::Cadence::SettingsDatum::Collection::PaymentMethodOption::Card::MandateOption.amount, V2::Billing::CollectionSetting::PaymentMethodOption::Card::MandateOption.amount, V2::Billing::CollectionSettingCreateParams::PaymentMethodOption::Card::MandateOption.amount, V2::Billing::CollectionSettingUpdateParams::PaymentMethodOption::Card::MandateOption.amount, and V2::Billing::CollectionSettingVersion::PaymentMethodOption::Card::MandateOption.amount from longInteger to int64_string
  • Add support for timezone on V2::Core::Account::Default, V2::Core::AccountCreateParams::Default, and V2::Core::AccountUpdateParams::Default
  • Add support for azure_event_grid on V2::Core::EventDestinationCreateParams and V2::Core::EventDestination
  • Add support for supported_currencies on V2::Core::Vault::GbBankAccount, V2::Core::Vault::UsBankAccount, and V2::MoneyManagement::PayoutMethod::Card
  • ⚠️ Change V2::Core::Vault::GbBankAccount.sort_code and V2::Core::Vault::GbBankAccountCreateParams.sort_code to be optional
  • Add support for restricted on V2::MoneyManagement::PayoutMethod
  • Add support for currencies on V2::MoneyManagement::PayoutMethodsBankAccountSpec::Country::Field
  • Add support for counterparty and description on V2::MoneyManagement::Transaction
  • ⚠️ Add support for currency on V2::Core::Vault::GbBankAccountCreateParams, V2::Core::Vault::UsBankAccountCreateParams, V2::MoneyManagement::OutboundSetupIntentCreateParams::PayoutMethodDatum::BankAccount, V2::MoneyManagement::OutboundSetupIntentCreateParams::PayoutMethodDatum::Card, V2::MoneyManagement::OutboundSetupIntentUpdateParams::PayoutMethodDatum::BankAccount, and V2::MoneyManagement::OutboundSetupIntentUpdateParams::PayoutMethodDatum::Card
  • Add support for iban on V2::Core::Vault::GbBankAccountCreateParams
  • Change V2::Core::Vault::GbBankAccountCreateParams.account_number to be optional
  • Add support for event notifications V2CoreBatchJobBatchFailedEvent, V2CoreBatchJobCanceledEvent, V2CoreBatchJobCompletedEvent, V2CoreBatchJobCreatedEvent, V2CoreBatchJobReadyForUploadEvent, V2CoreBatchJobTimeoutEvent, V2CoreBatchJobUpdatedEvent, V2CoreBatchJobUploadTimeoutEvent, V2CoreBatchJobValidatingEvent, and V2CoreBatchJobValidationFailedEvent with related object V2::Core::BatchJob

@stripe-openapi stripe-openapi bot requested a review from a team as a code owner February 27, 2026 21:53
@stripe-openapi stripe-openapi bot requested review from prathmesh-stripe and removed request for a team and prathmesh-stripe February 27, 2026 21:53
@stripe-openapi stripe-openapi bot enabled auto-merge February 27, 2026 21:53
@stripe-openapi stripe-openapi bot force-pushed the latest-codegen-beta branch from 0a3b30e to 8e3d63f Compare March 10, 2026 19:01
jeremyevans and others added 2 commits March 19, 2026 10:13
stripe does not have a dependency on cgi. If you have stripe in your
Gemfile, but not cgi, there is a verbose mode warning when requiring
stripe on Ruby 4.0. Example file:

```
require 'bundler/inline'

gemfile do
  source 'https://rubygems.org'
  gem 'stripe'
  gem 'logger' # Missing gem dependency on logger, different issue
end

require "stripe"
```

Running in verbose mode:

```
$ ruby -v t.rb
ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [x86_64-linux]
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/gems/4.0.0/gems/stripe-18.4.2/lib/stripe.rb:5: warning: CGI library is removed from Ruby 4.0. Please use cgi/escape instead for CGI.escape and CGI.unescape features.
If you need to use the full features of CGI library, Please install cgi gem.
```

The only cases in that are using a CGI method other than CGI.escape is
in a couple tests using CGI.parse, so add cgi to the Gemfile and require
cgi in those two test files. Switch the cgi require in lib to
cgi/escape.  This avoids the warning, and will avoid breakage in
Ruby 4.1.
@stripe-openapi stripe-openapi bot force-pushed the latest-codegen-beta branch from 17048bf to e9eec54 Compare March 19, 2026 17:24
stripe-openapi bot and others added 6 commits March 19, 2026 12:11
* Update generated code for v2202 and

* Update generated code for v2202 and

* Update generated code for v2203 and

* Update generated code for v2204 and

* Update generated code for v2204 and

* Update generated code for v2204 and

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
stripe is missing a gem dependency on logger. When including stripe in
a Gemfile, if logger is not specified directly or included transitively
by another gem, this warns in verbose mode on Ruby 3.4, and results in
an error on Ruby 4.0.  Example file:

```
require 'bundler/inline'

gemfile do
  source 'https://rubygems.org'
  gem 'stripe'
end

require "stripe"
```

Running on Ruby 4.0.2:

```
$ ruby -v; ruby t.rb
ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [x86_64-linux]
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/gems/4.0.0/gems/stripe-18.4.2/lib/stripe.rb:7: warning: logger used to be loaded from the standard library, but is not part of the default gems since Ruby 4.0.0.
You can add logger to your Gemfile or gemspec to fix this error.
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:71:in 'block (2 levels) in Bundler::Runtime#require': There was an error while trying to load the gem 'stripe'. (Bundler::GemRequireError)
Gem Load Error is: cannot load such file -- logger
Backtrace for gem load error is:
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundled_gems.rb:60:in 'Kernel.require'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundled_gems.rb:60:in 'block (2 levels) in Kernel#replace_require'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/gems/4.0.0/gems/stripe-18.4.2/lib/stripe.rb:7:in '<top (required)>'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundled_gems.rb:60:in 'Kernel#require'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundled_gems.rb:60:in 'block (2 levels) in Kernel.replace_require'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:63:in 'block (2 levels) in Bundler::Runtime#require'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:58:in 'Array#each'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:58:in 'block in Bundler::Runtime#require'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:52:in 'Array#each'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:52:in 'Bundler::Runtime#require'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/inline.rb:91:in 'block in Object#gemfile'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/settings.rb:143:in 'Bundler::Settings#temporary'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/inline.rb:60:in 'Object#gemfile'
t.rb:3:in '<main>'
Bundler Error Backtrace:

        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:58:in 'Array#each'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:58:in 'block in Bundler::Runtime#require'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:52:in 'Array#each'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:52:in 'Bundler::Runtime#require'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/inline.rb:91:in 'block in Object#gemfile'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/settings.rb:143:in 'Bundler::Settings#temporary'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/inline.rb:60:in 'Object#gemfile'
        from t.rb:3:in '<main>'
/home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundled_gems.rb:60:in 'Kernel.require': cannot load such file -- logger (LoadError)
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundled_gems.rb:60:in 'block (2 levels) in Kernel#replace_require'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/gems/4.0.0/gems/stripe-18.4.2/lib/stripe.rb:7:in '<top (required)>'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundled_gems.rb:60:in 'Kernel#require'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundled_gems.rb:60:in 'block (2 levels) in Kernel.replace_require'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:63:in 'block (2 levels) in Bundler::Runtime#require'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:58:in 'Array#each'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:58:in 'block in Bundler::Runtime#require'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:52:in 'Array#each'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/runtime.rb:52:in 'Bundler::Runtime#require'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/inline.rb:91:in 'block in Object#gemfile'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/settings.rb:143:in 'Bundler::Settings#temporary'
        from /home/jeremy/.local/share/mise/installs/ruby/4.0.2/lib/ruby/4.0.0/bundler/inline.rb:60:in 'Object#gemfile'
        from t.rb:3:in '<main>'
```

This is simple to fix by including logger as a gem dependency.

Co-authored-by: David Brownman <109395161+xavdid-stripe@users.noreply.github.com>
@stripe-openapi stripe-openapi bot merged commit ecac0ee into beta Mar 23, 2026
14 checks passed
@stripe-openapi stripe-openapi bot deleted the latest-codegen-beta branch March 23, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants