Skip to content

Update generated code for private-preview - #1854

Open
stripe-openapi[bot] wants to merge 2 commits into
private-previewfrom
latest-codegen-private-preview
Open

Update generated code for private-preview#1854
stripe-openapi[bot] wants to merge 2 commits into
private-previewfrom
latest-codegen-private-preview

Conversation

@stripe-openapi

@stripe-openapi stripe-openapi Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Codegen for openapi v2346 and v2 openapi 76a717125a6b6b3cfe380a5b64026f175aeb8d47.

Changelog

  • Add support for new resources v2.money_management.ReceivedDebitMandate and v2.risk.Inquiry
  • Add support for list, modify, and retrieve methods on resource v2.risk.Inquiry
  • Add support for cancel, list, and retrieve methods on resource v2.money_management.ReceivedDebitMandate
  • Add support for rate_cards on Billing.CreditGrant.ApplicabilityConfig.Scope, billing.CreditBalanceSummaryRetrieveParamsFilterApplicabilityScope, and billing.CreditGrantCreateParamsApplicabilityConfigScope
  • ⚠️ Change type of ConfirmationToken.PaymentMethodPreview.GiftCard.brand, GiftCard.brand, GiftCardCreateParams.brand, PaymentMethod.GiftCard.brand, terminal.ReaderActivateGiftCardParams.brand, terminal.ReaderCashoutGiftCardParams.brand, terminal.ReaderCheckGiftCardBalanceParams.brand, and terminal.ReaderReloadGiftCardParams.brand from enum('fiserv_valuelink'|'givex'|'svs') to literal('svs')
  • Add support for new value tempo on enum Crypto.CustomerConsumerWallet.network
  • Add support for new value tempo on enums Crypto.OnrampSession.TransactionDetail.destination_network, crypto.OnrampSessionCreateParams.destination_network, crypto.OnrampSessionListParams.destination_network, and crypto.OnrampTransactionLimitsRetrieveParams.destination_network
  • Add support for new value tempo on enums Crypto.OnrampSession.TransactionDetail.destination_networks and crypto.OnrampSessionCreateParams.destination_networks
  • Add support for tempo on Crypto.OnrampSession.TransactionDetail.WalletAddress
  • Add support for new value try_again_later on enum GiftCardOperation.failure_code
  • Add support for healthcare on Issuing.Authorization
  • Add support for product_code on Issuing.Card, issuing.CardCreateParams, and issuing.CardModifyParams
  • Add support for product_graduation_state on Issuing.Card
  • Add support for cvc and number on radar.PaymentEvaluationCreateParamsPaymentDetailPaymentMethodDetailCard
  • Change radar.PaymentEvaluationCreateParamsPaymentDetailPaymentMethodDetailCard.first6 to be optional
  • Change radar.PaymentEvaluationCreateParamsPaymentDetailPaymentMethodDetailCard.last4 to be optional
  • Add support for card on Radar.PaymentEvaluation.PaymentDetail.PaymentMethodDetail
  • ⚠️ Remove support for value shop_pay from enum SharedPayment.GrantedToken.PaymentMethodDetail.type
  • ⚠️ Change type of terminal.ReaderCollectPaymentMethodParamsCollectConfig.gift_card_brand and terminal.ReaderProcessPaymentIntentParamsProcessConfig.gift_card_brand from enum('fiserv_valuelink'|'givex'|'svs') to literal('svs')
  • Add support for gift_card on terminal.ReaderPresentPaymentMethodParams
  • Add support for new value gift_card on enum terminal.ReaderPresentPaymentMethodParams.type
  • Add support for amount_due and customer_balance_applied on V2.Billing.Intent.AmountDetail
  • Add support for gross_settlement on V2.Core.Account.Configuration.Merchant, v2.core.AccountCreateParamsConfigurationMerchant, and v2.core.AccountModifyParamsConfigurationMerchant
  • Add support for additional_addresses on V2.Core.Account.Identity.BusinessDetail, v2.core.AccountCreateParamsIdentityBusinessDetail, v2.core.AccountModifyParamsIdentityBusinessDetail, and v2.core.AccountTokenCreateParamsIdentityBusinessDetail
  • Add support for source on V2.Iam.ActivityLog.Detail.UserRole
  • ⚠️ Change type of V2.MoneyManagement.DebitDispute.BankTransfer.network from literal('ach') to enum('ach'|'bacs')
  • Add support for new values beneficiary_unrecognized, mandate_canceled_by_stripe, mandate_canceled, no_advance_notice, originator_requested, and signature_invalid on enum V2.MoneyManagement.DebitDispute.BankTransfer.reason
  • ⚠️ Remove support for managed_by on V2.MoneyManagement.FinancialAccount
  • Add support for payout_intent on V2.MoneyManagement.OutboundPayment
  • Add support for payout on V2.MoneyManagement.ReceivedCredit.BalanceTransfer
  • ⚠️ Remove support for payout_v1 on V2.MoneyManagement.ReceivedCredit.BalanceTransfer
  • Add support for new value payout on enum V2.MoneyManagement.ReceivedCredit.BalanceTransfer.type
  • Add support for settles_at on V2.MoneyManagement.ReceivedDebit
  • Add support for gb_bank_account on V2.MoneyManagement.ReceivedDebit.BankTransfer
  • ⚠️ Change type of V2.MoneyManagement.ReceivedDebit.BankTransfer.origin_type from literal('us_bank_account') to enum('gb_bank_account'|'us_bank_account')
  • ⚠️ Change type of V2.MoneyManagement.ReceivedDebit.BankTransfer.payment_method_type from literal('us_bank_account') to enum('gb_bank_account'|'us_bank_account')
  • Add support for new value scheduled on enum V2.MoneyManagement.ReceivedDebit.status
  • Add support for new value no_mandate on enum V2.MoneyManagement.ReceivedDebit.StatusDetail.Failed.reason
  • ⚠️ Change V2.MoneyManagement.ReceivedDebit.BankTransfer.us_bank_account to be optional
  • Add support for target_date on V2.Payments.OffSessionPayment and v2.payments.OffSessionPaymentCreateParams
  • Add support for payment_delinquency_exposure on V2.Signals.AccountSignal
  • Change type of v2.money_management.FinancialAddressDebitSimulationDebitParams.network from literal('ach') to enum('ach'|'bacs')
  • Add support for received_debit_mandate on v2.money_management.ReceivedDebitListParams
  • ⚠️ Remove support for payout_intent on v2.money_management.OutboundPaymentCreateParams
  • ⚠️ Remove support for id on EventsV2SignalsAccountSignalFraudulentMerchantReadyEvent
  • Add support for event notifications V2MoneyManagementReceivedDebitCreatedEvent and V2MoneyManagementReceivedDebitScheduledEvent with related object v2.money_management.ReceivedDebit
  • Add support for event notifications V2MoneyManagementReceivedDebitMandateCanceledEvent, V2MoneyManagementReceivedDebitMandateCreatedEvent, V2MoneyManagementReceivedDebitMandateExpiredEvent, V2MoneyManagementReceivedDebitMandatePendingCancellationEvent, and V2MoneyManagementReceivedDebitMandateUpdatedEvent with related object v2.money_management.ReceivedDebitMandate
  • Add support for event notification V2SignalsAccountSignalPaymentDelinquencyExposureReadyEvent with related object v2.signals.AccountSignal

