Skip to content

Update generated code for beta#1857

Merged
stripe-openapi[bot] merged 7 commits into
betafrom
latest-codegen-beta
May 27, 2026
Merged

Update generated code for beta#1857
stripe-openapi[bot] merged 7 commits into
betafrom
latest-codegen-beta

Conversation

@stripe-openapi
Copy link
Copy Markdown
Contributor

@stripe-openapi stripe-openapi Bot commented Apr 28, 2026

Codegen for openapi v2277 and v2 openapi d59a1f4bdea3032b8e282d40badc032cb021fc60.

Changelog

  • Add support for pause method on resource Subscription
  • Add support for retrieve method on resource V2::Iam::ActivityLog
  • Change type of ProductCatalog::TrialOffer::EndBehavior::Transition.price from string to expandable($Price)
  • Add support for amount_paid_off_stripe on QuotePreviewInvoice
  • Add support for discountable on QuotePreviewSubscriptionSchedule::Phase::AddInvoiceItem
  • Add support for bizum and scalapay on SharedPayment::GrantedToken::PaymentMethodDetail
  • Change SharedPayment::GrantedToken.agent_details to be required
  • Change type of SubscriptionItem.billed_until from nullable(DateTime) to DateTime
  • Add support for payment_behavior on SubscriptionResumeParams
  • Add support for status_details on Subscription
  • Change Subscription.billing_schedules to be required
  • ⚠️ Change type of V2::MoneyManagement::ReceivedCredit::BankTransfer::GbBankAccount.network from literal('fps') to enum('chaps'|'fps')

@stripe-openapi stripe-openapi Bot requested a review from a team as a code owner April 28, 2026 23:14
@stripe-openapi stripe-openapi Bot requested review from prathmesh-stripe and removed request for a team and prathmesh-stripe April 28, 2026 23:14
@stripe-openapi stripe-openapi Bot enabled auto-merge April 28, 2026 23:15
stripe-openapi Bot and others added 6 commits April 29, 2026 19:01
…, and param files (#1855)

* Convert eager require to autoload for resources, services, and params

Replace ~985 eager require calls with Ruby's autoload in the three
generated barrel files (resources.rb, services.rb, params.rb). This
defers loading of resource classes, service classes, and param classes
until they are first referenced, rather than loading all of them on
require 'stripe'.

Add Stripe.eager_load! for production use — it walks the same file
list in the same order as the old require calls, so there are no
load-order surprises. A Railtie registers Stripe in
config.eager_load_namespaces so Rails calls eager_load! automatically
when config.eager_load is true (the production default).

On Ruby 4.0.2 / Apple M1:
- Boot time: 214ms -> 61ms (-71%)
- Object allocations: 193k -> 35k (-82%)
- Retained memory: 9.0 MB -> 1.4 MB (-85%)

Ref #1432

Co-authored-by: Claude <noreply@anthropic.com>

* Fix lint and typecheck CI failures

- Run rubocop autocorrect to fix line length, trailing whitespace, and
  argument alignment in autoload statements
- Exclude lib/stripe/params.rb from CollectionLiteralLength (generated
  list, same as existing event_types.rb exclusion)
- Add typed: ignore to railtie files since Rails isn't a Sorbet-visible
  dependency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude

* Regenerate resources, services, and params from updated codegen

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude

* Remove redundant rubocop.yml exclusion for params.rb

The codegen now emits an inline rubocop:disable comment around the
PARAM_FILES array, making the .rubocop.yml file-level exclusion
unnecessary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Michael Broshi <mbroshi@stripe.com>
@stripe-openapi stripe-openapi Bot merged commit 1172273 into beta May 27, 2026
14 checks passed
@stripe-openapi stripe-openapi Bot deleted the latest-codegen-beta branch May 27, 2026 19:39
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.

2 participants