Repository navigation
Update generated code for private-preview - #1989
Merged
stripe-openapi[bot] merged 10 commits intoNov 19, 2026
Merged
Conversation
…g 🪿✨ (#1959) * [🪿] Omit API keys from StripeObject pickles Prevent credentials from leaking into pickle-backed caches and queues. Add graph-wide set_api_key() binding so consumers can supply their own credentials while preserving routing and destination-global fallback. Include regression tests and v16 migration guidance. Existing stored pickles remain sensitive and are not sanitized by this change. Committed-By-Agent: goose Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280 * [🪿] try to deslop Consolidate overlapping pickle round-trip and credential-rebinding tests to remove duplicate setup and serialization. Retain coverage for supported pickle protocols, destination-global fallback, nested rebinding, routing preservation, and credential-free re-pickling without changing implementation behavior. Verified 172 targeted tests pass, along with formatting, linting, and git diff whitespace checks. Committed-By-Agent: goose Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280 * [🪿] Align pickle credential migration with v17 Document global fallback and explicit recursive key rebinding. Strengthen nested requestor preservation coverage and remove task-specific README edits. Committed-By-Agent: goose Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280 * [🪿] try to deslop Remove redundant nested-resource serialization and assertions already covered by payload equality and credential-absence checks on re-pickled bytes. Recursive rebinding, cycle handling, routing preservation, standalone metadata serialization, and request-boundary coverage remain intact. Validated with 101 passing StripeObject tests, formatting, linting, and git diff --check. Committed-By-Agent: goose Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280 * [🪿] Update PyPI publishing action to v1.14.3 Fix the workflow security check failing on GHSA-5xjx-3w67-w9x9. Pin the patched release to its verified commit SHA. https: //github.com/advisories/GHSA-5xjx-3w67-w9x9 Committed-By-Agent: goose Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280 * [🪿] Revert unrelated PyPI publishing action upgrade Keep CI configuration unchanged to scope this branch to pickle credentials. Committed-By-Agent: goose Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280 * [🪿] Update pickle credential changefile wording and filename * [🪿] Simplify v17 pickle migration guidance Use concise examples to explain explicit API-key rebinding and global fallback. Clarify that rebinding preserves current requestor configuration, not the producer's custom HTTP client. * [🪿] Replace set_api_key with per-call API keys on instance methods Remove StripeObject.set_api_key() and instead accept an api_key on the instance methods that previously could not take one: refresh(), refresh_async(), save(), and auto_paging_iter() on ListObject, SearchResultObject, and their V2 equivalents. delete() and generated instance methods already accept per-call request options. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Committed-By-Agent: claude * [🪿] Trim pickle credential changefile wording Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Committed-By-Agent: claude * Require explicit API key reattachment after unpickling Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> * Keep serialized placeholders in requestors and guard requests centrally Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> * Clarify API key reattachment wording in changefile Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> * Clarify API key reattachment migration guidance Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> * Address serialization documentation review feedback Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> * Make migration guide before/after examples equivalent Keep the Before and After snippets identical apart from the reattach step, and move the list/event usage into a separate example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Committed-By-Agent: claude --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: codex <noreply@openai.com>
Changes for upcoming major release
PycurlClient created one pycurl.Curl handle in its constructor and reconfigured it for every request with no synchronization. When one client was shared across threads, concurrent requests could overwrite each other's URL, body, and headers, sending one request with another request's API key and Stripe-Account. Each thread now lazily creates its own handle in the client's existing thread-local storage, so connections are still reused within a thread. close() closes the current thread's handle. Closes RUN_DEVSDK-3704 Committed-By-Agent: claude Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Point the major changefile's migration guide link at the published wiki page and rebuild CHANGELOG.md. The previous link pointed at a branch or repo path that can move or be deleted. Committed-By-Agent: claude Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
stripe-openapi
Bot
requested review from
jar-stripe
and removed request for
a team
November 12, 2026 18:37
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
from
November 12, 2026 18:37
4e4a910 to
d7ad84f
Compare
* fix: make PycurlClient timeouts configurable PycurlClient hardcoded CONNECTTIMEOUT=30 and TIMEOUT=80 on every request, unlike RequestsClient, HTTPXClient and AIOHTTPClient, which accept a `timeout` constructor argument. Add keyword-only `timeout` and `connect_timeout` arguments (defaults 80 and 30) after the existing parameters so positional callers are unaffected. Fixes #1962 * Remove unnecessary PycurlClient constructor docstring
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
2 times, most recently
from
November 13, 2026 22:49
cb38740 to
f349f1b
Compare
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
10 times, most recently
from
November 16, 2026 23:56
8849060 to
ce8de77
Compare
* Replace httpx with httpx2 for async requests httpx, which backs HTTPXClient and the default async client, is no longer maintained, so it won't receive security fixes. httpx2 is its community-accepted continuation, maintained by Pydantic, and keeps mostly the same API. Two calls needed adjusting for httpx2: - The encoded body is sent as `content=`, since passing raw bodies as `data=` is deprecated and emits a warning on every request. - Proxies are configured through client-level `mounts`, since the per-request `proxies=` argument isn't accepted. Closes #1886 * Restore support for httpx, preferring httpx2 when both are installed in an environment * Add short integration test asserting that the request passes successfully through httpx and httpx2 * Make it clearer that httpx is not a blessed path * Convert timeout to in-use httpx/httpx2 library on the fly to avoid breaking * Add note relating to httpx deprecation
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
3 times, most recently
from
November 18, 2026 00:42
0cd44ac to
f7a6442
Compare
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
6 times, most recently
from
November 19, 2026 03:05
c72829f to
f73a463
Compare
…aa658fd9635eaf0107d13e3441
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
from
November 19, 2026 03:05
f73a463 to
0685477
Compare
jar-stripe
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codegen for openapi v2602 and v2 openapi f3581f76eec818aa658fd9635eaf0107d13e3441.
Changelog
v2.billing.GroupInvoice,v2.billing.GroupSpendModifier, andv2.billing.Groupv2.billing.CadenceSpendModifierandv2.billing.ContractPricingLineQuantityChangecreateandmodifymethods on resourceInvoiceRenderingTemplatecancel,create,list,modify, andretrievemethods on resourcev2.billing.Groupretrievemethod on resourcev2.billing.GroupSpendModifiercreatemethod on resourcev2.billing.GroupInvoiceretrievemethod on resourcev2.billing.CadenceSpendModifierbilling_cadenceonBilling.Alert.SpendThreshold.Filter,Billing.AlertTriggered.GroupBy,InvoiceCreatePreviewParams,InvoiceListParams,SubscriptionCreateParams,SubscriptionListParams,SubscriptionModifyParams,Subscription,V2.Billing.PricingPlanSubscription,V2.Billing.RateCardSubscription,billing.AlertCreateParamsSpendThresholdFilter,v2.billing.PricingPlanSubscriptionListParams,v2.billing.RateCardSubscriptionCreateParams, andv2.billing.RateCardSubscriptionListParamsbilling_groupon enumBilling.AlertTriggered.GroupBy.typebilling_cadencefrom enumBilling.AlertTriggered.GroupBy.typescheduled_feeonV2.Billing.ContractTerm,v2.billing.ContractCreateParamsTerm,v2.billing.ContractModifyParamsActionAddTerm, andv2.billing.ContractModifyParamsActionUpdateTermad_hoc_productonV2.Billing.ContractTerm,v2.billing.ContractCreateParamsTerm,v2.billing.ContractModifyParamsActionAddTerm, andv2.billing.ContractModifyParamsActionUpdateTermscheduled_feeon enumsV2.Billing.ContractTerm.type,v2.billing.ContractCreateParamsTerm.type,v2.billing.ContractModifyParamsActionAddTerm.type, andv2.billing.ContractTermListContractTermsParams.typead_hoc_productfrom enumsV2.Billing.ContractTerm.type,v2.billing.ContractCreateParamsTerm.type,v2.billing.ContractModifyParamsActionAddTerm.type, andv2.billing.ContractTermListContractTermsParams.typebilling_groupon enumsBilling.Alert.SpendThreshold.group_byandbilling.AlertCreateParamsSpendThreshold.group_bybilling_cadencefrom enumsBilling.Alert.SpendThreshold.group_byandbilling.AlertCreateParamsSpendThreshold.group_bycadenceonBilling.AlertNotification,V2.Billing.Intent,billing.BillingAlertListAlertNotificationParams, andv2.billing.IntentCreateParamspricing_tokenoncheckout.SessionCreateParamspass_through_fee_costonCheckout.Sessiondealerfxon enumsCheckout.Session.AutomaticSurcharge.providerandPaymentLink.AutomaticSurcharge.provideramount_pass_through_feeonCheckout.Session.TotalDetailGiftCardOperation.Activation.balanceandGiftCardOperation.Reload.balanceto be optionallink_shared_dataonidentity.VerificationSessionCreateParamsline_item_policy,rendering_settings, andsummary_item_policiesonInvoiceRenderingTemplatebilling_grouponInvoiceCreatePreviewParams,InvoiceListParams,V2.Billing.Intent,V2.Billing.PricingPlanSubscription,V2.Billing.RateCardSubscription,v2.billing.IntentCreateParams,v2.billing.PricingPlanSubscriptionListParams, andv2.billing.RateCardSubscriptionListParamsapplied_credit_memosonInvoiceandQuotePreviewInvoicebilling_group_detailsonInvoice.ParentandQuotePreviewInvoice.Parentbilling_cadence_detailsonInvoice.ParentandQuotePreviewInvoice.Parentbilling_group_detailson enumsInvoice.Parent.typeandQuotePreviewInvoice.Parent.typebilling_cadence_detailsfrom enumsInvoice.Parent.typeandQuotePreviewInvoice.Parent.typetoken_service_provider_idonIssuing.Authorization.TokenDetail.NetworkDatum.VisaandIssuing.Token.NetworkDatum.Visaamount_type,amount,currency,description,end_date,interval_count,interval,reference, andstart_dateonMandate.PaymentMethodDetail.Card.Indiathree_d_secureonPaymentAttemptRecordReportFailedParamsPaymentMethodDetailCardandPaymentRecordReportPaymentAttemptFailedParamsPaymentMethodDetailCardprovider_signature_dataandprovider_signatureonPaymentIntent.PaymentMethodOption.CardPresent.AadeDatum,PaymentIntentConfirmParamsPaymentMethodOptionCardPresentAadeDatum,PaymentIntentCreateParamsPaymentMethodOptionCardPresentAadeDatum, andPaymentIntentModifyParamsPaymentMethodOptionCardPresentAadeDatummark_dataandsigned_markonPaymentIntent.PaymentMethodOption.CardPresent.AadeDatum,PaymentIntentConfirmParamsPaymentMethodOptionCardPresentAadeDatum,PaymentIntentCreateParamsPaymentMethodOptionCardPresentAadeDatum, andPaymentIntentModifyParamsPaymentMethodOptionCardPresentAadeDatumrequest_multicaptureonPaymentIntent.PaymentMethodOption.Vipp,PaymentIntentConfirmParamsPaymentMethodOptionVipp,PaymentIntentCreateParamsPaymentMethodOptionVipp, andPaymentIntentModifyParamsPaymentMethodOptionVippis_free_trial_transactiononPaymentIntentConfirmParamsRadarOptionandPaymentIntentCreateParamsRadarOptiontronon enumPaymentIntentUpdateCryptoRefundAddressParams.networkradar_optionsonPaymentIntentaeon_pay,au_pay,dbarai, andmerpayonPaymentMethodConfigurationCreateParams,PaymentMethodConfigurationModifyParams, andPaymentMethodConfigurationrequested_signalsonRadar.PaymentEvaluationandradar.PaymentEvaluationCreateParamsgift_cardonRefund.DestinationDetaildays_after_fulfillmentonReserve.Plan.RollingReleaserenderingonSubscriptionScheduleCreateParamsDefaultSettingInvoiceSettingandSubscriptionScheduleModifyParamsDefaultSettingInvoiceSettingdebit_behavioronSubscription.PaymentSetting.PaymentMethodOption.Card,Subscription.PaymentSetting.PaymentMethodOption.Pix,Subscription.PaymentSetting.PaymentMethodOption.Upi,SubscriptionCreateParamsPaymentSettingPaymentMethodOptionCard,SubscriptionCreateParamsPaymentSettingPaymentMethodOptionPix,SubscriptionCreateParamsPaymentSettingPaymentMethodOptionUpi,SubscriptionModifyParamsPaymentSettingPaymentMethodOptionCard,SubscriptionModifyParamsPaymentSettingPaymentMethodOptionPix, andSubscriptionModifyParamsPaymentSettingPaymentMethodOptionUpipresentment_detailsonSubscription.PendingUpdatedevice_health_detailsanddevice_healthonTerminal.Readerbilling_group_dataonV2.Billing.Intentandv2.billing.IntentCreateParamscadence_dataonV2.Billing.Intentandv2.billing.IntentCreateParamsgroupon enumsV2.Billing.IntentAction.Apply.InvoiceDiscountRule.applies_toandv2.billing.IntentCreateParamsActionApplyInvoiceDiscountRule.applies_toaccount_dashboardon enumsV2.Core.AccountLink.UseCase.typeandv2.core.AccountLinkCreateParamsUseCase.typetouch_n_go_payments,truemoney_payments,wechat_pay_mobile_web_payments,wechat_pay_payments, andwero_paymentsonV2.Core.Account.Configuration.Merchant.Capability,v2.core.AccountCreateParamsConfigurationMerchantCapability, andv2.core.AccountModifyParamsConfigurationMerchantCapabilitybusiness_demand_deposit_account_fifth_third_storageonV2.Core.Account.Configuration.MoneyManager.Capability,v2.core.AccountCreateParamsConfigurationMoneyManagerCapability, andv2.core.AccountModifyParamsConfigurationMoneyManagerCapabilitytipsonV2.Core.Account.Configuration.Recipient.Capability.BankAccount,v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccount, andv2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountbusiness_demand_deposit_account_fifth_thirdonV2.Core.Account.Identity.Attestation.TermsOfService,v2.core.AccountCreateParamsIdentityAttestationTermsOfService, andv2.core.AccountModifyParamsIdentityAttestationTermsOfServicechannelonV2.Core.ClaimableSandboxandv2.core.ClaimableSandboxCreateParamsapp_channelonV2.Core.ClaimableSandboxandv2.core.ClaimableSandboxCreateParamsreturn_urlonV2.Core.ClaimableSandbox.OnboardingLinkDetail,v2.core.ClaimableSandboxCreateParamsOnboardingLinkDetail, andv2.core.ClaimableSandboxRenewOnboardingLinkParamsOnboardingLinkDetailV2.Core.ClaimableSandbox.SandboxDetail.ApiKey.mcpfromstringtoan objectV2.Core.ClaimableSandbox.SandboxDetail.ApiKey.publishablefromstringtoan objectV2.Core.ClaimableSandbox.SandboxDetail.ApiKey.secretfromstringtoan objectV2.Core.ClaimableSandbox.onboarding_link_detailsto be optionalV2.Core.ClaimableSandbox.OwnerDetail.app_install_statusto be optionalcustom_payment_method_adapter_degradedonV2.Core.Health.AlertHistoryEntryandV2.Core.Health.Alertcustom_payment_method_adapter_degradedon enumsV2.Core.Health.Alert.typeandV2.Core.Health.AlertHistoryEntry.typefunds_holding_structureonV2.MoneyManagement.FinancialAccount.Storageandv2.money_management.FinancialAccountCreateParamsStorageau_becs_debitonV2.MoneyManagement.InboundTransfer.From.PaymentMethodtipson enumsV2.MoneyManagement.OutboundPaymentQuote.EstimatedFee.NetworkFeeDetail.networkandV2.MoneyManagement.PayoutIntent.EstimatedFee.NetworkFeeDetail.networktipson enumsV2.MoneyManagement.OutboundPayment.To.PayoutMethodOption.BankAccount.preferred_networks,V2.MoneyManagement.OutboundPaymentQuote.To.PayoutMethodOption.BankAccount.preferred_networks,V2.MoneyManagement.OutboundTransfer.To.PayoutMethodOption.BankAccount.preferred_networks,V2.MoneyManagement.PayoutIntent.To.PayoutMethodOption.BankAccount.preferred_networks,v2.money_management.OutboundPaymentCreateParamsToPayoutMethodOptionBankAccount.preferred_networks,v2.money_management.OutboundPaymentQuoteCreateParamsToPayoutMethodOptionBankAccount.preferred_networks,v2.money_management.OutboundTransferCreateParamsToPayoutMethodOptionBankAccount.preferred_networks,v2.money_management.PayoutIntentCreateParamsToPayoutMethodOptionBankAccount.preferred_networks, andv2.money_management.PayoutIntentModifyParamsToPayoutMethodOptionBankAccount.preferred_networksnetworkonV2.MoneyManagement.ReceivedDebit.BankTransferinbound_funding_reversalandinbound_fundingon enumsV2.MoneyManagement.Transaction.categoryandV2.MoneyManagement.TransactionEntry.TransactionDetail.categoryinbound_fundingon enumsV2.MoneyManagement.Transaction.Flow.typeandV2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.typesettlement_timingonv2.money_management.FundingIntentModifyParamscustom_payment_method_adapter_degradedon enumv2.core.health.AlertListParams.typesincludeonv2.core.ClaimableSandboxRetrieveParamsv2.core.ClaimableSandboxRenewOnboardingLinkParamsOnboardingLinkDetail.refresh_urlto be optionalbilling_grouponv2.billing.RateCardSubscriptionCreateParamsone_time_fees,pricing_lines, andpricing_overridesonv2.billing.ContractCreateParamsnowon enumsv2.billing.ContractCreateParamsTermPricingOverrideEndsAt.type,v2.billing.ContractCreateParamsTermRecurringPriceEndsAt.type,v2.billing.ContractModifyParamsActionAddTermPricingOverrideEndsAt.type,v2.billing.ContractModifyParamsActionAddTermRecurringPriceEndsAt.type,v2.billing.ContractModifyParamsActionUpdateTermPricingOverrideEndsAt.type, andv2.billing.ContractModifyParamsActionUpdateTermRecurringPriceEndsAt.typenowon enumsv2.billing.ContractCreateParamsTermPricingOverrideStartsAt.type,v2.billing.ContractCreateParamsTermRecurringPriceStartsAt.type,v2.billing.ContractModifyParamsActionAddTermPricingOverrideStartsAt.type,v2.billing.ContractModifyParamsActionAddTermRecurringPriceStartsAt.type,v2.billing.ContractModifyParamsActionUpdateTermPricingOverrideStartsAt.type, andv2.billing.ContractModifyParamsActionUpdateTermRecurringPriceStartsAt.typecontract_numberonv2.billing.ContractModifyParamsone_time_fee_actions,pricing_line_actions, andpricing_override_actionsonv2.billing.ContractModifyParamscancel_pricing_linesonv2.billing.ContractCancelParamsbusiness_demand_deposit_account_fifth_third_storage.inbound.usdandbusiness_demand_deposit_account_fifth_third_storage.outbound.usdon enumEventsV2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.updated_capabilitybank_accounts.tipson enumEventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capabilitychargeonEventsV2PaymentsOffSessionPaymentAttemptFailedEvent,EventsV2PaymentsOffSessionPaymentFailedEvent, andEventsV2PaymentsOffSessionPaymentSucceededEventlast_attempt_erroronEventsV2PaymentsOffSessionPaymentAttemptFailedEventandEventsV2PaymentsOffSessionPaymentFailedEventpayment_attempt_recordonEventsV2PaymentsOffSessionPaymentSucceededEventV2BillingContractTermPricingOverrideEndedEvent,V2BillingContractTermPricingOverrideStartedEvent,V2BillingContractTermRecurringPriceEndedEvent,V2BillingContractTermRecurringPriceStartedEvent,V2BillingContractTermScheduledFeeServicePeriodEndedEvent, andV2BillingContractTermScheduledFeeServicePeriodStartedEventwith related objectv2.billing.ContractTermV2CoreHealthCustomPaymentMethodAdapterDegradedFiringEventandV2CoreHealthCustomPaymentMethodAdapterDegradedResolvedEventV2SignalsPaymentRetryEvaluationCanceledEvent,V2SignalsPaymentRetryEvaluationCompletedEvent,V2SignalsPaymentRetryEvaluationCreatedEvent,V2SignalsPaymentRetryEvaluationExpiredEvent, andV2SignalsPaymentRetryEvaluationUpdatedEventwith related objectv2.signals.PaymentRetryEvaluationV2BillingCadenceBilledEvent,V2BillingCadenceCanceledEvent, andV2BillingCadenceCreatedEventwith related objectv2.billing.CadenceRateLimitErroronv2.core.ClaimableSandbox#createscheduled_cancellation_conflicts_with_updated_termsonCannotProceedError