Skip to content

Update generated code for beta #1535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Jul 30, 2025
Merged

Update generated code for beta #1535

merged 37 commits into from
Jul 30, 2025

Conversation

stripe-openapi[bot]
Copy link
Contributor

@stripe-openapi stripe-openapi bot commented Jul 2, 2025

Codegen for openapi v1868 and proto spec 2025-07-30.preview.

Changelog

  • Add support for new resources billing.MeterUsageRow, billing.MeterUsage, and terminal.OnboardingLink
  • Add support for retrieve method on resource billing.MeterUsage
  • Add support for create method on resource terminal.OnboardingLink
  • Add support for monthly_payout_days and weekly_payout_days on BalanceSettings.ModifyParamsPayoutSchedule and BalanceSettings.Payout.Schedule
  • Remove support for monthly_anchor and weekly_anchor on BalanceSettings.ModifyParamsPayoutSchedule and BalanceSettings.Payout.Schedule
  • Add support for delay_days_override on BalanceSettings.ModifyParamsSettlementTiming
  • Remove support for delay_days on BalanceSettings.ModifyParamsSettlementTiming
  • Add support for update_discounts on checkout.Session.CreateParamsPermission
  • Add support for discounts and subscription_data on checkout.Session.ModifyParams
  • Add support for smart_disputes on Dispute
  • Add support for upi on Invoice.CreateParamsPaymentSettingPaymentMethodOption, Invoice.ModifyParamsPaymentSettingPaymentMethodOption, Invoice.PaymentSetting.PaymentMethodOption, QuotePreviewInvoice.PaymentSetting.PaymentMethodOption, Subscription.CreateParamsPaymentSettingPaymentMethodOption, Subscription.ModifyParamsPaymentSettingPaymentMethodOption, and Subscription.PaymentSetting.PaymentMethodOption
  • Add support for new value upi on enums Invoice.CreateParamsPaymentSetting.payment_method_types, Invoice.ModifyParamsPaymentSetting.payment_method_types, Invoice.PaymentSetting.payment_method_types, QuotePreviewInvoice.PaymentSetting.payment_method_types, Subscription.CreateParamsPaymentSetting.payment_method_types, Subscription.ModifyParamsPaymentSetting.payment_method_types, and Subscription.PaymentSetting.payment_method_types
  • Add support for transaction_id on PaymentAttemptRecord.PaymentMethodDetail.Cashapp and PaymentRecord.PaymentMethodDetail.Cashapp
  • Add support for amount_details on PaymentIntent.CaptureParams, PaymentIntent.ConfirmParams, PaymentIntent.CreateParams, PaymentIntent.IncrementAuthorizationParams, and PaymentIntent.ModifyParams
  • Add support for payment_details on PaymentIntent.IncrementAuthorizationParams
  • Add support for storer on V2.Core.Account.Identity.Attestation.TermsOfService, v2.core.Account.CreateParamsIdentityAttestationTermsOfService, and v2.core.Account.ModifyParamsIdentityAttestationTermsOfService
  • Add support for collection_options on V2.Core.AccountLink.UseCase.AccountOnboarding, V2.Core.AccountLink.UseCase.AccountUpdate, v2.core.AccountLink.CreateParamsUseCaseAccountOnboarding, and v2.core.AccountLink.CreateParamsUseCaseAccountUpdate
  • Change type of V2.Core.AccountLink.UseCase.AccountOnboarding.configurations, V2.Core.AccountLink.UseCase.AccountUpdate.configurations, v2.core.AccountLink.CreateParamsUseCaseAccountOnboarding.configurations, and v2.core.AccountLink.CreateParamsUseCaseAccountUpdate.configurations from literal('recipient') to enum('customer'|'merchant'|'recipient'|'storer')
  • Add support for bank_account_type on V2.MoneyManagement.PayoutMethod.BankAccount
  • Add support for thin event V2CoreAccountLinkReturnedEvent
  • Add support for thin event V2MoneyManagementPayoutMethodUpdatedEvent with related object v2.money_management.PayoutMethod
  • Remove support for thin event V2CoreAccountLinkCompletedEvent
  • Remove support for thin event V2OffSessionPaymentRequiresCaptureEvent with related object v2.payments.OffSessionPayment

stripe-openapi bot and others added 3 commits July 1, 2025 20:07
* Update generated code for v1789 and 2025-05-28.basil

* Update generated code for v1789 and 2025-05-28.basil

* Update generated code for v1796 and 2025-05-28.basil

* Update generated code for v1800 and 2025-05-28.basil

* Removed generated deprecated method

* Ignore deprecated import

* Update generated code for v1819 and 2025-06-30.basil

* Update generated code for v1819 and 2025-06-30.basil

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Prathmesh Ranaut <prathmesh@stripe.com>
Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>
@stripe-openapi stripe-openapi bot requested a review from a team as a code owner July 2, 2025 13:42
@stripe-openapi stripe-openapi bot requested review from xavdid-stripe and removed request for a team July 2, 2025 13:42
@stripe-openapi stripe-openapi bot enabled auto-merge July 2, 2025 13:42
stripe-openapi bot and others added 23 commits July 7, 2025 16:13
The `RequestsClient`'s `__init__` method incorrectly typed the `timeout`
parameter as `int`. The underlying `requests` library accepts a float
for a total timeout or a `(connect_timeout, read_timeout)` tuple.

This commit updates the type hint to `Union[float, Tuple[float, float]]`
to accurately reflect the timeout in the requests library.

https://github.com/psf/requests/blob/91a3eabd3dcc4d7f36dd8249e4777a90ef9b4305/src/requests/sessions.py#L538
@stripe-openapi stripe-openapi bot merged commit 42327f1 into beta Jul 30, 2025
14 checks passed
@stripe-openapi stripe-openapi bot deleted the latest-codegen-beta branch July 30, 2025 16:28
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