@stripe-openapi
stripe-openapi Bot requested a review from a team as a code owner July 23, 2026 23:31
@stripe-openapi
stripe-openapi Bot requested review from jar-stripe and removed request for a team and jar-stripe July 23, 2026 23:31
@stripe-openapi
stripe-openapi Bot enabled auto-merge July 23, 2026 23:31
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-private-preview branch from 5e2d33d to c233d07 Compare July 24, 2026 09:59
…1853)

* Fix intermittent Windows test flake in async httpx integration tests

BaseHTTPRequestHandler defaults to protocol_version "HTTP/1.0", which
sets close_connection=True after every response. On Windows, the socket
close can race with the async httpx client reading the response body,
causing ReadError (Windows discards buffered TCP data on RST more
aggressively than Linux).

Setting protocol_version to "HTTP/1.1" keeps the connection alive,
eliminating the race. The 30s timeout is a backstop against the handler
blocking on readline if the client never closes the connection.

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

* Drain request body in mock handler for HTTP/1.1 keep-alive

With protocol_version set to HTTP/1.1, the server keeps the connection
alive and reads the next request from the same socket. If the POST body
isn't consumed, those bytes remain in the buffer and get misinterpreted
as the next HTTP request line.

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

* Snapshot request attributes for HTTP/1.1 keep-alive handler reuse

With keep-alive, multiple requests are handled by the same
BaseHTTPRequestHandler instance. Storing `self` in the queue meant all
entries shared the same mutable object whose .headers/.path/.command
reflect only the last request. Capture a snapshot at handle time instead.

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

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-private-preview branch from c233d07 to cf68764 Compare July 27, 2026 22:43
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-private-preview branch from cf68764 to 991eafb Compare July 27, 2026 23:05
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.

1 participant