Update generated code for private-preview - #1920
Merged
stripe-openapi[bot] merged 2 commits intoAug 5, 2026
Merged
Conversation
stripe-openapi
Bot
requested review from
justiny-stripe
and removed request for
a team and
justiny-stripe
July 30, 2026 08:15
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
25 times, most recently
from
August 4, 2026 18:19
8eae9b2 to
dab982b
Compare
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
4 times, most recently
from
August 5, 2026 19:28
aada167 to
ce821d9
Compare
Net::HTTP closes its own socket when a request fails with a StandardError, but an exception outside that hierarchy unwinds past those rescue clauses -- an asynchronous Thread#raise from a request-timeout mechanism, for example. The socket is then left open with the response still unread, and because end_transport never ran, @last_communicated is unset, which makes begin_transport skip both its keep-alive-timeout and EOF checks. The next request to reuse that connection reads the abandoned response rather than its own, so a PaymentIntent create can come back as, say, a Customer. Close and untrack the connection when execute_request unwinds for any reason. The connection is captured in a local so cleanup is skipped when a request failed before one was obtained, such as on argument validation. Co-authored-by: alextrueman <alexandr1golubenko@gmail.com>
…d622aa30bf53a414cdffbd57bc
stripe-openapi
Bot
force-pushed
the
latest-codegen-private-preview
branch
from
August 5, 2026 21:48
ce821d9 to
c9290ee
Compare
xavdid
approved these changes
Aug 5, 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 v2369 and v2 openapi 85839f80afcaccd622aa30bf53a414cdffbd57bc.
Changelog
Billing::FeedbackOptionssequra_paymentsonAccount::Capabilityfeedback_optionsonBillingPortal::Configuration::Feature::SubscriptionCancel::CancellationReasonsequraonCharge::PaymentMethodDetail,Checkout::Session::PaymentMethodOption,ConfirmationToken::PaymentMethodPreview,PaymentAttemptRecord::PaymentMethodDetail,PaymentIntent::PaymentMethodOption, andPaymentRecord::PaymentMethodDetailretrieval_reference_numberonCharge::PaymentMethodDetail::CardPresent,ConfirmationToken::PaymentMethodPreview::Card::GeneratedFrom::PaymentMethodDetail::CardPresent,PaymentAttemptRecord::PaymentMethodDetail::CardPresent,PaymentMethod::Card::GeneratedFrom::PaymentMethodDetail::CardPresent, andPaymentRecord::PaymentMethodDetail::CardPresentpricing_grouponCharge::PaymentMethodDetail::Linktax_ratesonCheckout::Session::ShippingOption,Checkout::SessionCreateParams::ShippingOption, andCheckout::SessionUpdateParams::ShippingOptionfunding_types_blockedonCheckout::Session::PaymentMethodOption::Card::RestrictionhealthcareonIssuing::AuthorizationCaptureParams::PurchaseDetail,Issuing::AuthorizationCreateParams,Issuing::TransactionCreateForceCaptureParams::PurchaseDetail, andIssuing::TransactionCreateUnlinkedRefundParams::PurchaseDetailIssuing::Authorization::Healthcare.verification_statusfromnullable(enum('iias_merchant_exempt'|'iias_merchant_not_certified'|'iias_verified'|'not_verified'))toenum('iias_merchant_exempt'|'iias_merchant_not_certified'|'iias_verified'|'not_verified')is_anomalousonPaymentAttemptRecordReportGuaranteedParamsaade_dataonPaymentIntent::PaymentMethodOption::CardPresentRadar::PaymentEvaluation::PaymentDetail::PaymentMethodDetail::Card.first6to be requiredRadar::PaymentEvaluation::PaymentDetail::PaymentMethodDetail::Card.last4to be requiredfeedback_optiononSubscription::CancellationDetailapplicationonV2::Payments::OffSessionPaymentstatusonV2::MoneyManagement::FinancialAccountStatementListParamsV2::Billing::ContractCreateParams.pricing_linesto be optional