From be6b2f3a774e1463b1e04a6d7c77a6bd1cc605c2 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 11 Sep 2026 01:22:19 -0700 Subject: [PATCH 01/11] migrate to hark --- .github/pull_request_template.md | 12 +- .github/workflows/changelog.yml | 23 + .github/zizmor.yml | 1 + ...8-27_ramya_update-generated-code.change.md | 51 + .../2025-08-27_ramya_use-right-api.change.md | 5 + ..._xavdid_generate-private-preview.change.md | 19 + ..._prathmesh_update-generated-code.change.md | 41 + ...pe-openapi_update-generated-code.change.md | 19 + ...pe-openapi_update-generated-code.change.md | 11 + ...pe-openapi_update-generated-code.change.md | 19 + ...pe-openapi_update-generated-code.change.md | 56 + ...pe-openapi_update-generated-code.change.md | 14 + ...pe-openapi_update-generated-code.change.md | 13 + ...pe-openapi_update-generated-code.change.md | 15 + ...pe-openapi_update-generated-code.change.md | 18 + ...pe-openapi_update-generated-code.change.md | 35 + ...pe-openapi_update-generated-code.change.md | 8 + ...pe-openapi_update-generated-code.change.md | 114 + ...pe-openapi_update-generated-code.change.md | 14 + ...pe-openapi_update-generated-code.change.md | 8 + ...-openapi_update-generated-code_2.change.md | 14 + ...pe-openapi_update-generated-code.change.md | 43 + ...pe-openapi_update-generated-code.change.md | 25 + ...pe-openapi_update-generated-code.change.md | 11 + ...pe-openapi_update-generated-code.change.md | 12 + ...pe-openapi_update-generated-code.change.md | 9 + ...pe-openapi_update-generated-code.change.md | 21 + ...pe-openapi_update-generated-code.change.md | 37 + ...pe-openapi_update-generated-code.change.md | 21 + ...pe-openapi_update-generated-code.change.md | 16 + ...pe-openapi_update-generated-code.change.md | 16 + ...pe-openapi_update-generated-code.change.md | 64 + ...pe-openapi_update-generated-code.change.md | 22 + ...pe-openapi_update-generated-code.change.md | 38 + ...pe-openapi_update-generated-code.change.md | 10 + ...pe-openapi_update-generated-code.change.md | 74 + ...-openapi_update-generated-code_2.change.md | 42 + ...pe-openapi_update-generated-code.change.md | 54 + ...1_unknown_please-refer-changelog.change.md | 4 + ...-04-01_unknown_see-changelog-v15.change.md | 4 + ...pe-openapi_update-generated-code.change.md | 26 + ...pe-openapi_update-generated-code.change.md | 9 + ...-openapi_update-generated-code_2.change.md | 32 + ...pe-openapi_update-generated-code.change.md | 141 + ...pe-openapi_update-generated-code.change.md | 78 + ...pe-openapi_update-generated-code.change.md | 11 + ..._xavdid_add-eventnotific-private.change.md | 5 + ...pe-openapi_update-generated-code.change.md | 21 + ...pe-openapi_update-generated-code.change.md | 31 + ...8_xavdid_remove-unnecessary-cast.change.md | 5 + ...pe-openapi_update-generated-code.change.md | 25 + ...pe-openapi_update-generated-code.change.md | 24 + ...pe-openapi_update-generated-code.change.md | 31 + ...pe-openapi_update-generated-code.change.md | 44 + ...pe-openapi_update-generated-code.change.md | 57 + ...pe-openapi_update-generated-code.change.md | 104 + ...pe-openapi_update-generated-code.change.md | 35 + ...pe-openapi_update-generated-code.change.md | 52 + ...pe-openapi_update-generated-code.change.md | 30 + ...pe-openapi_update-generated-code.change.md | 39 + ...pe-openapi_update-generated-code.change.md | 55 + ...pe-openapi_update-generated-code.change.md | 31 + ...pe-openapi_update-generated-code.change.md | 53 + ...pe-openapi_update-generated-code.change.md | 36 + ...26-08-19_xavdid_add-non-verified.change.md | 5 + ...pe-openapi_update-generated-code.change.md | 38 + ...pe-openapi_update-generated-code.change.md | 89 + ...pe-openapi_update-generated-code.change.md | 18 + .hark/intros/intro-13.1.0a1.md | 1 + .hark/intros/intro-14.1.0a2.md | 1 + .hark/intros/intro-14.5.0a1.md | 1 + .hark/intros/intro-15.1.0a1.md | 1 + .hark/versions.json | 316 ++ CHANGELOG.md | 4438 +---------------- 74 files changed, 2553 insertions(+), 4363 deletions(-) create mode 100644 .github/workflows/changelog.yml create mode 100644 .hark/changes/2025-08-27_ramya_update-generated-code.change.md create mode 100644 .hark/changes/2025-08-27_ramya_use-right-api.change.md create mode 100644 .hark/changes/2025-09-17_xavdid_generate-private-preview.change.md create mode 100644 .hark/changes/2025-09-24_prathmesh_update-generated-code.change.md create mode 100644 .hark/changes/2025-10-09_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-10-17_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-10-22_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-10-29_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-10-30_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-11-06_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-11-12_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-11-13_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-11-17_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-11-18_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-11-20_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-11-24_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-12-04_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2025-12-04_stripe-openapi_update-generated-code_2.change.md create mode 100644 .hark/changes/2025-12-14_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-01-05_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-01-06_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-01-14_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-01-21_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-01-28_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-02-04_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-02-11_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-02-23_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-03-17_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md create mode 100644 .hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-04-01_unknown_please-refer-changelog.change.md create mode 100644 .hark/changes/2026-04-01_unknown_see-changelog-v15.change.md create mode 100644 .hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-04-15_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md create mode 100644 .hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-05-05_xavdid_add-eventnotific-private.change.md create mode 100644 .hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md create mode 100644 .hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-08-19_xavdid_add-non-verified.change.md create mode 100644 .hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/changes/2026-09-09_stripe-openapi_update-generated-code.change.md create mode 100644 .hark/intros/intro-13.1.0a1.md create mode 100644 .hark/intros/intro-14.1.0a2.md create mode 100644 .hark/intros/intro-14.5.0a1.md create mode 100644 .hark/intros/intro-15.1.0a1.md create mode 100644 .hark/versions.json diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 4e1cbb2de..c7d166a31 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -10,14 +10,6 @@ List out the key changes made in this PR, e.g. ### See Also -## Changelog - +- [ ] `skip-changefile`: This PR is not a user-facing change, so there's no changefile. diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 000000000..b8261d5a1 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,23 @@ +name: Changelog + +on: + pull_request: + # opened, synchronize and reopened are the defaults; `edited` is what makes this + # re-run when someone toggles an opt-out box in the description + types: [opened, synchronize, reopened, edited] + +permissions: {} + +jobs: + changefile: + runs-on: ubuntu-24.04 + permissions: + contents: read # check out the repo so `hark validate` can read .hark/ + pull-requests: read # list the files this pull request adds + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: stripe/hark/actions/require-changefile@v1 + - uses: stripe/hark/actions/require-migration-guide@v1 + - uses: stripe/hark/actions/check-pr-links@v1 diff --git a/.github/zizmor.yml b/.github/zizmor.yml index 25cd8201c..c0f321f1a 100644 --- a/.github/zizmor.yml +++ b/.github/zizmor.yml @@ -6,3 +6,4 @@ rules: config: policies: "stripe/openapi/*": ref-pin + "stripe/hark/*": ref-pin diff --git a/.hark/changes/2025-08-27_ramya_update-generated-code.change.md b/.hark/changes/2025-08-27_ramya_update-generated-code.change.md new file mode 100644 index 000000000..100679b85 --- /dev/null +++ b/.hark/changes/2025-08-27_ramya_update-generated-code.change.md @@ -0,0 +1,51 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1552 +is_stripe_api_change: true +released_in_version: 12.6.0a1 +--- + +* Add support for `attach_cadence` method on resource `Subscription` +* Add support for `currency` and `external_customer_id` on `Billing.AlertTriggered` +* Add support for `custom_pricing_unit` on `Billing.AlertTriggered`, `Billing.CreditBalanceSummary.Balance.AvailableBalance`, `Billing.CreditBalanceSummary.Balance.LedgerBalance`, `Billing.CreditBalanceTransaction.Credit.Amount`, `Billing.CreditBalanceTransaction.Debit.Amount`, `Billing.CreditGrant.Amount`, and `billing.CreditGrant.CreateParamsAmount` +* Add support for `customer` on `billing.Alert.ListParams` +* Change type of `Billing.Alert.alert_type`, `billing.Alert.CreateParams.alert_type`, and `billing.Alert.ListParams.alert_type` from `literal('usage_threshold')` to `enum('credit_balance_threshold'|'usage_threshold')` +* Add support for `credit_balance_threshold` on `Billing.Alert` and `billing.Alert.CreateParams` +* Add support for `billable_items` on `Billing.CreditGrant.ApplicabilityConfig.Scope`, `billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope`, and `billing.CreditGrant.CreateParamsApplicabilityConfigScope` +* Change type of `Billing.CreditBalanceSummary.Balance.AvailableBalance.type`, `Billing.CreditBalanceSummary.Balance.LedgerBalance.type`, `Billing.CreditBalanceTransaction.Credit.Amount.type`, `Billing.CreditBalanceTransaction.Debit.Amount.type`, `Billing.CreditGrant.Amount.type`, and `billing.CreditGrant.CreateParamsAmount.type` from `literal('monetary')` to `enum('custom_pricing_unit'|'monetary')` +* Add support for `license_fee_subscription_details` and `rate_card_subscription_details` on `InvoiceItem.Parent` and `InvoiceLineItem.Parent` +* Change type of `InvoiceItem.Parent.type` from `literal('subscription_details')` to `enum('license_fee_subscription_details'|'rate_card_subscription_details'|'subscription_details')` +* Add support for `license_fee_details` and `rate_card_rate_details` on `InvoiceItem.Pricing` and `InvoiceLineItem.Pricing` +* Change type of `InvoiceItem.Pricing.type` and `InvoiceLineItem.Pricing.type` from `literal('price_details')` to `enum('license_fee_details'|'price_details'|'rate_card_rate_details')` +* Add support for `billing_cadence` on `Invoice.CreatePreviewParams`, `Subscription.CreateParams`, and `Subscription` +* Add support for `billing_cadence_details` on `Invoice.Parent` and `QuotePreviewInvoice.Parent` +* Add support for new value `billing_cadence_details` on enums `Invoice.Parent.type` and `QuotePreviewInvoice.Parent.type` +* Add support for new values `license_fee_subscription_details` and `rate_card_subscription_details` on enum `InvoiceLineItem.Parent.type` +* Add support for new resources `v2.billing.BillSettingVersion`, `v2.billing.BillSetting`, `v2.billing.Cadence`, `v2.billing.CollectionSettingVersion`, `v2.billing.CollectionSetting`, `v2.billing.CustomPricingUnit`, `v2.billing.IntentAction`, `v2.billing.Intent`, `v2.billing.LicenseFeeSubscription`, `v2.billing.LicenseFeeVersion`, `v2.billing.LicenseFee`, `v2.billing.LicensedItem`, `v2.billing.MeteredItem`, `v2.billing.PricingPlanComponent`, `v2.billing.PricingPlanSubscription`, `v2.billing.PricingPlanVersion`, `v2.billing.PricingPlan`, `v2.billing.Profile`, `v2.billing.RateCardRate`, `v2.billing.RateCardSubscription`, `v2.billing.RateCardVersion`, `v2.billing.RateCard`, `v2.billing.ServiceAction`, `v2.core.ClaimableSandbox`, `v2.reporting.ReportRun`, `v2.reporting.Report`, and `v2.tax.AutomaticRule` +* Add support for `create`, `deactivate`, `find`, `modify`, and `retrieve` methods on resource `v2.tax.AutomaticRule` +* Add support for `create` and `retrieve` methods on resources `v2.billing.ServiceAction` and `v2.reporting.ReportRun` +* Add support for `retrieve` method on resources `v2.billing.LicenseFeeSubscription` and `v2.reporting.Report` +* Add support for `create` method on resource `v2.core.ClaimableSandbox` +* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve` methods on resources `v2.billing.Cadence` and `v2.billing.RateCardSubscription` +* Add support for `create`, `list`, `modify`, and `retrieve` methods on resources `v2.billing.BillSetting`, `v2.billing.CollectionSetting`, `v2.billing.CustomPricingUnit`, `v2.billing.LicenseFee`, `v2.billing.LicensedItem`, `v2.billing.MeteredItem`, `v2.billing.PricingPlan`, `v2.billing.Profile`, and `v2.billing.RateCard` +* Add support for `list` and `retrieve` methods on resources `v2.billing.BillSettingVersion`, `v2.billing.CollectionSettingVersion`, `v2.billing.IntentAction`, `v2.billing.LicenseFeeVersion`, `v2.billing.PricingPlanSubscription`, `v2.billing.PricingPlanVersion`, and `v2.billing.RateCardVersion` +* Add support for `create`, `delete`, `list`, and `retrieve` methods on resource `v2.billing.RateCardRate` +* Add support for `create`, `delete`, `list`, `modify`, and `retrieve` methods on resource `v2.billing.PricingPlanComponent` +* Add support for `cancel`, `commit`, `create`, `list`, `release_reservation`, `reserve`, and `retrieve` methods on resource `v2.billing.Intent` +* Add support for `changes` on `V2.Event` +* Add support for thin events `V2BillingCadenceBilledEvent`, `V2BillingCadenceCanceledEvent`, `V2BillingCadenceCreatedEvent`, and `V2BillingCadenceErroredEvent` with related object `v2.billing.Cadence` +* Add support for thin events `V2BillingLicenseFeeCreatedEvent` and `V2BillingLicenseFeeUpdatedEvent` with related object `v2.billing.LicenseFee` +* Add support for thin event `V2BillingLicenseFeeVersionCreatedEvent` with related object `v2.billing.LicenseFeeVersion` +* Add support for thin events `V2BillingLicensedItemCreatedEvent` and `V2BillingLicensedItemUpdatedEvent` with related object `v2.billing.LicensedItem` +* Add support for thin events `V2BillingMeteredItemCreatedEvent` and `V2BillingMeteredItemUpdatedEvent` with related object `v2.billing.MeteredItem` +* Add support for thin events `V2BillingPricingPlanCreatedEvent` and `V2BillingPricingPlanUpdatedEvent` with related object `v2.billing.PricingPlan` +* Add support for thin events `V2BillingPricingPlanComponentCreatedEvent` and `V2BillingPricingPlanComponentUpdatedEvent` with related object `v2.billing.PricingPlanComponent` +* Add support for thin events `V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent`, `V2BillingPricingPlanSubscriptionCollectionCurrentEvent`, `V2BillingPricingPlanSubscriptionCollectionPastDueEvent`, `V2BillingPricingPlanSubscriptionCollectionPausedEvent`, `V2BillingPricingPlanSubscriptionCollectionUnpaidEvent`, `V2BillingPricingPlanSubscriptionServicingActivatedEvent`, `V2BillingPricingPlanSubscriptionServicingCanceledEvent`, and `V2BillingPricingPlanSubscriptionServicingPausedEvent` with related object `v2.billing.PricingPlanSubscription` +* Add support for thin event `V2BillingPricingPlanVersionCreatedEvent` with related object `v2.billing.PricingPlanVersion` +* Add support for thin events `V2BillingRateCardCreatedEvent` and `V2BillingRateCardUpdatedEvent` with related object `v2.billing.RateCard` +* Add support for thin event `V2BillingRateCardRateCreatedEvent` with related object `v2.billing.RateCardRate` +* Add support for thin events `V2BillingRateCardSubscriptionActivatedEvent`, `V2BillingRateCardSubscriptionCanceledEvent`, `V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent`, `V2BillingRateCardSubscriptionCollectionCurrentEvent`, `V2BillingRateCardSubscriptionCollectionPastDueEvent`, `V2BillingRateCardSubscriptionCollectionPausedEvent`, `V2BillingRateCardSubscriptionCollectionUnpaidEvent`, `V2BillingRateCardSubscriptionServicingActivatedEvent`, `V2BillingRateCardSubscriptionServicingCanceledEvent`, and `V2BillingRateCardSubscriptionServicingPausedEvent` with related object `v2.billing.RateCardSubscription` +* Add support for thin event `V2BillingRateCardVersionCreatedEvent` with related object `v2.billing.RateCardVersion` +* Add support for thin events `V2CoreHealthApiErrorFiringEvent`, `V2CoreHealthApiErrorResolvedEvent`, `V2CoreHealthApiLatencyFiringEvent`, `V2CoreHealthApiLatencyResolvedEvent`, `V2CoreHealthAuthorizationRateDropFiringEvent`, `V2CoreHealthAuthorizationRateDropResolvedEvent`, `V2CoreHealthEventGenerationFailureResolvedEvent`, `V2CoreHealthFraudRateIncreasedEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `V2CoreHealthPaymentMethodErrorFiringEvent`, `V2CoreHealthPaymentMethodErrorResolvedEvent`, `V2CoreHealthTrafficVolumeDropFiringEvent`, `V2CoreHealthTrafficVolumeDropResolvedEvent`, `V2CoreHealthWebhookLatencyFiringEvent`, and `V2CoreHealthWebhookLatencyResolvedEvent` +* Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `v2.reporting.ReportRun` +* Add support for error type `RateLimitError` diff --git a/.hark/changes/2025-08-27_ramya_use-right-api.change.md b/.hark/changes/2025-08-27_ramya_use-right-api.change.md new file mode 100644 index 000000000..17fdcef38 --- /dev/null +++ b/.hark/changes/2025-08-27_ramya_use-right-api.change.md @@ -0,0 +1,5 @@ +--- +title: Use the right API version 2025-08-27.preview +pr_link: https://github.com/stripe/stripe-python/pull/1556 +released_in_version: 12.6.0a1 +--- diff --git a/.hark/changes/2025-09-17_xavdid_generate-private-preview.change.md b/.hark/changes/2025-09-17_xavdid_generate-private-preview.change.md new file mode 100644 index 000000000..f19678d1b --- /dev/null +++ b/.hark/changes/2025-09-17_xavdid_generate-private-preview.change.md @@ -0,0 +1,19 @@ +--- +title: generate private-preview SDK w/ mid Sept changes +pr_link: https://github.com/stripe/stripe-python/pull/1571 +is_stripe_api_change: true +released_in_version: 12.6.0a2 +--- + +* Add support for `retrieve` method on resource `v2.core.ClaimableSandbox` +* Add support for `month_of_year` on `V2.Billing.Cadence.BillingCycle.Month` and `v2.billing.Cadence.CreateParamsBillingCycleMonth` +* Add support for `claimed_at`, `expires_at`, `sandbox_details`, and `status` on `V2.Core.ClaimableSandbox` +* Remove support for `api_keys` on `V2.Core.ClaimableSandbox` +* Change type of `V2.Core.ClaimableSandbox.claim_url` from `string` to `nullable(string)` +* Add support for new value `current_billing_period_end` on enums `V2.Billing.IntentAction.Deactivate.EffectiveAt.type` and `v2.billing.Intent.CreateParamsActionDeactivateEffectiveAt.type` +* Add support for `will_activate_at` and `will_cancel_at` on `V2.Billing.PricingPlanSubscription.ServicingStatusTransition` and `V2.Billing.RateCardSubscription.ServicingStatusTransition` +* Add support for `category` and `priority` on `V2.Billing.ServiceAction.CreditGrantPerTenant`, `V2.Billing.ServiceAction.CreditGrant`, `v2.billing.ServiceAction.CreateParamsCreditGrantPerTenant`, and `v2.billing.ServiceAction.CreateParamsCreditGrant` +* Change `v2.billing.LicenseFee.ModifyParams.display_name` to be optional +* Add support for `invoices` on `EventsV2BillingCadenceBilledEvent` +* Add support for thin events `V2CoreClaimableSandboxClaimedEvent`, `V2CoreClaimableSandboxExpiredEvent`, `V2CoreClaimableSandboxExpiringEvent`, and `V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent` with related object `V2.core.ClaimableSandbox` +* Remove support for thin event `V2BillingCadenceErroredEvent` with related object `V2.billing.Cadence` diff --git a/.hark/changes/2025-09-24_prathmesh_update-generated-code.change.md b/.hark/changes/2025-09-24_prathmesh_update-generated-code.change.md new file mode 100644 index 000000000..19e1d8b25 --- /dev/null +++ b/.hark/changes/2025-09-24_prathmesh_update-generated-code.change.md @@ -0,0 +1,41 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1587 +is_stripe_api_change: true +released_in_version: 13.1.0a1 +--- + +* Add support for new resource `v2.money_management.RecipientVerification` +* Add support for `acknowledge`, `create`, `recipient_verifications`, and `retrieve` methods on resource `v2.money_management.RecipientVerification` +* Add support for `modify` method on resources `v2.billing.PricingPlanSubscription` and `v2.billing.ServiceAction` +* Add support for `crypto_wallets` on `V2.Account.Configuration.RecipientDatum.Feature`, `V2.Core.Account.Configuration.Recipient.Capability`, `v2.Account.CreateParamsConfigurationRecipientDatumFeature`, `v2.Account.ModifyParamsConfigurationRecipientDatumFeature`, `v2.core.Account.CreateParamsConfigurationRecipientCapability`, and `v2.core.Account.ModifyParamsConfigurationRecipientCapability` +* Add support for new value `crypto` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for new value `crypto_wallet` on enum `V2.Account.Configuration.RecipientDatum.DefaultOutboundDestination.type` +* Add support for new value `crypto_wallets` on enum `V2.Account.Configuration.SupportableFeature.recipient_data` +* Add support for new value `crypto_wallets` on enum `V2.Account.Requirement.Impact.required_for_features` +* Add support for `lookup_key` on `V2.Billing.Cadence`, `v2.billing.Cadence.CreateParams`, and `v2.billing.Cadence.ModifyParams` +* Add support for `settings_data` on `V2.Billing.Cadence` +* Change type of `V2.Billing.Cadence.Payer.billing_profile` from `nullable(string)` to `string` +* Add support for `v1_event_id` on `V2.Core.Event` +* Add support for `recipient_verification` on `V2.MoneyManagement.OutboundPayment`, `V2.MoneyManagement.OutboundTransfer`, `v2.money_management.OutboundPayment.CreateParams`, and `v2.money_management.OutboundTransfer.CreateParams` +* Add support for `crypto_wallet` on `V2.MoneyManagement.PayoutMethod` and `v2.money_management.OutboundSetupIntent.CreateParamsPayoutMethodDatum` +* Add support for `custom_pricing_unit_details` on `V2.Billing.RateCardRate.CustomPricingUnitAmount`, `V2.Billing.ServiceAction.CreditGrant.Amount.CustomPricingUnit`, and `V2.Billing.ServiceAction.CreditGrantPerTenant.Amount.CustomPricingUnit` +* Add support for `origin_type` on `V2.MoneyManagement.ReceivedDebit.BankTransfer` +* Add support for new value `sepa_credit_transfer` on enum `v2.FinancialAddressCreditSimulation.CreditParams.network` +* Add support for new value `credentials.sepa_bank_account.iban` on enums `v2.money_management.FinancialAddress.ListParams.include` and `v2.money_management.FinancialAddress.RetrieveParams.include` +* Add support for `sepa_bank_account` on `v2.money_management.FinancialAddress.CreateParams` +* Remove support for `price` on `v2.billing.RateCardRate.CreateParams` +* Add support for `lookup_keys` on `v2.billing.Cadence.ListParams` +* Change type of `v2.billing.Cadence.CancelParams.include`, `v2.billing.Cadence.CreateParams.include`, `v2.billing.Cadence.ListParams.include`, `v2.billing.Cadence.ModifyParams.include`, and `v2.billing.Cadence.RetrieveParams.include` from `literal('invoice_discount_rules')` to `enum('invoice_discount_rules'|'settings_data')` +* Remove support for `customer` and `type` on `v2.billing.Cadence.CreateParamsPayer` +* Change `v2.billing.Cadence.CreateParamsPayer.billing_profile` to be required +* Add support for new value `crypto_wallets` on enum `EventsAccountConfigurationRecipientDataFeatureStatusUpdatedEvent.feature_name` +* Add support for new value `crypto_wallets_v2` on enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability` +* Remove support for `alert_id` on `EventsV2CoreHealthApiErrorResolvedEvent`, `EventsV2CoreHealthApiLatencyResolvedEvent`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `EventsV2CoreHealthPaymentMethodErrorResolvedEvent`, `EventsV2CoreHealthTrafficVolumeDropResolvedEvent`, and `EventsV2CoreHealthWebhookLatencyResolvedEvent` +* Add support for thin event `V1AccountUpdatedEvent` with related object `v2.Account` +* Add support for thin events `V1ApplicationFeeCreatedEvent`, `V1ApplicationFeeRefundedEvent`, `V1BillingPortalConfigurationCreatedEvent`, `V1BillingPortalConfigurationUpdatedEvent`, `V1CapabilityUpdatedEvent`, `V1ChargeCapturedEvent`, `V1ChargeDisputeClosedEvent`, `V1ChargeDisputeCreatedEvent`, `V1ChargeDisputeFundsReinstatedEvent`, `V1ChargeDisputeFundsWithdrawnEvent`, `V1ChargeDisputeUpdatedEvent`, `V1ChargeExpiredEvent`, `V1ChargeFailedEvent`, `V1ChargePendingEvent`, `V1ChargeRefundUpdatedEvent`, `V1ChargeRefundedEvent`, `V1ChargeSucceededEvent`, `V1ChargeUpdatedEvent`, `V1CheckoutSessionAsyncPaymentFailedEvent`, `V1CheckoutSessionAsyncPaymentSucceededEvent`, `V1CheckoutSessionCompletedEvent`, `V1CheckoutSessionExpiredEvent`, `V1ClimateOrderCanceledEvent`, `V1ClimateOrderCreatedEvent`, `V1ClimateOrderDelayedEvent`, `V1ClimateOrderDeliveredEvent`, `V1ClimateOrderProductSubstitutedEvent`, `V1ClimateProductCreatedEvent`, `V1ClimateProductPricingUpdatedEvent`, `V1CouponCreatedEvent`, `V1CouponDeletedEvent`, `V1CouponUpdatedEvent`, `V1CreditNoteCreatedEvent`, `V1CreditNoteUpdatedEvent`, `V1CreditNoteVoidedEvent`, `V1CustomerCreatedEvent`, `V1CustomerDeletedEvent`, `V1CustomerDiscountCreatedEvent`, `V1CustomerDiscountDeletedEvent`, `V1CustomerDiscountUpdatedEvent`, `V1CustomerSubscriptionCreatedEvent`, `V1CustomerSubscriptionDeletedEvent`, `V1CustomerSubscriptionPausedEvent`, `V1CustomerSubscriptionPendingUpdateAppliedEvent`, `V1CustomerSubscriptionPendingUpdateExpiredEvent`, `V1CustomerSubscriptionResumedEvent`, `V1CustomerSubscriptionTrialWillEndEvent`, `V1CustomerSubscriptionUpdatedEvent`, `V1CustomerTaxIdCreatedEvent`, `V1CustomerTaxIdDeletedEvent`, `V1CustomerTaxIdUpdatedEvent`, `V1CustomerUpdatedEvent`, `V1FileCreatedEvent`, `V1FinancialConnectionsAccountCreatedEvent`, `V1FinancialConnectionsAccountDeactivatedEvent`, `V1FinancialConnectionsAccountDisconnectedEvent`, `V1FinancialConnectionsAccountReactivatedEvent`, `V1FinancialConnectionsAccountRefreshedBalanceEvent`, `V1FinancialConnectionsAccountRefreshedOwnershipEvent`, `V1FinancialConnectionsAccountRefreshedTransactionsEvent`, `V1IdentityVerificationSessionCanceledEvent`, `V1IdentityVerificationSessionCreatedEvent`, `V1IdentityVerificationSessionProcessingEvent`, `V1IdentityVerificationSessionRedactedEvent`, `V1IdentityVerificationSessionRequiresInputEvent`, `V1IdentityVerificationSessionVerifiedEvent`, `V1InvoiceCreatedEvent`, `V1InvoiceDeletedEvent`, `V1InvoiceFinalizationFailedEvent`, `V1InvoiceFinalizedEvent`, `V1InvoiceMarkedUncollectibleEvent`, `V1InvoiceOverdueEvent`, `V1InvoiceOverpaidEvent`, `V1InvoicePaidEvent`, `V1InvoicePaymentActionRequiredEvent`, `V1InvoicePaymentFailedEvent`, `V1InvoicePaymentPaidEvent`, `V1InvoicePaymentSucceededEvent`, `V1InvoiceSentEvent`, `V1InvoiceUpcomingEvent`, `V1InvoiceUpdatedEvent`, `V1InvoiceVoidedEvent`, `V1InvoiceWillBeDueEvent`, `V1InvoiceitemCreatedEvent`, `V1InvoiceitemDeletedEvent`, `V1IssuingAuthorizationCreatedEvent`, `V1IssuingAuthorizationRequestEvent`, `V1IssuingAuthorizationUpdatedEvent`, `V1IssuingCardCreatedEvent`, `V1IssuingCardUpdatedEvent`, `V1IssuingCardholderCreatedEvent`, `V1IssuingCardholderUpdatedEvent`, `V1IssuingDisputeClosedEvent`, `V1IssuingDisputeCreatedEvent`, `V1IssuingDisputeFundsReinstatedEvent`, `V1IssuingDisputeFundsRescindedEvent`, `V1IssuingDisputeSubmittedEvent`, `V1IssuingDisputeUpdatedEvent`, `V1IssuingPersonalizationDesignActivatedEvent`, `V1IssuingPersonalizationDesignDeactivatedEvent`, `V1IssuingPersonalizationDesignRejectedEvent`, `V1IssuingPersonalizationDesignUpdatedEvent`, `V1IssuingTokenCreatedEvent`, `V1IssuingTokenUpdatedEvent`, `V1IssuingTransactionCreatedEvent`, `V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent`, `V1IssuingTransactionUpdatedEvent`, `V1MandateUpdatedEvent`, `V1PaymentIntentAmountCapturableUpdatedEvent`, `V1PaymentIntentCanceledEvent`, `V1PaymentIntentCreatedEvent`, `V1PaymentIntentPartiallyFundedEvent`, `V1PaymentIntentPaymentFailedEvent`, `V1PaymentIntentProcessingEvent`, `V1PaymentIntentRequiresActionEvent`, `V1PaymentIntentSucceededEvent`, `V1PaymentLinkCreatedEvent`, `V1PaymentLinkUpdatedEvent`, `V1PaymentMethodAttachedEvent`, `V1PaymentMethodAutomaticallyUpdatedEvent`, `V1PaymentMethodDetachedEvent`, `V1PaymentMethodUpdatedEvent`, `V1PayoutCanceledEvent`, `V1PayoutCreatedEvent`, `V1PayoutFailedEvent`, `V1PayoutPaidEvent`, `V1PayoutReconciliationCompletedEvent`, `V1PayoutUpdatedEvent`, `V1PersonCreatedEvent`, `V1PersonDeletedEvent`, `V1PersonUpdatedEvent`, `V1PlanCreatedEvent`, `V1PlanDeletedEvent`, `V1PlanUpdatedEvent`, `V1PriceCreatedEvent`, `V1PriceDeletedEvent`, `V1PriceUpdatedEvent`, `V1ProductCreatedEvent`, `V1ProductDeletedEvent`, `V1ProductUpdatedEvent`, `V1PromotionCodeCreatedEvent`, `V1PromotionCodeUpdatedEvent`, `V1QuoteAcceptedEvent`, `V1QuoteCanceledEvent`, `V1QuoteCreatedEvent`, `V1QuoteFinalizedEvent`, `V1RadarEarlyFraudWarningCreatedEvent`, `V1RadarEarlyFraudWarningUpdatedEvent`, `V1RefundCreatedEvent`, `V1RefundFailedEvent`, `V1RefundUpdatedEvent`, `V1ReviewClosedEvent`, `V1ReviewOpenedEvent`, `V1SetupIntentCanceledEvent`, `V1SetupIntentCreatedEvent`, `V1SetupIntentRequiresActionEvent`, `V1SetupIntentSetupFailedEvent`, `V1SetupIntentSucceededEvent`, `V1SigmaScheduledQueryRunCreatedEvent`, `V1SourceCanceledEvent`, `V1SourceChargeableEvent`, `V1SourceFailedEvent`, `V1SourceRefundAttributesRequiredEvent`, `V1SubscriptionScheduleAbortedEvent`, `V1SubscriptionScheduleCanceledEvent`, `V1SubscriptionScheduleCompletedEvent`, `V1SubscriptionScheduleCreatedEvent`, `V1SubscriptionScheduleExpiringEvent`, `V1SubscriptionScheduleReleasedEvent`, `V1SubscriptionScheduleUpdatedEvent`, `V1TaxRateCreatedEvent`, `V1TaxRateUpdatedEvent`, `V1TerminalReaderActionFailedEvent`, `V1TerminalReaderActionSucceededEvent`, `V1TerminalReaderActionUpdatedEvent`, `V1TestHelpersTestClockAdvancingEvent`, `V1TestHelpersTestClockCreatedEvent`, `V1TestHelpersTestClockDeletedEvent`, `V1TestHelpersTestClockInternalFailureEvent`, `V1TestHelpersTestClockReadyEvent`, `V1TopupCanceledEvent`, `V1TopupCreatedEvent`, `V1TopupFailedEvent`, `V1TopupReversedEvent`, `V1TopupSucceededEvent`, `V1TransferCreatedEvent`, `V1TransferReversedEvent`, `V1TransferUpdatedEvent`, `V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent`, and `V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent` +* Add support for thin event `V2CoreClaimableSandboxCreatedEvent` with related object `v2.core.ClaimableSandbox` +* Add support for thin events `V2MoneyManagementRecipientVerificationCreatedEvent` and `V2MoneyManagementRecipientVerificationUpdatedEvent` with related object `v2.money_management.RecipientVerification` +* Add support for error code `account_rate_limit_exceeded` on `RateLimitError` +* Remove support for resources `v2.reporting.ReportRun`, `v2.reporting.Report` +* Remove support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `v2.reporting.ReportRun` diff --git a/.hark/changes/2025-10-09_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-09_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..1bcc52156 --- /dev/null +++ b/.hark/changes/2025-10-09_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,19 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1629 +is_stripe_api_change: true +released_in_version: 13.1.0a2 +--- + +* Add support for new resource `PaymentMethodBalance` +* Add support for `check_balance` method on resource `PaymentMethod` +* Add support for `benefits` on `Card`, `Charge.PaymentMethodDetail.Card`, `ConfirmationToken.PaymentMethodPreview.Card`, and `PaymentMethod.Card` +* Add support for `benefit` on `PaymentIntent.PaymentDetail`, `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsPaymentDetail`, and `PaymentIntentModifyParamsPaymentDetail` +* Add support for `setup_details` on `SetupIntentConfirmParams`, `SetupIntentCreateParams`, `SetupIntentModifyParams`, and `SetupIntent` +* Add support for new value `card_creator` on enums `V2.Core.Account.applied_configurations` and `v2.core.AccountCloseParams.applied_configurations` +* Add support for `card_creator` on `V2.Core.Account.Configuration`, `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsConfiguration`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, `v2.core.AccountModifyParamsConfiguration`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfService` +* Add support for new values `commercial.celtic.charge_card`, `commercial.celtic.spend_card`, `commercial.cross_river_bank.charge_card`, `commercial.cross_river_bank.spend_card`, `commercial.stripe.charge_card`, and `commercial.stripe.prepaid_card` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for new value `card_creator` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.configuration` +* Add support for new value `configuration.card_creator` on enums `v2.core.AccountCreateParams.include`, `v2.core.AccountModifyParams.include`, and `v2.core.AccountRetrieveParams.include` +* Add support for thin events `V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationCardCreatorUpdatedEvent` with related object `v2.core.Account` +* Remove support for thin events `V1CustomerDiscountCreatedEvent`, `V1CustomerDiscountDeletedEvent`, and `V1CustomerDiscountUpdatedEvent` with related object `Discount` diff --git a/.hark/changes/2025-10-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-17_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..4949c5f86 --- /dev/null +++ b/.hark/changes/2025-10-17_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1643 +is_stripe_api_change: true +released_in_version: 13.1.0a3 +--- + +* Add support for new resources `delegated_checkout.RequestedSession` and `identity.BlocklistEntry` +* Add support for `confirm`, `create`, `expire`, `modify`, and `retrieve` methods on resource `delegated_checkout.RequestedSession` +* Add support for `create`, `disable`, `list`, and `retrieve` methods on resource `identity.BlocklistEntry` +* Add support for `blocked_by_entry` on `Identity.VerificationReport.Document`, `Identity.VerificationReport.Selfie`, and `identity.VerificationReportListParams` diff --git a/.hark/changes/2025-10-22_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-22_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..c8a3547c1 --- /dev/null +++ b/.hark/changes/2025-10-22_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,19 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1649 +is_stripe_api_change: true +released_in_version: 13.1.0a4 +--- + +* Add support for new resource `v2.billing.PricingPlanSubscriptionComponents` +* Add support for `retrieve` method on resource `v2.billing.PricingPlanSubscriptionComponents` +* Add support for `dimension_payload_keys` on `Billing.Meter` and `billing.MeterCreateParams` +* Add support for `dimension_filters` and `dimension_group_by_keys` on `billing.BillingMeterListMeterEventSummaryParams` +* Add support for `dimensions` on `Billing.MeterEventSummary` +* Add support for `fulfillment_details` and `payment_method_data` on `delegated_checkout.RequestedSessionCreateParams` and `delegated_checkout.RequestedSessionModifyParams` +* Add support for `line_item_details`, `metadata`, `payment_method`, and `shared_metadata` on `DelegatedCheckout.RequestedSession`, `delegated_checkout.RequestedSessionCreateParams`, and `delegated_checkout.RequestedSessionModifyParams` +* Add support for `currency`, `customer`, and `risk_details` on `delegated_checkout.RequestedSessionCreateParams` +* Add support for `seller_details` and `setup_future_usage` on `DelegatedCheckout.RequestedSession` and `delegated_checkout.RequestedSessionCreateParams` +* Add support for `amount_subtotal`, `amount_total`, `created_at`, `expires_at`, `order_details`, `shared_payment_issued_token`, `status`, `total_details`, and `updated_at` on `DelegatedCheckout.RequestedSession` +* Add support for `address`, `email`, `fulfillment_options`, `name`, `phone`, and `selected_fulfillment_option` on `DelegatedCheckout.RequestedSession.FulfillmentDetail` +* Add support for new values `billie`, `crypto`, `kr_card`, `kriya`, `mb_way`, `mondu`, `ng_bank_transfer`, `ng_bank`, `ng_card`, `ng_market`, `ng_ussd`, `ng_wallet`, `payco`, `paypay`, `rechnung`, `samsung_pay`, `satispay`, `scalapay`, `sequra`, `sunbit`, `us_bank_account`, and `vipps` on enums `EventsV2CoreHealthAuthorizationRateDropFiringEvent.Impact.payment_method_type`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent.Impact.payment_method_type`, `EventsV2CoreHealthPaymentMethodErrorFiringEvent.Impact.payment_method_type`, and `EventsV2CoreHealthPaymentMethodErrorResolvedEvent.Impact.payment_method_type` diff --git a/.hark/changes/2025-10-29_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-29_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..cf1adc3a1 --- /dev/null +++ b/.hark/changes/2025-10-29_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,56 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1654 +is_stripe_api_change: true +released_in_version: 13.2.0a1 +--- + +* Add support for `report_refund` method on resource `PaymentRecord` +* Add support for new value `verification_data_not_found` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` +* Add support for `tenants` on `Billing.Analytics.MeterUsageRow` +* Add support for `representative_declaration` on `Account.Company`, `AccountCreateParamsCompany`, `AccountModifyParamsCompany`, and `TokenCreateParamsAccountCompany` +* Add support for `transfer` on `ApplicationFee.FeeSource` +* Add support for new value `transfer` on enum `ApplicationFee.FeeSource.type` +* Add support for `transit_balances_total` on `Balance` +* Add support for new value `transit` on enum `BalanceTransaction.balance_type` +* Add support for `tenant_group_by_keys` on `billing.analytics.MeterUsageRetrieveParamsMeter` +* Change `billing.CreditGrantCreateParams.category` to be optional +* Add support for `payment_method_configuration` on `billing_portal.ConfigurationCreateParamsFeaturePaymentMethodUpdate` and `billing_portal.ConfigurationModifyParamsFeaturePaymentMethodUpdate` +* Add support for new value `solana` on enums `Charge.PaymentMethodDetail.Crypto.network`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto.network`, and `PaymentRecord.PaymentMethodDetail.Crypto.network` +* Add support for `payment_portal_url` on `Charge.PaymentMethodDetail.Rechnung`, `PaymentAttemptRecord.PaymentMethodDetail.Rechnung`, and `PaymentRecord.PaymentMethodDetail.Rechnung` +* Add support for `twint` on `Checkout.Session.PaymentMethodOption` and `checkout.SessionCreateParamsPaymentMethodOption` +* Add support for new value `custom` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* Change `CreditNote.Refund.payment_record_refund` to be required +* Change `CreditNote.Refund.type` to be required +* Add support for `customer_sheet`, `mobile_payment_element`, and `tax_id_element` on `CustomerSession.Component` and `CustomerSessionCreateParamsComponent` +* Add support for new value `custom` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `provider` on `Customer.Tax` +* Remove support for `risk_details` on `delegated_checkout.RequestedSessionCreateParams` +* Add support for `risk_details` on `delegated_checkout.RequestedSessionConfirmParams` +* Add support for new value `platform_terms_of_service` on enums `File.purpose` and `FileListParams.purpose` +* Add support for new value `platform_terms_of_service` on enum `FileCreateParams.purpose` +* Add support for `starting_after` on `PaymentAttemptRecordListParams` +* Add support for `reference` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Klarna`, `PaymentIntentCaptureParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentConfirmParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentCreateParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionKlarna`, and `PaymentIntentModifyParamsAmountDetailLineItemPaymentMethodOptionKlarna` +* Add support for `allocated_funds` on `PaymentIntent` +* Change `PaymentIntent.PaymentDetail.customer_reference` to be required +* Change `PaymentIntent.PaymentDetail.order_reference` to be required +* Add support for `subscription_reference` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Klarna` +* Add support for `name_collection` on `PaymentLinkCreateParams`, `PaymentLinkModifyParams`, and `PaymentLink` +* Add support for `crypto` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, and `Refund.DestinationDetail` +* Add support for `mb_way` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, and `PaymentMethodConfiguration` +* Add support for `custom` on `PaymentMethodCreateParams` and `PaymentMethod` +* Add support for `excluded_payment_method_types` on `SetupIntentCreateParams`, `SetupIntentModifyParams`, and `SetupIntent` +* Change `SetupIntent.flow_directions` to be optional +* Add support for `tw` on `Tax.Registration.CountryOption` and `tax.RegistrationCreateParamsCountryOption` +* Add support for `gip` on `Terminal.Configuration.Tipping`, `terminal.ConfigurationCreateParamsTipping`, and `terminal.ConfigurationModifyParamsTipping` +* Add support for `last_seen_at` on `Terminal.Reader` +* Add support for `application_fee_amount` on `TransferCreateParams` and `Transfer` +* Add support for `application_fee` on `Transfer` +* Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.api_version` +* Add support for `high_risk_activities_description`, `high_risk_activities`, `money_services_description`, `operates_in_prohibited_countries`, `participates_in_regulated_activity`, `purpose_of_funds_description`, `purpose_of_funds`, `regulated_activity`, `source_of_funds_description`, and `source_of_funds` on `V2.Core.Account.Configuration.Storer`, `v2.core.AccountCreateParamsConfigurationStorer`, and `v2.core.AccountModifyParamsConfigurationStorer` +* Add support for `crypto_wallets` on `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityFinancialAddress`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPayment`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransfer`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityFinancialAddress`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPayment`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransfer` +* Add support for `usdc` on `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrency`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrency` +* Add support for `crypto_storer` on `V2.Core.Account.Identity.Attestation.TermsOfService` and `v2.core.AccountCreateParamsIdentityAttestationTermsOfService` +* Add support for `compliance_screening_description` on `V2.Core.Account.Identity.BusinessDetail`, `v2.core.AccountCreateParamsIdentityBusinessDetail`, and `v2.core.AccountModifyParamsIdentityBusinessDetail` +* Add support for `external_amount` on `V2.MoneyManagement.ReceivedCredit` and `V2.MoneyManagement.ReceivedDebit` +* Add support for error code `payment_intent_rate_limit_exceeded` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` diff --git a/.hark/changes/2025-10-30_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-30_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..e86fef34a --- /dev/null +++ b/.hark/changes/2025-10-30_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,14 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1659 +is_stripe_api_change: true +released_in_version: 13.2.0a2 +--- + +* Change `delegated_checkout.RequestedSessionModifyParamsLineItemDetail.quantity` to be required +* Add support for `payment_method_preview` on `DelegatedCheckout.RequestedSession` +* Add support for `order_id` on `DelegatedCheckout.RequestedSession.OrderDetail` +* Add support for `lead` on `V2.Core.Account.Configuration.CardCreator.Capability.Commercial`, `V2.Core.Account.Identity.Attestation.TermsOfService.CardCreator.Commercial`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercial`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfServiceCardCreatorCommercial`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercial`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfServiceCardCreatorCommercial` +* Add support for `global_account_holder` on `V2.Core.Account.Identity.Attestation.TermsOfService.CardCreator.Commercial`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfServiceCardCreatorCommercial`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfServiceCardCreatorCommercial` +* Add support for new value `commercial.lead.prepaid_card` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for new value `commercial.lead.prepaid_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` diff --git a/.hark/changes/2025-11-06_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-06_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..62004bb7c --- /dev/null +++ b/.hark/changes/2025-11-06_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,13 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1664 +is_stripe_api_change: true +released_in_version: 13.3.0a1 +--- + +* Add support for new resources `TransitBalance`, `v2.reporting.ReportRun`, `v2.reporting.Report` +* Add support for `create` and `retrieve` methods on resource `v2.reporting.ReportRun` +* Add support for `retrieve` method on resource `v2.reporting.Report` +* Add support for `create` and `refill` test helper methods on resource `capital.FinancingOffer` +* Add support for `allocated_funds` on `Charge`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, and `PaymentIntentModifyParams` +* Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `v2.reporting.ReportRun` diff --git a/.hark/changes/2025-11-12_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-12_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..b5ec40043 --- /dev/null +++ b/.hark/changes/2025-11-12_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,15 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1666 +is_stripe_api_change: true +released_in_version: 13.3.0a2 +--- + +* Remove support for resource `v2.tax.AutomaticRule` +* Remove support for `create`, `deactivate`, `find`, `modify`, and `retrieve` methods on resource `v2.tax.AutomaticRule` +* Add support for `self_reported_income` and `self_reported_monthly_housing_payment` on `AccountCreateParamsIndividual`, `AccountCreatePersonParams`, `AccountModifyParamsIndividual`, `AccountModifyPersonParams`, `Person`, `TokenCreateParamsAccountIndividual`, and `TokenCreateParamsPerson` +* Add support for new values `amendment_end`, `line_ends_at`, `schedule_end`, and `upcoming_invoice` on enums `InvoiceCreatePreviewParamsSubscriptionDetailBillingScheduleBillUntil.type`, `Subscription.BillingSchedule.BillUntil.type`, `SubscriptionCreateParamsBillingScheduleBillUntil.type`, and `SubscriptionModifyParamsBillingScheduleBillUntil.type` +* Add support for `billing_schedules` and `phase_effective_at` on `Quote.SubscriptionDataOverride`, `Quote.SubscriptionDatum`, `QuoteCreateParamsSubscriptionDataOverride`, `QuoteCreateParamsSubscriptionDatum`, `QuoteModifyParamsSubscriptionDataOverride`, and `QuoteModifyParamsSubscriptionDatum` +* Add support for `bill_from` on `Subscription.BillingSchedule` +* Add support for `amendment_end` and `line_ends_at` on `Subscription.BillingSchedule.BillUntil` +* Remove support for `data` and `related_object` on `V2.Core.Event` diff --git a/.hark/changes/2025-11-13_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-13_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..74df7e42d --- /dev/null +++ b/.hark/changes/2025-11-13_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,18 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1672 +is_stripe_api_change: true +released_in_version: 13.3.0a2 +--- + +* Add support for new resource `issuing.Program` +* Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `issuing.Program` +* Add support for `schedule` on `Discount` +* Add support for `applicable_fees` on `DelegatedCheckout.RequestedSession.TotalDetail` +* Add support for `schedule_details` on `Invoice.Parent`, `InvoiceItem.Parent`, `InvoiceLineItem.Parent`, and `QuotePreviewInvoice.Parent` +* Add support for new value `schedule_details` on enum `InvoiceItem.Parent.type` +* Add support for `billing_schedules` on `InvoiceCreatePreviewParamsScheduleDetail`, `QuotePreviewSubscriptionSchedule`, `SubscriptionScheduleCreateParams`, `SubscriptionScheduleModifyParams`, and `SubscriptionSchedule` +* Add support for new value `schedule_details` on enums `Invoice.Parent.type` and `QuotePreviewInvoice.Parent.type` +* Add support for new value `schedule_details` on enum `InvoiceLineItem.Parent.type` +* Add support for `latest_invoice` on `QuotePreviewSubscriptionSchedule` and `SubscriptionSchedule` +* Add support for `phase_effective_at` on `QuotePreviewSubscriptionSchedule.DefaultSetting`, `SubscriptionSchedule.DefaultSetting`, `SubscriptionScheduleCreateParamsDefaultSetting`, and `SubscriptionScheduleModifyParamsDefaultSetting` diff --git a/.hark/changes/2025-11-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-17_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..62f4d1144 --- /dev/null +++ b/.hark/changes/2025-11-17_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,35 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1674 +is_stripe_api_change: true +released_in_version: 14.1.0a1 +--- + +* Add support for new resources `BalanceTransfer` and `radar.AccountEvaluation` +* Add support for `create` method on resource `BalanceTransfer` +* Add support for `create`, `modify`, and `retrieve` methods on resource `radar.AccountEvaluation` +* Change `Tax.Association.tax_transaction_attempts` to be required +* Add support for `specified_commercial_transactions_act_url` on `Account.BusinessProfile`, `AccountCreateParamsBusinessProfile`, and `AccountModifyParamsBusinessProfile` +* Add support for `paypay_payments` on `Account.Setting`, `AccountCreateParamsSetting`, and `AccountModifyParamsSetting` +* Change type of `billing.analytics.MeterUsageRetrieveParamsMeter.dimension_filters` from `string` to `array(string)` +* Change type of `billing.analytics.MeterUsageRetrieveParamsMeter.tenant_filters` from `string` to `array(string)` +* Add support for `payment_method_configuration` on `BillingPortal.Configuration.Feature.PaymentMethodUpdate` +* Add support for `car_rental_data`, `flight_data`, and `lodging_data` on `ChargeCaptureParamsPaymentDetail`, `ChargeModifyParamsPaymentDetail`, `PaymentIntentCaptureParamsPaymentDetail`, `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsPaymentDetail`, and `PaymentIntentModifyParamsPaymentDetail` +* Add support for `transaction_id` on `Charge.PaymentMethodDetail.Ideal`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal`, and `PaymentRecord.PaymentMethodDetail.Ideal` +* Add support for new value `finom` on enums `Charge.PaymentMethodDetail.Ideal.bank`, `ConfirmationToken.PaymentMethodPreview.Ideal.bank`, `ConfirmationTokenCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bank`, `PaymentIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentModifyParamsPaymentMethodDatumIdeal.bank`, `PaymentMethod.Ideal.bank`, `PaymentMethodCreateParamsIdeal.bank`, `PaymentRecord.PaymentMethodDetail.Ideal.bank`, `SetupAttempt.PaymentMethodDetail.Ideal.bank`, `SetupIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `SetupIntentCreateParamsPaymentMethodDatumIdeal.bank`, and `SetupIntentModifyParamsPaymentMethodDatumIdeal.bank` +* Add support for new value `FNOMNL22` on enums `Charge.PaymentMethodDetail.Ideal.bic`, `ConfirmationToken.PaymentMethodPreview.Ideal.bic`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bic`, `PaymentMethod.Ideal.bic`, `PaymentRecord.PaymentMethodDetail.Ideal.bic`, and `SetupAttempt.PaymentMethodDetail.Ideal.bic` +* Add support for new value `tokenized_account_number_deactivated` on enums `ConfirmationToken.PaymentMethodPreview.UsBankAccount.StatusDetail.Blocked.reason` and `PaymentMethod.UsBankAccount.StatusDetail.Blocked.reason` +* Add support for `created` on `CustomerListCustomerBalanceTransactionParams` and `InvoicePaymentListParams` +* Add support for new values `capital.financing_offer.accepted_other_offer`, `financial_connections.account.account_numbers_updated`, and `financial_connections.account.upcoming_account_number_expiry` on enum `Event.type` +* Add support for `account_numbers` on `FinancialConnections.Account` +* Change type of `FinancialConnections.Session.client_secret` from `string` to `nullable(string)` +* Add support for `fraud_risk` on `issuing.AuthorizationCreateParamsRiskAssessment` +* Add support for `latest_fraud_warning` on `Issuing.Card` +* Add support for `supplementary_purchase_data` on `OrderCreateParamsPaymentSettingPaymentMethodOptionKlarna`, `OrderModifyParamsPaymentSettingPaymentMethodOptionKlarna`, `PaymentIntentConfirmParamsPaymentMethodOptionKlarna`, `PaymentIntentCreateParamsPaymentMethodOptionKlarna`, and `PaymentIntentModifyParamsPaymentMethodOptionKlarna` +* Add support for `capture_method` on `PaymentIntent.PaymentMethodOption.CardPresent`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresent` +* Add support for `allow_redisplay` and `customer_account` on `PaymentMethodListParams` +* Add support for `mb_way` and `twint` on `Refund.DestinationDetail` +* Change type of `SubscriptionScheduleModifyParams.billing_schedules` from `array(billing_schedules_update_params)` to `emptyable(array(billing_schedules_update_params))` +* Add support for new values `capital.financing_offer.accepted_other_offer`, `financial_connections.account.account_numbers_updated`, and `financial_connections.account.upcoming_account_number_expiry` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` +* Add support for new value `2025-11-17.clover` on enum `WebhookEndpointCreateParams.api_version` +* Add support for snapshot events `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` with resource `financial_connections.Account` diff --git a/.hark/changes/2025-11-18_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-18_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..b1bad6784 --- /dev/null +++ b/.hark/changes/2025-11-18_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1675 +is_stripe_api_change: true +released_in_version: 14.1.0a1 +--- + +* Add support for `billing_schedules_actions` on `InvoiceCreatePreviewParamsScheduleDetailAmendment` and `SubscriptionScheduleAmendParamsAmendment` diff --git a/.hark/changes/2025-11-20_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-20_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..fd03cf3fa --- /dev/null +++ b/.hark/changes/2025-11-20_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,114 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1679 +is_stripe_api_change: true +released_in_version: 14.1.0a2 +--- + +* Add support for new resources `v2.core.AccountPersonToken`, `v2.core.AccountToken`, and `v2.money_management.CurrencyConversion` +* Add support for `create`, `list`, and `retrieve` methods on resource `v2.money_management.CurrencyConversion` +* Add support for `create` and `retrieve` methods on resources `v2.core.AccountPersonToken` and `v2.core.AccountToken` +* Add support for `effective_at` on `InvoiceCreatePreviewParamsScheduleDetailAmendment`, `InvoiceCreatePreviewParamsScheduleDetailPhase`, `QuoteCreateParamsLine`, `QuoteLine`, `QuoteModifyParamsLine`, `QuotePreviewSubscriptionSchedule.Phase`, `SubscriptionSchedule.Phase`, `SubscriptionScheduleAmendParamsAmendment`, `SubscriptionScheduleCreateParamsPhase`, and `SubscriptionScheduleModifyParamsPhase` +* Add support for `trial_offer` on `InvoiceCreatePreviewParamsScheduleDetailAmendmentItemActionAdd`, `InvoiceCreatePreviewParamsScheduleDetailAmendmentItemActionSet`, `InvoiceCreatePreviewParamsScheduleDetailPhaseItem`, `QuoteCreateParamsLineActionAddItem`, `QuoteCreateParamsLineActionSetItem`, `QuoteLine.Action.AddItem`, `QuoteLine.Action.SetItem`, `QuoteModifyParamsLineActionAddItem`, `QuoteModifyParamsLineActionSetItem`, `QuotePreviewSubscriptionSchedule.Phase.Item`, `SubscriptionSchedule.Phase.Item`, `SubscriptionScheduleAmendParamsAmendmentItemActionAdd`, `SubscriptionScheduleAmendParamsAmendmentItemActionSet`, `SubscriptionScheduleCreateParamsPhaseItem`, and `SubscriptionScheduleModifyParamsPhaseItem` +* Change type of `DelegatedCheckout.RequestedSession.amount_subtotal` from `longInteger` to `nullable(longInteger)` +* Change type of `DelegatedCheckout.RequestedSession.amount_total` from `longInteger` to `nullable(longInteger)` +* Add support for `amount_discount`, `amount_subtotal`, `amount_total`, `unit_amount_after_discount`, and `unit_discount` on `DelegatedCheckout.RequestedSession.LineItemDetail` +* Add support for `amount_subtotal_after_discount` on `DelegatedCheckout.RequestedSession.LineItemDetail` and `DelegatedCheckout.RequestedSession.TotalDetail` +* Change type of `InvoiceCreatePreviewParamsScheduleDetail.billing_schedules` from `array(billing_schedules_update_params)` to `emptyable(array(billing_schedules_update_params))` +* Remove support for values `amendment_end`, `line_ends_at`, `schedule_end`, and `upcoming_invoice` from enums `InvoiceCreatePreviewParamsSubscriptionDetailBillingScheduleBillUntil.type`, `Subscription.BillingSchedule.BillUntil.type`, `SubscriptionCreateParamsBillingScheduleBillUntil.type`, `SubscriptionModifyParamsBillingScheduleBillUntil.type`, `SubscriptionScheduleCreateParamsBillingScheduleBillUntil.type`, and `SubscriptionScheduleModifyParamsBillingScheduleBillUntil.type` +* Add support for `current_trial` on `InvoiceCreatePreviewParamsSubscriptionDetailItem`, `SubscriptionCreateParamsItem`, `SubscriptionItemCreateParams`, `SubscriptionItemModifyParams`, `SubscriptionItem`, and `SubscriptionModifyParamsItem` +* Change type of `QuoteCreateParamsSubscriptionDataOverride.billing_schedules` and `QuoteCreateParamsSubscriptionDatum.billing_schedules` from `emptyable(array(billing_schedules_create_specs))` to `array(billing_schedules_create_specs)` +* Add support for new value `line_start` on enums `QuoteCreateParamsSubscriptionDataOverride.phase_effective_at`, `QuoteCreateParamsSubscriptionDatum.phase_effective_at`, `QuoteModifyParamsSubscriptionDataOverride.phase_effective_at`, and `QuoteModifyParamsSubscriptionDatum.phase_effective_at` +* Remove support for value `phase_start` from enums `QuoteCreateParamsSubscriptionDataOverride.phase_effective_at`, `QuoteCreateParamsSubscriptionDatum.phase_effective_at`, `QuoteModifyParamsSubscriptionDataOverride.phase_effective_at`, and `QuoteModifyParamsSubscriptionDatum.phase_effective_at` +* Change type of `Quote.SubscriptionDataOverride.billing_schedules` and `Quote.SubscriptionDatum.billing_schedules` from `nullable(array(SubscriptionsResourceBillingSchedules))` to `array(QuotesResourceSubscriptionDataBillingSchedules)` +* Change type of `Quote.SubscriptionDataOverride.phase_effective_at` and `Quote.SubscriptionDatum.phase_effective_at` from `nullable(enum('billing_period_start'|'phase_start'))` to `enum('billing_period_start'|'line_start')` +* Change type of `QuotePreviewSubscriptionSchedule.DefaultSetting.phase_effective_at` and `SubscriptionSchedule.DefaultSetting.phase_effective_at` from `nullable(enum('billing_period_start'|'phase_start'))` to `enum('billing_period_start'|'phase_start')` +* Change type of `QuotePreviewSubscriptionSchedule.billing_schedules` and `SubscriptionSchedule.billing_schedules` from `nullable(array(SubscriptionsResourceBillingSchedules))` to `array(SubscriptionsResourceBillingSchedules)` +* Remove support for `amendment_start`, `line_starts_at`, and `relative` on `Subscription.BillingSchedule.BillFrom` +* Change type of `Subscription.BillingSchedule.BillFrom.computed_timestamp` from `nullable(DateTime)` to `DateTime` +* Change type of `Subscription.BillingSchedule.BillFrom.type` from `enum` to `literal('timestamp')` +* Remove support for `amendment_end` and `line_ends_at` on `Subscription.BillingSchedule.BillUntil` +* Change type of `V2.Billing.ServiceAction.CreditGrant.Amount.monetary`, `V2.Billing.ServiceAction.CreditGrantPerTenant.Amount.monetary`, `v2.billing.ServiceActionCreateParamsCreditGrantAmount.monetary`, and `v2.billing.ServiceActionCreateParamsCreditGrantPerTenantAmount.monetary` from `amount` to `an object` +* Add support for `future_requirements` on `V2.Core.Account` +* Add support for `konbini_payments` and `script_statement_descriptor` on `V2.Core.Account.Configuration.Merchant`, `v2.core.AccountCreateParamsConfigurationMerchant`, and `v2.core.AccountModifyParamsConfigurationMerchant` +* Add support for `eur` on `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrency`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrency` +* Add support for `requirements_collector` on `V2.Core.Account.Default.Responsibility` +* Add support for new value `ar_cuit` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type` +* Add support for new value `ar_dni` on enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.AccountPerson.IdNumber.type`, `v2.core.AccountCreateParamsIdentityIndividualIdNumber.type`, `v2.core.AccountModifyParamsIdentityIndividualIdNumber.type`, `v2.core.AccountPersonCreateParamsIdNumber.type`, and `v2.core.AccountPersonModifyParamsIdNumber.type` +* Remove support for `collector` on `V2.Core.Account.Requirement` +* Add support for new value `holds_currencies.eur` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for new values `payment_method` and `person` on enum `V2.Core.Account.Requirement.Entry.Reference.type` +* Remove support for value `resource` from enum `V2.Core.Account.Requirement.Entry.Reference.type` +* Remove support for value `future_requirements` from enum `V2.Core.Account.Requirement.Entry.RequestedReason.code` +* Remove support for `v1_event_id` on `V2.Core.Event` +* Remove support for `amount_details` and `capture_method` on `V2.Payments.OffSessionPayment` and `v2.payments.OffSessionPaymentCreateParams` +* Change type of `V2.Payments.OffSessionPayment.amount_capturable` from `amount` to `an object` +* Change type of `V2.Payments.OffSessionPayment.amount_requested` from `amount` to `an object` +* Change type of `v2.payments.OffSessionPaymentCreateParams.amount` from `amount` to `an object` +* Add support for new value `best_available` on enum `v2.payments.OffSessionPaymentCreateParamsRetryDetail.retry_strategy` +* Remove support for values `heuristic`, `scheduled`, and `smart` from enum `v2.payments.OffSessionPaymentCreateParamsRetryDetail.retry_strategy` +* Change `v2.payments.OffSessionPaymentCreateParamsRetryDetail.retry_strategy` to be optional +* Remove support for `destination` on `v2.payments.OffSessionPaymentCaptureParamsTransferDatum` +* Change `v2.payments.OffSessionPaymentCaptureParams.amount_to_capture` to be optional +* Add support for `created` on `v2.core.EventListParams` +* Remove support for `gt`, `gte`, `lt`, and `lte` on `v2.core.EventListParams` +* Add support for `account_token` on `v2.core.AccountCreateParams` and `v2.core.AccountModifyParams` +* Add support for new value `future_requirements` on enums `v2.core.AccountCreateParams.include`, `v2.core.AccountModifyParams.include`, and `v2.core.AccountRetrieveParams.include` +* Add support for `person_token` on `v2.core.AccountPersonCreateParams` and `v2.core.AccountPersonModifyParams` +* Add support for `impacted_requests_percentage` on `EventsV2CoreHealthApiErrorFiringEvent.Impact`, `EventsV2CoreHealthApiErrorResolvedEvent.Impact`, `EventsV2CoreHealthApiLatencyFiringEvent.Impact`, `EventsV2CoreHealthApiLatencyResolvedEvent.Impact`, `EventsV2CoreHealthPaymentMethodErrorFiringEvent.Impact`, and `EventsV2CoreHealthPaymentMethodErrorResolvedEvent.Impact` +* Add support for `context` and `related_object` on `EventsV2CoreHealthEventGenerationFailureResolvedEvent.Impact` +* Remove support for `account`, `livemode`, `missing_delivery_attempts`, and `related_object_id` on `EventsV2CoreHealthEventGenerationFailureResolvedEvent.Impact` +* Change type of `EventsV2CoreHealthFraudRateIncreasedEvent.Impact.realized_fraud_amount` from `amount` to `an object` +* Change type of `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.Impact.approved_amount`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.Impact.approved_amount`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.Impact.approved_amount`, and `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.Impact.approved_amount` from `amount` to `an object` +* Change type of `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.Impact.declined_amount`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.Impact.declined_amount`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.Impact.declined_amount`, and `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.Impact.declined_amount` from `amount` to `an object` +* Add support for thin events `V2PaymentsOffSessionPaymentAttemptFailedEvent` and `V2PaymentsOffSessionPaymentAttemptStartedEvent` with related object `v2.payments.OffSessionPayment` +* Remove support for thin event `V1AccountUpdatedEvent` with related object `Account` +* Remove support for thin events `V1ApplicationFeeCreatedEvent` and `V1ApplicationFeeRefundedEvent` with related object `ApplicationFee` +* Remove support for thin events `V1BillingPortalConfigurationCreatedEvent` and `V1BillingPortalConfigurationUpdatedEvent` with related object `billing_portal.Configuration` +* Remove support for thin event `V1CapabilityUpdatedEvent` with related object `Capability` +* Remove support for thin events `V1ChargeCapturedEvent`, `V1ChargeExpiredEvent`, `V1ChargeFailedEvent`, `V1ChargePendingEvent`, `V1ChargeRefundedEvent`, `V1ChargeSucceededEvent`, and `V1ChargeUpdatedEvent` with related object `Charge` +* Remove support for thin events `V1ChargeDisputeClosedEvent`, `V1ChargeDisputeCreatedEvent`, `V1ChargeDisputeFundsReinstatedEvent`, `V1ChargeDisputeFundsWithdrawnEvent`, and `V1ChargeDisputeUpdatedEvent` with related object `Dispute` +* Remove support for thin events `V1ChargeRefundUpdatedEvent`, `V1RefundCreatedEvent`, `V1RefundFailedEvent`, and `V1RefundUpdatedEvent` with related object `Refund` +* Remove support for thin events `V1CheckoutSessionAsyncPaymentFailedEvent`, `V1CheckoutSessionAsyncPaymentSucceededEvent`, `V1CheckoutSessionCompletedEvent`, and `V1CheckoutSessionExpiredEvent` with related object `checkout.Session` +* Remove support for thin events `V1ClimateOrderCanceledEvent`, `V1ClimateOrderCreatedEvent`, `V1ClimateOrderDelayedEvent`, `V1ClimateOrderDeliveredEvent`, and `V1ClimateOrderProductSubstitutedEvent` with related object `climate.Order` +* Remove support for thin events `V1ClimateProductCreatedEvent` and `V1ClimateProductPricingUpdatedEvent` with related object `climate.Product` +* Remove support for thin events `V1CouponCreatedEvent`, `V1CouponDeletedEvent`, and `V1CouponUpdatedEvent` with related object `Coupon` +* Remove support for thin events `V1CreditNoteCreatedEvent`, `V1CreditNoteUpdatedEvent`, and `V1CreditNoteVoidedEvent` with related object `CreditNote` +* Remove support for thin events `V1CustomerCreatedEvent`, `V1CustomerDeletedEvent`, and `V1CustomerUpdatedEvent` with related object `Customer` +* Remove support for thin events `V1CustomerSubscriptionCreatedEvent`, `V1CustomerSubscriptionDeletedEvent`, `V1CustomerSubscriptionPausedEvent`, `V1CustomerSubscriptionPendingUpdateAppliedEvent`, `V1CustomerSubscriptionPendingUpdateExpiredEvent`, `V1CustomerSubscriptionResumedEvent`, `V1CustomerSubscriptionTrialWillEndEvent`, and `V1CustomerSubscriptionUpdatedEvent` with related object `Subscription` +* Remove support for thin events `V1CustomerTaxIdCreatedEvent`, `V1CustomerTaxIdDeletedEvent`, and `V1CustomerTaxIdUpdatedEvent` with related object `TaxId` +* Remove support for thin event `V1FileCreatedEvent` with related object `File` +* Remove support for thin events `V1FinancialConnectionsAccountCreatedEvent`, `V1FinancialConnectionsAccountDeactivatedEvent`, `V1FinancialConnectionsAccountDisconnectedEvent`, `V1FinancialConnectionsAccountReactivatedEvent`, `V1FinancialConnectionsAccountRefreshedBalanceEvent`, `V1FinancialConnectionsAccountRefreshedOwnershipEvent`, and `V1FinancialConnectionsAccountRefreshedTransactionsEvent` with related object `financial_connections.Account` +* Remove support for thin events `V1IdentityVerificationSessionCanceledEvent`, `V1IdentityVerificationSessionCreatedEvent`, `V1IdentityVerificationSessionProcessingEvent`, `V1IdentityVerificationSessionRedactedEvent`, `V1IdentityVerificationSessionRequiresInputEvent`, and `V1IdentityVerificationSessionVerifiedEvent` with related object `identity.VerificationSession` +* Remove support for thin events `V1InvoiceCreatedEvent`, `V1InvoiceDeletedEvent`, `V1InvoiceFinalizationFailedEvent`, `V1InvoiceFinalizedEvent`, `V1InvoiceMarkedUncollectibleEvent`, `V1InvoiceOverdueEvent`, `V1InvoiceOverpaidEvent`, `V1InvoicePaidEvent`, `V1InvoicePaymentActionRequiredEvent`, `V1InvoicePaymentFailedEvent`, `V1InvoicePaymentSucceededEvent`, `V1InvoiceSentEvent`, `V1InvoiceUpcomingEvent`, `V1InvoiceUpdatedEvent`, `V1InvoiceVoidedEvent`, and `V1InvoiceWillBeDueEvent` with related object `Invoice` +* Remove support for thin event `V1InvoicePaymentPaidEvent` with related object `InvoicePayment` +* Remove support for thin events `V1InvoiceitemCreatedEvent` and `V1InvoiceitemDeletedEvent` with related object `InvoiceItem` +* Remove support for thin events `V1IssuingAuthorizationCreatedEvent`, `V1IssuingAuthorizationRequestEvent`, and `V1IssuingAuthorizationUpdatedEvent` with related object `issuing.Authorization` +* Remove support for thin events `V1IssuingCardCreatedEvent` and `V1IssuingCardUpdatedEvent` with related object `issuing.Card` +* Remove support for thin events `V1IssuingCardholderCreatedEvent` and `V1IssuingCardholderUpdatedEvent` with related object `issuing.Cardholder` +* Remove support for thin events `V1IssuingDisputeClosedEvent`, `V1IssuingDisputeCreatedEvent`, `V1IssuingDisputeFundsReinstatedEvent`, `V1IssuingDisputeFundsRescindedEvent`, `V1IssuingDisputeSubmittedEvent`, and `V1IssuingDisputeUpdatedEvent` with related object `issuing.Dispute` +* Remove support for thin events `V1IssuingPersonalizationDesignActivatedEvent`, `V1IssuingPersonalizationDesignDeactivatedEvent`, `V1IssuingPersonalizationDesignRejectedEvent`, and `V1IssuingPersonalizationDesignUpdatedEvent` with related object `issuing.PersonalizationDesign` +* Remove support for thin events `V1IssuingTokenCreatedEvent` and `V1IssuingTokenUpdatedEvent` with related object `issuing.Token` +* Remove support for thin events `V1IssuingTransactionCreatedEvent`, `V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent`, and `V1IssuingTransactionUpdatedEvent` with related object `issuing.Transaction` +* Remove support for thin event `V1MandateUpdatedEvent` with related object `Mandate` +* Remove support for thin events `V1PaymentIntentAmountCapturableUpdatedEvent`, `V1PaymentIntentCanceledEvent`, `V1PaymentIntentCreatedEvent`, `V1PaymentIntentPartiallyFundedEvent`, `V1PaymentIntentPaymentFailedEvent`, `V1PaymentIntentProcessingEvent`, `V1PaymentIntentRequiresActionEvent`, and `V1PaymentIntentSucceededEvent` with related object `PaymentIntent` +* Remove support for thin events `V1PaymentLinkCreatedEvent` and `V1PaymentLinkUpdatedEvent` with related object `PaymentLink` +* Remove support for thin events `V1PaymentMethodAttachedEvent`, `V1PaymentMethodAutomaticallyUpdatedEvent`, `V1PaymentMethodDetachedEvent`, and `V1PaymentMethodUpdatedEvent` with related object `PaymentMethod` +* Remove support for thin events `V1PayoutCanceledEvent`, `V1PayoutCreatedEvent`, `V1PayoutFailedEvent`, `V1PayoutPaidEvent`, `V1PayoutReconciliationCompletedEvent`, and `V1PayoutUpdatedEvent` with related object `Payout` +* Remove support for thin events `V1PersonCreatedEvent`, `V1PersonDeletedEvent`, and `V1PersonUpdatedEvent` with related object `Person` +* Remove support for thin events `V1PlanCreatedEvent`, `V1PlanDeletedEvent`, and `V1PlanUpdatedEvent` with related object `Plan` +* Remove support for thin events `V1PriceCreatedEvent`, `V1PriceDeletedEvent`, and `V1PriceUpdatedEvent` with related object `Price` +* Remove support for thin events `V1ProductCreatedEvent`, `V1ProductDeletedEvent`, and `V1ProductUpdatedEvent` with related object `Product` +* Remove support for thin events `V1PromotionCodeCreatedEvent` and `V1PromotionCodeUpdatedEvent` with related object `PromotionCode` +* Remove support for thin events `V1QuoteAcceptedEvent`, `V1QuoteCanceledEvent`, `V1QuoteCreatedEvent`, and `V1QuoteFinalizedEvent` with related object `Quote` +* Remove support for thin events `V1RadarEarlyFraudWarningCreatedEvent` and `V1RadarEarlyFraudWarningUpdatedEvent` with related object `radar.EarlyFraudWarning` +* Remove support for thin events `V1ReviewClosedEvent` and `V1ReviewOpenedEvent` with related object `Review` +* Remove support for thin events `V1SetupIntentCanceledEvent`, `V1SetupIntentCreatedEvent`, `V1SetupIntentRequiresActionEvent`, `V1SetupIntentSetupFailedEvent`, and `V1SetupIntentSucceededEvent` with related object `SetupIntent` +* Remove support for thin event `V1SigmaScheduledQueryRunCreatedEvent` with related object `sigma.ScheduledQueryRun` +* Remove support for thin events `V1SourceCanceledEvent`, `V1SourceChargeableEvent`, `V1SourceFailedEvent`, and `V1SourceRefundAttributesRequiredEvent` with related object `Source` +* Remove support for thin events `V1SubscriptionScheduleAbortedEvent`, `V1SubscriptionScheduleCanceledEvent`, `V1SubscriptionScheduleCompletedEvent`, `V1SubscriptionScheduleCreatedEvent`, `V1SubscriptionScheduleExpiringEvent`, `V1SubscriptionScheduleReleasedEvent`, and `V1SubscriptionScheduleUpdatedEvent` with related object `SubscriptionSchedule` +* Remove support for thin events `V1TaxRateCreatedEvent` and `V1TaxRateUpdatedEvent` with related object `TaxRate` +* Remove support for thin events `V1TerminalReaderActionFailedEvent`, `V1TerminalReaderActionSucceededEvent`, and `V1TerminalReaderActionUpdatedEvent` with related object `terminal.Reader` +* Remove support for thin events `V1TestHelpersTestClockAdvancingEvent`, `V1TestHelpersTestClockCreatedEvent`, `V1TestHelpersTestClockDeletedEvent`, `V1TestHelpersTestClockInternalFailureEvent`, and `V1TestHelpersTestClockReadyEvent` with related object `test_helpers.TestClock` +* Remove support for thin events `V1TopupCanceledEvent`, `V1TopupCreatedEvent`, `V1TopupFailedEvent`, `V1TopupReversedEvent`, and `V1TopupSucceededEvent` with related object `Topup` +* Remove support for thin events `V1TransferCreatedEvent`, `V1TransferReversedEvent`, and `V1TransferUpdatedEvent` with related object `Transfer` diff --git a/.hark/changes/2025-11-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-24_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..f26f90462 --- /dev/null +++ b/.hark/changes/2025-11-24_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,14 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1685 +is_stripe_api_change: true +released_in_version: 14.1.0a3 +--- + +* Add support for new resource `product_catalog.TrialOffer` +* Add support for `create` method on resource `product_catalog.TrialOffer` +* Remove support for `amount_subtotal_after_discount` on `DelegatedCheckout.RequestedSession.LineItemDetail` and `DelegatedCheckout.RequestedSession.TotalDetail` +* Remove support for `amount_total`, `unit_amount_after_discount`, and `unit_discount` on `DelegatedCheckout.RequestedSession.LineItemDetail` +* Add support for `amount_cart_discount` and `amount_items_discount` on `DelegatedCheckout.RequestedSession.TotalDetail` +* Remove support for `amount_discount` on `DelegatedCheckout.RequestedSession.TotalDetail` +* Add support for `payments_orchestration` on `PaymentIntentCreateParams` and `PaymentIntent` diff --git a/.hark/changes/2025-12-04_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-12-04_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..0956e096b --- /dev/null +++ b/.hark/changes/2025-12-04_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1691 +is_stripe_api_change: true +released_in_version: 14.1.0a4 +--- + +* Add support for event notifications `V2IamApiKeyCreatedEvent`, `V2IamApiKeyDefaultSecretRevealedEvent`, `V2IamApiKeyExpiredEvent`, `V2IamApiKeyPermissionsUpdatedEvent`, `V2IamApiKeyRotatedEvent`, and `V2IamApiKeyUpdatedEvent` diff --git a/.hark/changes/2025-12-04_stripe-openapi_update-generated-code_2.change.md b/.hark/changes/2025-12-04_stripe-openapi_update-generated-code_2.change.md new file mode 100644 index 000000000..947a0bff7 --- /dev/null +++ b/.hark/changes/2025-12-04_stripe-openapi_update-generated-code_2.change.md @@ -0,0 +1,14 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1686 +is_stripe_api_change: true +released_in_version: 14.1.0a4 +--- + +* Add support for `check_scanning` on `AccountSession.Component` +* Add support for `client` on `V2.Core.Event.Reason.Request` +* Add support for `stripe_balance_payment` on `V2.MoneyManagement.ReceivedCredit` and `V2.MoneyManagement.ReceivedDebit` +* Add support for new value `stripe_balance_payment` on enum `V2.MoneyManagement.ReceivedCredit.type` +* Add support for `balance_transfer` on `V2.MoneyManagement.ReceivedDebit` +* Add support for new values `balance_transfer` and `stripe_balance_payment` on enum `V2.MoneyManagement.ReceivedDebit.type` +* Add support for `include` on `v2.core.EventListParams` and `v2.core.EventRetrieveParams` diff --git a/.hark/changes/2025-12-14_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-12-14_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..94ad8f1e9 --- /dev/null +++ b/.hark/changes/2025-12-14_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,43 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1693 +is_stripe_api_change: true +released_in_version: 14.2.0a1 +--- + +* Add support for new resources `shared_payment.GrantedToken`, `v2.iam.ApiKey`, `v2.payments.SettlementAllocationIntentSplit`, `v2.payments.SettlementAllocationIntent`, and `v2.tax.ManualRule` +* Add support for `retrieve` method on resource `shared_payment.GrantedToken` +* Add support for `create` and `modify` test helper methods on resource `shared_payment.GrantedToken` +* Add support for `create`, `deactivate`, `list`, `modify`, and `retrieve` methods on resource `v2.tax.ManualRule` +* Add support for `cancel`, `create`, `modify`, `retrieve`, and `submit` methods on resource `v2.payments.SettlementAllocationIntent` +* Add support for `cancel`, `create`, and `retrieve` methods on resource `v2.payments.SettlementAllocationIntentSplit` +* Add support for `create`, `expire`, `list`, `modify`, `retrieve`, and `rotate` methods on resource `v2.iam.ApiKey` +* Add support for `check_scanning` on `AccountSessionCreateParamsComponent` +* Add support for `tax_details` on `InvoiceAddLinesParamsLinePriceDatumProductDatum`, `InvoiceLineItemModifyParamsPriceDatumProductDatum`, `InvoiceUpdateLinesParamsLinePriceDatumProductDatum`, `PaymentLinkCreateParamsLineItemPriceDatumProductDatum`, `ProductCreateParams`, `ProductModifyParams`, `checkout.SessionCreateParamsLineItemPriceDatumProductDatum`, and `checkout.SessionModifyParamsLineItemPriceDatumProductDatum` +* Add support for `payment_method_data` on `delegated_checkout.RequestedSessionConfirmParams` +* Add support for `product_details` on `DelegatedCheckout.RequestedSession.LineItemDetail` +* Add support for `wallets` on `issuing.CardListParams` +* Add support for `primary_account_identifier` on `Issuing.Card.Wallet.ApplePay` and `Issuing.Card.Wallet.GooglePay` +* Add support for `shared_payment_granted_token` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, and `PaymentIntent` +* Change `ProductCatalog.TrialOffer.Duration.relative` to be optional +* Add support for new values `al_bank_account`, `am_bank_account`, `bn_bank_account`, `bw_bank_account`, `dz_bank_account`, `gy_bank_account`, `jm_bank_account`, `jo_bank_account`, `kw_bank_account`, `lk_bank_account`, `ma_bank_account`, `om_bank_account`, and `tz_bank_account` on enum `V2.Account.Configuration.RecipientDatum.DefaultOutboundDestination.type` +* Add support for `instant` on `V2.Account.Configuration.RecipientDatum.Feature.BankAccount`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount`, `v2.AccountCreateParamsConfigurationRecipientDatumFeatureBankAccount`, `v2.AccountModifyParamsConfigurationRecipientDatumFeatureBankAccount`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccount`, and `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccount` +* Add support for new value `bank_accounts.instant` on enum `V2.Account.Requirement.Impact.required_for_features` +* Add support for `collect_at` on `V2.Billing.IntentAction.Deactivate`, `V2.Billing.IntentAction.Modify`, `V2.Billing.IntentAction.Subscribe`, `v2.billing.IntentCreateParamsActionDeactivate`, `v2.billing.IntentCreateParamsActionModify`, and `v2.billing.IntentCreateParamsActionSubscribe` +* Remove support for `billing_details` on `V2.Billing.IntentAction.Deactivate`, `V2.Billing.IntentAction.Modify`, `V2.Billing.IntentAction.Subscribe`, `v2.billing.IntentCreateParamsActionDeactivate`, `v2.billing.IntentCreateParamsActionModify`, and `v2.billing.IntentCreateParamsActionSubscribe` +* Add support for `overrides` on `V2.Billing.IntentAction.Deactivate.PricingPlanSubscriptionDetail`, `V2.Billing.IntentAction.Modify.PricingPlanSubscriptionDetail`, `V2.Billing.IntentAction.Subscribe.PricingPlanSubscriptionDetail`, `v2.billing.IntentCreateParamsActionDeactivatePricingPlanSubscriptionDetail`, `v2.billing.IntentCreateParamsActionModifyPricingPlanSubscriptionDetail`, and `v2.billing.IntentCreateParamsActionSubscribePricingPlanSubscriptionDetail` +* Remove support for `requested` on `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Celtic.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Celtic.SpendCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.SpendCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Lead.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe.PrepaidCard`, `V2.Core.Account.Configuration.Recipient.Capability.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Usdc`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.CryptoWallet`, and `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.CryptoWallet` +* Add support for new value `bank_accounts.instant` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for `alternative_reference` on `V2.Core.Vault.GbBankAccount`, `V2.Core.Vault.UsBankAccount`, and `V2.MoneyManagement.PayoutMethod` +* Add support for `managed_by` and `payments` on `V2.MoneyManagement.FinancialAccount` +* Add support for new value `payments` on enum `V2.MoneyManagement.FinancialAccount.type` +* Add support for `speed` on `V2.MoneyManagement.OutboundPayment.DeliveryOption`, `V2.MoneyManagement.OutboundPaymentQuote.DeliveryOption`, `v2.money_management.OutboundPaymentCreateParamsDeliveryOption`, and `v2.money_management.OutboundPaymentQuoteCreateParamsDeliveryOption` +* Add support for new value `real_time_payout_fee` on enum `V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee.type` +* Add support for `types` on `v2.money_management.FinancialAccountListParams` +* Change type of `v2.core.AccountListParams.applied_configurations` from `string` to `enum` +* Add support for new value `bank_accounts.instant` on enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability` +* Add support for `top_impacted_accounts` on `EventsV2CoreHealthApiErrorFiringEvent.Impact`, `EventsV2CoreHealthApiErrorResolvedEvent.Impact`, `EventsV2CoreHealthApiLatencyFiringEvent.Impact`, `EventsV2CoreHealthApiLatencyResolvedEvent.Impact`, `EventsV2CoreHealthPaymentMethodErrorFiringEvent.Impact`, and `EventsV2CoreHealthPaymentMethodErrorResolvedEvent.Impact` +* Add support for event notifications `V2CoreHealthSepaDebitDelayedFiringEvent`, `V2CoreHealthSepaDebitDelayedResolvedEvent`, and `V2PaymentsSettlementAllocationIntentNotFoundEvent` +* Add support for event notifications `V2PaymentsSettlementAllocationIntentCanceledEvent`, `V2PaymentsSettlementAllocationIntentCreatedEvent`, `V2PaymentsSettlementAllocationIntentErroredEvent`, `V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent`, `V2PaymentsSettlementAllocationIntentMatchedEvent`, `V2PaymentsSettlementAllocationIntentSettledEvent`, and `V2PaymentsSettlementAllocationIntentSubmittedEvent` with related object `v2.payments.SettlementAllocationIntent` +* Add support for event notifications `V2PaymentsSettlementAllocationIntentSplitCanceledEvent`, `V2PaymentsSettlementAllocationIntentSplitCreatedEvent`, and `V2PaymentsSettlementAllocationIntentSplitSettledEvent` with related object `v2.payments.SettlementAllocationIntentSplit` +* Remove support for error code `account_rate_limit_exceeded` on `RateLimitError` diff --git a/.hark/changes/2026-01-05_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-05_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..acca6e5ef --- /dev/null +++ b/.hark/changes/2026-01-05_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,25 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1698 +is_stripe_api_change: true +released_in_version: 14.2.0a2 +--- + +* Add support for new resource `tax.Location` +* Add support for `create`, `list`, and `retrieve` methods on resource `tax.Location` +* Add support for `pause` method on resource `Subscription` +* Add support for `performance_location` on `InvoiceAddLinesParamsLinePriceDatumProductDatumTaxDetail`, `InvoiceLineItemModifyParamsPriceDatumProductDatumTaxDetail`, `InvoiceUpdateLinesParamsLinePriceDatumProductDatumTaxDetail`, `PaymentLinkCreateParamsLineItemPriceDatumProductDatumTaxDetail`, `ProductCreateParamsTaxDetail`, `ProductModifyParamsTaxDetail`, `Tax.CalculationLineItem`, `checkout.SessionCreateParamsLineItemPriceDatumProductDatumTaxDetail`, `checkout.SessionModifyParamsLineItemPriceDatumProductDatumTaxDetail`, and `tax.CalculationCreateParamsLineItem` +* Add support for new value `performance` on enums `Tax.Calculation.ShippingCost.TaxBreakdown.sourcing`, `Tax.CalculationLineItem.TaxBreakdown.sourcing`, and `Tax.Transaction.ShippingCost.TaxBreakdown.sourcing` +* Add support for new values `admissions_tax`, `attendance_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `resort_tax`, and `tourism_tax` on enums `Tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.Calculation.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.CalculationLineItem.TaxBreakdown.TaxRateDetail.tax_type`, and `Tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type` +* Change type of `delegated_checkout.RequestedSessionModifyParams.metadata` from `map(string: string)` to `emptyable(map(string: string))` +* Change type of `delegated_checkout.RequestedSessionModifyParams.payment_method_data` from `payment_method_data` to `emptyable(payment_method_data)` +* Change type of `delegated_checkout.RequestedSessionModifyParams.shared_metadata` from `map(string: string)` to `emptyable(map(string: string))` +* Add support for `subscription` on `Invoice.Parent.ScheduleDetail` and `QuotePreviewInvoice.Parent.ScheduleDetail` +* Change type of `PaymentIntentConfirmParamsPaymentDetailBenefit.fr_meal_voucher`, `PaymentIntentCreateParamsPaymentDetailBenefit.fr_meal_voucher`, `PaymentIntentModifyParamsPaymentDetailBenefit.fr_meal_voucher`, `SetupIntentConfirmParamsSetupDetailBenefit.fr_meal_voucher`, `SetupIntentCreateParamsSetupDetailBenefit.fr_meal_voucher`, and `SetupIntentModifyParamsSetupDetailBenefit.fr_meal_voucher` from `payment_details_benefit_fr_meal_voucher` to `emptyable(payment_details_benefit_fr_meal_voucher)` +* Add support for `tax_details` on `PlanCreateParamsProduct` and `PriceCreateParamsProductDatum` +* Add support for `external_reference` on `Plan` and `Price` +* Add support for new value `phase_start` on enums `Quote.SubscriptionDataOverride.phase_effective_at`, `Quote.SubscriptionDatum.phase_effective_at`, `QuoteCreateParamsSubscriptionDataOverride.phase_effective_at`, `QuoteCreateParamsSubscriptionDatum.phase_effective_at`, `QuoteModifyParamsSubscriptionDataOverride.phase_effective_at`, and `QuoteModifyParamsSubscriptionDatum.phase_effective_at` +* Remove support for value `line_start` from enums `Quote.SubscriptionDataOverride.phase_effective_at`, `Quote.SubscriptionDatum.phase_effective_at`, `QuoteCreateParamsSubscriptionDataOverride.phase_effective_at`, `QuoteCreateParamsSubscriptionDatum.phase_effective_at`, `QuoteModifyParamsSubscriptionDataOverride.phase_effective_at`, and `QuoteModifyParamsSubscriptionDatum.phase_effective_at` +* Add support for new values `admissions_tax`, `attendance_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `resort_tax`, and `tourism_tax` on enums `Tax.Registration.CountryOption.Me.type` and `tax.RegistrationCreateParamsCountryOptionMe.type` +* Add support for `admissions_tax`, `attendance_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `resort_tax`, and `tourism_tax` on `Tax.Registration.CountryOption.Me` +* Add support for `requirements` on `TaxCode` diff --git a/.hark/changes/2026-01-06_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-06_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..e52c2da90 --- /dev/null +++ b/.hark/changes/2026-01-06_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1711 +is_stripe_api_change: true +released_in_version: 14.2.0a2 +--- + +* Add support for `tracking_details` on `V2.MoneyManagement.OutboundPayment` +* Add support for `paper_check` on `V2.MoneyManagement.OutboundPayment.DeliveryOption` and `v2.money_management.OutboundPaymentCreateParamsDeliveryOption` +* Add support for event notification `V2CoreAccountIncludingFutureRequirementsUpdatedEvent` with related object `v2.core.Account` +* Add support for error code `account_rate_limit_exceeded` on `RateLimitError` diff --git a/.hark/changes/2026-01-14_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-14_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..4f30195ba --- /dev/null +++ b/.hark/changes/2026-01-14_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1718 +is_stripe_api_change: true +released_in_version: 14.2.0a3 +--- + +* Add support for `risk_details` on `DelegatedCheckout.RequestedSession` +* Remove support for `description`, `images`, and `name` on `DelegatedCheckout.RequestedSession.LineItemDetail` +* Add support for `name` on `ProductCatalog.TrialOffer` and `product_catalog.TrialOfferCreateParams` +* Add support for `login_failed` and `registration_failed` on `Radar.AccountEvaluation.Event` and `radar.AccountEvaluationModifyParams` +* Change type of `radar.AccountEvaluationModifyParams.type` from `literal('registration_succeeded')` to `enum('login_failed'|'login_succeeded'|'registration_failed'|'registration_succeeded')` diff --git a/.hark/changes/2026-01-21_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-21_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..ab046fe6f --- /dev/null +++ b/.hark/changes/2026-01-21_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1723 +is_stripe_api_change: true +released_in_version: 14.3.0a1 +--- + +* Remove support for `pause` method on resource `Subscription` +* Change type of `Quote.SubscriptionDataOverride.phase_effective_at` and `Quote.SubscriptionDatum.phase_effective_at` from `enum('billing_period_start'|'phase_start')` to `nullable(enum('billing_period_start'|'phase_start'))` diff --git a/.hark/changes/2026-01-28_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-28_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..552a8a9fd --- /dev/null +++ b/.hark/changes/2026-01-28_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,21 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1726 +is_stripe_api_change: true +released_in_version: 14.4.0a1 +--- + +* Add support for new resources `FrMealVouchersOnboarding`, `reserve.Hold`, `reserve.Plan`, and `reserve.Release` +* Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `FrMealVouchersOnboarding` +* Add support for `list` and `retrieve` methods on resources `reserve.Hold` and `reserve.Release` +* Add support for `retrieve` method on resource `reserve.Plan` +* Add support for `pause` method on resource `Subscription` +* Add support for `service_period_details` on `Discount` +* Add support for `agentic_commerce_settings` on `AccountSession.Component` +* Add support for new value `risk_reserved` on enum `BalanceTransaction.balance_type` +* Add support for new value `service_period` on enums `Coupon.duration`, `CouponCreateParams.duration`, `checkout.SessionCreateParamsDiscountCouponDatum.duration`, and `checkout.SessionModifyParamsDiscountCouponDatum.duration` +* Add support for `service_period` on `CouponCreateParams` and `Coupon` +* Change type of `InvoiceItem.Pricing.PriceDetail.price` and `InvoiceLineItem.Pricing.PriceDetail.price` from `string` to `expandable($Price)` +* Add support for `settings` on `InvoiceCreatePreviewParamsDiscount`, `InvoiceCreatePreviewParamsScheduleDetailAmendmentDiscountActionAdd`, `InvoiceCreatePreviewParamsScheduleDetailAmendmentDiscountActionSet`, `InvoiceCreatePreviewParamsScheduleDetailAmendmentItemActionAddDiscount`, `InvoiceCreatePreviewParamsScheduleDetailAmendmentItemActionSetDiscount`, `InvoiceCreatePreviewParamsScheduleDetailPhaseDiscount`, `InvoiceCreatePreviewParamsScheduleDetailPhaseItemDiscount`, `InvoiceCreatePreviewParamsSubscriptionDetailItemDiscount`, `QuoteCreateParamsLineActionAddDiscount`, `QuoteCreateParamsLineActionAddItemDiscount`, `QuoteCreateParamsLineActionSetDiscount`, `QuoteCreateParamsLineActionSetItemDiscount`, `QuoteModifyParamsLineActionAddDiscount`, `QuoteModifyParamsLineActionAddItemDiscount`, `QuoteModifyParamsLineActionSetDiscount`, `QuoteModifyParamsLineActionSetItemDiscount`, `SubscriptionCreateParamsDiscount`, `SubscriptionCreateParamsItemDiscount`, `SubscriptionItemCreateParamsDiscount`, `SubscriptionItemModifyParamsDiscount`, `SubscriptionModifyParamsDiscount`, `SubscriptionModifyParamsItemDiscount`, `SubscriptionScheduleAmendParamsAmendmentDiscountActionAdd`, `SubscriptionScheduleAmendParamsAmendmentDiscountActionSet`, `SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscount`, `SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscount`, `SubscriptionScheduleCreateParamsPhaseDiscount`, `SubscriptionScheduleCreateParamsPhaseItemDiscount`, `SubscriptionScheduleModifyParamsPhaseDiscount`, and `SubscriptionScheduleModifyParamsPhaseItemDiscount` +* Add support for `subtotal` on `InvoiceLineItem` +* Add support for `billing_cadence` on `SubscriptionListParams` diff --git a/.hark/changes/2026-02-04_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-04_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..979127be8 --- /dev/null +++ b/.hark/changes/2026-02-04_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,37 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1728 +is_stripe_api_change: true +released_in_version: 14.4.0a2 +--- + +* Add support for new resource `v2.core.ConnectionSession` +* Add support for `create` and `retrieve` methods on resource `v2.core.ConnectionSession` +* Add support for `list` method on resources `v2.payments.SettlementAllocationIntentSplit` and `v2.payments.SettlementAllocationIntent` +* Add support for `agentic_commerce_settings` on `AccountSessionCreateParamsComponent` +* Add support for `terminal_hardware_orders` and `terminal_hardware_shop` on `AccountSession.Component` and `AccountSessionCreateParamsComponent` +* Add support for `network_cost_passthrough_report` on `AccountSession.Component` +* Add support for new values `ae_bank_account`, `ag_bank_account`, `bh_bank_account`, `gm_bank_account`, `hk_bank_account`, `kh_bank_account`, `lc_bank_account`, `mc_bank_account`, `mg_bank_account`, `my_bank_account`, `qa_bank_account`, `rw_bank_account`, `th_bank_account`, `tt_bank_account`, and `vn_bank_account` on enums `V2.Account.Configuration.RecipientDatum.DefaultOutboundDestination.type` and `V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination.type` +* Add support for `cadence_data` on `V2.Billing.Intent` and `v2.billing.IntentCreateParams` +* Add support for `cancellation_details` on `V2.Billing.IntentAction.Deactivate`, `V2.Billing.PricingPlanSubscription`, and `v2.billing.IntentCreateParamsActionDeactivate` +* Add support for `contact_phone` on `V2.Core.Account`, `v2.core.AccountCreateParams`, `v2.core.AccountModifyParams`, and `v2.core.AccountTokenCreateParams` +* Add support for `registration_date` on `V2.Core.Account.Identity.BusinessDetail`, `v2.core.AccountCreateParamsIdentityBusinessDetail`, `v2.core.AccountModifyParamsIdentityBusinessDetail`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetail` +* Add support for new value `gb_vat` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailIdNumber.type` +* Add support for `reference` on `V2.MoneyManagement.Adjustment` +* Add support for `accrued_fees` on `V2.MoneyManagement.FinancialAccount` +* Add support for `starting_balance` on `V2.MoneyManagement.FinancialAccount.Payment` +* Add support for new value `accrued_fees` on enum `V2.MoneyManagement.FinancialAccount.type` +* Add support for `account_holder_address` and `account_holder_name` on `V2.MoneyManagement.FinancialAddress.Credential.UsBankAccount` +* Add support for `fingerprint` on `V2.MoneyManagement.PayoutMethod.Card` +* Add support for `card_spend` on `V2.MoneyManagement.ReceivedCredit` and `V2.MoneyManagement.ReceivedDebit` +* Add support for new value `card_spend` on enum `V2.MoneyManagement.ReceivedCredit.type` +* Add support for new value `card_spend` on enum `V2.MoneyManagement.ReceivedDebit.type` +* Add support for new values `advance`, `anticipation_repayment`, `balance_transfer`, `charge_failure`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `connect_reserved_funds`, `contribution`, `dispute_reversal`, `financing_paydown_reversal`, `financing_paydown`, `inbound_transfer_reversal`, `issuing_dispute_fraud_liability_debit`, `issuing_dispute_provisional_credit_reversal`, `issuing_dispute_provisional_credit`, `issuing_dispute`, `minimum_balance_hold`, `network_cost`, `obligation`, `outbound_payment_reversal`, `outbound_transfer_reversal`, `partial_capture_reversal`, `payment_network_reserved_funds`, `platform_earning_refund`, `platform_earning`, `platform_fee`, `received_credit_reversal`, `received_debit_reversal`, `refund_failure`, `risk_reserved_funds`, `stripe_balance_payment_debit_reversal`, `stripe_balance_payment_debit`, `stripe_fee_tax`, `transfer_reversal`, and `unreconciled_customer_funds` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category` +* Add support for `application_fee_refund`, `application_fee`, `charge`, `dispute`, `payout`, `refund`, `reserve_hold`, `reserve_release`, `topup`, `transfer_reversal`, and `transfer` on `V2.MoneyManagement.Transaction.Flow` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow` +* Add support for new values `application_fee_refund`, `application_fee`, `charge`, `dispute`, `payout`, `refund`, `reserve_hold`, `reserve_release`, `topup`, `transfer_reversal`, and `transfer` on enums `V2.MoneyManagement.Transaction.Flow.type` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.type` +* Change `V2.Payments.SettlementAllocationIntentSplit.flow` to be optional +* Add support for new value `accrued_fees` on enum `v2.money_management.FinancialAccountListParams.types` +* Change `v2.billing.RateCardRateCreateParams.metered_item` to be required +* Add support for error codes `blocked_payout_method` and `unsupported_payout_method` on `BlockedByStripeError` +* Add support for error code `invalid_payout_method_data` on `InvalidPayoutMethodError` +* Add support for error code `limit_payout_method` on `QuotaExceededError` diff --git a/.hark/changes/2026-02-11_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-11_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..de5549d4d --- /dev/null +++ b/.hark/changes/2026-02-11_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,21 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1730 +is_stripe_api_change: true +released_in_version: 14.4.0a3 +--- + +* Add support for new resources `v2.billing.CadenceSpendModifier`, `v2.billing.OneTimeItem`, and `v2.billing.RateCardCustomPricingUnitOverageRate` +* Add support for `create`, `delete`, `list`, and `retrieve` methods on resource `v2.billing.RateCardCustomPricingUnitOverageRate` +* Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `v2.billing.OneTimeItem` +* Add support for `retrieve` method on resource `v2.billing.CadenceSpendModifier` +* Change `EventsV2CoreHealthFraudRateIncreasedEvent.Impact.RealizedFraudAmount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.Impact.ApprovedAmount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.Impact.DeclinedAmount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.Impact.ApprovedAmount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.Impact.DeclinedAmount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.Impact.ApprovedAmount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.Impact.DeclinedAmount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.Impact.ApprovedAmount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.Impact.DeclinedAmount.value`, `V2.Billing.ServiceAction.CreditGrant.Amount.Monetary.value`, `V2.Billing.ServiceAction.CreditGrantPerTenant.Amount.Monetary.value`, `V2.Core.Account.Identity.BusinessDetail.AnnualRevenue.Amount.value`, `V2.Core.Account.Identity.BusinessDetail.MonthlyEstimatedRevenue.Amount.value`, `V2.FinancialAddressGeneratedMicrodeposits.Amount.value`, `V2.MoneyManagement.Adjustment.Amount.value`, `V2.MoneyManagement.CurrencyConversion.From.Amount.value`, `V2.MoneyManagement.CurrencyConversion.To.Amount.value`, `V2.MoneyManagement.FinancialAccount.Balance.Available.value`, `V2.MoneyManagement.FinancialAccount.Balance.InboundPending.value`, `V2.MoneyManagement.FinancialAccount.Balance.OutboundPending.value`, `V2.MoneyManagement.FinancialAccount.Payment.StartingBalance.Available.value`, `V2.MoneyManagement.InboundTransfer.Amount.value`, `V2.MoneyManagement.InboundTransfer.From.Debited.value`, `V2.MoneyManagement.InboundTransfer.To.Credited.value`, `V2.MoneyManagement.OutboundPayment.Amount.value`, `V2.MoneyManagement.OutboundPayment.From.Debited.value`, `V2.MoneyManagement.OutboundPayment.To.Credited.value`, `V2.MoneyManagement.OutboundPaymentQuote.Amount.value`, `V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee.Amount.value`, `V2.MoneyManagement.OutboundPaymentQuote.From.Debited.value`, `V2.MoneyManagement.OutboundPaymentQuote.To.Credited.value`, `V2.MoneyManagement.OutboundTransfer.Amount.value`, `V2.MoneyManagement.OutboundTransfer.From.Debited.value`, `V2.MoneyManagement.OutboundTransfer.To.Credited.value`, `V2.MoneyManagement.ReceivedCredit.Amount.value`, `V2.MoneyManagement.ReceivedCredit.ExternalAmount.value`, `V2.MoneyManagement.ReceivedDebit.Amount.value`, `V2.MoneyManagement.ReceivedDebit.CardSpend.Authorization.Amount.value`, `V2.MoneyManagement.ReceivedDebit.CardSpend.CardTransaction.Amount.value`, `V2.MoneyManagement.ReceivedDebit.ExternalAmount.value`, `V2.MoneyManagement.Transaction.Amount.value`, `V2.MoneyManagement.Transaction.BalanceImpact.Available.value`, `V2.MoneyManagement.Transaction.BalanceImpact.InboundPending.value`, `V2.MoneyManagement.Transaction.BalanceImpact.OutboundPending.value`, `V2.MoneyManagement.TransactionEntry.BalanceImpact.Available.value`, `V2.MoneyManagement.TransactionEntry.BalanceImpact.InboundPending.value`, `V2.MoneyManagement.TransactionEntry.BalanceImpact.OutboundPending.value`, `V2.Payments.OffSessionPayment.AmountCapturable.value`, `V2.Payments.OffSessionPayment.AmountRequested.value`, `V2.Payments.SettlementAllocationIntent.Amount.value`, `V2.Payments.SettlementAllocationIntentSplit.Amount.value`, `v2.FinancialAddressCreditSimulationCreditParamsAmount.value`, `v2.billing.ServiceActionCreateParamsCreditGrantAmountMonetary.value`, `v2.billing.ServiceActionCreateParamsCreditGrantPerTenantAmountMonetary.value`, `v2.core.AccountCreateParamsIdentityBusinessDetailAnnualRevenueAmount.value`, `v2.core.AccountCreateParamsIdentityBusinessDetailMonthlyEstimatedRevenueAmount.value`, `v2.core.AccountModifyParamsIdentityBusinessDetailAnnualRevenueAmount.value`, `v2.core.AccountModifyParamsIdentityBusinessDetailMonthlyEstimatedRevenueAmount.value`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailAnnualRevenueAmount.value`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailMonthlyEstimatedRevenueAmount.value`, `v2.money_management.CurrencyConversionCreateParamsFromAmount.value`, `v2.money_management.CurrencyConversionCreateParamsToAmount.value`, `v2.money_management.InboundTransferCreateParamsAmount.value`, `v2.money_management.OutboundPaymentCreateParamsAmount.value`, `v2.money_management.OutboundPaymentQuoteCreateParamsAmount.value`, `v2.money_management.OutboundTransferCreateParamsAmount.value`, `v2.payments.OffSessionPaymentCreateParamsAmount.value`, `v2.payments.SettlementAllocationIntentCreateParamsAmount.value`, `v2.payments.SettlementAllocationIntentModifyParamsAmount.value`, and `v2.payments.SettlementAllocationIntentSplitCreateParamsAmount.value` to be required +* Change `EventsV2CoreHealthFraudRateIncreasedEvent.Impact.RealizedFraudAmount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.Impact.ApprovedAmount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.Impact.DeclinedAmount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.Impact.ApprovedAmount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.Impact.DeclinedAmount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.Impact.ApprovedAmount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.Impact.DeclinedAmount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.Impact.ApprovedAmount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.Impact.DeclinedAmount.currency`, `V2.Billing.ServiceAction.CreditGrant.Amount.Monetary.currency`, `V2.Billing.ServiceAction.CreditGrantPerTenant.Amount.Monetary.currency`, `V2.Core.Account.Identity.BusinessDetail.AnnualRevenue.Amount.currency`, `V2.Core.Account.Identity.BusinessDetail.MonthlyEstimatedRevenue.Amount.currency`, `V2.FinancialAddressGeneratedMicrodeposits.Amount.currency`, `V2.MoneyManagement.Adjustment.Amount.currency`, `V2.MoneyManagement.CurrencyConversion.From.Amount.currency`, `V2.MoneyManagement.CurrencyConversion.To.Amount.currency`, `V2.MoneyManagement.FinancialAccount.Balance.Available.currency`, `V2.MoneyManagement.FinancialAccount.Balance.InboundPending.currency`, `V2.MoneyManagement.FinancialAccount.Balance.OutboundPending.currency`, `V2.MoneyManagement.FinancialAccount.Payment.StartingBalance.Available.currency`, `V2.MoneyManagement.InboundTransfer.Amount.currency`, `V2.MoneyManagement.InboundTransfer.From.Debited.currency`, `V2.MoneyManagement.InboundTransfer.To.Credited.currency`, `V2.MoneyManagement.OutboundPayment.Amount.currency`, `V2.MoneyManagement.OutboundPayment.From.Debited.currency`, `V2.MoneyManagement.OutboundPayment.To.Credited.currency`, `V2.MoneyManagement.OutboundPaymentQuote.Amount.currency`, `V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee.Amount.currency`, `V2.MoneyManagement.OutboundPaymentQuote.From.Debited.currency`, `V2.MoneyManagement.OutboundPaymentQuote.To.Credited.currency`, `V2.MoneyManagement.OutboundTransfer.Amount.currency`, `V2.MoneyManagement.OutboundTransfer.From.Debited.currency`, `V2.MoneyManagement.OutboundTransfer.To.Credited.currency`, `V2.MoneyManagement.ReceivedCredit.Amount.currency`, `V2.MoneyManagement.ReceivedCredit.ExternalAmount.currency`, `V2.MoneyManagement.ReceivedDebit.Amount.currency`, `V2.MoneyManagement.ReceivedDebit.CardSpend.Authorization.Amount.currency`, `V2.MoneyManagement.ReceivedDebit.CardSpend.CardTransaction.Amount.currency`, `V2.MoneyManagement.ReceivedDebit.ExternalAmount.currency`, `V2.MoneyManagement.Transaction.Amount.currency`, `V2.MoneyManagement.Transaction.BalanceImpact.Available.currency`, `V2.MoneyManagement.Transaction.BalanceImpact.InboundPending.currency`, `V2.MoneyManagement.Transaction.BalanceImpact.OutboundPending.currency`, `V2.MoneyManagement.TransactionEntry.BalanceImpact.Available.currency`, `V2.MoneyManagement.TransactionEntry.BalanceImpact.InboundPending.currency`, `V2.MoneyManagement.TransactionEntry.BalanceImpact.OutboundPending.currency`, `V2.Payments.OffSessionPayment.AmountCapturable.currency`, `V2.Payments.OffSessionPayment.AmountRequested.currency`, `V2.Payments.SettlementAllocationIntent.Amount.currency`, `V2.Payments.SettlementAllocationIntentSplit.Amount.currency`, `v2.FinancialAddressCreditSimulationCreditParamsAmount.currency`, `v2.billing.ServiceActionCreateParamsCreditGrantAmountMonetary.currency`, `v2.billing.ServiceActionCreateParamsCreditGrantPerTenantAmountMonetary.currency`, `v2.core.AccountCreateParamsIdentityBusinessDetailAnnualRevenueAmount.currency`, `v2.core.AccountCreateParamsIdentityBusinessDetailMonthlyEstimatedRevenueAmount.currency`, `v2.core.AccountModifyParamsIdentityBusinessDetailAnnualRevenueAmount.currency`, `v2.core.AccountModifyParamsIdentityBusinessDetailMonthlyEstimatedRevenueAmount.currency`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailAnnualRevenueAmount.currency`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailMonthlyEstimatedRevenueAmount.currency`, `v2.money_management.CurrencyConversionCreateParamsFromAmount.currency`, `v2.money_management.CurrencyConversionCreateParamsToAmount.currency`, `v2.money_management.InboundTransferCreateParamsAmount.currency`, `v2.money_management.OutboundPaymentCreateParamsAmount.currency`, `v2.money_management.OutboundPaymentQuoteCreateParamsAmount.currency`, `v2.money_management.OutboundTransferCreateParamsAmount.currency`, `v2.payments.OffSessionPaymentCreateParamsAmount.currency`, `v2.payments.SettlementAllocationIntentCreateParamsAmount.currency`, `v2.payments.SettlementAllocationIntentModifyParamsAmount.currency`, and `v2.payments.SettlementAllocationIntentSplitCreateParamsAmount.currency` to be required +* Add support for `settlement_type` on `ApplicationFee` +* Add support for `rate_card_custom_pricing_unit_overage_rate_details` on `InvoiceItem.Pricing` and `InvoiceLineItem.Pricing` +* Add support for new value `rate_card_custom_pricing_unit_overage_rate_details` on enums `InvoiceItem.Pricing.type` and `InvoiceLineItem.Pricing.type` +* Add support for `default_settings` on `InvoiceCreatePreviewParamsScheduleDetail` +* Change type of `QuoteModifyParamsSubscriptionDataOverride.billing_schedules` from `emptyable(array(billing_schedules_update_specs))` to `array(billing_schedules_update_specs)` +* Add support for `payment_behavior` on `SubscriptionResumeParams` +* Add support for `effective_at` and `spend_modifier_rule` on `V2.Billing.IntentAction.Apply`, `V2.Billing.IntentAction.Remove`, `v2.billing.IntentCreateParamsActionApply`, and `v2.billing.IntentCreateParamsActionRemove` +* Change type of `V2.Billing.IntentAction.Apply.type`, `V2.Billing.IntentAction.Remove.type`, `v2.billing.IntentCreateParamsActionApply.type`, and `v2.billing.IntentCreateParamsActionRemove.type` from `literal('invoice_discount_rule')` to `enum('invoice_discount_rule'|'spend_modifier_rule')` diff --git a/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..e14641519 --- /dev/null +++ b/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,16 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1734 +is_breaking: true +is_stripe_api_change: true +released_in_version: 14.4.0a4 +--- + +* ⚠️ Add support for new value `spend_threshold` on enums `Billing.Alert.alert_type`, `billing.AlertCreateParams.alert_type`, and `billing.AlertListParams.alert_type` +* Add support for `spend_threshold` on `Billing.Alert` and `billing.AlertCreateParams` +* Add support for `invoice_item`, `proration_details`, `proration`, and `subscription` on `InvoiceLineItem.Parent.ScheduleDetail` +* Add support for `custom` on `PaymentMethodModifyParams` +* Add support for `payment_method_reference` and `usage` on `PaymentMethod.Custom` +* Add support for `outstanding_usage_through` and `unused_time_from` on `SubscriptionPauseParamsBillFor` +* ⚠️ Remove support for `outstanding_usage` and `unused_time` on `SubscriptionPauseParamsBillFor` +* ⚠️ Remove support for `payment_behavior` on `SubscriptionResumeParams` diff --git a/.hark/changes/2026-02-23_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-23_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..50aadf157 --- /dev/null +++ b/.hark/changes/2026-02-23_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,16 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1735 +is_stripe_api_change: true +released_in_version: 14.5.0a1 +--- + +* Add support for new resource `AccountSignals` +* Add support for `retrieve` method on resource `AccountSignals` +* Add support for `aggregation_period`, `group_by`, and `triggered_at` on `Billing.AlertTriggered` +* Add support for `external_account_collection` on `AccountLinkCreateParamsCollectionOption` +* Add support for `funding_source` on `ApplicationFee` +* Change `delegated_checkout.RequestedSessionConfirmParamsPaymentMethodDatumBillingDetailAddress.line1`, `delegated_checkout.RequestedSessionCreateParamsFulfillmentDetailAddress.line1`, `delegated_checkout.RequestedSessionCreateParamsPaymentMethodDatumBillingDetailAddress.line1`, `delegated_checkout.RequestedSessionModifyParamsFulfillmentDetailAddress.line1`, and `delegated_checkout.RequestedSessionModifyParamsPaymentMethodDatumBillingDetailAddress.line1` to be optional +* Add support for `hosted` and `ui_mode` on `FinancialConnections.Session` and `financial_connections.SessionCreateParams` +* Add support for `url` on `FinancialConnections.Session` +* Add support for `billing_cycle_anchor` on `SubscriptionCreateParamsTrialSettingEndBehavior` and `SubscriptionModifyParamsTrialSettingEndBehavior` diff --git a/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..a46c9b497 --- /dev/null +++ b/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,64 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1741 +is_breaking: true +is_stripe_api_change: true +released_in_version: 14.5.0a2 +--- + +* Add support for new resources `Profile` and `billing.AlertRecovered` +* Add support for `reauthorize` method on resource `PaymentIntent` +* Add support for `settings` on `QuoteLine.Action.AddDiscount`, `QuoteLine.Action.AddItem.Discount`, `QuoteLine.Action.SetDiscount`, `QuoteLine.Action.SetItem.Discount`, `QuotePreviewSubscriptionSchedule.Phase.Discount`, `QuotePreviewSubscriptionSchedule.Phase.Item.Discount`, `SubscriptionSchedule.Phase.Discount`, and `SubscriptionSchedule.Phase.Item.Discount` +* Add support for `smart_disputes` on `Account.Setting`, `AccountCreateParamsSetting`, `AccountModifyParamsSetting`, `V2.Core.Account.Configuration.Merchant`, `v2.core.AccountCreateParamsConfigurationMerchant`, and `v2.core.AccountModifyParamsConfigurationMerchant` +* Add support for `email_customers_on_successful_payment` on `Account.Setting.Payment`, `AccountCreateParamsSettingPayment`, and `AccountModifyParamsSettingPayment` +* Add support for `balance_update_details` on `Billing.CreditBalanceSummary.Balance` +* Add support for `reauthorization` and `reauthorize_before` on `Charge.PaymentMethodDetail.CardPresent`, `Charge.PaymentMethodDetail.Card`, `ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, `PaymentAttemptRecord.PaymentMethodDetail.CardPresent`, `PaymentMethod.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, and `PaymentRecord.PaymentMethodDetail.CardPresent` +* Add support for `location` and `reader` on `Charge.PaymentMethodDetail.CardPresent`, `Charge.PaymentMethodDetail.InteracPresent`, `ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, `PaymentAttemptRecord.PaymentMethodDetail.CardPresent`, `PaymentAttemptRecord.PaymentMethodDetail.InteracPresent`, `PaymentMethod.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, `PaymentRecord.PaymentMethodDetail.CardPresent`, and `PaymentRecord.PaymentMethodDetail.InteracPresent` +* Add support for `managed_payments` on `Checkout.Session`, `PaymentIntent`, `SetupIntent`, `Subscription`, and `checkout.SessionCreateParams` +* Add support for new value `lk_vat` on enums `Checkout.Session.CollectedInformation.TaxId.type`, `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Order.TaxDetail.TaxId.type`, `QuotePreviewInvoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` +* Add support for new value `lk_vat` on enums `CustomerCreateParamsTaxIdDatum.type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParamsCustomerDetailTaxId.type`, `OrderCreateParamsTaxDetailTaxId.type`, `OrderModifyParamsTaxDetailTaxId.type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParamsCustomerDetailTaxId.type` +* Add support for `digital` on `DelegatedCheckout.RequestedSession.FulfillmentDetail.FulfillmentOption`, `DelegatedCheckout.RequestedSession.FulfillmentDetail.SelectedFulfillmentOption`, and `delegated_checkout.RequestedSessionModifyParamsFulfillmentDetailSelectedFulfillmentOption` +* Change `delegated_checkout.RequestedSessionModifyParamsFulfillmentDetailSelectedFulfillmentOption.shipping` to be optional +* Add support for `affiliate_attributions` on `DelegatedCheckout.RequestedSession`, `delegated_checkout.RequestedSessionConfirmParams`, and `delegated_checkout.RequestedSessionCreateParams` +* Add support for `fulfillment_type` on `DelegatedCheckout.RequestedSession.LineItemDetail` +* Add support for `marketplace_seller_details`, `network_profile`, `privacy_notice_url`, `return_policy_url`, `store_policy_url`, and `terms_of_service_url` on `DelegatedCheckout.RequestedSession.SellerDetail` +* Add support for `amount_to_counter` on `DisputeModifyParams` +* Add support for new values `reserve.hold.created`, `reserve.hold.updated`, `reserve.plan.created`, `reserve.plan.disabled`, `reserve.plan.expired`, `reserve.plan.updated`, and `reserve.release.created` on enum `Event.type` +* Add support for new values `terminal_wifi_certificate` and `terminal_wifi_private_key` on enums `File.purpose` and `FileListParams.purpose` +* Add support for new values `terminal_wifi_certificate` and `terminal_wifi_private_key` on enum `FileCreateParams.purpose` +* Add support for new value `pay_by_bank` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* Add support for `display_name` and `service_user_number` on `Mandate.PaymentMethodDetail.BacsDebit` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Boleto.tax_id` and `PaymentRecord.PaymentMethodDetail.Boleto.tax_id` from `string` to `nullable(string)` +* Change type of `PaymentAttemptRecord.PaymentMethodDetail.UsBankAccount.expected_debit_date` and `PaymentRecord.PaymentMethodDetail.UsBankAccount.expected_debit_date` from `nullable(string)` to `string` +* Add support for `request_reauthorization` on `PaymentIntent.PaymentMethodOption.CardPresent`, `PaymentIntent.PaymentMethodOption.Card`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent`, `PaymentIntentConfirmParamsPaymentMethodOptionCard`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsPaymentMethodOptionCard`, `PaymentIntentModifyParamsPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsPaymentMethodOptionCard` +* Add support for `transaction_purpose` on `PaymentIntent.PaymentMethodOption.UsBankAccount`, `PaymentIntentConfirmParamsPaymentMethodOptionUsBankAccount`, `PaymentIntentCreateParamsPaymentMethodOptionUsBankAccount`, and `PaymentIntentModifyParamsPaymentMethodOptionUsBankAccount` +* Add support for new value `requires_reauthorization` on enum `PaymentIntent.status` +* Add support for `optional_items` on `PaymentLinkModifyParams` +* Add support for new value `billing_schedules_invalid` on enum `Quote.StatusDetail.Stale.LastReason.type` +* ⚠️ Remove support for `card_issuer_decline` on `Radar.PaymentEvaluation.Insight` +* Add support for `payment_behavior` on `SubscriptionItemDeleteParams` +* Add support for `billing_cycle_anchor` on `Subscription.TrialSetting.EndBehavior` +* Add support for `lk` on `Tax.Registration.CountryOption` and `tax.RegistrationCreateParamsCountryOption` +* Add support for `cellular` and `stripe_s710` on `Terminal.Configuration`, `terminal.ConfigurationCreateParams`, and `terminal.ConfigurationModifyParams` +* Add support for new values `simulated_stripe_s710` and `stripe_s710` on enums `Terminal.Reader.device_type` and `terminal.ReaderListParams.device_type` +* Add support for new values `reserve.hold.created`, `reserve.hold.updated`, `reserve.plan.created`, `reserve.plan.disabled`, `reserve.plan.expired`, `reserve.plan.updated`, and `reserve.release.created` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` +* Add support for new value `2026-02-25.clover` on enum `WebhookEndpointCreateParams.api_version` +* Add support for new values `ar_bank_account`, `bt_bank_account`, `co_bank_account`, `cr_bank_account`, `do_bank_account`, `gt_bank_account`, `md_bank_account`, `mk_bank_account`, `mo_bank_account`, `mz_bank_account`, `pe_bank_account`, `pk_bank_account`, `tw_bank_account`, and `uz_bank_account` on enums `V2.Account.Configuration.RecipientDatum.DefaultOutboundDestination.type` and `V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination.type` +* Add support for `recipient_onboarding` and `recipient_update` on `V2.Core.AccountLink.UseCase` and `v2.core.AccountLinkCreateParamsUseCase` +* Add support for new values `recipient_onboarding` and `recipient_update` on enums `V2.Core.AccountLink.UseCase.type` and `v2.core.AccountLinkCreateParamsUseCase.type` +* Add support for `consumer` on `V2.Core.Account.Configuration.Storer.Capability`, `v2.core.AccountCreateParamsConfigurationStorerCapability`, and `v2.core.AccountModifyParamsConfigurationStorerCapability` +* Add support for new value `consumer.holds_currencies.usd` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for `funds_usage_type` on `V2.MoneyManagement.FinancialAccount.Storage` and `v2.money_management.FinancialAccountCreateParamsStorage` +* Add support for `purpose` on `V2.MoneyManagement.OutboundPayment` and `v2.money_management.OutboundPaymentCreateParams` +* Add support for `branch_number` and `swift_code` on `V2.MoneyManagement.PayoutMethod.BankAccount` +* Add support for new values `dispute`, `inbound_payment_failure`, `inbound_payment`, `india_mdr_processing_fee`, `payment_method_passthrough_fee`, `refund`, and `tax_withholding` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category` +* ⚠️ Remove support for values `charge_failure` and `charge` from enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category` +* ⚠️ Change `V2.MoneyManagement.Transaction.flow` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.flow` to be optional +* Add support for new value `consumer.holds_currencies.usd` on enum `EventsV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.updated_capability` +* Add support for snapshot event `billing.alert.recovered` with resource `billing.AlertRecovered` +* Add support for snapshot events `reserve.hold.created` and `reserve.hold.updated` with resource `reserve.Hold` +* Add support for snapshot events `reserve.plan.created`, `reserve.plan.disabled`, `reserve.plan.expired`, and `reserve.plan.updated` with resource `reserve.Plan` +* Add support for snapshot event `reserve.release.created` with resource `reserve.Release` +* Add support for event notification `V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent` with related object `v2.billing.RateCardCustomPricingUnitOverageRate` +* Add support for event notifications `V2IamStripeAccessGrantApprovedEvent`, `V2IamStripeAccessGrantCanceledEvent`, `V2IamStripeAccessGrantDeniedEvent`, `V2IamStripeAccessGrantRemovedEvent`, `V2IamStripeAccessGrantRequestedEvent`, and `V2IamStripeAccessGrantUpdatedEvent` +* Add support for error codes `storer_capability_missing` and `storer_capability_not_active` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` diff --git a/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..9323ac597 --- /dev/null +++ b/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,22 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1750 +is_breaking: true +is_stripe_api_change: true +released_in_version: 14.5.0a3 +--- + +* Add support for new resource `radar.IssuingAuthorizationEvaluation` +* Add support for `create` method on resource `radar.IssuingAuthorizationEvaluation` +* Add support for new value `fee_credits` on enum `BalanceTransaction.balance_type` +* ⚠️ Rename `affiliate_attributions` to `affiliate_attribution` on `delegated_checkout.RequestedSessionConfirmParams` and `delegated_checkout.RequestedSessionCreateParams` +* Add support for `amount_to_counter` on `Dispute` +* Add support for `frozen_fields` on `InvoiceItem` +* Add support for new value `next_billing_period_start` on enums `V2.Billing.IntentAction.Apply.EffectiveAt.type` and `v2.billing.IntentCreateParamsActionApplyEffectiveAt.type` +* Add support for `consumer` on `V2.Core.Account.Configuration.CardCreator.Capability`, `V2.Core.Account.Identity.Attestation.TermsOfService.CardCreator`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapability`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfServiceCardCreator`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapability`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfServiceCardCreator` +* Add support for `fifth_third` on `V2.Core.Account.Configuration.CardCreator.Capability.Commercial`, `V2.Core.Account.Identity.Attestation.TermsOfService.CardCreator.Commercial`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercial`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfServiceCardCreatorCommercial`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercial`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfServiceCardCreatorCommercial` +* Add support for `prepaid_card` on `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank`, `V2.Core.Account.Identity.Attestation.TermsOfService.CardCreator.Commercial.CrossRiverBank`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBank`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfServiceCardCreatorCommercialCrossRiverBank`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBank`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfServiceCardCreatorCommercialCrossRiverBank` +* Add support for new values `commercial.cross_river_bank.prepaid_card`, `commercial.fifth_third.charge_card`, `consumer.celtic.revolving_credit_card`, `consumer.cross_river_bank.prepaid_card`, and `consumer.lead.prepaid_card` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for `payment_method_data` on `v2.payments.OffSessionPaymentCreateParams` +* Change `v2.payments.OffSessionPaymentCreateParams.payment_method` to be optional +* Add support for new values `commercial.cross_river_bank.prepaid_card`, `commercial.fifth_third.charge_card`, `consumer.celtic.revolving_credit_card`, `consumer.cross_river_bank.prepaid_card`, and `consumer.lead.prepaid_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` diff --git a/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..510117a9d --- /dev/null +++ b/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,38 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1755 +is_breaking: true +is_stripe_api_change: true +released_in_version: 14.5.0a4 +--- + +* Add support for new resources `orchestration.PaymentAttempt` and `radar.CustomerEvaluation` +* Add support for `retrieve` method on resource `orchestration.PaymentAttempt` +* Add support for `create` and `modify` methods on resource `radar.CustomerEvaluation` +* Add support for `approve` method on resource `checkout.Session` +* Add support for `report_authenticated`, `report_canceled`, `report_failed`, `report_guaranteed`, `report_informational`, and `report_refund` methods on resource `PaymentAttemptRecord` +* Add support for `create_us_paper_check_on_application` on `AccountSessionCreateParamsComponentCheckScanningFeature` +* ⚠️ Change `AccountSignals.delinquency` to be optional +* Add support for `approval_method` on `Checkout.Session` and `checkout.SessionCreateParams` +* Add support for `current_attempt` on `Checkout.Session` +* Add support for `selected_fulfillment_option_overrides` on `delegated_checkout.RequestedSessionModifyParamsFulfillmentDetail` +* Add support for `pricing_plan_subscription_details` on `InvoiceItem.Parent` and `InvoiceLineItem.Parent` +* ⚠️ Remove support for `license_fee_subscription_details` on `InvoiceItem.Parent` and `InvoiceLineItem.Parent` +* ⚠️ Remove support for `pricing_plan_subscription` and `pricing_plan_version` on `InvoiceItem.Parent.RateCardSubscriptionDetail` and `InvoiceLineItem.Parent.RateCardSubscriptionDetail` +* Add support for new value `pricing_plan_subscription_details` on enum `InvoiceItem.Parent.type` +* ⚠️ Remove support for value `license_fee_subscription_details` from enum `InvoiceItem.Parent.type` +* Add support for new value `discounts` on enum `InvoiceItem.frozen_fields` +* Add support for new value `pricing_plan_subscription_details` on enum `InvoiceLineItem.Parent.type` +* ⚠️ Remove support for value `license_fee_subscription_details` from enum `InvoiceLineItem.Parent.type` +* Add support for `token_details` on `Issuing.Authorization` +* Add support for `failure_code` on `PaymentRecordReportPaymentAttemptFailedParams`, `PaymentRecordReportPaymentAttemptParamsFailed`, and `PaymentRecordReportPaymentParamsFailed` +* Change `PaymentRecordReportPaymentAttemptCanceledParams.canceled_at` to be optional +* Change `PaymentRecordReportPaymentAttemptFailedParams.failed_at` to be optional +* Change `PaymentRecordReportPaymentAttemptGuaranteedParams.guaranteed_at` to be optional +* Change `PaymentRecordReportRefundParams.refunded` to be optional +* ⚠️ Remove support for value `now` from enums `QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFrom.type`, `QuoteCreateParamsSubscriptionDatumBillingScheduleBillFrom.type`, `QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFrom.type`, and `QuoteModifyParamsSubscriptionDatumBillingScheduleBillFrom.type` +* ⚠️ Change `radar.IssuingAuthorizationEvaluationCreateParamsCardDetail.bin_country` to be required +* Add support for `recurring_interval` on `shared_payment.GrantedTokenCreateParamsUsageLimit` +* Change `shared_payment.GrantedTokenCreateParamsUsageLimit.expires_at` to be optional +* Add support for `home_rule_tax` on `Tax.Registration.CountryOption.Me` and `tax.RegistrationCreateParamsCountryOptionMe` +* Add support for new value `home_rule_tax` on enums `Tax.Registration.CountryOption.Me.type` and `tax.RegistrationCreateParamsCountryOptionMe.type` diff --git a/.hark/changes/2026-03-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-17_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..a22b654af --- /dev/null +++ b/.hark/changes/2026-03-17_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1760 +is_stripe_api_change: true +released_in_version: 14.5.0a4 +--- + +* Add support for `simulate_crypto_deposit` test helper method on resource `PaymentIntent` +* Add support for `deposit_options` and `mode` on `PaymentIntent.PaymentMethodOption.Crypto`, `PaymentIntentConfirmParamsPaymentMethodOptionCrypto`, `PaymentIntentCreateParamsPaymentMethodOptionCrypto`, and `PaymentIntentModifyParamsPaymentMethodOptionCrypto` +* Add support for `crypto_display_details` on `PaymentIntent.NextAction` diff --git a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..26282d6af --- /dev/null +++ b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,74 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1776 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.1.0a1 +--- + +* Add support for new resource `RiskSignals` +* Add support for `financial_account_rewards` and `nesting_demo` on `AccountSession.Component` +* Add support for `upi_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` +* Add support for `risk_signals` on `Account` +* Add support for `fraud_intent` on `AccountSignals` +* ⚠️ Add support for new value `related_accounts` on enum `AccountSignals.Delinquency.Indicator.indicator` +* Add support for `risk_reserved` on `Balance` +* ⚠️ Remove support for `billable_items` on `Billing.Alert.SpendThreshold.Filter` +* Add support for `upi` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `Mandate.PaymentMethodDetail`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodOption`, `SetupIntentModifyParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodOption`, and `checkout.SessionCreateParamsPaymentMethodOption` +* ⚠️ Add support for new value `tempo` on enums `Charge.PaymentMethodDetail.Crypto.network`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto.network`, and `PaymentRecord.PaymentMethodDetail.Crypto.network` +* ⚠️ Remove support for `source_type` on `Charge.PaymentMethodDetail.StripeBalance`, `ConfirmationToken.PaymentMethodPreview.StripeBalance`, `ConfirmationTokenCreateParamsPaymentMethodDatumStripeBalance`, `PaymentAttemptRecord.PaymentMethodDetail.StripeBalance`, `PaymentIntentConfirmParamsPaymentMethodDatumStripeBalance`, `PaymentIntentCreateParamsPaymentMethodDatumStripeBalance`, `PaymentIntentModifyParamsPaymentMethodDatumStripeBalance`, `PaymentMethod.StripeBalance`, `PaymentMethodCreateParamsStripeBalance`, `PaymentRecord.PaymentMethodDetail.StripeBalance`, `SetupIntentConfirmParamsPaymentMethodDatumStripeBalance`, `SetupIntentCreateParamsPaymentMethodDatumStripeBalance`, and `SetupIntentModifyParamsPaymentMethodDatumStripeBalance` +* Add support for `integration_identifier` on `Checkout.Session` and `checkout.SessionCreateParams` +* ⚠️ Add support for new value `application` on enums `Checkout.Session.AutomaticTax.Liability.type`, `Checkout.Session.InvoiceCreation.InvoiceDatum.Issuer.type`, `Invoice.AutomaticTax.Liability.type`, `Invoice.Issuer.type`, `InvoiceCreateParamsAutomaticTaxLiability.type`, `InvoiceCreateParamsIssuer.type`, `InvoiceCreatePreviewParamsAutomaticTaxLiability.type`, `InvoiceCreatePreviewParamsIssuer.type`, `InvoiceCreatePreviewParamsScheduleDetailPhaseAutomaticTaxLiability.type`, `InvoiceCreatePreviewParamsScheduleDetailPhaseInvoiceSettingIssuer.type`, `InvoiceModifyParamsAutomaticTaxLiability.type`, `InvoiceModifyParamsIssuer.type`, `PaymentLink.AutomaticTax.Liability.type`, `PaymentLink.InvoiceCreation.InvoiceDatum.Issuer.type`, `PaymentLink.SubscriptionDatum.InvoiceSetting.Issuer.type`, `PaymentLinkCreateParamsAutomaticTaxLiability.type`, `PaymentLinkCreateParamsInvoiceCreationInvoiceDatumIssuer.type`, `PaymentLinkCreateParamsSubscriptionDatumInvoiceSettingIssuer.type`, `PaymentLinkModifyParamsAutomaticTaxLiability.type`, `PaymentLinkModifyParamsInvoiceCreationInvoiceDatumIssuer.type`, `PaymentLinkModifyParamsSubscriptionDatumInvoiceSettingIssuer.type`, `Quote.AutomaticTax.Liability.type`, `Quote.InvoiceSetting.Issuer.type`, `QuoteCreateParamsAutomaticTaxLiability.type`, `QuoteCreateParamsInvoiceSettingIssuer.type`, `QuoteModifyParamsAutomaticTaxLiability.type`, `QuoteModifyParamsInvoiceSettingIssuer.type`, `QuotePreviewInvoice.AutomaticTax.Liability.type`, `QuotePreviewInvoice.Issuer.type`, `QuotePreviewSubscriptionSchedule.DefaultSetting.AutomaticTax.Liability.type`, `QuotePreviewSubscriptionSchedule.DefaultSetting.InvoiceSetting.Issuer.type`, `QuotePreviewSubscriptionSchedule.Phase.AutomaticTax.Liability.type`, `QuotePreviewSubscriptionSchedule.Phase.InvoiceSetting.Issuer.type`, `Subscription.AutomaticTax.Liability.type`, `Subscription.InvoiceSetting.Issuer.type`, `SubscriptionCreateParamsAutomaticTaxLiability.type`, `SubscriptionCreateParamsInvoiceSettingIssuer.type`, `SubscriptionModifyParamsAutomaticTaxLiability.type`, `SubscriptionModifyParamsInvoiceSettingIssuer.type`, `SubscriptionSchedule.DefaultSetting.AutomaticTax.Liability.type`, `SubscriptionSchedule.DefaultSetting.InvoiceSetting.Issuer.type`, `SubscriptionSchedule.Phase.AutomaticTax.Liability.type`, `SubscriptionSchedule.Phase.InvoiceSetting.Issuer.type`, `SubscriptionScheduleCreateParamsDefaultSettingAutomaticTaxLiability.type`, `SubscriptionScheduleCreateParamsDefaultSettingInvoiceSettingIssuer.type`, `SubscriptionScheduleCreateParamsPhaseAutomaticTaxLiability.type`, `SubscriptionScheduleCreateParamsPhaseInvoiceSettingIssuer.type`, `SubscriptionScheduleModifyParamsDefaultSettingAutomaticTaxLiability.type`, `SubscriptionScheduleModifyParamsDefaultSettingInvoiceSettingIssuer.type`, `SubscriptionScheduleModifyParamsPhaseAutomaticTaxLiability.type`, `SubscriptionScheduleModifyParamsPhaseInvoiceSettingIssuer.type`, `checkout.SessionCreateParamsAutomaticTaxLiability.type`, `checkout.SessionCreateParamsInvoiceCreationInvoiceDatumIssuer.type`, `checkout.SessionCreateParamsSubscriptionDatumInvoiceSettingIssuer.type`, `checkout.SessionModifyParamsAutomaticTaxLiability.type`, `checkout.SessionModifyParamsInvoiceCreationInvoiceDatumIssuer.type`, and `checkout.SessionModifyParamsSubscriptionDatumInvoiceSettingIssuer.type` +* Add support for new value `upi` on enum `checkout.SessionCreateParams.excluded_payment_method_types` +* Change type of `InvoiceAddLinesParamsLinePriceDatumProductDatumTaxDetail.tax_code`, `InvoiceLineItemModifyParamsPriceDatumProductDatumTaxDetail.tax_code`, `InvoiceUpdateLinesParamsLinePriceDatumProductDatumTaxDetail.tax_code`, `PaymentLinkCreateParamsLineItemPriceDatumProductDatumTaxDetail.tax_code`, `PlanCreateParamsProductTaxDetail.tax_code`, `PriceCreateParamsProductDatumTaxDetail.tax_code`, `ProductCreateParamsTaxDetail.tax_code`, `ProductModifyParamsTaxDetail.tax_code`, `checkout.SessionCreateParamsLineItemPriceDatumProductDatumTaxDetail.tax_code`, and `checkout.SessionModifyParamsLineItemPriceDatumProductDatumTaxDetail.tax_code` from `string` to `emptyable(string)` +* Add support for `crypto` on `checkout.SessionCreateParamsPaymentMethodOption` +* Add support for new value `upi` on enum `checkout.SessionCreateParams.payment_method_types` +* Add support for `pending_invoice_item_interval` on `checkout.SessionCreateParamsSubscriptionDatum` and `checkout.SessionModifyParamsSubscriptionDatum` +* ⚠️ Add support for new values `elements`, `embedded_page`, `form`, and `hosted_page` on enums `Checkout.Session.ui_mode` and `checkout.SessionCreateParams.ui_mode` +* ⚠️ Remove support for values `custom`, `embedded`, and `hosted` from enums `Checkout.Session.ui_mode` and `checkout.SessionCreateParams.ui_mode` +* Change `InvoiceAddLinesParamsLinePriceDatumProductDatumTaxDetail.tax_code`, `InvoiceLineItemModifyParamsPriceDatumProductDatumTaxDetail.tax_code`, `InvoiceUpdateLinesParamsLinePriceDatumProductDatumTaxDetail.tax_code`, `PaymentLinkCreateParamsLineItemPriceDatumProductDatumTaxDetail.tax_code`, `PlanCreateParamsProductTaxDetail.tax_code`, `PriceCreateParamsProductDatumTaxDetail.tax_code`, `ProductCreateParamsTaxDetail.tax_code`, `ProductModifyParamsTaxDetail.tax_code`, `checkout.SessionCreateParamsLineItemPriceDatumProductDatumTaxDetail.tax_code`, and `checkout.SessionModifyParamsLineItemPriceDatumProductDatumTaxDetail.tax_code` to be optional +* Add support for `au_becs_debit`, `bacs_debit`, `boleto`, `link`, `sepa_debit`, and `us_bank_account` on `Checkout.Session.CurrentAttempt.PaymentMethodDetail` +* ⚠️ Add support for new value `marine_carbon_removal` on enum `Climate.Supplier.removal_pathway` +* Add support for new value `upi` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* ⚠️ Add support for new value `upi` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* Add support for `metadata` on `CreditNoteCreateParamsLine`, `CreditNoteLineItem`, `CreditNotePreviewLinesParamsLine`, and `CreditNotePreviewParamsLine` +* Add support for new value `upi` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `selected_fulfillment_option_overrides` on `DelegatedCheckout.RequestedSession.FulfillmentDetail` +* Add support for `line_item_keys` on `DelegatedCheckout.RequestedSession.FulfillmentDetail.FulfillmentOption.Digital.DigitalOption` and `DelegatedCheckout.RequestedSession.FulfillmentDetail.FulfillmentOption.Shipping.ShippingOption` +* Add support for `quantity_decimal` on `InvoiceAddLinesParamsLine`, `InvoiceCreatePreviewParamsInvoiceItem`, `InvoiceItemCreateParams`, `InvoiceItemModifyParams`, `InvoiceItem`, `InvoiceLineItemModifyParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParamsLine` +* Add support for `expires_after_seconds` on `Invoice.PaymentSetting.PaymentMethodOption.Pix`, `InvoiceCreateParamsPaymentSettingPaymentMethodOptionPix`, `InvoiceModifyParamsPaymentSettingPaymentMethodOptionPix`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption.Pix`, `Subscription.PaymentSetting.PaymentMethodOption.Pix`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOptionPix`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOptionPix` +* ⚠️ Add support for `level` on `issuing.AuthorizationCreateParamsRiskAssessmentCardTestingRisk` and `issuing.AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk` +* ⚠️ Remove support for `risk_level` on `issuing.AuthorizationCreateParamsRiskAssessmentCardTestingRisk` and `issuing.AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk` +* ⚠️ Add support for new values `da`, `pl`, and `sv` on enums `Issuing.Cardholder.preferred_locales`, `issuing.CardholderCreateParams.preferred_locales`, and `issuing.CardholderModifyParams.preferred_locales` +* Add support for `lifecycle_controls` on `Issuing.Card` and `issuing.CardCreateParams` +* ⚠️ Change type of `Issuing.Token.NetworkDatum.Visa.card_reference_id` from `string` to `nullable(string)` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.brand` and `PaymentRecord.PaymentMethodDetail.Card.brand` from `enum` to `nullable(enum)` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.exp_month` and `PaymentRecord.PaymentMethodDetail.Card.exp_month` from `longInteger` to `nullable(longInteger)` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.exp_year` and `PaymentRecord.PaymentMethodDetail.Card.exp_year` from `longInteger` to `nullable(longInteger)` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.funding` and `PaymentRecord.PaymentMethodDetail.Card.funding` from `enum('credit'|'debit'|'prepaid'|'unknown')` to `nullable(enum('credit'|'debit'|'prepaid'|'unknown'))` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.last4` and `PaymentRecord.PaymentMethodDetail.Card.last4` from `string` to `nullable(string)` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.moto` and `PaymentRecord.PaymentMethodDetail.Card.moto` from `boolean` to `nullable(boolean)` +* Add support for `cryptogram`, `electronic_commerce_indicator`, `exemption_indicator_applied`, and `exemption_indicator` on `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure` and `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure` +* Add support for `surcharge` on `PaymentIntent.AmountDetail`, `PaymentIntentCaptureParamsAmountDetail`, `PaymentIntentConfirmParamsAmountDetail`, `PaymentIntentCreateParamsAmountDetail`, `PaymentIntentIncrementAuthorizationParamsAmountDetail`, and `PaymentIntentModifyParamsAmountDetail` +* ⚠️ Add support for new value `upi` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* Add support for `mandate_options` on `PaymentIntent.PaymentMethodOption.StripeBalance`, `PaymentIntentConfirmParamsPaymentMethodOptionStripeBalance`, `PaymentIntentCreateParamsPaymentMethodOptionStripeBalance`, and `PaymentIntentModifyParamsPaymentMethodOptionStripeBalance` +* Add support for `amount_details` and `payment_details` on `PaymentIntentDecrementAuthorizationParams` +* Add support for `upi_handle_redirect_or_display_qr_code` on `PaymentIntent.NextAction` and `SetupIntent.NextAction` +* Add support for `managed_payments` on `PaymentLinkCreateParams` and `PaymentLink` +* ⚠️ Add support for new value `upi` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkModifyParams.payment_method_types` +* Add support for `recommended_action` and `signals` on `Radar.PaymentEvaluation` +* ⚠️ Remove support for `insights` on `Radar.PaymentEvaluation` +* ⚠️ Add support for new value `crypto_fingerprint` on enums `Radar.ValueList.item_type` and `radar.ValueListCreateParams.item_type` +* Add support for `stripe_balance` on `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodOption`, and `SetupIntentModifyParamsPaymentMethodOption` +* ⚠️ Add support for new value `resolved` on enum `SharedPayment.GrantedToken.deactivated_reason` +* Add support for `recurring_interval` on `SharedPayment.GrantedToken.UsageLimit` +* ⚠️ Change type of `SharedPayment.GrantedToken.UsageLimit.expires_at` from `DateTime` to `nullable(DateTime)` +* Add support for `presentment_details` on `Subscription` +* ⚠️ Add support for new value `canceled_by_retention_policy` on enum `Subscription.CancellationDetail.reason` +* Add support for new value `2026-03-25.dahlia` on enum `WebhookEndpointCreateParams.api_version` +* ⚠️ Remove support for `invoice_resources` on `V2.Billing.Intent` +* ⚠️ Remove support for `amount_due` and `customer_balance_applied` on `V2.Billing.Intent.AmountDetail` +* Add support for `recurring_credit_grant` on `V2.Billing.IntentAction.Modify.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior`, `V2.Billing.IntentAction.Subscribe.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior`, `v2.billing.IntentCreateParamsActionModifyPricingPlanSubscriptionDetailOverridePartialPeriodBehavior`, and `v2.billing.IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailOverridePartialPeriodBehavior` +* Add support for `consumer_privacy_disclosures` and `consumer_storer` on `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfService` +* ⚠️ Remove support for `include` on `v2.billing.IntentCreateParams` and `v2.billing.IntentReserveParams` +* Add support for error code `service_period_coupon_with_metered_tiered_item_unsupported` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` diff --git a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md new file mode 100644 index 000000000..7a4af13b9 --- /dev/null +++ b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md @@ -0,0 +1,42 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1763 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.1.0a1 +--- + +* Add support for new resource `v2.core.AccountEvaluation` +* ⚠️ Remove support for resources `v2.billing.LicenseFeeSubscription` and `v2.billing.PricingPlanSubscriptionComponents` +* Add support for `create` method on resource `v2.core.AccountEvaluation` +* ⚠️ Remove support for `retrieve` method on resources `v2.billing.LicenseFeeSubscription` and `v2.billing.PricingPlanSubscriptionComponents` +* Add support for `modify_rates` method on resource `v2.billing.RateCard` +* Add support for `remove_discounts` method on resource `v2.billing.PricingPlanSubscription` +* ⚠️ Add support for new value `eg_bank_account` on enum `V2.Account.Configuration.RecipientDatum.DefaultOutboundDestination.type` +* Add support for `invoice_resources` on `V2.Billing.Intent` +* Add support for `amount_due` and `customer_balance_applied` on `V2.Billing.Intent.AmountDetail` +* Add support for `expires_at` on `V2.Billing.Intent.StatusTransition` +* Add support for `discount` on `V2.Billing.IntentAction.Apply` and `v2.billing.IntentCreateParamsActionApply` +* Add support for `timestamp` on `V2.Billing.IntentAction.Apply.EffectiveAt` and `v2.billing.IntentCreateParamsActionApplyEffectiveAt` +* ⚠️ Add support for new values `current_billing_period_start` and `timestamp` on enums `V2.Billing.IntentAction.Apply.EffectiveAt.type` and `v2.billing.IntentCreateParamsActionApplyEffectiveAt.type` +* ⚠️ Add support for new value `discount` on enums `V2.Billing.IntentAction.Apply.type` and `v2.billing.IntentCreateParamsActionApply.type` +* ⚠️ Change type of `V2.Billing.IntentAction.Deactivate.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior.type`, `V2.Billing.IntentAction.Modify.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior.type`, `V2.Billing.IntentAction.Subscribe.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior.type`, `v2.billing.IntentCreateParamsActionDeactivatePricingPlanSubscriptionDetailOverridePartialPeriodBehavior.type`, `v2.billing.IntentCreateParamsActionModifyPricingPlanSubscriptionDetailOverridePartialPeriodBehavior.type`, and `v2.billing.IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailOverridePartialPeriodBehavior.type` from `literal('license_fee')` to `enum('license_fee'|'recurring_credit_grant')` +* Add support for `service_cycle` on `V2.Billing.LicenseFee` and `V2.Billing.RateCard` +* ⚠️ Remove support for `latest_version` on `V2.Billing.LicenseFee`, `V2.Billing.PricingPlan`, and `V2.Billing.RateCard` +* ⚠️ Remove support for `service_interval_count` and `service_interval` on `V2.Billing.LicenseFee` and `V2.Billing.RateCard` +* ⚠️ Change type of `V2.Billing.LicenseFee.TransformQuantity.divide_by`, `V2.Billing.LicenseFeeVersion.TransformQuantity.divide_by`, `V2.Billing.RateCardRate.TransformQuantity.divide_by`, `v2.billing.LicenseFeeCreateParamsTransformQuantity.divide_by`, `v2.billing.LicenseFeeModifyParamsTransformQuantity.divide_by`, and `v2.billing.RateCardRateCreateParamsTransformQuantity.divide_by` from `longInteger` to `int64_string` +* Add support for `discount_details` and `pricing_plan_component_details` on `V2.Billing.PricingPlanSubscription` +* ⚠️ Add support for new value `crypto_wallets` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* ⚠️ Remove support for value `crypto` from enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for `balance_by_funds_type` on `V2.MoneyManagement.FinancialAccount.Payment` +* ⚠️ Add support for new value `next_day_payout_fee` on enum `V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee.type` +* Add support for `treasury_transaction_entry` on `V2.MoneyManagement.TransactionEntry` +* Add support for `treasury_credit_reversal`, `treasury_debit_reversal`, `treasury_inbound_transfer`, `treasury_issuing_authorization`, `treasury_outbound_payment`, `treasury_outbound_transfer`, `treasury_received_credit`, and `treasury_received_debit` on `V2.MoneyManagement.Transaction.Flow` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow` +* ⚠️ Add support for new values `treasury_credit_reversal`, `treasury_debit_reversal`, `treasury_inbound_transfer`, `treasury_issuing_authorization`, `treasury_other`, `treasury_outbound_payment`, `treasury_outbound_transfer`, `treasury_received_credit`, and `treasury_received_debit` on enums `V2.MoneyManagement.Transaction.Flow.type` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.type` +* Add support for `treasury_transaction` on `V2.MoneyManagement.Transaction` +* ⚠️ Add support for new value `no_valid_payment_method` on enum `V2.Payments.OffSessionPayment.failure_reason` +* Add support for `metadata` on `V2.Payments.SettlementAllocationIntentSplit` +* ⚠️ Change type of `V2.Reporting.ReportRun.Result.File.size` from `longInteger` to `int64_string` +* Add support for `statement_descriptor` on `v2.money_management.OutboundPaymentCreateParams` and `v2.money_management.OutboundTransferCreateParams` +* Add support for `include` on `v2.billing.IntentCreateParams`, `v2.billing.IntentReserveParams`, `v2.billing.PricingPlanSubscriptionListParams`, `v2.billing.PricingPlanSubscriptionRetrieveParams`, `v2.money_management.FinancialAccountListParams`, and `v2.money_management.FinancialAccountRetrieveParams` +* Add support for event notifications `V1AccountSignalsIncludingDelinquencyCreatedEvent`, `V2CoreAccountSignalsFraudulentWebsiteReadyEvent`, and `V2SignalsAccountSignalFraudulentMerchantReadyEvent` diff --git a/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..3d3e709dd --- /dev/null +++ b/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,54 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1778 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.1.0a2 +--- + +* Add support for new resources `shared_payment.IssuedToken` and `v2.data.reporting.QueryRun` +* Add support for `create` and `retrieve` methods on resource `v2.data.reporting.QueryRun` +* Add support for `pause` and `resume` methods on resource `v2.payments.OffSessionPayment` +* Add support for `tenant_keys`, `tenant_operator`, and `tenant_values` on `billing.BillingMeterListMeterEventSummaryParams` +* Add support for `money_services` on `ChargeCaptureParamsPaymentDetail`, `ChargeModifyParamsPaymentDetail`, `PaymentIntentCaptureParamsPaymentDetail`, `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsPaymentDetail`, and `PaymentIntentModifyParamsPaymentDetail` +* Add support for `payment_method_options` on `DelegatedCheckout.RequestedSession`, `delegated_checkout.RequestedSessionCreateParams`, and `delegated_checkout.RequestedSessionModifyParams` +* ⚠️ Remove support for `payment_method_data` on `delegated_checkout.RequestedSessionConfirmParams`, `delegated_checkout.RequestedSessionCreateParams`, and `delegated_checkout.RequestedSessionModifyParams` +* Add support for `card_brands` and `payment_method_types` on `DelegatedCheckout.RequestedSession.SellerDetail` +* ⚠️ Change type of `DelegatedCheckout.RequestedSession.shared_payment_issued_token` from `string` to `expandable($SharedPayment.IssuedToken)` +* Add support for `check_scan` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOption` +* ⚠️ Add support for new value `check_scan` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* Add support for `processor_details` on `PaymentAttemptRecordReportFailedParams`, `PaymentAttemptRecordReportGuaranteedParams`, `PaymentRecordReportPaymentAttemptFailedParams`, `PaymentRecordReportPaymentAttemptGuaranteedParams`, `PaymentRecordReportPaymentAttemptParamsFailed`, `PaymentRecordReportPaymentAttemptParamsGuaranteed`, `PaymentRecordReportPaymentParamsFailed`, and `PaymentRecordReportPaymentParamsGuaranteed` +* Add support for `payment_details` on `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent`, `PaymentIntentConfirmParamsPaymentMethodOptionCard`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsPaymentMethodOptionCard`, `PaymentIntentModifyParamsPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsPaymentMethodOptionCard` +* ⚠️ Remove support for `bill_from` on `QuotePreviewSubscriptionSchedule.BillingSchedule`, `Subscription.BillingSchedule`, and `SubscriptionSchedule.BillingSchedule` +* Add support for `agent_details`, `payment_method_details`, and `risk_details` on `SharedPayment.GrantedToken` +* Add support for `paper_checks` on `V2.Account.Configuration.RecipientDatum.Feature`, `V2.Core.Account.Configuration.Recipient.Capability`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment`, `v2.AccountCreateParamsConfigurationRecipientDatumFeature`, `v2.AccountModifyParamsConfigurationRecipientDatumFeature`, `v2.core.AccountCreateParamsConfigurationRecipientCapability`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPayment`, `v2.core.AccountModifyParamsConfigurationRecipientCapability`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPayment` +* ⚠️ Add support for new value `paper_checks` on enum `V2.Account.Configuration.SupportableFeature.recipient_data` +* ⚠️ Add support for new value `paper_checks` on enum `V2.Account.Requirement.Impact.required_for_features` +* ⚠️ Change type of `V2.Billing.Cadence.SettingsDatum.Collection.PaymentMethodOption.konbini`, `V2.Billing.CollectionSetting.PaymentMethodOption.konbini`, `V2.Billing.CollectionSettingVersion.PaymentMethodOption.konbini`, `v2.billing.CollectionSettingCreateParamsPaymentMethodOption.konbini`, and `v2.billing.CollectionSettingModifyParamsPaymentMethodOption.konbini` from `map(string: dynamic)` to `an object` +* ⚠️ Change type of `V2.Billing.Cadence.SettingsDatum.Collection.PaymentMethodOption.sepa_debit`, `V2.Billing.CollectionSetting.PaymentMethodOption.sepa_debit`, `V2.Billing.CollectionSettingVersion.PaymentMethodOption.sepa_debit`, `v2.billing.CollectionSettingCreateParamsPaymentMethodOption.sepa_debit`, and `v2.billing.CollectionSettingModifyParamsPaymentMethodOption.sepa_debit` from `map(string: dynamic)` to `an object` +* Add support for `id` on `V2.Billing.CadenceSpendModifier.MaxBillingPeriodSpend.Amount.CustomPricingUnit`, `V2.Billing.IntentAction.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount.CustomPricingUnit`, and `v2.billing.IntentCreateParamsActionApplySpendModifierRuleMaxBillingPeriodSpendAmountCustomPricingUnit` +* ⚠️ Add support for new values `outbound_payments.paper_checks` and `paper_checks` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* ⚠️ Add support for new values `bm_crn`, `bo_tin`, `bt_tpn`, `co_nit`, `ec_ruc`, `eg_tin`, `gh_tin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_crn`, `ke_pin`, `ky_crn`, `lk_tin`, `mo_tin`, `mv_tin`, `ng_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `sl_tin`, `sv_nit`, `uy_ruc`, `vg_cn`, and `za_tin` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailIdNumber.type` +* ⚠️ Add support for new values `bm_pp`, `bo_ci`, `bt_cid`, `eg_tin`, `gh_pin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_pin`, `ky_pp`, `lk_nic`, `mo_bir`, `mt_nic`, `mv_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `si_pin`, `sv_nit`, and `vg_pp` on enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.AccountPerson.IdNumber.type`, `v2.core.AccountCreateParamsIdentityIndividualIdNumber.type`, `v2.core.AccountModifyParamsIdentityIndividualIdNumber.type`, `v2.core.AccountPersonCreateParamsIdNumber.type`, `v2.core.AccountPersonModifyParamsIdNumber.type`, `v2.core.AccountPersonTokenCreateParamsIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityIndividualIdNumber.type` +* ⚠️ Change type of `V2.Core.Event.Reason.Request.Client.stripe_action` from `map(string: dynamic)` to `an object` +* ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.TransferHistory.bank_debit_processing` from `map(string: dynamic)` to `an object` +* ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.TransferHistory.bank_debit_queued` from `map(string: dynamic)` to `an object` +* ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.TransferHistory.bank_debit_succeeded` from `map(string: dynamic)` to `an object` +* ⚠️ Add support for new values `paper_check_attachment_too_large`, `paper_check_expired`, and `paper_check_undeliverable` on enum `V2.MoneyManagement.OutboundPayment.StatusDetail.Failed.reason` +* ⚠️ Remove support for `town` on `V2.MoneyManagement.OutboundPayment.TrackingDetail.PaperCheck.MailingAddress` +* Change `V2.MoneyManagement.OutboundPayment.DeliveryOption.PaperCheck.memo` to be required +* ⚠️ Add support for new value `payout_method_amount_limit_exceeded` on enum `V2.MoneyManagement.OutboundTransfer.StatusDetail.Failed.reason` +* Add support for `application_fee_amount_requested` on `V2.Payments.OffSessionPayment` +* ⚠️ Remove support for `compartment_id` on `V2.Payments.OffSessionPayment` +* ⚠️ Add support for new value `exceeded_retry_window` on enum `V2.Payments.OffSessionPayment.failure_reason` +* Add support for `retry_until` on `V2.Payments.OffSessionPayment.RetryDetail` +* ⚠️ Add support for new value `paused` on enum `V2.Payments.OffSessionPayment.status` +* ⚠️ Change `V2.Reporting.ReportRun.Result.file` to be optional +* Add support for `application_fee_amount` on `v2.payments.OffSessionPaymentCaptureParams` and `v2.payments.OffSessionPaymentCreateParams` +* ⚠️ Add support for new value `paper_checks` on enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability` +* ⚠️ Add support for new value `outbound_payments.paper_checks` on enum `EventsV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.updated_capability` +* Add support for `alert_id` on `EventsV2CoreHealthApiErrorResolvedEvent`, `EventsV2CoreHealthApiLatencyResolvedEvent`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `EventsV2CoreHealthPaymentMethodErrorResolvedEvent`, `EventsV2CoreHealthSepaDebitDelayedFiringEvent`, `EventsV2CoreHealthSepaDebitDelayedResolvedEvent`, `EventsV2CoreHealthTrafficVolumeDropResolvedEvent`, and `EventsV2CoreHealthWebhookLatencyResolvedEvent` +* Add support for `api_key` on `EventsV2IamApiKeyCreatedEvent`, `EventsV2IamApiKeyDefaultSecretRevealedEvent`, `EventsV2IamApiKeyExpiredEvent`, `EventsV2IamApiKeyPermissionsUpdatedEvent`, `EventsV2IamApiKeyRotatedEvent`, and `EventsV2IamApiKeyUpdatedEvent` +* Add support for `stripe_access_grant` on `EventsV2IamStripeAccessGrantApprovedEvent`, `EventsV2IamStripeAccessGrantCanceledEvent`, `EventsV2IamStripeAccessGrantDeniedEvent`, `EventsV2IamStripeAccessGrantRemovedEvent`, `EventsV2IamStripeAccessGrantRequestedEvent`, and `EventsV2IamStripeAccessGrantUpdatedEvent` +* Add support for event notifications `V2DataReportingQueryRunCreatedEvent`, `V2DataReportingQueryRunFailedEvent`, `V2DataReportingQueryRunSucceededEvent`, and `V2DataReportingQueryRunUpdatedEvent` with related object `v2.data.reporting.QueryRun` +* Add support for event notifications `V2PaymentsOffSessionPaymentPausedEvent` and `V2PaymentsOffSessionPaymentResumedEvent` with related object `v2.payments.OffSessionPayment` diff --git a/.hark/changes/2026-04-01_unknown_please-refer-changelog.change.md b/.hark/changes/2026-04-01_unknown_please-refer-changelog.change.md new file mode 100644 index 000000000..f73924d5e --- /dev/null +++ b/.hark/changes/2026-04-01_unknown_please-refer-changelog.change.md @@ -0,0 +1,4 @@ +--- +title: "Please refer to the changelog for [v15.0.1](https://github.com/stripe/stripe-python/blob/v15.0.1/CHANGELOG.md#1501---2026-04-01) for additional changes." +released_in_version: 15.1.0a2 +--- diff --git a/.hark/changes/2026-04-01_unknown_see-changelog-v15.change.md b/.hark/changes/2026-04-01_unknown_see-changelog-v15.change.md new file mode 100644 index 000000000..184b2c03c --- /dev/null +++ b/.hark/changes/2026-04-01_unknown_see-changelog-v15.change.md @@ -0,0 +1,4 @@ +--- +title: "See the changelog for [v15.0.1](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#1501---2026-04-01) for additional changes" +released_in_version: 15.1.0a2 +--- diff --git a/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..a98517eb4 --- /dev/null +++ b/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,26 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1789 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.1.0a3 +--- + +* Add support for `payment_record` on `ApplicationFee.FeeSource` +* Add support for `fleet_data` on `ChargeCaptureParamsPaymentDetail`, `ChargeModifyParamsPaymentDetail`, `PaymentIntent.PaymentDetail`, `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Card`, `PaymentIntentCaptureParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentCaptureParamsPaymentDetail`, `PaymentIntentConfirmParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentCreateParamsPaymentDetail`, `PaymentIntentDecrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentModifyParamsAmountDetailLineItemPaymentMethodOptionCard`, and `PaymentIntentModifyParamsPaymentDetail` +* Add support for `beneficiary_account`, `beneficiary_details`, `sender_account`, and `sender_details` on `ChargeCaptureParamsPaymentDetailMoneyServiceAccountFunding`, `ChargeModifyParamsPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCaptureParamsPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentConfirmParamsPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentDetailMoneyServiceAccountFunding`, and `PaymentIntentModifyParamsPaymentDetailMoneyServiceAccountFunding` +* Change type of `ChargeCaptureParamsPaymentDetailMoneyService.transaction_type`, `ChargeModifyParamsPaymentDetailMoneyService.transaction_type`, `PaymentIntentCaptureParamsPaymentDetailMoneyService.transaction_type`, `PaymentIntentConfirmParamsPaymentDetailMoneyService.transaction_type`, `PaymentIntentCreateParamsPaymentDetailMoneyService.transaction_type`, and `PaymentIntentModifyParamsPaymentDetailMoneyService.transaction_type` from `literal('account_funding')` to `emptyable(literal('account_funding'))` +* ⚠️ Add support for new value `requires_action` on enum `DelegatedCheckout.RequestedSession.status` +* Add support for `bizum` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOption` +* ⚠️ Add support for new value `bizum` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* Add support for `quantity_precision` on `PaymentIntentAmountDetailsLineItem`, `PaymentIntentCaptureParamsAmountDetailLineItem`, `PaymentIntentConfirmParamsAmountDetailLineItem`, `PaymentIntentCreateParamsAmountDetailLineItem`, `PaymentIntentDecrementAuthorizationParamsAmountDetailLineItem`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItem`, and `PaymentIntentModifyParamsAmountDetailLineItem` +* Add support for `liquid_asset` and `wallet` on `PaymentIntentConfirmParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentModifyParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding` +* Add support for `shared_payment_granted_token` on `PaymentMethod` +* ⚠️ Change type of `Radar.CustomerEvaluation.event_type` from `string` to `enum('login'|'registration')` +* ⚠️ Change type of `Radar.CustomerEvaluation.Signal.AccountSharing.risk_level` and `Radar.CustomerEvaluation.Signal.MultiAccounting.risk_level` from `string` to `enum` +* Add support for `data` on `Radar.PaymentEvaluation.ClientDeviceMetadataDetail` and `radar.PaymentEvaluationCreateParamsClientDeviceMetadataDetail` +* Add support for `sunbit` on `SharedPayment.GrantedToken.PaymentMethodDetail` +* ⚠️ Add support for new value `sunbit` on enum `SharedPayment.GrantedToken.PaymentMethodDetail.type` +* ⚠️ Remove support for values `bm_crn`, `bo_tin`, `bt_tpn`, `co_nit`, `ec_ruc`, `eg_tin`, `gh_tin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_crn`, `ke_pin`, `ky_crn`, `lk_tin`, `mo_tin`, `mv_tin`, `ng_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `sl_tin`, `sv_nit`, `uy_ruc`, `vg_cn`, and `za_tin` from enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailIdNumber.type` +* ⚠️ Remove support for values `bm_pp`, `bo_ci`, `bt_cid`, `eg_tin`, `gh_pin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_pin`, `ky_pp`, `lk_nic`, `mo_bir`, `mt_nic`, `mv_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `si_pin`, `sv_nit`, and `vg_pp` from enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.AccountPerson.IdNumber.type`, `v2.core.AccountCreateParamsIdentityIndividualIdNumber.type`, `v2.core.AccountModifyParamsIdentityIndividualIdNumber.type`, `v2.core.AccountPersonCreateParamsIdNumber.type`, `v2.core.AccountPersonModifyParamsIdNumber.type`, `v2.core.AccountPersonTokenCreateParamsIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityIndividualIdNumber.type` +* Add support for error type `CannotProceedError` diff --git a/.hark/changes/2026-04-15_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..cf97bcd51 --- /dev/null +++ b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1794 +is_stripe_api_change: true +released_in_version: 15.1.0a4 +--- + +* Add support for `latest_version` on `V2.Billing.LicenseFee`, `V2.Billing.PricingPlan`, and `V2.Billing.RateCard` +* Add support for `service_interval_count` and `service_interval` on `V2.Billing.LicenseFee` and `V2.Billing.RateCard` diff --git a/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md new file mode 100644 index 000000000..a83857fd7 --- /dev/null +++ b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md @@ -0,0 +1,32 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1791 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.1.0a4 +--- + +* Add support for new resources `v2.core.WorkflowRun` and `v2.core.Workflow` +* Add support for `report_authorized` method on resource `PaymentAttemptRecord` +* Add support for `list` and `retrieve` methods on resource `v2.core.WorkflowRun` +* Add support for `invoke`, `list`, and `retrieve` methods on resource `v2.core.Workflow` +* Add support for `next_action` and `status` on `SharedPayment.IssuedToken` +* ⚠️ Remove support for `network_id` on `SharedPayment.IssuedToken.SellerDetail` +* Add support for `bills` on `AccountSession.Component` +* Add support for `settlement_currencies` on `BalanceSettings.Payment` and `BalanceSettingsModifyParamsPayment` +* Add support for `default_settlement_currency` on `BalanceSettings.Payment` +* Add support for `account_funding` on `Charge.PaymentMethodDetail.Card` +* Add support for `automatic_surcharge` on `Checkout.Session`, `PaymentLinkCreateParams`, `PaymentLink`, and `checkout.SessionCreateParams` +* Add support for `bizum` on `Checkout.Session.PaymentMethodOption` and `checkout.SessionCreateParamsPaymentMethodOption` +* Add support for `surcharge_cost` on `Checkout.Session` +* Add support for `amount_surcharge` on `Checkout.Session.TotalDetail` +* Add support for `shared_payment_granted_token` on `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* Add support for new value `email` on enums `identity.VerificationReportListParams.type`, `identity.VerificationSessionCreateParams.type`, and `identity.VerificationSessionModifyParams.type` +* Add support for `details` on `Identity.VerificationReport.Email` +* ⚠️ Add support for new value `email` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type` +* Add support for `confirm` on `identity.VerificationSessionCreateParams` and `identity.VerificationSessionModifyParams` +* Add support for `subscription` on `InvoiceItem.Parent.ScheduleDetail` +* ⚠️ Remove support for `shared_payment_granted_token` on `PaymentIntentConfirmParams` and `PaymentIntentCreateParams` +* Add support for `money_services` on `PaymentIntent.PaymentDetail` +* ⚠️ Remove support for `external_reference` on `Plan` +* Change `SharedPayment.GrantedToken.PaymentMethodDetail.billing_details` to be required diff --git a/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..a7366a537 --- /dev/null +++ b/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,141 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1795 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.2.0a1 +--- + +* Add support for new resources `v2.commerce.ProductCatalogImport`, `v2.core.ApprovalRequest`, `v2.extend.WorkflowRun`, `v2.extend.Workflow`, `v2.iam.ActivityLog`, `v2.network.BusinessProfile`, and `v2.orchestrated_commerce.Agreement` +* ⚠️ Remove support for resources `v2.core.WorkflowRun` and `v2.core.Workflow` +* Add support for `confirm`, `create`, `list`, `retrieve`, and `terminate` methods on resource `v2.orchestrated_commerce.Agreement` +* Add support for `me` and `retrieve` methods on resource `v2.network.BusinessProfile` +* Add support for `list` method on resource `v2.iam.ActivityLog` +* Add support for `list` and `retrieve` methods on resource `v2.extend.WorkflowRun` +* Add support for `invoke`, `list`, and `retrieve` methods on resource `v2.extend.Workflow` +* Add support for `cancel`, `execute`, `list`, `retrieve`, and `submit` methods on resource `v2.core.ApprovalRequest` +* Add support for `create` and `retrieve` methods on resource `v2.commerce.ProductCatalogImport` +* ⚠️ Remove support for `list` and `retrieve` methods on resource `v2.core.WorkflowRun` +* ⚠️ Remove support for `invoke`, `list`, and `retrieve` methods on resource `v2.core.Workflow` +* Add support for `renew_onboarding_link` method on resource `v2.core.ClaimableSandbox` +* ⚠️ Remove support for `customer` on `SharedPayment.IssuedToken` +* Change type of `SharedPayment.IssuedToken.payment_method` from `nullable(string)` to `string` +* Add support for `bill_management` and `send_money` on `AccountSession.Component.Bill.Feature` +* Add support for `gift_card` on `Charge.PaymentMethodDetail`, `PaymentAttemptRecord.PaymentMethodDetail`, and `PaymentRecord.PaymentMethodDetail` +* Add support for `custom_payment_method_types` on `Checkout.Session` and `checkout.SessionCreateParams` +* Add support for `payment_record` on `Checkout.Session` +* ⚠️ Remove support for `shared_payment_granted_token` on `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntent`, `PaymentMethod`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* Add support for `payment_method` on `ConfirmationToken.PaymentMethodPreview.SepaDebit.GeneratedFrom`, `PaymentMethod.SepaDebit.GeneratedFrom`, and `SharedPayment.GrantedToken.PaymentMethodDetail.SepaDebit.GeneratedFrom` +* ⚠️ Change type of `DelegatedCheckout.RequestedSession.FulfillmentDetail.FulfillmentOption.type`, `DelegatedCheckout.RequestedSession.FulfillmentDetail.SelectedFulfillmentOption.type`, `DelegatedCheckout.RequestedSession.FulfillmentDetail.SelectedFulfillmentOptionOverride.type`, `delegated_checkout.RequestedSessionModifyParamsFulfillmentDetailSelectedFulfillmentOption.type`, and `delegated_checkout.RequestedSessionModifyParamsFulfillmentDetailSelectedFulfillmentOptionOverride.type` from `string` to `enum('digital'|'shipping')` +* Add support for `return_url` on `delegated_checkout.RequestedSessionConfirmParams` +* Add support for `buyer_consents` on `DelegatedCheckout.RequestedSession` +* Add support for `crypto_transactions` on `Issuing.Authorization`, `Issuing.Dispute`, and `Issuing.Transaction` +* Add support for `payment_facilitator_id` and `sub_merchant_id` on `Issuing.Authorization.MerchantDatum` and `Issuing.Transaction.MerchantDatum` +* Add support for `identifiers` on `OrderCreateParamsLineItemProductDatum`, `OrderModifyParamsLineItemProductDatum`, `ProductCreateParams`, `ProductModifyParams`, and `Product` +* Add support for `agent_details` on `PaymentIntent` +* Add support for `external_reference` on `PriceCreateParams` and `PriceModifyParams` +* Add support for `login_succeeded` and `registration_succeeded` on `Radar.AccountEvaluation.Event` and `radar.AccountEvaluationModifyParams` +* Add support for `print_content` on `Terminal.Reader.Action` +* ⚠️ Add support for new value `print_content` on enum `Terminal.Reader.Action.type` +* ⚠️ Add support for new values `cn_bank_account` and `jp_bank_account` on enum `V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination.type` +* ⚠️ Add support for new values `bm_crn`, `bo_tin`, `bt_tpn`, `co_nit`, `ec_ruc`, `eg_tin`, `gh_tin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_crn`, `ke_pin`, `ky_crn`, `lk_tin`, `mo_tin`, `mv_tin`, `ng_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `sl_tin`, `sv_nit`, `uy_ruc`, `vg_cn`, and `za_tin` on enum `V2.Core.Account.Identity.BusinessDetail.IdNumber.type` +* ⚠️ Add support for new values `bm_pp`, `bo_ci`, `bt_cid`, `eg_tin`, `gh_pin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_pin`, `ky_pp`, `lk_nic`, `mo_bir`, `mt_nic`, `mv_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `si_pin`, `sv_nit`, and `vg_pp` on enums `V2.Core.Account.Identity.Individual.IdNumber.type` and `V2.Core.AccountPerson.IdNumber.type` +* Add support for `app_channel` on `V2.Core.ClaimableSandbox` and `v2.core.ClaimableSandboxCreateParams` +* Add support for `onboarding_link_details` and `owner_details` on `V2.Core.ClaimableSandbox` +* ⚠️ Remove support for `claim_url` on `V2.Core.ClaimableSandbox` +* ⚠️ Remove support for `owner_account` on `V2.Core.ClaimableSandbox.SandboxDetail` +* ⚠️ Add support for new value `live` on enum `V2.Core.ClaimableSandbox.status` +* Add support for `snapshot_event` on `V2.Core.Event` +* ⚠️ Add support for new values `futsu` and `toza` on enums `V2.Core.Vault.GbBankAccount.bank_account_type` and `V2.MoneyManagement.PayoutMethod.BankAccount.bank_account_type` +* ⚠️ Change `V2.MoneyManagement.CurrencyConversion.financial_account` to be optional +* Add support for `multiprocessor_settlement` on `V2.MoneyManagement.FinancialAccount` +* ⚠️ Add support for new value `multiprocessor_settlement` on enum `V2.MoneyManagement.FinancialAccount.type` +* Add support for `ca_bank_account` on `V2.MoneyManagement.FinancialAddress.Credential` and `V2.MoneyManagement.ReceivedCredit.BankTransfer` +* ⚠️ Add support for new value `ca_bank_account` on enum `V2.MoneyManagement.FinancialAddress.Credential.type` +* ⚠️ Add support for new value `tempo` on enum `V2.MoneyManagement.PayoutMethod.CryptoWallet.network` +* ⚠️ Add support for new value `ca_bank_account` on enum `V2.MoneyManagement.ReceivedCredit.BankTransfer.origin_type` +* ⚠️ Remove support for value `return` from enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category` +* Add support for `amount_details` and `payment_details` on `V2.Payments.OffSessionPayment`, `v2.payments.OffSessionPaymentCaptureParams`, and `v2.payments.OffSessionPaymentCreateParams` +* Add support for `description` on `V2.Payments.OffSessionPayment` and `v2.payments.OffSessionPaymentCreateParams` +* Add support for new value `acss` on enum `v2.FinancialAddressCreditSimulationCreditParams.network` +* Add support for `mcc` on `v2.payments.OffSessionPaymentCreateParamsPaymentMethodOptionCard` +* Change `v2.payments.OffSessionPaymentCreateParamsPaymentMethodOptionCard.network_transaction_id` to be optional +* Add support for new values `futsu` and `toza` on enums `v2.core.vault.GbBankAccountCreateParams.bank_account_type`, `v2.money_management.OutboundSetupIntentCreateParamsPayoutMethodDatumBankAccount.bank_account_type`, and `v2.money_management.OutboundSetupIntentModifyParamsPayoutMethodDatumBankAccount.bank_account_type` +* Add support for new value `tempo` on enum `v2.money_management.OutboundSetupIntentCreateParamsPayoutMethodDatumCryptoWallet.network` +* Add support for new value `credentials.ca_bank_account.account_number` on enums `v2.money_management.FinancialAddressListParams.include` and `v2.money_management.FinancialAddressRetrieveParams.include` +* Add support for new value `ca_bank_account` on enum `v2.money_management.FinancialAddressCreateParams.type` +* Add support for new value `multiprocessor_settlement` on enum `v2.money_management.FinancialAccountListParams.types` +* Add support for `storage` on `v2.money_management.FinancialAccountModifyParams` +* Add support for `fx_quote` on `v2.money_management.CurrencyConversionCreateParams` +* Change `v2.money_management.CurrencyConversionCreateParams.financial_account` to be optional +* ⚠️ Add support for `onboarding_link_details` on `v2.core.ClaimableSandboxCreateParams` +* Change type of `v2.core.BatchJobCreateParamsEndpoint.http_method` from `literal('post')` to `enum('delete'|'post')` +* Add support for new values `bm_crn`, `bo_tin`, `bt_tpn`, `co_nit`, `ec_ruc`, `eg_tin`, `gh_tin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_crn`, `ke_pin`, `ky_crn`, `lk_tin`, `mo_tin`, `mv_tin`, `ng_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `sl_tin`, `sv_nit`, `uy_ruc`, `vg_cn`, and `za_tin` on enums `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailIdNumber.type` +* Add support for new values `bm_pp`, `bo_ci`, `bt_cid`, `eg_tin`, `gh_pin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_pin`, `ky_pp`, `lk_nic`, `mo_bir`, `mt_nic`, `mv_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `si_pin`, `sv_nit`, and `vg_pp` on enums `v2.core.AccountCreateParamsIdentityIndividualIdNumber.type`, `v2.core.AccountModifyParamsIdentityIndividualIdNumber.type`, `v2.core.AccountPersonCreateParamsIdNumber.type`, `v2.core.AccountPersonModifyParamsIdNumber.type`, `v2.core.AccountPersonTokenCreateParamsIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityIndividualIdNumber.type` +* ⚠️ Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.Reason.ErrorType.code` and `EventsV1BillingMeterNoMeterFoundEvent.Reason.ErrorType.code` +* Add support for `treasury_transaction` on `EventsV2MoneyManagementTransactionCreatedEvent` +* Add support for event notifications `V1AccountApplicationAuthorizedEvent`, `V1AccountApplicationDeauthorizedEvent`, `V1AccountExternalAccountCreatedEvent`, `V1AccountExternalAccountDeletedEvent`, `V1AccountExternalAccountUpdatedEvent`, `V1BillingPortalSessionCreatedEvent`, `V1EntitlementsActiveEntitlementSummaryUpdatedEvent`, `V2CoreHealthMeterEventSummariesDelayedFiringEvent`, and `V2CoreHealthMeterEventSummariesDelayedResolvedEvent` +* Add support for event notification `V1AccountUpdatedEvent` with related object `Account` +* Add support for event notifications `V1ApplicationFeeCreatedEvent` and `V1ApplicationFeeRefundedEvent` with related object `ApplicationFee` +* Add support for event notification `V1ApplicationFeeRefundUpdatedEvent` with related object `ApplicationFeeRefund` +* Add support for event notification `V1BalanceAvailableEvent` with related object `Balance` +* Add support for event notification `V1BillingAlertTriggeredEvent` with related object `billing.Alert` +* Add support for event notifications `V1BillingPortalConfigurationCreatedEvent` and `V1BillingPortalConfigurationUpdatedEvent` with related object `billing_portal.Configuration` +* Add support for event notification `V1CapabilityUpdatedEvent` with related object `Capability` +* Add support for event notification `V1CashBalanceFundsAvailableEvent` with related object `CashBalance` +* Add support for event notifications `V1ChargeCapturedEvent`, `V1ChargeExpiredEvent`, `V1ChargeFailedEvent`, `V1ChargePendingEvent`, `V1ChargeRefundedEvent`, `V1ChargeSucceededEvent`, and `V1ChargeUpdatedEvent` with related object `Charge` +* Add support for event notifications `V1ChargeDisputeClosedEvent`, `V1ChargeDisputeCreatedEvent`, `V1ChargeDisputeFundsReinstatedEvent`, `V1ChargeDisputeFundsWithdrawnEvent`, and `V1ChargeDisputeUpdatedEvent` with related object `Dispute` +* Add support for event notifications `V1ChargeRefundUpdatedEvent`, `V1RefundCreatedEvent`, `V1RefundFailedEvent`, and `V1RefundUpdatedEvent` with related object `Refund` +* Add support for event notifications `V1CheckoutSessionAsyncPaymentFailedEvent`, `V1CheckoutSessionAsyncPaymentSucceededEvent`, `V1CheckoutSessionCompletedEvent`, and `V1CheckoutSessionExpiredEvent` with related object `checkout.Session` +* Add support for event notifications `V1ClimateOrderCanceledEvent`, `V1ClimateOrderCreatedEvent`, `V1ClimateOrderDelayedEvent`, `V1ClimateOrderDeliveredEvent`, and `V1ClimateOrderProductSubstitutedEvent` with related object `climate.Order` +* Add support for event notifications `V1ClimateProductCreatedEvent` and `V1ClimateProductPricingUpdatedEvent` with related object `climate.Product` +* Add support for event notifications `V1CouponCreatedEvent`, `V1CouponDeletedEvent`, and `V1CouponUpdatedEvent` with related object `Coupon` +* Add support for event notifications `V1CreditNoteCreatedEvent`, `V1CreditNoteUpdatedEvent`, and `V1CreditNoteVoidedEvent` with related object `CreditNote` +* Add support for event notifications `V1CustomerCreatedEvent`, `V1CustomerDeletedEvent`, and `V1CustomerUpdatedEvent` with related object `Customer` +* Add support for event notifications `V1CustomerSubscriptionCreatedEvent`, `V1CustomerSubscriptionDeletedEvent`, `V1CustomerSubscriptionPausedEvent`, `V1CustomerSubscriptionPendingUpdateAppliedEvent`, `V1CustomerSubscriptionPendingUpdateExpiredEvent`, `V1CustomerSubscriptionResumedEvent`, `V1CustomerSubscriptionTrialWillEndEvent`, and `V1CustomerSubscriptionUpdatedEvent` with related object `Subscription` +* Add support for event notifications `V1CustomerTaxIdCreatedEvent`, `V1CustomerTaxIdDeletedEvent`, and `V1CustomerTaxIdUpdatedEvent` with related object `TaxId` +* Add support for event notification `V1CustomerCashBalanceTransactionCreatedEvent` with related object `CustomerCashBalanceTransaction` +* Add support for event notification `V1FileCreatedEvent` with related object `File` +* Add support for event notifications `V1FinancialConnectionsAccountCreatedEvent`, `V1FinancialConnectionsAccountDeactivatedEvent`, `V1FinancialConnectionsAccountDisconnectedEvent`, `V1FinancialConnectionsAccountReactivatedEvent`, `V1FinancialConnectionsAccountRefreshedBalanceEvent`, `V1FinancialConnectionsAccountRefreshedOwnershipEvent`, and `V1FinancialConnectionsAccountRefreshedTransactionsEvent` with related object `financial_connections.Account` +* Add support for event notifications `V1IdentityVerificationSessionCanceledEvent`, `V1IdentityVerificationSessionCreatedEvent`, `V1IdentityVerificationSessionProcessingEvent`, `V1IdentityVerificationSessionRedactedEvent`, `V1IdentityVerificationSessionRequiresInputEvent`, and `V1IdentityVerificationSessionVerifiedEvent` with related object `identity.VerificationSession` +* Add support for event notifications `V1InvoiceCreatedEvent`, `V1InvoiceDeletedEvent`, `V1InvoiceFinalizationFailedEvent`, `V1InvoiceFinalizedEvent`, `V1InvoiceMarkedUncollectibleEvent`, `V1InvoiceOverdueEvent`, `V1InvoiceOverpaidEvent`, `V1InvoicePaidEvent`, `V1InvoicePaymentActionRequiredEvent`, `V1InvoicePaymentFailedEvent`, `V1InvoicePaymentSucceededEvent`, `V1InvoiceSentEvent`, `V1InvoiceUpcomingEvent`, `V1InvoiceUpdatedEvent`, `V1InvoiceVoidedEvent`, and `V1InvoiceWillBeDueEvent` with related object `Invoice` +* Add support for event notification `V1InvoicePaymentPaidEvent` with related object `InvoicePayment` +* Add support for event notifications `V1InvoiceitemCreatedEvent` and `V1InvoiceitemDeletedEvent` with related object `InvoiceItem` +* Add support for event notifications `V1IssuingAuthorizationCreatedEvent`, `V1IssuingAuthorizationRequestEvent`, and `V1IssuingAuthorizationUpdatedEvent` with related object `issuing.Authorization` +* Add support for event notifications `V1IssuingCardCreatedEvent` and `V1IssuingCardUpdatedEvent` with related object `issuing.Card` +* Add support for event notifications `V1IssuingCardholderCreatedEvent` and `V1IssuingCardholderUpdatedEvent` with related object `issuing.Cardholder` +* Add support for event notifications `V1IssuingDisputeClosedEvent`, `V1IssuingDisputeCreatedEvent`, `V1IssuingDisputeFundsReinstatedEvent`, `V1IssuingDisputeFundsRescindedEvent`, `V1IssuingDisputeSubmittedEvent`, and `V1IssuingDisputeUpdatedEvent` with related object `issuing.Dispute` +* Add support for event notifications `V1IssuingPersonalizationDesignActivatedEvent`, `V1IssuingPersonalizationDesignDeactivatedEvent`, `V1IssuingPersonalizationDesignRejectedEvent`, and `V1IssuingPersonalizationDesignUpdatedEvent` with related object `issuing.PersonalizationDesign` +* Add support for event notifications `V1IssuingTokenCreatedEvent` and `V1IssuingTokenUpdatedEvent` with related object `issuing.Token` +* Add support for event notifications `V1IssuingTransactionCreatedEvent`, `V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent`, and `V1IssuingTransactionUpdatedEvent` with related object `issuing.Transaction` +* Add support for event notification `V1MandateUpdatedEvent` with related object `Mandate` +* Add support for event notifications `V1PaymentIntentAmountCapturableUpdatedEvent`, `V1PaymentIntentCanceledEvent`, `V1PaymentIntentCreatedEvent`, `V1PaymentIntentPartiallyFundedEvent`, `V1PaymentIntentPaymentFailedEvent`, `V1PaymentIntentProcessingEvent`, `V1PaymentIntentRequiresActionEvent`, and `V1PaymentIntentSucceededEvent` with related object `PaymentIntent` +* Add support for event notifications `V1PaymentLinkCreatedEvent` and `V1PaymentLinkUpdatedEvent` with related object `PaymentLink` +* Add support for event notifications `V1PaymentMethodAttachedEvent`, `V1PaymentMethodAutomaticallyUpdatedEvent`, `V1PaymentMethodDetachedEvent`, and `V1PaymentMethodUpdatedEvent` with related object `PaymentMethod` +* Add support for event notifications `V1PayoutCanceledEvent`, `V1PayoutCreatedEvent`, `V1PayoutFailedEvent`, `V1PayoutPaidEvent`, `V1PayoutReconciliationCompletedEvent`, and `V1PayoutUpdatedEvent` with related object `Payout` +* Add support for event notifications `V1PersonCreatedEvent`, `V1PersonDeletedEvent`, and `V1PersonUpdatedEvent` with related object `Person` +* Add support for event notifications `V1PlanCreatedEvent`, `V1PlanDeletedEvent`, and `V1PlanUpdatedEvent` with related object `Plan` +* Add support for event notifications `V1PriceCreatedEvent`, `V1PriceDeletedEvent`, and `V1PriceUpdatedEvent` with related object `Price` +* Add support for event notifications `V1ProductCreatedEvent`, `V1ProductDeletedEvent`, and `V1ProductUpdatedEvent` with related object `Product` +* Add support for event notifications `V1PromotionCodeCreatedEvent` and `V1PromotionCodeUpdatedEvent` with related object `PromotionCode` +* Add support for event notifications `V1QuoteAcceptedEvent`, `V1QuoteCanceledEvent`, `V1QuoteCreatedEvent`, and `V1QuoteFinalizedEvent` with related object `Quote` +* Add support for event notifications `V1RadarEarlyFraudWarningCreatedEvent` and `V1RadarEarlyFraudWarningUpdatedEvent` with related object `radar.EarlyFraudWarning` +* Add support for event notifications `V1ReviewClosedEvent` and `V1ReviewOpenedEvent` with related object `Review` +* Add support for event notifications `V1SetupIntentCanceledEvent`, `V1SetupIntentCreatedEvent`, `V1SetupIntentRequiresActionEvent`, `V1SetupIntentSetupFailedEvent`, and `V1SetupIntentSucceededEvent` with related object `SetupIntent` +* Add support for event notification `V1SigmaScheduledQueryRunCreatedEvent` with related object `sigma.ScheduledQueryRun` +* Add support for event notifications `V1SourceCanceledEvent`, `V1SourceChargeableEvent`, `V1SourceFailedEvent`, and `V1SourceRefundAttributesRequiredEvent` with related object `Source` +* Add support for event notifications `V1SubscriptionScheduleAbortedEvent`, `V1SubscriptionScheduleCanceledEvent`, `V1SubscriptionScheduleCompletedEvent`, `V1SubscriptionScheduleCreatedEvent`, `V1SubscriptionScheduleExpiringEvent`, `V1SubscriptionScheduleReleasedEvent`, and `V1SubscriptionScheduleUpdatedEvent` with related object `SubscriptionSchedule` +* Add support for event notification `V1TaxSettingsUpdatedEvent` with related object `tax.Settings` +* Add support for event notifications `V1TaxRateCreatedEvent` and `V1TaxRateUpdatedEvent` with related object `TaxRate` +* Add support for event notifications `V1TerminalReaderActionFailedEvent`, `V1TerminalReaderActionSucceededEvent`, and `V1TerminalReaderActionUpdatedEvent` with related object `terminal.Reader` +* Add support for event notifications `V1TestHelpersTestClockAdvancingEvent`, `V1TestHelpersTestClockCreatedEvent`, `V1TestHelpersTestClockDeletedEvent`, `V1TestHelpersTestClockInternalFailureEvent`, and `V1TestHelpersTestClockReadyEvent` with related object `test_helpers.TestClock` +* Add support for event notifications `V1TopupCanceledEvent`, `V1TopupCreatedEvent`, `V1TopupFailedEvent`, `V1TopupReversedEvent`, and `V1TopupSucceededEvent` with related object `Topup` +* Add support for event notifications `V1TransferCreatedEvent`, `V1TransferReversedEvent`, and `V1TransferUpdatedEvent` with related object `Transfer` +* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `v2.commerce.ProductCatalogImport` +* Add support for event notifications `V2CoreApprovalRequestApprovedEvent`, `V2CoreApprovalRequestCanceledEvent`, `V2CoreApprovalRequestFailedEvent`, `V2CoreApprovalRequestRejectedEvent`, and `V2CoreApprovalRequestSucceededEvent` with related object `v2.core.ApprovalRequest` +* Add support for event notification `V2CoreClaimableSandboxUpdatedEvent` with related object `v2.core.ClaimableSandbox` +* Add support for event notifications `V2ExtendWorkflowRunFailedEvent`, `V2ExtendWorkflowRunStartedEvent`, and `V2ExtendWorkflowRunSucceededEvent` with related object `v2.extend.WorkflowRun` +* Add support for event notifications `V2OrchestratedCommerceAgreementConfirmedEvent`, `V2OrchestratedCommerceAgreementCreatedEvent`, `V2OrchestratedCommerceAgreementPartiallyConfirmedEvent`, and `V2OrchestratedCommerceAgreementTerminatedEvent` with related object `v2.orchestrated_commerce.Agreement` +* ⚠️ Remove support for event notification `V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent` with related object `v2.core.ClaimableSandbox` +* Add support for error type `FxQuoteExpiredError` +* Add support for error codes `invalid_workflow_input_parameters` and `workflow_not_invokable` on `CannotProceedError` diff --git a/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..ef449f36e --- /dev/null +++ b/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,78 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1800 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.2.0a2 +--- + +* Add support for new resource `v2.data.analytics.MetricQueryResult` +* Add support for `create`, `retrieve`, and `revoke` methods on resource `shared_payment.IssuedToken` +* Add support for `create` method on resource `v2.data.analytics.MetricQueryResult` +* Add support for `balance_report` and `payout_reconciliation_report` on `AccountSession.Component` and `AccountSessionCreateParamsComponent` +* Add support for `app_distribution` and `sunbit_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` +* ⚠️ Add support for new values `fee_credit_funding`, `inbound_transfer_reversal`, and `inbound_transfer` on enum `BalanceTransaction.type` +* Add support for `sunbit` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* ⚠️ Add support for new values `phantom_cash` and `usdt` on enums `Charge.PaymentMethodDetail.Crypto.token_currency`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto.token_currency`, and `PaymentRecord.PaymentMethodDetail.Crypto.token_currency` +* Add support for `last4` on `Charge.PaymentMethodDetail.GiftCard`, `PaymentAttemptRecord.PaymentMethodDetail.GiftCard`, and `PaymentRecord.PaymentMethodDetail.GiftCard` +* Add support for `location` and `reader` on `Charge.PaymentMethodDetail.Klarna`, `PaymentAttemptRecord.PaymentMethodDetail.Klarna`, and `PaymentRecord.PaymentMethodDetail.Klarna` +* Add support for new value `sunbit` on enum `checkout.SessionCreateParams.excluded_payment_method_types` +* Add support for `blik` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, `SubscriptionModifyParamsPaymentSettingPaymentMethodOption`, and `checkout.SessionCreateParamsPaymentMethodOption` +* Add support for new value `sunbit` on enum `checkout.SessionCreateParams.payment_method_types` +* ⚠️ Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `Checkout.Session.CollectedInformation.TaxId.type`, `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Order.TaxDetail.TaxId.type`, `QuotePreviewInvoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` +* Change `Checkout.Session.managed_payments`, `PaymentIntent.managed_payments`, `PaymentLink.managed_payments`, and `Subscription.managed_payments` to be required +* Add support for `shared_payment_granted_token` on `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentMethod`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* Add support for new value `sunbit` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* ⚠️ Add support for new value `sunbit` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* ⚠️ Change type of `CreditNote.TotalTax.TaxRateDetail.tax_rate`, `CreditNoteLineItem.Tax.TaxRateDetail.tax_rate`, `Invoice.TotalTax.TaxRateDetail.tax_rate`, `InvoiceLineItem.Tax.TaxRateDetail.tax_rate`, and `QuotePreviewInvoice.TotalTax.TaxRateDetail.tax_rate` from `string` to `expandable($TaxRate)` +* Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `CustomerCreateParamsTaxIdDatum.type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParamsCustomerDetailTaxId.type`, `OrderCreateParamsTaxDetailTaxId.type`, `OrderModifyParamsTaxDetailTaxId.type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParamsCustomerDetailTaxId.type` +* Add support for new value `sunbit` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `buyer_consents` on `delegated_checkout.RequestedSessionConfirmParams` +* Add support for `consents` on `DelegatedCheckout.RequestedSession.BuyerConsent.Marketing` +* Add support for new value `blik` on enums `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* ⚠️ Add support for new value `blik` on enums `Invoice.PaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, and `Subscription.PaymentSetting.payment_method_types` +* Change `Invoice.PaymentSetting.PaymentMethodOption.pix`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption.pix`, and `Subscription.PaymentSetting.PaymentMethodOption.pix` to be required +* Change `Invoice.PaymentSetting.PaymentMethodOption.upi`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption.upi`, and `Subscription.PaymentSetting.PaymentMethodOption.upi` to be required +* Add support for `payment_facilitator_id` and `sub_merchant_id` on `issuing.AuthorizationCreateParamsMerchantDatum`, `issuing.TransactionCreateForceCaptureParamsMerchantDatum`, and `issuing.TransactionCreateUnlinkedRefundParamsMerchantDatum` +* Add support for `card_presence` on `Issuing.Authorization` +* Add support for `allowed_card_presences` and `blocked_card_presences` on `Issuing.Card.SpendingControl`, `Issuing.Cardholder.SpendingControl`, `issuing.CardCreateParamsSpendingControl`, `issuing.CardModifyParamsSpendingControl`, `issuing.CardholderCreateParamsSpendingControl`, and `issuing.CardholderModifyParamsSpendingControl` +* ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.cancellation_reason` +* ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.replacement_reason` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.GiftCard.balance` and `PaymentRecord.PaymentMethodDetail.GiftCard.balance` from `PaymentFlowsPrivatePaymentMethodsGiftCardDeprecatedDetailsResourceBalanceAmount` to `nullable(PaymentsPrimitivesPaymentRecordsResourcePaymentMethodGiftCardDetailsResourceBalance)` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.GiftCard.brand` and `PaymentRecord.PaymentMethodDetail.GiftCard.brand` from `enum('fiserv_valuelink'|'givex'|'svs')` to `nullable(enum('fiserv_valuelink'|'givex'|'svs'))` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.GiftCard.first6` and `PaymentRecord.PaymentMethodDetail.GiftCard.first6` from `string` to `nullable(string)` +* ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.GiftCard.transaction_id` and `PaymentRecord.PaymentMethodDetail.GiftCard.transaction_id` from `string` to `nullable(string)` +* Add support for new value `sunbit` on enums `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* Add support for `amount_to_confirm` on `PaymentIntentConfirmParams` +* ⚠️ Add support for new value `sunbit` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` +* Add support for `klarna_display_qr_code` on `PaymentIntent.NextAction` +* Add support for new value `sunbit` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkModifyParams.payment_method_types` +* ⚠️ Add support for new value `sunbit` on enum `PaymentLink.payment_method_types` +* Add support for `validation_errors` on `Privacy.RedactionJob` +* Add support for `tax_details` on `Product` +* ⚠️ Change type of `Radar.PaymentEvaluation.ClientDeviceMetadataDetail.radar_session` from `string` to `nullable(string)` +* ⚠️ Add support for new values `low`, `not_assessed`, and `unknown` on enum `Radar.PaymentEvaluation.Signal.FraudulentPayment.risk_level` +* Add support for new value `account` on enum `radar.ValueListCreateParams.item_type` +* ⚠️ Add support for new value `account` on enum `Radar.ValueList.item_type` +* Add support for `moto` on `SetupAttempt.PaymentMethodDetail.Card` +* Change `SetupIntent.NextAction.PixDisplayQrCode.data` to be required +* Change `SetupIntent.NextAction.PixDisplayQrCode.expires_at` to be required +* Change `SetupIntent.NextAction.PixDisplayQrCode.hosted_instructions_url` to be required +* Change `SetupIntent.NextAction.PixDisplayQrCode.image_url_png` to be required +* Change `SetupIntent.NextAction.PixDisplayQrCode.image_url_svg` to be required +* Add support for `admissions_tax`, `attendance_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `resort_tax`, and `tourism_tax` on `tax.RegistrationCreateParamsCountryOptionMe` +* Add support for `purpose` on `Treasury.OutboundPayment` and `treasury.OutboundPaymentCreateParams` +* Add support for new value `2026-04-22.dahlia` on enum `WebhookEndpointCreateParams.api_version` +* Add support for `crypto_wallet` on `V2.MoneyManagement.FinancialAddress.Credential` +* Add support for `mx_bank_account` on `V2.MoneyManagement.FinancialAddress.Credential` and `V2.MoneyManagement.ReceivedCredit.BankTransfer` +* ⚠️ Add support for new values `crypto_wallet` and `mx_bank_account` on enum `V2.MoneyManagement.FinancialAddress.Credential.type` +* Add support for `crypto_wallet_transfer` on `V2.MoneyManagement.ReceivedCredit` +* Add support for `eu_bank_account` on `V2.MoneyManagement.ReceivedCredit.BankTransfer` +* ⚠️ Add support for new values `crypto_wallet`, `eu_bank_account`, and `mx_bank_account` on enum `V2.MoneyManagement.ReceivedCredit.BankTransfer.origin_type` +* ⚠️ Add support for new value `crypto_wallet_transfer` on enum `V2.MoneyManagement.ReceivedCredit.type` +* Change `v2.payments.OffSessionPaymentCaptureParams.metadata` and `v2.payments.OffSessionPaymentCreateParams.metadata` to be optional +* Add support for `crypto_properties` and `settlement_currency` on `v2.money_management.FinancialAddressCreateParams` +* Add support for new values `crypto_wallet` and `mx_bank_account` on enum `v2.money_management.FinancialAddressCreateParams.type` +* Add support for event notifications `V2CoreApprovalRequestCreatedEvent` and `V2CoreApprovalRequestExpiredEvent` with related object `v2.core.ApprovalRequest` +* Add support for event notification `V2ExtendExtensionRunFailedEvent` +* Add support for error codes `action_blocked` and `approval_required` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` diff --git a/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..ba0529c77 --- /dev/null +++ b/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1802 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.2.0a3 +--- + +* Add support for `debit_card` on `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead`, `V2.Core.Account.Identity.Attestation.TermsOfService.CardCreator.Consumer.Lead`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLead`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfServiceCardCreatorConsumerLead`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLead`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfServiceCardCreatorConsumerLead` +* ⚠️ Add support for new value `consumer.lead.debit_card` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* ⚠️ Add support for new value `consumer.lead.debit_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` diff --git a/.hark/changes/2026-05-05_xavdid_add-eventnotific-private.change.md b/.hark/changes/2026-05-05_xavdid_add-eventnotific-private.change.md new file mode 100644 index 000000000..bee18cc73 --- /dev/null +++ b/.hark/changes/2026-05-05_xavdid_add-eventnotific-private.change.md @@ -0,0 +1,5 @@ +--- +title: Add EventNotificationHandler (private preview) +pr_link: https://github.com/stripe/stripe-python/pull/1805 +released_in_version: 15.2.0a4 +--- diff --git a/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..fb479fd74 --- /dev/null +++ b/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,21 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1804 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.2.0a4 +--- + +* Add support for new resource `PaymentLocation` +* Add support for `create`, `delete`, `modify`, and `retrieve` methods on resource `PaymentLocation` +* Add support for `protections` on `AccountCreateParamsCapabilityCardPayment`, `AccountModifyParamsCapabilityCardPayment`, and `Capability` +* Add support for `gift_card` on `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodDatum`, and `SharedPayment.GrantedToken.PaymentMethodDetail` +* Add support for new value `gift_card` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* ⚠️ Add support for new value `gift_card` on enums `ConfirmationToken.PaymentMethodPreview.type`, `PaymentMethod.type`, and `SharedPayment.GrantedToken.PaymentMethodDetail.type` +* Add support for new value `gift_card` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `metadata` on `delegated_checkout.RequestedSessionConfirmParams` +* Add support for `credited_items` on `InvoiceItem.ProrationDetail` +* Add support for `network_lifecycle` on `Issuing.Dispute` +* Add support for new value `gift_card` on enums `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* ⚠️ Add support for new value `gift_card` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` +* Add support for `status_details` on `Subscription` diff --git a/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..b9e8e7cf2 --- /dev/null +++ b/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,31 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1807 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.2.0a5 +--- + +* Add support for new resources `v2.core.FeeBatch`, `v2.core.FeeEntry`, `v2.money_management.DebitDispute`, and `v2.money_management.FinancialAccountStatement` +* Add support for `simulate_network_lifecycle_pre_arbitration_response` and `simulate_network_lifecycle_pre_arbitration_submission` test helper methods on resource `issuing.Dispute` +* Add support for `list` method on resource `PaymentLocation` +* Add support for `list` and `retrieve` methods on resources `v2.core.FeeBatch`, `v2.core.FeeEntry`, and `v2.money_management.FinancialAccountStatement` +* Add support for `create`, `list`, and `retrieve` methods on resource `v2.money_management.DebitDispute` +* Add support for `discounts` on `DelegatedCheckout.RequestedSession`, `delegated_checkout.RequestedSessionCreateParams`, and `delegated_checkout.RequestedSessionModifyParams` +* Add support for `amount_sale` on `DelegatedCheckout.RequestedSession.LineItemDetail` and `DelegatedCheckout.RequestedSession.TotalDetail` +* Add support for `amount_discount` and `breakdown` on `DelegatedCheckout.RequestedSession.TotalDetail` +* ⚠️ Remove support for `check_deposit_address` on `Invoice.PaymentSetting.PaymentMethodOption.CheckScan`, `InvoiceCreateParamsPaymentSettingPaymentMethodOptionCheckScan`, `InvoiceModifyParamsPaymentSettingPaymentMethodOptionCheckScan`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption.CheckScan`, `Subscription.PaymentSetting.PaymentMethodOption.CheckScan`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOptionCheckScan`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOptionCheckScan` +* Add support for `payment_evaluations` on `PaymentAttemptRecordReportGuaranteedParams`, `PaymentRecordReportPaymentAttemptGuaranteedParams`, `PaymentRecordReportPaymentAttemptParamsGuaranteed`, and `PaymentRecordReportPaymentParamsGuaranteed` +* Add support for `location` on `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsPaymentDetail`, `PaymentIntentModifyParamsPaymentDetail`, `SetupIntentConfirmParamsSetupDetail`, `SetupIntentCreateParamsSetupDetail`, and `SetupIntentModifyParamsSetupDetail` +* Add support for `onboarding_data_update_acknowledged` on `PaymentLocationModifyParams` +* Change `PaymentLocationCreateParamsAddress.country` and `PaymentLocationModifyParamsAddress.country` to be optional +* Add support for `customer` on `radar.CustomerEvaluationModifyParams` +* Add support for `status` on `Radar.CustomerEvaluation` and `radar.CustomerEvaluationModifyParams` +* Change `radar.CustomerEvaluationModifyParams.type` to be optional +* Add support for `payment_behavior` on `SubscriptionResumeParams` +* Add support for `dispute_details` on `V2.MoneyManagement.ReceivedDebit` +* ⚠️ Add support for new value `debit_dispute` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category` +* Add support for `debit_dispute` on `V2.MoneyManagement.Transaction.Flow` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow` +* ⚠️ Add support for new value `debit_dispute` on enums `V2.MoneyManagement.Transaction.Flow.type` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.type` +* Add support for `payment_attempt_record` on `EventsV2PaymentsOffSessionPaymentAttemptFailedEvent` and `EventsV2PaymentsOffSessionPaymentFailedEvent` +* Add support for event notifications `V2MoneyManagementFinancialAccountStatementCreatedEvent` and `V2MoneyManagementFinancialAccountStatementRestatedEvent` with related object `v2.money_management.FinancialAccountStatement` diff --git a/.hark/changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md b/.hark/changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md new file mode 100644 index 000000000..a2f0fd860 --- /dev/null +++ b/.hark/changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md @@ -0,0 +1,5 @@ +--- +title: remove unnecessary cast +pr_link: https://github.com/stripe/stripe-python/pull/1811 +released_in_version: 15.2.0a6 +--- diff --git a/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..3290ebc82 --- /dev/null +++ b/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,25 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1809 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.2.0a6 +--- + +* Add support for new resource `PaymentLocationCapability` +* Add support for `list`, `modify`, and `retrieve` methods on resource `PaymentLocationCapability` +* Add support for `close` and `simulate_network_lifecycle_dispute_response` test helper methods on resource `issuing.Dispute` +* Change type of `delegated_checkout.RequestedSessionModifyParamsDiscount.codes` from `array(string)` to `emptyable(array(string))` +* ⚠️ Remove support for `credited_items` on `InvoiceItem.ProrationDetail` +* Add support for `balance_response` on `Issuing.Authorization` +* Add support for `payment_evaluations` on `PaymentAttemptRecordReportCanceledParams`, `PaymentAttemptRecordReportFailedParams`, `PaymentRecordReportPaymentAttemptCanceledParams`, `PaymentRecordReportPaymentAttemptFailedParams`, `PaymentRecordReportPaymentAttemptParamsFailed`, and `PaymentRecordReportPaymentParamsFailed` +* Add support for `enabled` on `PaymentIntentConfirmParamsPaymentDetailBenefitFrMealVoucher`, `PaymentIntentCreateParamsPaymentDetailBenefitFrMealVoucher`, `PaymentIntentModifyParamsPaymentDetailBenefitFrMealVoucher`, `SetupIntentConfirmParamsSetupDetailBenefitFrMealVoucher`, `SetupIntentCreateParamsSetupDetailBenefitFrMealVoucher`, and `SetupIntentModifyParamsSetupDetailBenefitFrMealVoucher` +* Add support for `advanced_feature_details` and `allowed_payment_method_types` on `PaymentIntent` +* Change type of `PaymentLocationModifyParamsAddress.city` from `string` to `emptyable(string)` +* Change type of `PaymentLocationModifyParamsAddress.line1` from `string` to `emptyable(string)` +* Change type of `PaymentLocationModifyParamsAddress.line2` from `string` to `emptyable(string)` +* Change type of `PaymentLocationModifyParamsAddress.postal_code` from `string` to `emptyable(string)` +* Change type of `PaymentLocationModifyParamsAddress.state` from `string` to `emptyable(string)` +* Change `SubscriptionPauseParams.type` to be optional +* ⚠️ Remove support for `payment_behavior` on `SubscriptionResumeParams` +* ⚠️ Remove support for `status_details` on `Subscription` diff --git a/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..008642fcd --- /dev/null +++ b/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,24 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1815 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.3.0a1 +--- + +* Change type of `billing.AlertCreateParamsSpendThreshold.group_by` from `literal('pricing_plan_subscription')` to `enum('billing_cadence'|'pricing_plan_subscription')` +* ⚠️ Change type of `Billing.Alert.SpendThreshold.group_by` from `literal('pricing_plan_subscription')` to `enum('billing_cadence'|'pricing_plan_subscription')` +* Change `DelegatedCheckout.RequestedSession.affiliate_attributions` to be required +* ⚠️ Add support for new value `institution_requirement` on enum `FinancialConnections.Account.StatusDetail.Inactive.cause` +* Add support for `wechat_pay` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOption` +* Add support for `gift_card` on `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodOption`, and `PaymentIntentModifyParamsPaymentMethodOption` +* Add support for `payment_details` on `PaymentIntentCreateParamsPaymentsOrchestration` +* Add support for `enabled` on `PaymentIntent.PaymentDetail.Benefit.FrMealVoucher` and `SetupIntent.SetupDetail.Benefit.FrMealVoucher` +* ⚠️ Remove support for `login_failed`, `registration_failed`, `registration_success`, and `type` on `radar.CustomerEvaluationModifyParams` +* ⚠️ Remove support for `latest_version` on `V2.Billing.LicenseFee`, `V2.Billing.PricingPlan`, and `V2.Billing.RateCard` +* ⚠️ Remove support for `service_interval_count` and `service_interval` on `V2.Billing.LicenseFee` and `V2.Billing.RateCard` +* Add support for `debit_agreement` on `V2.MoneyManagement.ReceivedCredit.StripeBalancePayment` +* Add support for new value `chaps` on enum `v2.FinancialAddressCreditSimulationCreditParams.network` +* Add support for `canonical_path` on `EventsV2CoreHealthTrafficVolumeDropFiringEvent.Impact` and `EventsV2CoreHealthTrafficVolumeDropResolvedEvent.Impact` +* Add support for snapshot event `payment_intent.expired` with resource `PaymentIntent` +* Add support for event notifications `V2CoreHealthElementsErrorFiringEvent`, `V2CoreHealthElementsErrorResolvedEvent`, `V2CoreHealthInvoiceCountDroppedFiringEvent`, and `V2CoreHealthInvoiceCountDroppedResolvedEvent` diff --git a/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..4970422c7 --- /dev/null +++ b/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,31 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1818 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.3.0a2 +--- + +* Add support for new resources `delegated_checkout.OrderEvent`, `delegated_checkout.Order`, `v2.billing.ContractLicensePricingQuantityChange`, `v2.billing.Contract`, and `v2.signals.AccountSignal` +* Add support for `retrieve` method on resource `delegated_checkout.Order` +* Add support for `list_orders` method on resource `delegated_checkout.RequestedSession` +* Add support for `list` and `retrieve` methods on resource `v2.signals.AccountSignal` +* Add support for `activate`, `cancel`, `create`, `list`, `modify`, and `retrieve` methods on resource `v2.billing.Contract` +* Add support for `birth_address` on `AccountCreateParamsIndividual`, `AccountCreatePersonParams`, `AccountModifyParamsIndividual`, `AccountModifyPersonParams`, `Person`, `TokenCreateParamsAccountIndividual`, and `TokenCreateParamsPerson` +* Change type of `ChargeCaptureParamsPaymentDetailMoneyService.transaction_type`, `ChargeModifyParamsPaymentDetailMoneyService.transaction_type`, `PaymentIntentCaptureParamsPaymentDetailMoneyService.transaction_type`, `PaymentIntentConfirmParamsPaymentDetailMoneyService.transaction_type`, `PaymentIntentCreateParamsPaymentDetailMoneyService.transaction_type`, and `PaymentIntentModifyParamsPaymentDetailMoneyService.transaction_type` from `literal('account_funding')` to `enum('account_funding'|'debt_repayment')` +* ⚠️ Add support for new value `proserv` on enums `Checkout.Session.AutomaticSurcharge.provider` and `PaymentLink.AutomaticSurcharge.provider` +* Add support for `provisioning_decision` and `token_type` on `Issuing.Authorization.TokenDetail` and `Issuing.Token` +* Add support for `token_decision_recommendation` on `Issuing.Authorization.TokenDetail.NetworkDatum.Visa` and `Issuing.Token.NetworkDatum.Visa` +* Add support for `language` on `Issuing.Token.NetworkDatum.Device` +* Add support for `digital_asset_category` on `PaymentIntentConfirmParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentModifyParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding` +* Add support for `static_address` on `PaymentIntent.PaymentMethodOption.Crypto.DepositOption`, `PaymentIntentConfirmParamsPaymentMethodOptionCryptoDepositOption`, `PaymentIntentCreateParamsPaymentMethodOptionCryptoDepositOption`, and `PaymentIntentModifyParamsPaymentMethodOptionCryptoDepositOption` +* Add support for `payment_reference` on `PaymentIntentCreateParamsPaymentsOrchestration` +* ⚠️ Remove support for `payment_details` on `PaymentIntentCreateParamsPaymentsOrchestration` +* ⚠️ Change type of `PaymentIntent.PaymentDetail.MoneyService.transaction_type` from `literal('account_funding')` to `enum('account_funding'|'debt_repayment')` +* Add support for `ending_before`, `limit`, and `starting_after` on `PaymentLocationListParams` +* ⚠️ Change `radar.IssuingAuthorizationEvaluationCreateParamsCardDetail.last4` to be required +* Add support for `schema` on `V2.Data.Reporting.QueryRun.Result.File` and `V2.Reporting.ReportRun.Result.File` +* ⚠️ Add support for new value `payout_method_amount_limit_exceeded` on enum `V2.MoneyManagement.OutboundPayment.StatusDetail.Failed.reason` +* Add support for `include` on `v2.data.reporting.QueryRunRetrieveParams` and `v2.reporting.ReportRunRetrieveParams` +* Add support for `requirements_collector` on `v2.core.AccountCreateParamsDefaultResponsibility` and `v2.core.AccountModifyParamsDefaultResponsibility` +* Add support for event notification `V2SignalsAccountSignalMerchantDelinquencyReadyEvent` with related object `v2.signals.AccountSignal` diff --git a/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..f2a708e62 --- /dev/null +++ b/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,44 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1827 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.3.0a3 +--- + +* Add support for new resources `GiftCardOperation`, `GiftCard`, and `TaxFund` +* Add support for `retrieve` method on resource `GiftCardOperation` +* Add support for `activate`, `cashout`, `check_balance`, `create`, `reload`, `retrieve`, and `void_operation` methods on resource `GiftCard` +* Add support for `list` and `retrieve` methods on resource `TaxFund` +* Add support for `update_crypto_refund_address` method on resource `PaymentIntent` +* Add support for `performance_location_details` on `Tax.CalculationLineItem`, `Tax.TransactionLineItem`, and `tax.CalculationCreateParamsLineItem` +* ⚠️ Remove support for `money_services` on `ChargeCaptureParamsPaymentDetail`, `ChargeModifyParamsPaymentDetail`, and `PaymentIntentCaptureParamsPaymentDetail` +* Add support for `fr_meal_voucher` on `Charge.PaymentMethodDetail.Card.Benefit` +* Add support for `multicapture` on `Charge.PaymentMethodDetail.CardPresent`, `ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, `PaymentAttemptRecord.PaymentMethodDetail.CardPresent`, `PaymentMethod.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, and `PaymentRecord.PaymentMethodDetail.CardPresent` +* Add support for `pix` on `Checkout.Session.CurrentAttempt.PaymentMethodDetail` +* ⚠️ Add support for new value `jaywan` on enum `Checkout.Session.CurrentAttempt.PaymentMethodDetail.Card.brand` +* Add support for `provisional_credit` on `Issuing.Dispute` and `issuing.DisputeModifyParams` +* Add support for `reason` on `PaymentAttemptRecordReportCanceledParams` and `PaymentRecordReportPaymentAttemptCanceledParams` +* Add support for `fiserv_valuelink`, `givex`, and `svs` on `PaymentAttemptRecord.ProcessorDetail` and `PaymentRecord.ProcessorDetail` +* ⚠️ Change type of `PaymentAttemptRecord.ProcessorDetail.type` and `PaymentRecord.ProcessorDetail.type` from `literal('custom')` to `enum('custom'|'fiserv_valuelink'|'givex'|'svs')` +* Add support for `capture_by` and `capture_delay` on `PaymentIntent.PaymentMethodOption.CardPresent`, `PaymentIntent.PaymentMethodOption.Card`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent`, `PaymentIntentConfirmParamsPaymentMethodOptionCard`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsPaymentMethodOptionCard`, `PaymentIntentModifyParamsPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsPaymentMethodOptionCard` +* ⚠️ Remove support for `liquid_asset` on `PaymentIntentConfirmParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentModifyParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding` +* Add support for `request_multicapture` on `PaymentIntent.PaymentMethodOption.CardPresent`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresent` +* Add support for new value `transaction_verification` on enums `PaymentIntentConfirmParamsPaymentMethodOptionCrypto.mode`, `PaymentIntentCreateParamsPaymentMethodOptionCrypto.mode`, and `PaymentIntentModifyParamsPaymentMethodOptionCrypto.mode` +* Add support for `ignore_application_fee`, `ignore_transfer_data`, and `request_partial_authorization` on `PaymentIntentConfirmParamsPaymentMethodOptionGiftCard`, `PaymentIntentCreateParamsPaymentMethodOptionGiftCard`, and `PaymentIntentModifyParamsPaymentMethodOptionGiftCard` +* Change `PaymentIntentConfirmParamsPaymentDetailBenefitFrMealVoucher.siret`, `PaymentIntentCreateParamsPaymentDetailBenefitFrMealVoucher.siret`, `PaymentIntentModifyParamsPaymentDetailBenefitFrMealVoucher.siret`, `SetupIntentConfirmParamsSetupDetailBenefitFrMealVoucher.siret`, `SetupIntentCreateParamsSetupDetailBenefitFrMealVoucher.siret`, and `SetupIntentModifyParamsSetupDetailBenefitFrMealVoucher.siret` to be optional +* Add support for `latest_payment_attempt_record` and `payment_record` on `PaymentIntent` +* ⚠️ Remove support for `reauthorization` and `reauthorize_before` on `PaymentIntent.AdvancedFeatureDetail` +* Add support for `refund_address` on `PaymentIntent.NextAction.CryptoDisplayDetail.DepositAddress.Base`, `PaymentIntent.NextAction.CryptoDisplayDetail.DepositAddress.Solana`, and `PaymentIntent.NextAction.CryptoDisplayDetail.DepositAddress.Tempo` +* Add support for `location` on `PaymentIntent.PaymentDetail` and `SetupIntent.SetupDetail` +* ⚠️ Add support for new value `transaction_verification` on enum `PaymentIntent.PaymentMethodOption.Crypto.mode` +* Add support for `data` on `radar.AccountEvaluationCreateParamsLoginInitiatedClientDeviceMetadataDetail`, `radar.AccountEvaluationCreateParamsRegistrationInitiatedClientDeviceMetadataDetail`, and `radar.CustomerEvaluationCreateParamsEvaluationContextClientDetail` +* Change `radar.AccountEvaluationCreateParamsLoginInitiatedClientDeviceMetadataDetail.radar_session`, `radar.AccountEvaluationCreateParamsRegistrationInitiatedClientDeviceMetadataDetail.radar_session`, and `radar.CustomerEvaluationCreateParamsEvaluationContextClientDetail.radar_session` to be optional +* ⚠️ Add support for new value `promotion` on enum `V2.Commerce.ProductCatalogImport.feed_type` +* ⚠️ Change type of `V2.Core.FeeBatch.Adjustment.tax_adjustment` from `amount` to `an object` +* ⚠️ Change type of `V2.Core.FeeBatch.CollectionRecord.Tax.amount`, `V2.Core.FeeBatch.CollectionRecord.amount`, `V2.Core.FeeBatch.Tax.amount`, `V2.Core.FeeBatch.amount`, `V2.Core.FeeEntry.Tax.amount`, and `V2.Core.FeeEntry.amount` from `amount` to `an object` +* ⚠️ Add support for new value `tax_fund` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category` +* Add support for `tax_fund` on `V2.MoneyManagement.Transaction.Flow` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow` +* ⚠️ Add support for new value `tax_fund` on enums `V2.MoneyManagement.Transaction.Flow.type` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.type` +* Add support for new value `promotion` on enum `v2.commerce.ProductCatalogImportCreateParams.feed_type` +* Add support for error code `default_us_bank_account_cannot_be_archived` on `CannotProceedError` diff --git a/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..44d92931d --- /dev/null +++ b/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,57 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1828 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.3.0a4 +--- + +* Add support for `retrieve` method on resource `radar.CustomerEvaluation` +* Add support for `disable_stripe_user_authentication` on `AccountSession.Component.Bill.Feature` +* Add support for `tamara` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodDatum`, and `SharedPayment.GrantedToken.PaymentMethodDetail` +* Add support for `status` on `Charge.PaymentMethodDetail.Card.AccountFunding` +* ⚠️ Remove support for `processed_transaction_type` on `Charge.PaymentMethodDetail.Card.AccountFunding` +* Add support for `items` on `checkout.SessionCreateParams` +* ⚠️ Remove support for `brand` on `Checkout.Session.CurrentAttempt.PaymentMethodDetail.Card` +* Add support for new value `tamara` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* ⚠️ Remove support for `first6` on `ConfirmationToken.PaymentMethodPreview.GiftCard`, `PaymentMethod.GiftCard`, and `SharedPayment.GrantedToken.PaymentMethodDetail.GiftCard` +* ⚠️ Add support for new value `tamara` on enums `ConfirmationToken.PaymentMethodPreview.type`, `PaymentMethod.type`, and `SharedPayment.GrantedToken.PaymentMethodDetail.type` +* Add support for new value `tamara` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `fingerprint` on `GiftCard` +* Add support for `blik` on `Mandate.PaymentMethodDetail` +* Add support for `buyer_id` on `Order.Payment.Setting.PaymentMethodOption.WechatPay`, `OrderCreateParamsPaymentSettingPaymentMethodOptionWechatPay`, `OrderModifyParamsPaymentSettingPaymentMethodOptionWechatPay`, `PaymentIntent.PaymentMethodOption.WechatPay`, `PaymentIntentConfirmParamsPaymentMethodOptionWechatPay`, `PaymentIntentCreateParamsPaymentMethodOptionWechatPay`, and `PaymentIntentModifyParamsPaymentMethodOptionWechatPay` +* Add support for new value `mini_program` on enums `OrderCreateParamsPaymentSettingPaymentMethodOptionWechatPay.client`, `OrderModifyParamsPaymentSettingPaymentMethodOptionWechatPay.client`, `PaymentIntentConfirmParamsPaymentMethodOptionWechatPay.client`, `PaymentIntentCreateParamsPaymentMethodOptionWechatPay.client`, and `PaymentIntentModifyParamsPaymentMethodOptionWechatPay.client` +* ⚠️ Add support for new value `mini_program` on enums `Order.Payment.Setting.PaymentMethodOption.WechatPay.client` and `PaymentIntent.PaymentMethodOption.WechatPay.client` +* Add support for `payment_method_details` on `PaymentAttemptRecordReportGuaranteedParams` and `PaymentRecordReportPaymentAttemptGuaranteedParams` +* Add support for `failed` and `refund_group` on `PaymentAttemptRecordReportRefundParams` and `PaymentRecordReportRefundParams` +* Change type of `PaymentAttemptRecordReportRefundParams.outcome` and `PaymentRecordReportRefundParams.outcome` from `literal('refunded')` to `enum('failed'|'refunded')` +* Add support for new value `tamara` on enums `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, and `PaymentIntentModifyParams.allowed_payment_method_types` +* Add support for new value `tamara` on enums `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* Add support for `beneficiary_details` on `PaymentIntent.PaymentDetail.MoneyService`, `PaymentIntentConfirmParamsPaymentDetailMoneyService`, `PaymentIntentCreateParamsPaymentDetailMoneyService`, and `PaymentIntentModifyParamsPaymentDetailMoneyService` +* ⚠️ Remove support for `beneficiary_account` and `beneficiary_details` on `PaymentIntent.PaymentDetail.MoneyService.AccountFunding`, `PaymentIntentConfirmParamsPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentDetailMoneyServiceAccountFunding`, and `PaymentIntentModifyParamsPaymentDetailMoneyServiceAccountFunding` +* ⚠️ Remove support for `sender_account` on `PaymentIntentConfirmParamsPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentDetailMoneyServiceAccountFunding`, and `PaymentIntentModifyParamsPaymentDetailMoneyServiceAccountFunding` +* Add support for `given_name` and `surname` on `PaymentIntent.PaymentDetail.MoneyService.AccountFunding.SenderDetail`, `PaymentIntentConfirmParamsPaymentDetailMoneyServiceAccountFundingSenderDetail`, `PaymentIntentCreateParamsPaymentDetailMoneyServiceAccountFundingSenderDetail`, and `PaymentIntentModifyParamsPaymentDetailMoneyServiceAccountFundingSenderDetail` +* ⚠️ Remove support for `name` on `PaymentIntent.PaymentDetail.MoneyService.AccountFunding.SenderDetail`, `PaymentIntentConfirmParamsPaymentDetailMoneyServiceAccountFundingSenderDetail`, `PaymentIntentCreateParamsPaymentDetailMoneyServiceAccountFundingSenderDetail`, and `PaymentIntentModifyParamsPaymentDetailMoneyServiceAccountFundingSenderDetail` +* Change type of `PaymentIntentConfirmParamsPaymentMethodOptionCard.capture_method`, `PaymentIntentCreateParamsPaymentMethodOptionCard.capture_method`, and `PaymentIntentModifyParamsPaymentMethodOptionCard.capture_method` from `literal('manual')` to `enum('automatic_delayed'|'manual')` +* ⚠️ Remove support for `wallet` on `PaymentIntentConfirmParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentModifyParamsPaymentMethodOptionCardPaymentDetailMoneyServiceAccountFunding`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresentPaymentDetailMoneyServiceAccountFunding` +* Add support for new value `automatic_delayed` on enums `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent.capture_method`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent.capture_method`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresent.capture_method` +* Add support for `transaction_verification_options` on `PaymentIntent.PaymentMethodOption.Crypto`, `PaymentIntentConfirmParamsPaymentMethodOptionCrypto`, `PaymentIntentCreateParamsPaymentMethodOptionCrypto`, and `PaymentIntentModifyParamsPaymentMethodOptionCrypto` +* Add support for new values `ethereum` and `polygon` on enums `PaymentIntentConfirmParamsPaymentMethodOptionCryptoDepositOption.networks`, `PaymentIntentCreateParamsPaymentMethodOptionCryptoDepositOption.networks`, and `PaymentIntentModifyParamsPaymentMethodOptionCryptoDepositOption.networks` +* Add support for new values `ethereum` and `polygon` on enum `PaymentIntentSimulateCryptoDepositParams.network` +* Change type of `PaymentIntentSimulateCryptoDepositParams.token_currency` from `literal('usdc')` to `enum('usdc'|'usdg'|'usdp')` +* Add support for `forced_capture` on `PaymentIntent.AdvancedFeatureDetail` +* ⚠️ Add support for new value `tamara` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` +* Add support for `wechat_pay_handle_app_redirect` on `PaymentIntent.NextAction` and `SetupIntent.NextAction` +* Add support for `ethereum` and `polygon` on `PaymentIntent.NextAction.CryptoDisplayDetail.DepositAddress` +* ⚠️ Change type of `PaymentIntent.NextAction.CryptoDisplayDetail.DepositAddress.Base.SupportedToken.token_currency`, `PaymentIntent.NextAction.CryptoDisplayDetail.DepositAddress.Solana.SupportedToken.token_currency`, and `PaymentIntent.NextAction.CryptoDisplayDetail.DepositAddress.Tempo.SupportedToken.token_currency` from `literal('usdc')` to `enum('usdc'|'usdg'|'usdp')` +* Add support for `beneficiary_account` on `PaymentIntent.PaymentDetail.MoneyService` +* ⚠️ Change type of `PaymentIntent.PaymentMethodOption.Card.capture_method` from `literal('manual')` to `enum('automatic_delayed'|'manual')` +* ⚠️ Add support for new value `automatic_delayed` on enum `PaymentIntent.PaymentMethodOption.CardPresent.capture_method` +* ⚠️ Add support for new values `ethereum` and `polygon` on enum `PaymentIntent.PaymentMethodOption.Crypto.DepositOption.networks` +* Change type of `PaymentLocationModifyParamsBusinessRegistration.siret` from `string` to `emptyable(string)` +* Add support for `card` on `PaymentRecordReportPaymentAttemptParamsPaymentMethodDetail` and `PaymentRecordReportPaymentParamsPaymentMethodDetail` +* Change type of `PaymentRecordReportPaymentAttemptParamsPaymentMethodDetail.type` and `PaymentRecordReportPaymentParamsPaymentMethodDetail.type` from `literal('custom')` to `enum('card'|'custom')` +* Add support for `managed_payments` on `Product` +* Add support for `payment_attempt_record` on `RefundCreateParams` and `RefundListParams` +* Add support for `payment_record` on `RefundListParams` +* Add support for `protections` on `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Celtic.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Celtic.SpendCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.SpendCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.FifthThird.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Lead.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Celtic.RevolvingCreditCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.CrossRiverBank.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead.DebitCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead.PrepaidCard`, `V2.Core.Account.Configuration.Customer.Capability.AutomaticIndirectTax`, `V2.Core.Account.Configuration.Merchant.Capability.AchDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AcssDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AffirmPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AfterpayClearpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AlmaPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AmazonPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AuBecsDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BacsDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BancontactPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BlikPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BoletoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CardPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CartesBancairesPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CashappPayment`, `V2.Core.Account.Configuration.Merchant.Capability.EpsPayment`, `V2.Core.Account.Configuration.Merchant.Capability.FpxPayment`, `V2.Core.Account.Configuration.Merchant.Capability.GbBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.GrabpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.IdealPayment`, `V2.Core.Account.Configuration.Merchant.Capability.JcbPayment`, `V2.Core.Account.Configuration.Merchant.Capability.JpBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KakaoPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KlarnaPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KonbiniPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KrCardPayment`, `V2.Core.Account.Configuration.Merchant.Capability.LinkPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MobilepayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MultibancoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MxBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.NaverPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.OxxoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.P24Payment`, `V2.Core.Account.Configuration.Merchant.Capability.PayByBankPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PaycoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PaynowPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PromptpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.RevolutPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SamsungPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SepaBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SepaDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.StripeBalance.Payout`, `V2.Core.Account.Configuration.Merchant.Capability.SwishPayment`, `V2.Core.Account.Configuration.Merchant.Capability.TwintPayment`, `V2.Core.Account.Configuration.Merchant.Capability.UsBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.ZipPayment`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Instant`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Local`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Wire`, `V2.Core.Account.Configuration.Recipient.Capability.Card`, `V2.Core.Account.Configuration.Recipient.Capability.CryptoWallet`, `V2.Core.Account.Configuration.Recipient.Capability.PaperCheck`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.Payout`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.StripeTransfer`, `V2.Core.Account.Configuration.Storer.Capability.Consumer.HoldsCurrency.Usd`, `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Eur`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Gbp`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Usd`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Usdc`, `V2.Core.Account.Configuration.Storer.Capability.InboundTransfer.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.Card`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.FinancialAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.PaperCheck`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.FinancialAccount`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCelticChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCelticSpendCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankSpendCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialFifthThirdChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialLeadPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialStripeChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialStripePrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerCelticRevolvingCreditCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerCrossRiverBankPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLeadDebitCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLeadPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCustomerCapabilityAutomaticIndirectTax`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAchDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAcssDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAffirmPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAfterpayClearpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAlmaPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAmazonPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAuBecsDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBacsDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBancontactPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBlikPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBoletoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCardPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCartesBancairesPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCashappPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityEpsPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityFpxPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityGbBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityGrabpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityIdealPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityJcbPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityJpBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKakaoPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKlarnaPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKonbiniPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKrCardPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityLinkPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMobilepayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMultibancoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMxBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityNaverPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityOxxoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityP24Payment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPayByBankPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPaycoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPaynowPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPromptpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityRevolutPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySamsungPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySepaBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySepaDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySwishPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityTwintPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityUsBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityZipPayment`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountInstant`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountLocal`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountWire`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityCard`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityCryptoWallet`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityPaperCheck`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityStripeBalanceStripeTransfer`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityConsumerHoldsCurrencyUsd`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityFinancialAddressBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityFinancialAddressCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyEur`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyGbp`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyUsd`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyUsdc`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityInboundTransferBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentCard`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentFinancialAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentPaperCheck`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferFinancialAccount`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCelticChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCelticSpendCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankSpendCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialFifthThirdChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialLeadPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialStripeChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialStripePrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerCelticRevolvingCreditCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerCrossRiverBankPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLeadDebitCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLeadPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCustomerCapabilityAutomaticIndirectTax`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAchDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAcssDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAffirmPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAfterpayClearpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAlmaPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAmazonPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAuBecsDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBacsDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBancontactPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBlikPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBoletoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCardPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCartesBancairesPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCashappPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityEpsPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityFpxPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityGbBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityGrabpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityIdealPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityJcbPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityJpBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKakaoPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKlarnaPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKonbiniPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKrCardPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityLinkPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMobilepayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMultibancoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMxBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityNaverPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityOxxoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityP24Payment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPayByBankPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPaycoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPaynowPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPromptpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityRevolutPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySamsungPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySepaBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySepaDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySwishPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityTwintPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityUsBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityZipPayment`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountInstant`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountLocal`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountWire`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityCard`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityCryptoWallet`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityPaperCheck`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityStripeBalanceStripeTransfer`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityConsumerHoldsCurrencyUsd`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityFinancialAddressBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityFinancialAddressCryptoWallet`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyEur`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyGbp`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyUsd`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyUsdc`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityInboundTransferBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentCard`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentCryptoWallet`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentFinancialAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentPaperCheck`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferCryptoWallet`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferFinancialAccount` diff --git a/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..29ac9d852 --- /dev/null +++ b/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,104 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1833 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.4.0a1 +--- + +* Add support for new resources `v2.billing.ContractPricingLineQuantityChange`, `v2.core.health.AlertHistoryEntry`, `v2.core.health.Alert`, `v2.money_management.FinancialAddressDebitSimulation`, and `v2.money_management.PayoutIntent` +* ⚠️ Remove support for resource `v2.billing.ContractLicensePricingQuantityChange` +* Add support for `report_offer_acceptance` method on resource `issuing.CreditUnderwritingRecord` +* Add support for `provisional_credit` test helper method on resource `issuing.Dispute` +* Add support for `report_early_fraud_warning` method on resource `PaymentAttemptRecord` +* Add support for `search` method on resource `PaymentRecord` +* Add support for `debit` method on resource `v2.money_management.FinancialAddressDebitSimulation` +* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve` methods on resource `v2.money_management.PayoutIntent` +* Add support for `list` and `retrieve` methods on resource `v2.core.health.Alert` +* Add support for `delete` method on resource `v2.billing.Contract` +* ⚠️ Remove support for `performance_location_details` on `Tax.TransactionLineItem` +* Add support for `financial_accounts_transactions`, `financial_accounts`, and `recipients_list` on `AccountSession.Component` and `AccountSessionCreateParamsComponent` +* Add support for `location` and `reader` on `Charge.PaymentMethodDetail.GiftCard`, `GiftCardOperation`, `PaymentAttemptRecord.PaymentMethodDetail.GiftCard`, and `PaymentRecord.PaymentMethodDetail.GiftCard` +* Add support for `subscription` on `checkout.SessionCreateParamsItem` +* Add support for `items` on `Checkout.Session` +* Add support for `brand` on `Checkout.Session.CurrentAttempt.PaymentMethodDetail.Card` +* Add support for `network_data` on `issuing.AuthorizationCaptureParams` and `issuing.TransactionCreateForceCaptureParams` +* Add support for `enriched_merchant_data` on `Issuing.Authorization` +* Add support for `available_balance` and `current_balance` on `Issuing.Authorization.BalanceResponse` +* ⚠️ Remove support for `amount` on `Issuing.Authorization.BalanceResponse` +* Add support for `decision_deadline_updated_at` on `Issuing.CreditUnderwritingRecord` +* Add support for `acquirer_reference_number` on `Issuing.Transaction.NetworkDatum` +* Change `PaymentAttemptRecordReportRefundParams.outcome` and `PaymentRecordReportRefundParams.outcome` to be optional +* Add support for `tip` on `PaymentIntentCaptureParamsAmountDetail`, `PaymentIntentConfirmParamsAmountDetail`, `PaymentIntentCreateParamsAmountDetail`, `PaymentIntentDecrementAuthorizationParamsAmountDetail`, `PaymentIntentIncrementAuthorizationParamsAmountDetail`, and `PaymentIntentModifyParamsAmountDetail` +* ⚠️ Remove support for values `billing.alert.recovered` and `payment_intent.expired` from enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` +* Add support for `billing_cycle_anchor` on `V2.Billing.Contract` and `v2.billing.ContractCreateParams` +* ⚠️ Remove support for `contract_line_details`, `contract_value_details`, and `license_quantities` on `V2.Billing.Contract` +* Add support for `bill_settings_details` on `V2.Billing.Contract.BillingSetting` and `v2.billing.ContractCreateParamsBillingSetting` +* Add support for `billing_profile_details` and `collection_settings_details` on `V2.Billing.Contract.BillingSetting` +* ⚠️ Remove support for `contract_billing_details` on `V2.Billing.Contract.BillingSetting` and `v2.billing.ContractCreateParamsBillingSetting` +* ⚠️ Change type of `V2.Billing.Contract.one_time_fees` from `array(an object)` to `an object` +* ⚠️ Change type of `V2.Billing.Contract.pricing_lines` from `array(an object)` to `an object` +* ⚠️ Change type of `V2.Billing.Contract.pricing_overrides` from `array(an object)` to `an object` +* ⚠️ Change `V2.Billing.Contract.pricing_lines` to be optional +* ⚠️ Change `V2.Billing.Contract.pricing_overrides` to be optional +* Add support for `mode` on `V2.Commerce.ProductCatalogImport` +* Add support for new value `money_manager` on enums `EventsV2CoreAccountLinkReturnedEvent.configurations`, `V2.Core.AccountLink.UseCase.AccountOnboarding.configurations`, `V2.Core.AccountLink.UseCase.AccountUpdate.configurations`, `v2.core.AccountLinkCreateParamsUseCaseAccountOnboarding.configurations`, and `v2.core.AccountLinkCreateParamsUseCaseAccountUpdate.configurations` +* ⚠️ Add support for new value `money_manager` on enums `V2.Core.Account.applied_configurations`, `v2.core.AccountCloseParams.applied_configurations`, and `v2.core.AccountListParams.applied_configurations` +* ⚠️ Remove support for value `storer` from enums `V2.Core.Account.applied_configurations`, `v2.core.AccountCloseParams.applied_configurations`, and `v2.core.AccountListParams.applied_configurations` +* Add support for `money_manager` on `V2.Core.Account.Configuration`, `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsConfiguration`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, `v2.core.AccountModifyParamsConfiguration`, `v2.core.AccountModifyParamsIdentityAttestationTermsOfService`, and `v2.core.AccountTokenCreateParamsIdentityAttestationTermsOfService` +* ⚠️ Remove support for `storer` on `V2.Core.Account.Configuration`, `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsConfiguration`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, `v2.core.AccountModifyParamsConfiguration`, `v2.core.AccountModifyParamsIdentityAttestationTermsOfService`, and `v2.core.AccountTokenCreateParamsIdentityAttestationTermsOfService` +* Add support for `sunbit_payments` on `V2.Core.Account.Configuration.Merchant.Capability`, `v2.core.AccountCreateParamsConfigurationMerchantCapability`, and `v2.core.AccountModifyParamsConfigurationMerchantCapability` +* Add support for `ach`, `becs`, `eft`, `fedwire`, `fps`, `npp`, `rtp`, `sepa_credit`, `sepa_instant`, and `swift` on `V2.Core.Account.Configuration.Recipient.Capability.BankAccount`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccount`, and `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccount` +* Add support for new values `bank_accounts.ach`, `bank_accounts.becs`, `bank_accounts.eft`, `bank_accounts.fedwire`, `bank_accounts.fps`, `bank_accounts.npp`, `bank_accounts.rtp`, `bank_accounts.sepa_credit`, `bank_accounts.sepa_instant`, `bank_accounts.swift`, `business_storage.inbound.eur`, `business_storage.inbound.gbp`, `business_storage.inbound.usd`, `business_storage.outbound.eur`, `business_storage.outbound.gbp`, `business_storage.outbound.usd`, `consumer_storage.inbound.usd`, `consumer_storage.outbound.usd`, `received_credits.bank_accounts`, and `received_debits.bank_accounts` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for new value `money_manager` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.configuration` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.configuration` +* Add support for `consumer_money_manager` on `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfService` +* Add support for `crypto_money_manager` on `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, `v2.core.AccountModifyParamsIdentityAttestationTermsOfService`, and `v2.core.AccountTokenCreateParamsIdentityAttestationTermsOfService` +* ⚠️ Remove support for `consumer_storer` on `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfService` +* ⚠️ Remove support for `crypto_storer` on `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, `v2.core.AccountModifyParamsIdentityAttestationTermsOfService`, and `v2.core.AccountTokenCreateParamsIdentityAttestationTermsOfService` +* ⚠️ Remove support for `maximum_rps` on `V2.Core.BatchJob` and `v2.core.BatchJobCreateParams` +* Add support for `bic` on `V2.MoneyManagement.FinancialAddress.Credential.UsBankAccount` +* ⚠️ Remove support for `swift_code` on `V2.MoneyManagement.FinancialAddress.Credential.UsBankAccount` +* Add support for `attachment` on `V2.MoneyManagement.OutboundPayment.DeliveryOption.PaperCheck` and `v2.money_management.OutboundPaymentCreateParamsDeliveryOptionPaperCheck` +* Add support for `processing` on `V2.MoneyManagement.OutboundPayment.StatusDetail` and `V2.MoneyManagement.OutboundTransfer.StatusDetail` +* Add support for new values `fx_rate_drift_exceeded_after_review` and `review_rejected` on enum `V2.MoneyManagement.OutboundPayment.StatusDetail.Failed.reason` +* Add support for `payout_method_options` on `V2.MoneyManagement.OutboundPayment.To`, `V2.MoneyManagement.OutboundTransfer.To`, `v2.money_management.OutboundPaymentCreateParamsTo`, and `v2.money_management.OutboundTransferCreateParamsTo` +* Add support for new values `fx_rate_drift_exceeded_after_review` and `review_rejected` on enum `V2.MoneyManagement.OutboundTransfer.StatusDetail.Failed.reason` +* Add support for `account_holder_name` on `V2.MoneyManagement.ReceivedCredit.BankTransfer.UsBankAccount` +* Add support for `returned` on `V2.MoneyManagement.ReceivedDebit.StatusDetail` +* Add support for new value `capability_inactive` on enum `V2.MoneyManagement.ReceivedDebit.StatusDetail.Failed.reason` +* Add support for `returned_at` on `V2.MoneyManagement.ReceivedDebit.StatusTransition` +* Add support for `payout_intent` on `v2.money_management.OutboundPaymentCreateParams` +* Add support for `statuses` on `v2.money_management.FinancialAccountListParams` +* ⚠️ Remove support for `status` on `v2.money_management.FinancialAccountListParams` +* Change `v2.core.BatchJobCreateParams.metadata` to be optional +* ⚠️ Add support for new value `configuration.money_manager` on enums `v2.core.AccountCreateParams.include`, `v2.core.AccountModifyParams.include`, and `v2.core.AccountRetrieveParams.include` +* ⚠️ Remove support for value `configuration.storer` from enums `v2.core.AccountCreateParams.include`, `v2.core.AccountModifyParams.include`, and `v2.core.AccountRetrieveParams.include` +* Add support for `include` on `v2.billing.ContractListParams` +* ⚠️ Remove support for `contract_lines` on `v2.billing.ContractCreateParams` +* ⚠️ Remove support for `license_quantity_actions` on `v2.billing.ContractCreateParams` and `v2.billing.ContractModifyParams` +* ⚠️ Add support for `billing_profile_details` and `collection_settings_details` on `v2.billing.ContractCreateParamsBillingSetting` +* ⚠️ Add support for new value `billing_settings` on enums `v2.billing.ContractActivateParams.include`, `v2.billing.ContractCancelParams.include`, `v2.billing.ContractCreateParams.include`, `v2.billing.ContractModifyParams.include`, and `v2.billing.ContractRetrieveParams.include` +* ⚠️ Remove support for values `contract_line_details` and `license_quantities` from enums `v2.billing.ContractActivateParams.include`, `v2.billing.ContractCancelParams.include`, `v2.billing.ContractCreateParams.include`, `v2.billing.ContractModifyParams.include`, and `v2.billing.ContractRetrieveParams.include` +* ⚠️ Add support for `amount`, `bill_at`, and `product` on `v2.billing.ContractCreateParamsOneTimeFee` +* Add support for `lookup_key` on `v2.billing.ContractCreateParamsOneTimeFee` +* ⚠️ Remove support for `bill_schedule`, `billable_item_type`, and `product_details` on `v2.billing.ContractCreateParamsOneTimeFee` +* Add support for `pricing_overrides` and `quantity_changes` on `v2.billing.ContractCreateParamsPricingLinePricingPriceDetail` and `v2.billing.ContractModifyParamsPricingLineActionAddPricingPriceDetail` +* ⚠️ Remove support for `quantity` on `v2.billing.ContractCreateParamsPricingLinePricingPriceDetail` and `v2.billing.ContractModifyParamsPricingLineActionAddPricingPriceDetail` +* ⚠️ Remove support for `overwrite_price` on `v2.billing.ContractCreateParamsPricingOverride` +* Add support for `pricing_line_ids` and `pricing_line_lookup_keys` on `v2.billing.ContractCreateParamsPricingOverrideMultiplierCriterion` and `v2.billing.ContractModifyParamsPricingOverrideActionAddMultiplierCriterion` +* ⚠️ Remove support for `billable_item_ids`, `billable_item_lookup_keys`, `billable_item_types`, `metadata_conditions`, and `rate_card_ids` on `v2.billing.ContractCreateParamsPricingOverrideMultiplierCriterion` and `v2.billing.ContractModifyParamsPricingOverrideActionAddMultiplierCriterion` +* ⚠️ Change type of `v2.billing.ContractCreateParamsPricingOverride.type` and `v2.billing.ContractModifyParamsPricingOverrideActionAdd.type` from `enum('multiplier'|'overwrite_price')` to `literal('multiplier')` +* Change `v2.billing.ContractCreateParams.pricing_overrides` to be optional +* Change `v2.billing.ContractCreateParamsPricingOverrideMultiplier.criteria` to be optional +* Add support for `pricing` on `v2.billing.ContractModifyParamsPricingLineActionUpdate` +* ⚠️ Remove support for `price` on `v2.billing.ContractModifyParamsPricingOverrideActionAddOverwritePrice` +* Add support for `cancel_pricing_lines` and `proration_behavior` on `v2.billing.ContractCancelParams` +* Add support for new value `sunbit_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability` +* Add support for new values `bank_accounts.ach`, `bank_accounts.becs`, `bank_accounts.eft`, `bank_accounts.fedwire`, `bank_accounts.fps`, `bank_accounts.npp`, `bank_accounts.rtp`, `bank_accounts.sepa_credit`, `bank_accounts.sepa_instant`, and `bank_accounts.swift` on enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability` +* Add support for event notifications `V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent` with related object `v2.core.Account` +* Add support for event notifications `V2MoneyManagementDebitDisputeFailedEvent`, `V2MoneyManagementDebitDisputeSubmittedEvent`, and `V2MoneyManagementDebitDisputeSucceededEvent` with related object `v2.money_management.DebitDispute` +* Add support for event notification `V2MoneyManagementOutboundPaymentUnderReviewEvent` with related object `v2.money_management.OutboundPayment` +* Add support for event notification `V2MoneyManagementOutboundTransferUnderReviewEvent` with related object `v2.money_management.OutboundTransfer` +* ⚠️ Remove support for event notifications `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `v2.core.Account` +* Add support for error codes `us_bank_account_microdeposits_cannot_be_confirmed` and `us_bank_account_microdeposits_cannot_be_sent` on `ControlledByAlternateResourceError` +* Add support for error code `payout_intent_not_cancelable` on `NotCancelableError` diff --git a/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..2c078bd5d --- /dev/null +++ b/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,35 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1839 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.4.0a2 +--- + +* Add support for new resources `crypto.CustomerConsumerWallet`, `crypto.CustomerPaymentToken`, `crypto.Customer`, `crypto.OnrampSession`, and `crypto.OnrampTransactionLimits` +* Add support for `list` and `retrieve` methods on resource `crypto.Customer` +* Add support for `checkout`, `create`, `list`, `quote`, and `retrieve` methods on resource `crypto.OnrampSession` +* Add support for `retrieve` method on resource `crypto.OnrampTransactionLimits` +* Add support for `electronic_commerce_indicator` on `Charge.PaymentMethodDetail.Card` +* Add support for `amount_received` and `amount_requested` on `Charge.PaymentMethodDetail.Crypto`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto`, and `PaymentRecord.PaymentMethodDetail.Crypto` +* Add support for `fingerprint` on `Charge.PaymentMethodDetail.GiftCard`, `PaymentAttemptRecord.PaymentMethodDetail.GiftCard`, and `PaymentRecord.PaymentMethodDetail.GiftCard` +* Add support for `address_collection_precision` on `checkout.SessionCreateParamsAutomaticTax` +* Add support for `subscription` on `Checkout.Session.Item` +* ⚠️ Remove support for `deactivation` on `GiftCardOperation` +* ⚠️ Remove support for value `deactivation` from enum `GiftCardOperation.type` +* Add support for `merchant_amount_exchange_rate` on `Issuing.Authorization` and `Issuing.Transaction` +* Add support for `device_id` on `Issuing.Authorization.TokenDetail.NetworkDatum.Device` and `Issuing.Token.NetworkDatum.Device` +* Add support for `program` on `Issuing.Card` +* Add support for `payment_method_details` on `PaymentAttemptRecordReportFailedParams` and `PaymentRecordReportPaymentAttemptFailedParams` +* Add support for `reason` on `PaymentAttemptRecordReportRefundParams` and `PaymentRecordReportRefundParams` +* Add support for `amount_reconciliation` on `PaymentIntent.PaymentMethodOption.Crypto`, `PaymentIntentConfirmParamsPaymentMethodOptionCrypto`, `PaymentIntentCreateParamsPaymentMethodOptionCrypto`, and `PaymentIntentModifyParamsPaymentMethodOptionCrypto` +* Add support for `connect_permissions` and `permissions` on `V2.Iam.ApiKey`, `v2.iam.ApiKeyCreateParams`, and `v2.iam.ApiKeyModifyParams` +* Add support for `credit` on `V2.MoneyManagement.FinancialAccount` +* ⚠️ Add support for new value `credit` on enum `V2.MoneyManagement.FinancialAccount.type` +* Add support for new value `currency_required` on enum `V2.MoneyManagement.PayoutIntent.NextAction.HandleFailure.failure_reason` +* Add support for new values `issuing_authorization`, `issuing_transaction`, and `platform_funded_credit_transaction` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category` +* Add support for `account`, `issuing_authorization`, `issuing_dispute`, and `issuing_transaction` on `V2.MoneyManagement.Transaction.Flow` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow` +* Add support for new values `issuing_authorization`, `issuing_dispute`, and `issuing_transaction` on enums `V2.MoneyManagement.Transaction.Flow.type` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.type` +* Add support for new value `credit` on enum `v2.money_management.FinancialAccountListParams.types` +* Change type of `v2.money_management.FinancialAccountCreateParams.type` from `literal('storage')` to `enum('credit'|'storage')` +* Add support for `expires_at` on `v2.iam.ApiKeyCreateParams` diff --git a/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..9a7cd8ae6 --- /dev/null +++ b/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,52 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1842 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.4.0a3 +--- + +* Add support for `activate_gift_card`, `cashout_gift_card`, `check_gift_card_balance`, and `reload_gift_card` methods on resource `terminal.Reader` +* Add support for `aggregation_period` on `Billing.AlertRecovered` +* ⚠️ Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `Tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.Calculation.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.CalculationLineItem.TaxBreakdown.TaxRateDetail.tax_type`, and `Tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type` +* Add support for `administrative_address` and `principal_place_of_business` on `Account.Company` +* ⚠️ Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `Charge.PaymentMethodDetail.Fpx.bank`, `ConfirmationToken.PaymentMethodPreview.Fpx.bank`, `PaymentAttemptRecord.PaymentMethodDetail.Fpx.bank`, `PaymentMethod.Fpx.bank`, `PaymentRecord.PaymentMethodDetail.Fpx.bank`, and `SharedPayment.GrantedToken.PaymentMethodDetail.Fpx.bank` +* Add support for `address_collection_precision` on `Checkout.Session.AutomaticTax` +* Add support for `tax_id` on `Checkout.Session.CollectedInformation` +* ⚠️ Remove support for `tax_ids` on `Checkout.Session.CollectedInformation` +* Add support for `setup_future_usage` on `Checkout.Session.PaymentMethodOption.Payco`, `Checkout.Session.PaymentMethodOption.SamsungPay`, `PaymentIntent.PaymentMethodOption.Payco`, `PaymentIntent.PaymentMethodOption.Paypay`, `PaymentIntent.PaymentMethodOption.SamsungPay`, `PaymentIntentConfirmParamsPaymentMethodOptionPaypay`, `PaymentIntentCreateParamsPaymentMethodOptionPaypay`, and `PaymentIntentModifyParamsPaymentMethodOptionPaypay` +* Add support for `network` on `Dispute.PaymentMethodDetail.Card` +* Add support for `require_payment_method_support` on `FinancialConnections.Session.Filter` +* Add support for `network_data` on `Issuing.Authorization.RequestHistory` +* Add support for `acquiring_institution_country`, `acquiring_institution_id`, `retrieval_reference_number`, `routed_network`, and `trace_id` on `Issuing.Transaction.NetworkDatum` +* Add support for new values `boku_promptpay`, `capchase_pay`, `check_scan`, `click_to_pay`, `demo_pay`, `duitnow`, `dummy_auth_push`, `dummy_passthrough_card`, `edenred`, `gcash`, `getbalance`, `knet`, `kr_market`, `kriya`, `momo`, `mondu`, `netbanking`, `ng_bank_transfer`, `ng_bank`, `ng_card`, `ng_market`, `ng_ussd`, `ng_wallet`, `octopus`, `paper_check`, `sequra`, `shop_pay`, `south_korea_market`, `test_pay`, `truemoney`, `us_cash_voucher`, `vipps`, and `wero` on enums `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, and `PaymentIntentModifyParams.allowed_payment_method_types` +* Add support for `custom_fields`, `description`, and `footer` on `Quote.InvoiceSetting`, `QuotePreviewSubscriptionSchedule.DefaultSetting.InvoiceSetting`, `QuotePreviewSubscriptionSchedule.Phase.InvoiceSetting`, `SubscriptionSchedule.DefaultSetting.InvoiceSetting`, and `SubscriptionSchedule.Phase.InvoiceSetting` +* Add support for `paypay` on `SetupAttempt.PaymentMethodDetail` +* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `tax.RegistrationCreateParamsCountryOptionMe.type` +* Add support for `mass_transit_parking_tax` and `parking_tax` on `Tax.Registration.CountryOption.Me` +* ⚠️ Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `Tax.Registration.CountryOption.Me.type` +* Add support for `gift_card_brand` on `terminal.ReaderCollectPaymentMethodParamsCollectConfig` and `terminal.ReaderProcessPaymentIntentParamsProcessConfig` +* Add support for `activate_gift_card`, `cashout_gift_card`, `check_gift_card_balance`, `deactivate_gift_card`, and `reload_gift_card` on `Terminal.Reader.Action` +* ⚠️ Add support for new values `activate_gift_card`, `cashout_gift_card`, `check_gift_card_balance`, `deactivate_gift_card`, and `reload_gift_card` on enum `Terminal.Reader.Action.type` +* Add support for `status_transitions` on `V2.Billing.Contract` +* ⚠️ Remove support for `one_time_fees` on `V2.Billing.Contract` and `v2.billing.ContractCreateParams` +* ⚠️ Remove support for `status_details` on `V2.Billing.Contract` +* Add support for `id` and `priority` on `V2.Billing.Contract.PricingLine.Datum.Pricing.PriceDetail.PricingOverride.Datum` +* ⚠️ Remove support for `pricing_override` on `V2.Billing.Contract.PricingLine.Datum.Pricing.PriceDetail.PricingOverride.Datum` +* ⚠️ Remove support for `tiering_mode` and `tiers` on `V2.Billing.Contract.PricingLine.Datum.Pricing.PriceDetail.PricingOverride.Datum.OverwritePrice`, `v2.billing.ContractCreateParamsPricingLinePricingPriceDetailPricingOverrideOverwritePrice`, `v2.billing.ContractModifyParamsPricingLineActionAddPricingPriceDetailPricingOverrideOverwritePrice`, `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionAddOverwritePrice`, and `v2.billing.ContractModifyParamsPricingOverrideActionAddOverwritePrice` +* Add support for `multiply_pricing` on `V2.Billing.Contract.PricingOverride.Datum`, `v2.billing.ContractCreateParamsPricingOverride`, and `v2.billing.ContractModifyParamsPricingOverrideActionAdd` +* ⚠️ Remove support for `multiplier` on `V2.Billing.Contract.PricingOverride.Datum`, `v2.billing.ContractCreateParamsPricingOverride`, and `v2.billing.ContractModifyParamsPricingOverrideActionAdd` +* ⚠️ Change type of `V2.Billing.Contract.PricingOverride.Datum.type`, `v2.billing.ContractCreateParamsPricingOverride.type`, and `v2.billing.ContractModifyParamsPricingOverrideActionAdd.type` from `literal('multiplier')` to `literal('multiply_pricing')` +* Add support for `related_network_object` on `V2.Core.Account` and `v2.core.AccountListParams` +* ⚠️ Add support for new value `network_business_profile_wallet` on enum `V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination.type` +* Add support for `network_business_profile_wallet` on `V2.MoneyManagement.PayoutMethod` +* Add support for new value `network_business_profile_wallet` on enums `V2.MoneyManagement.PayoutMethod.type`, `v2.money_management.OutboundSetupIntentCreateParamsPayoutMethodDatum.type`, and `v2.money_management.OutboundSetupIntentModifyParamsPayoutMethodDatum.type` +* Add support for `stripe_network_transfer` on `V2.MoneyManagement.ReceivedCredit` +* Add support for new value `stripe_network_transfer` on enum `V2.MoneyManagement.ReceivedCredit.type` +* ⚠️ Remove support for value `one_time_fees` from enums `v2.billing.ContractActivateParams.include`, `v2.billing.ContractCancelParams.include`, `v2.billing.ContractCreateParams.include`, `v2.billing.ContractListParams.include`, `v2.billing.ContractModifyParams.include`, and `v2.billing.ContractRetrieveParams.include` +* ⚠️ Change type of `v2.billing.ContractCreateParamsPricingLineEndsAt.type`, `v2.billing.ContractCreateParamsPricingLinePricingPriceDetailPricingOverrideEndsAt.type`, `v2.billing.ContractCreateParamsPricingOverrideEndsAt.type`, and `v2.billing.ContractModifyParamsPricingLineActionAddPricingPriceDetailPricingOverrideEndsAt.type` from `enum('contract_end'|'timestamp')` to `literal('timestamp')` +* ⚠️ Change type of `v2.billing.ContractCreateParamsPricingLinePricingPriceDetailPricingOverrideStartsAt.type`, `v2.billing.ContractCreateParamsPricingLineStartsAt.type`, `v2.billing.ContractCreateParamsPricingOverrideStartsAt.type`, and `v2.billing.ContractModifyParamsPricingLineActionAddPricingPriceDetailPricingOverrideStartsAt.type` from `enum('contract_start'|'timestamp')` to `literal('timestamp')` +* Change `v2.billing.ContractCreateParamsPricingOverride.priority` and `v2.billing.ContractModifyParamsPricingOverrideActionAdd.priority` to be optional +* ⚠️ Change type of `v2.billing.ContractModifyParamsPricingLineActionAddEndsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdateEndsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionAddEndsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionUpdateEndsAt.type`, `v2.billing.ContractModifyParamsPricingOverrideActionAddEndsAt.type`, and `v2.billing.ContractModifyParamsPricingOverrideActionUpdateEndsAt.type` from `enum('billing_period_end'|'timestamp')` to `literal('timestamp')` +* ⚠️ Change type of `v2.billing.ContractModifyParamsPricingLineActionAddStartsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionAddStartsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionUpdateStartsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdateStartsAt.type`, `v2.billing.ContractModifyParamsPricingOverrideActionAddStartsAt.type`, and `v2.billing.ContractModifyParamsPricingOverrideActionUpdateStartsAt.type` from `enum('billing_period_start'|'timestamp')` to `literal('timestamp')` +* Add support for event notifications `V2BillingContractActivatedEvent`, `V2BillingContractCanceledEvent`, `V2BillingContractCreatedEvent`, `V2BillingContractEndedEvent`, and `V2BillingContractUpdatedEvent` with related object `v2.billing.Contract` diff --git a/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..6d739db90 --- /dev/null +++ b/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,30 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1844 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.4.0a4 +--- + +* ⚠️ Remove support for resource `FrMealVouchersOnboarding` +* ⚠️ Remove support for `create`, `list`, `modify`, and `retrieve` methods on resource `FrMealVouchersOnboarding` +* Add support for `create` method on resource `PaymentRecord` +* Add support for new value `chaps` on enums `FundingInstructions.BankTransfer.FinancialAddress.supported_networks` and `PaymentIntent.NextAction.DisplayBankTransferInstruction.FinancialAddress.supported_networks` +* ⚠️ Remove support for `financial_accounts_transactions`, `financial_accounts`, and `recipients_list` on `AccountSessionCreateParamsComponent` +* Add support for `smart_disputes_management` on `AccountSession.Component.DisputesList.Feature`, `AccountSession.Component.Payment.Feature`, `AccountSession.Component.PaymentDetail.Feature`, and `AccountSession.Component.PaymentDispute.Feature` +* ⚠️ Add support for new value `ic_nif` on enums `Checkout.Session.CollectedInformation.TaxId.type`, `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Order.TaxDetail.TaxId.type`, `QuotePreviewInvoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, and `Tax.Transaction.CustomerDetail.TaxId.type` +* Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enum `Event.type` +* Add support for `mode` on `FinancialConnections.Session.ManualEntry` +* Add support for new values `alipay` and `sequra` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* Add support for new value `stripe_internal_error` on enum `Issuing.Authorization.RequestHistory.reason` +* Add support for `business_name` on `Issuing.Card.Shipping` +* Add support for new value `correos` on enum `Issuing.Card.Shipping.carrier` +* ⚠️ Change type of `Issuing.Transaction.NetworkDatum.trace_id` from `IssuingTransactionTraceId` to `nullable(IssuingTransactionTraceId)` +* Add support for `pause_schedules` on `QuotePreviewSubscriptionSchedule`, `SubscriptionScheduleCreateParams`, `SubscriptionScheduleModifyParams`, and `SubscriptionSchedule` +* Add support for `trial` on `QuotePreviewSubscriptionSchedule.Phase` and `SubscriptionSchedule.Phase` +* Add support for `payment_record` on `RefundCreateParams` +* Add support for `redirect_to_url` on `SharedPayment.IssuedToken.NextAction` +* ⚠️ Change type of `SharedPayment.IssuedToken.NextAction.type` from `literal('use_stripe_sdk')` to `enum('redirect_to_url'|'use_stripe_sdk')` +* Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` +* Add support for snapshot events `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, and `financial_connections.account.upcoming_deactivation` with resource `financial_connections.Account` +* Add support for snapshot events `financial_connections.authorization.expected_deactivation_date_updated` and `financial_connections.authorization.upcoming_deactivation` with resource `financial_connections.Authorization` diff --git a/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..17cb186b4 --- /dev/null +++ b/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,39 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1852 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.4.0a5 +--- + +* Add support for new resources `billing.AlertNotification` and `crypto.DepositAddress` +* Add support for `create`, `list`, and `retrieve` methods on resource `crypto.DepositAddress` +* Add support for `list` method on resource `billing.AlertNotification` +* ⚠️ Add support for new values `partner_disabled_dispute_rate`, `partner_disabled_responsibilities`, `partner_disabled_restricted_business`, and `partner_disabled_suspected_fraud` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` +* Add support for new value `data_share_only` on enums `Charge.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, and `SetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.result` +* Add support for `vipps` on `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* Add support for new value `vipps` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* Add support for new value `vipps` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* Add support for new value `sui` on enum `Crypto.CustomerConsumerWallet.network` +* Add support for new value `sui` 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 `sui` on enums `Crypto.OnrampSession.TransactionDetail.destination_networks` and `crypto.OnrampSessionCreateParams.destination_networks` +* Add support for `sui` on `Crypto.OnrampSession.TransactionDetail.WalletAddress` +* Add support for new value `vipps` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `use_stripe_sdk` on `delegated_checkout.RequestedSessionConfirmParams` +* Add support for new value `mb_way` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* Add support for `ev_charging` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Card`, `PaymentIntentCaptureParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentConfirmParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentCreateParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentDecrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCard`, and `PaymentIntentModifyParamsAmountDetailLineItemPaymentMethodOptionCard` +* Add support for new values `ev_battery_exchanges`, `ev_charging_fee`, `evc_level_1`, `evc_level_2`, `evc_level_3`, `evc_level_4`, and `evc_level_5` on enums `PaymentIntentCaptureParamsAmountDetailLineItemPaymentMethodOptionCardFleetDatum.product_type`, `PaymentIntentConfirmParamsAmountDetailLineItemPaymentMethodOptionCardFleetDatum.product_type`, `PaymentIntentCreateParamsAmountDetailLineItemPaymentMethodOptionCardFleetDatum.product_type`, `PaymentIntentDecrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCardFleetDatum.product_type`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCardFleetDatum.product_type`, and `PaymentIntentModifyParamsAmountDetailLineItemPaymentMethodOptionCardFleetDatum.product_type` +* Add support for new value `vipps` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* ⚠️ Change type of `PaymentIntent.allowed_payment_method_types` from `string` to `enum` +* Add support for `tax_items` on `PaymentIntent.PaymentDetail.CarRentalDatum.Total.Tax`, `PaymentIntent.PaymentDetail.FlightDatum.Total.Tax`, and `PaymentIntent.PaymentDetail.LodgingDatum.Total.Tax` +* ⚠️ Remove support for `taxes` on `PaymentIntent.PaymentDetail.CarRentalDatum.Total.Tax`, `PaymentIntent.PaymentDetail.FlightDatum.Total.Tax`, and `PaymentIntent.PaymentDetail.LodgingDatum.Total.Tax` +* Change `PaymentRecordCreateParams.closed` to be optional +* Change `PaymentRecordCreateParams.funded` to be optional +* Add support for `card` on `radar.PaymentEvaluationCreateParamsPaymentDetailPaymentMethodDetail` +* ⚠️ Remove support for `acss_debit`, `afterpay_clearpay`, `alipay`, `alma`, `amazon_pay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `billie`, `bizum`, `blik`, `boleto`, `card_present`, `cashapp`, `crypto`, `customer_balance`, `eps`, `fpx`, `gift_card`, `giropay`, `gopay`, `grabpay`, `id_bank_transfer`, `ideal`, `interac_present`, `kakao_pay`, `konbini`, `kr_card`, `mb_way`, `mobilepay`, `multibanco`, `naver_pay`, `nz_bank_account`, `oxxo`, `p24`, `pay_by_bank`, `payco`, `paynow`, `paypal`, `paypay`, `payto`, `pix`, `promptpay`, `qris`, `rechnung`, `revolut_pay`, `samsung_pay`, `satispay`, `scalapay`, `sepa_debit`, `shopeepay`, `sofort`, `stripe_balance`, `sunbit`, `swish`, `tamara`, `twint`, `upi`, `us_bank_account`, `wechat_pay`, and `zip` on `SharedPayment.GrantedToken.PaymentMethodDetail` +* ⚠️ Add support for new value `shop_pay` on enum `SharedPayment.GrantedToken.PaymentMethodDetail.type` +* ⚠️ Remove support for values `acss_debit`, `afterpay_clearpay`, `alipay`, `alma`, `amazon_pay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `billie`, `bizum`, `blik`, `boleto`, `card_present`, `cashapp`, `crypto`, `custom`, `customer_balance`, `eps`, `fpx`, `gift_card`, `giropay`, `gopay`, `grabpay`, `id_bank_transfer`, `ideal`, `interac_present`, `kakao_pay`, `konbini`, `kr_card`, `mb_way`, `mobilepay`, `multibanco`, `naver_pay`, `nz_bank_account`, `oxxo`, `p24`, `pay_by_bank`, `payco`, `paynow`, `paypal`, `paypay`, `payto`, `pix`, `promptpay`, `qris`, `rechnung`, `revolut_pay`, `samsung_pay`, `satispay`, `scalapay`, `sepa_debit`, `shopeepay`, `sofort`, `stripe_balance`, `sunbit`, `swish`, `tamara`, `twint`, `upi`, `us_bank_account`, `wechat_pay`, and `zip` from enum `SharedPayment.GrantedToken.PaymentMethodDetail.type` +* Add support for `spend_card` on `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialStripe`, and `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialStripe` +* Add support for new value `commercial.stripe.spend_card` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` +* Add support for new value `payment_delinquency_exposure` on enums `V2.Signals.AccountSignal.type` and `v2.signals.AccountSignalListParams.type` +* Add support for new value `commercial.stripe.spend_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` diff --git a/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..f962ea222 --- /dev/null +++ b/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,55 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1854 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.5.0a1 +--- + +* Add support for new resources `v2.money_management.ReceivedDebitMandate`, `v2.risk.Inquiry`, `v2.signals.AccountActivity`, and `v2.signals.AccountEvaluation` +* Add support for `create` and `retrieve` methods on resource `v2.signals.AccountEvaluation` +* Add support for `create`, `delete`, and `retrieve` methods on resource `v2.signals.AccountActivity` +* 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` +* ⚠️ 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` +* ⚠️ Change type of `V2.Core.AccountEvaluation.evaluations_triggered` from `literal('fraudulent_website')` to `enum('fraudulent_website'|'user_account_sharing'|'user_multi_accounting')` +* Add support for `gross_settlement` on `V2.Core.Account.Configuration.Merchant`, `v2.core.AccountCreateParamsConfigurationMerchant`, and `v2.core.AccountModifyParamsConfigurationMerchant` +* ⚠️ 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 `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` +* Add support for `target_date` on `V2.Payments.OffSessionPayment` and `v2.payments.OffSessionPaymentCreateParams` +* Add support for `account_evaluation`, `fraudulent_website`, `payment_delinquency_exposure`, `user_account_sharing`, and `user_multi_accounting` on `V2.Signals.AccountSignal` +* Add support for new values `fraudulent_website`, `user_account_sharing`, and `user_multi_accounting` on enums `V2.Signals.AccountSignal.type` and `v2.signals.AccountSignalListParams.type` +* 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` +* Change type of `v2.core.AccountEvaluationCreateParams.signals` from `literal('fraudulent_website')` to `enum('fraudulent_website'|'user_account_sharing'|'user_multi_accounting')` +* ⚠️ 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 `V2SignalsAccountEvaluationCompleteEvent` with related object `v2.signals.AccountEvaluation` +* Add support for event notifications `V2SignalsAccountSignalFraudulentWebsiteReadyEvent` and `V2SignalsAccountSignalPaymentDelinquencyExposureReadyEvent` with related object `v2.signals.AccountSignal` diff --git a/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..c9d64ccb4 --- /dev/null +++ b/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,31 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1859 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.5.0a2 +--- + +* Add support for new resource `billing.FeedbackOptions` +* Add support for `sequra_payments` on `Account.Capability` +* Add support for `feedback_options` on `BillingPortal.Configuration.Feature.SubscriptionCancel.CancellationReason` +* Add support for `sequra` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, and `PaymentRecord.PaymentMethodDetail` +* Add support for `retrieval_reference_number` on `Charge.PaymentMethodDetail.CardPresent`, `ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, `PaymentAttemptRecord.PaymentMethodDetail.CardPresent`, `PaymentMethod.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, and `PaymentRecord.PaymentMethodDetail.CardPresent` +* Add support for `pricing_group` on `Charge.PaymentMethodDetail.Link` +* Add support for `tax_rates` on `Checkout.Session.ShippingOption`, `checkout.SessionCreateParamsShippingOption`, and `checkout.SessionModifyParamsShippingOption` +* ⚠️ Add support for new value `daikin` on enums `Checkout.Session.AutomaticSurcharge.provider` and `PaymentLink.AutomaticSurcharge.provider` +* Add support for `funding_types_blocked` on `Checkout.Session.PaymentMethodOption.Card.Restriction` +* Add support for new value `sequra` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* Add support for new value `sequra` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* Add support for new value `sequra` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `healthcare` on `issuing.AuthorizationCaptureParamsPurchaseDetail`, `issuing.AuthorizationCreateParams`, `issuing.TransactionCreateForceCaptureParamsPurchaseDetail`, and `issuing.TransactionCreateUnlinkedRefundParamsPurchaseDetail` +* Change type of `Issuing.Authorization.Healthcare.verification_status` from `nullable(enum('iias_merchant_exempt'|'iias_merchant_not_certified'|'iias_verified'|'not_verified'))` to `enum('iias_merchant_exempt'|'iias_merchant_not_certified'|'iias_verified'|'not_verified')` +* Add support for `is_anomalous` on `PaymentAttemptRecordReportGuaranteedParams` +* Add support for new value `sequra` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* Add support for `aade_data` on `PaymentIntent.PaymentMethodOption.CardPresent` +* Change `Radar.PaymentEvaluation.PaymentDetail.PaymentMethodDetail.Card.first6` to be required +* Change `Radar.PaymentEvaluation.PaymentDetail.PaymentMethodDetail.Card.last4` to be required +* Add support for `feedback_option` on `Subscription.CancellationDetail` +* Add support for `application` on `V2.Payments.OffSessionPayment` +* Add support for `status` on `v2.money_management.FinancialAccountStatementListParams` +* Change `v2.billing.ContractCreateParams.pricing_lines` to be optional diff --git a/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..b8cce7924 --- /dev/null +++ b/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,53 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1873 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.6.0a1 +--- + +* Add support for new resource `v2.tax.OperationsResolveAddressResult` +* Add support for `resolve_address` method on resource `v2.tax.OperationsResolveAddressResult` +* Add support for `confirm` and `fx_quote` methods on resource `v2.money_management.PayoutIntent` +* ⚠️ Add support for new value `partner_disabled` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` +* ⚠️ Remove support for values `partner_disabled_dispute_rate`, `partner_disabled_responsibilities`, `partner_disabled_restricted_business`, and `partner_disabled_suspected_fraud` from enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` +* Add support for `customer_update` on `BillingPortal.Session.Flow` +* Add support for new value `customer_update` on enum `BillingPortal.Session.Flow.type` +* Add support for `funding_source_group` on `Charge.PaymentMethodDetail.Link` +* ⚠️ Remove support for `pricing_group` on `Charge.PaymentMethodDetail.Link` +* Add support for new value `celo` on enum `Crypto.CustomerConsumerWallet.network` +* Add support for new value `celo` 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 `celo` on enums `Crypto.OnrampSession.TransactionDetail.destination_networks` and `crypto.OnrampSessionCreateParams.destination_networks` +* Add support for `celo` on `Crypto.OnrampSession.TransactionDetail.WalletAddress` +* Add support for `customer_portal` on `CustomerSession.Component` +* Add support for `applied_to_invoice` and `type` on `CustomerCreateCustomerBalanceTransactionParams` +* Add support for `classification_state` and `enrichment_state` on `FinancialConnections.Account` +* Add support for `country` on `FinancialConnections.Session.Filter` +* Add support for `classifications` and `enrichments` on `FinancialConnections.Transaction` +* Add support for new values `billie`, `paypay`, and `vipps` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* Add support for `customer_balance` on `Invoice` and `QuotePreviewInvoice` +* Add support for `billie` on `Invoice.PaymentSetting.PaymentMethodOption`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`, and `Subscription.PaymentSetting.PaymentMethodOption` +* Add support for `hold_amount_details` and `hold_amount` on `Issuing.Authorization.PendingRequest` and `Issuing.Authorization.RequestHistory` +* Add support for new values `hu` and `ro` on enums `Issuing.Cardholder.preferred_locales`, `issuing.CardholderCreateParams.preferred_locales`, and `issuing.CardholderModifyParams.preferred_locales` +* Add support for new values `authentication_failure`, `expired_payment_method`, `incorrect_cvc`, `incorrect_number`, `incorrect_postal_code`, `insufficient_funds`, `payment_method_restricted`, and `processing_error` on enums `PaymentAttemptRecordReportFailedParams.failure_code`, `PaymentRecordReportPaymentAttemptFailedParams.failure_code`, `PaymentRecordReportPaymentAttemptParamsFailed.failure_code`, and `PaymentRecordReportPaymentParamsFailed.failure_code` +* Add support for `network_decline_code` on `PaymentAttemptRecordReportFailedParamsPaymentMethodDetailCard` and `PaymentRecordReportPaymentAttemptFailedParamsPaymentMethodDetailCard` +* Add support for `setup_future_usage` on `PaymentIntent.PaymentMethodOption.Sequra` +* Add support for `status` on `QuotePreviewSubscriptionSchedule.PauseSchedule.Pause`, `QuotePreviewSubscriptionSchedule.PauseSchedule.Resume`, `SubscriptionSchedule.PauseSchedule.Pause`, and `SubscriptionSchedule.PauseSchedule.Resume` +* Change `SubscriptionScheduleCreateParamsPauseSchedule.pause` to be optional +* Change type of `SubscriptionScheduleModifyParamsPauseSchedule.resume` from `pause_schedule_update_resume_params` to `emptyable(pause_schedule_update_resume_params)` +* Add support for `acquirer` on `EventsV2CoreHealthAuthorizationRateDropFiringEvent.Impact.Dimension`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent.Impact.Dimension`, `V2.Core.Health.Alert.AuthorizationRateDrop.Dimension`, and `V2.Core.Health.AlertHistoryEntry.AuthorizationRateDrop.Dimension` +* ⚠️ Change type of `EventsV2CoreHealthAuthorizationRateDropFiringEvent.Impact.Dimension.type`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent.Impact.Dimension.type`, `V2.Core.Health.Alert.AuthorizationRateDrop.Dimension.type`, and `V2.Core.Health.AlertHistoryEntry.AuthorizationRateDrop.Dimension.type` from `literal('issuer')` to `enum('acquirer'|'issuer')` +* Add support for `confirmation_method` on `V2.MoneyManagement.PayoutIntent` and `v2.money_management.PayoutIntentCreateParams` +* Add support for `estimated_fees` and `fx_quote` on `V2.MoneyManagement.PayoutIntent` +* Add support for `debited` on `V2.MoneyManagement.PayoutIntent.From` +* Add support for `confirm` on `V2.MoneyManagement.PayoutIntent.NextAction` +* ⚠️ Change type of `V2.MoneyManagement.PayoutIntent.NextAction.type` from `literal('handle_failure')` to `enum('confirm'|'handle_failure')` +* Add support for `credited` on `V2.MoneyManagement.PayoutIntent.To` +* Add support for new value `one_time_fees` on enums `v2.billing.ContractActivateParams.include`, `v2.billing.ContractCancelParams.include`, `v2.billing.ContractCreateParams.include`, `v2.billing.ContractListParams.include`, `v2.billing.ContractModifyParams.include`, and `v2.billing.ContractRetrieveParams.include` +* Add support for event notification `V1BalanceSettingsUpdatedEvent` with related object `BalanceSettings` +* Add support for event notification `V1BillingCreditBalanceTransactionCreatedEvent` with related object `billing.CreditBalanceTransaction` +* Add support for event notifications `V1BillingCreditGrantCreatedEvent` and `V1BillingCreditGrantUpdatedEvent` with related object `billing.CreditGrant` +* Add support for event notifications `V1BillingMeterCreatedEvent`, `V1BillingMeterDeactivatedEvent`, `V1BillingMeterReactivatedEvent`, and `V1BillingMeterUpdatedEvent` with related object `billing.Meter` +* Add support for event notifications `V1FinancialConnectionsAccountAccountNumbersUpdatedEvent`, `V1FinancialConnectionsAccountExpectedDeactivationDateUpdatedEvent`, `V1FinancialConnectionsAccountSupportedPaymentMethodTypesUpdatedEvent`, `V1FinancialConnectionsAccountUpcomingAccountNumberExpiryEvent`, and `V1FinancialConnectionsAccountUpcomingDeactivationEvent` with related object `financial_connections.Account` +* Add support for event notification `V1InvoicePaymentAttemptRequiredEvent` with related object `Invoice` +* Add support for error type `FxQuoteNeedsRefreshError` diff --git a/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..bb9267fc4 --- /dev/null +++ b/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,36 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1875 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.6.0a2 +--- + +* Add support for new resources `PaymentPlan` and `billing.FeedbackOption` +* ⚠️ Remove support for resource `billing.FeedbackOptions` +* Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `PaymentPlan` +* Add support for `modify` method on resource `v2.money_management.Transaction` +* Add support for `wechat_pay_payments` on `Account.Setting`, `AccountCreateParamsSetting`, and `AccountModifyParamsSetting` +* ⚠️ Change type of `BillingPortal.Configuration.Feature.SubscriptionCancel.CancellationReason.feedback_options` from `$Billing.FeedbackOptions` to `$Billing.FeedbackOption` +* Change `BillingPortal.Configuration.Feature.SubscriptionCancel.CancellationReason.feedback_options` to be required +* Add support for `subscription_pause` on `BillingPortal.Session.Flow` +* Add support for new value `subscription_pause` on enum `BillingPortal.Session.Flow.type` +* Add support for new value `usdt` on enums `Crypto.OnrampSession.TransactionDetail.destination_currency`, `crypto.OnrampSessionCreateParams.destination_currency`, and `crypto.OnrampSessionListParams.destination_currency` +* Add support for new value `usdt` on enums `Crypto.OnrampSession.TransactionDetail.destination_currencies` and `crypto.OnrampSessionCreateParams.destination_currencies` +* Add support for `active_entitlements` on `CustomerSession.Component` +* Add support for `shared_payment_issued_token` on `delegated_checkout.RequestedSessionConfirmParams` +* Add support for new values `payment_plan.created`, `payment_plan.installment_due`, `payment_plan.installment_paid`, `payment_plan.installment_will_be_due`, and `payment_plan.updated` on enum `Event.type` +* Add support for `managed_payments` on `InvoiceCreateParams`, `InvoiceItemCreateParams`, `InvoiceItem`, `Invoice`, and `QuotePreviewInvoice` +* Add support for `payment_plan` on `Invoice` +* Add support for `estimated_fee_details` and `estimated_fee` on `Issuing.Authorization.PendingRequest.HoldAmountDetail` and `Issuing.Authorization.RequestHistory.HoldAmountDetail` +* ⚠️ Remove support for `cryptogram` on `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure` and `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure` +* ⚠️ Change type of `ProductCatalog.TrialOffer.EndBehavior.Transition.price` from `$Price` to `deletable($Price)` +* ⚠️ Change type of `Subscription.CancellationDetail.feedback_option` from `$Billing.FeedbackOptions` to `$Billing.FeedbackOption` +* Add support for `cancel_at_period_end` on `Subscription.PendingUpdate` +* Change `Subscription.CancellationDetail.feedback_option` to be required +* Add support for `igic` on `Tax.Registration.CountryOption.At`, `Tax.Registration.CountryOption.Be`, `Tax.Registration.CountryOption.Bg`, `Tax.Registration.CountryOption.Cy`, `Tax.Registration.CountryOption.Cz`, `Tax.Registration.CountryOption.De`, `Tax.Registration.CountryOption.Dk`, `Tax.Registration.CountryOption.E`, `Tax.Registration.CountryOption.Ee`, `Tax.Registration.CountryOption.Fi`, `Tax.Registration.CountryOption.Fr`, `Tax.Registration.CountryOption.Gr`, `Tax.Registration.CountryOption.Hr`, `Tax.Registration.CountryOption.Hu`, `Tax.Registration.CountryOption.Ie`, `Tax.Registration.CountryOption.It`, `Tax.Registration.CountryOption.Lt`, `Tax.Registration.CountryOption.Lu`, `Tax.Registration.CountryOption.Lv`, `Tax.Registration.CountryOption.Mt`, `Tax.Registration.CountryOption.Nl`, `Tax.Registration.CountryOption.Pl`, `Tax.Registration.CountryOption.Pt`, `Tax.Registration.CountryOption.Ro`, `Tax.Registration.CountryOption.Se`, `Tax.Registration.CountryOption.Si`, and `Tax.Registration.CountryOption.Sk` +* Add support for `metadata` on `V2.Billing.Contract.PricingLine.Datum.Pricing.PriceDetail.PricingOverride.Datum`, `V2.Billing.Contract.PricingOverride.Datum`, `V2.MoneyManagement.Transaction`, `v2.billing.ContractCreateParamsPricingOverride`, `v2.billing.ContractModifyParamsPricingLineActionUpdate`, `v2.billing.ContractModifyParamsPricingOverrideActionAdd`, `v2.billing.ContractModifyParamsPricingOverrideActionUpdate`, and `v2.billing.ContractModifyParams` +* Add support for `tax_amount` on `V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee` +* Add support for `payout_method_options` on `V2.MoneyManagement.OutboundPaymentQuote.To` and `v2.money_management.OutboundPaymentQuoteCreateParamsTo` +* Change type of `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionUpdate.metadata` from `string` to `emptyable(string)` +* Add support for snapshot events `payment_plan.created`, `payment_plan.installment_due`, `payment_plan.installment_paid`, `payment_plan.installment_will_be_due`, and `payment_plan.updated` with resource `PaymentPlan` diff --git a/.hark/changes/2026-08-19_xavdid_add-non-verified.change.md b/.hark/changes/2026-08-19_xavdid_add-non-verified.change.md new file mode 100644 index 000000000..a81115e20 --- /dev/null +++ b/.hark/changes/2026-08-19_xavdid_add-non-verified.change.md @@ -0,0 +1,5 @@ +--- +title: Add non-verified manged handlers +pr_link: https://github.com/stripe/stripe-python/pull/1880 +released_in_version: 15.7.0a1 +--- diff --git a/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..273f3d37f --- /dev/null +++ b/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,38 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1884 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.7.0a1 +--- + +* Add support for new resource `CustomerTaxExemption` +* Add support for `create`, `delete`, `list`, and `retrieve` methods on resource `CustomerTaxExemption` +* Add support for `details` on `Account.FutureRequirement.Error`, `Account.Requirement.Error`, `BankAccount.FutureRequirement.Error`, `BankAccount.Requirement.Error`, `Capability.FutureRequirement.Error`, `Capability.Requirement.Error`, `Person.FutureRequirement.Error`, and `Person.Requirement.Error` +* ⚠️ Remove support for `sequra_payments` on `Account.Capability` +* Add support for `subscription_pause` on `billing_portal.SessionCreateParamsFlowDatum` +* ⚠️ Remove support for `sequra` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, and `PaymentRecord.PaymentMethodDetail` +* Add support for `enablement_details` on `Checkout.Session.AutomaticTax` +* ⚠️ Remove support for value `sequra` from enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* ⚠️ Remove support for value `sequra` from enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* ⚠️ Remove support for value `sequra` from enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `credit` on `FinancialConnections.Transaction.Classification` +* Change type of `FinancialConnections.Transaction.Classification.money_movement` from `nullable(BankConnectionsResourceTransactionResourceClassificationsLabels)` to `BankConnectionsResourceTransactionResourceClassificationsLabels` +* Change type of `FinancialConnections.Transaction.Classification.personal_finance` from `nullable(BankConnectionsResourceTransactionResourceClassificationsLabels)` to `BankConnectionsResourceTransactionResourceClassificationsLabels` +* ⚠️ Change `FinancialConnections.Transaction.Classification.money_movement` to be optional +* ⚠️ Change `FinancialConnections.Transaction.Classification.personal_finance` to be optional +* Add support for `user_consent` on `identity.VerificationSessionCreateParams` and `identity.VerificationSessionModifyParams` +* Add support for `company_details` on `Invoice.PaymentSetting.PaymentMethodOption.Billie`, `PaymentIntent.PaymentMethodOption.Billie`, `PaymentIntentConfirmParamsPaymentMethodOptionBillie`, `PaymentIntentCreateParamsPaymentMethodOptionBillie`, `PaymentIntentModifyParamsPaymentMethodOptionBillie`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption.Billie`, and `Subscription.PaymentSetting.PaymentMethodOption.Billie` +* Add support for `reference` on `Invoice.PaymentSetting.PaymentMethodOption.Billie`, `PaymentIntent.PaymentMethodOption.Billie`, `PaymentIntentConfirmParamsPaymentMethodOptionBillie`, `PaymentIntentCreateParamsPaymentMethodOptionBillie`, `PaymentIntentModifyParamsPaymentMethodOptionBillie`, and `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption.Billie` +* Add support for `pos_condition` on `Issuing.Authorization` and `issuing.AuthorizationCreateParams` +* Add support for `crypto_wallet` on `Issuing.Card`, `issuing.CardCreateParams`, and `issuing.CardModifyParams` +* Add support for `payment_evaluations` and `payment_method_details` on `PaymentAttemptRecordReportAuthorizedParams` +* Add support for `aade_data` on `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresent` +* ⚠️ Remove support for `cancel_at_period_end` on `Subscription.PendingUpdate` +* Add support for `blik_recurring_payments` on `V2.Core.Account.Configuration.Merchant.Capability`, `v2.core.AccountCreateParamsConfigurationMerchantCapability`, and `v2.core.AccountModifyParamsConfigurationMerchantCapability` +* Add support for `user_access` on `V2.Iam.ActivityLog.Detail` +* Add support for new value `user_access` on enum `V2.Iam.ActivityLog.Detail.type` +* Add support for new value `user_access_started` on enum `V2.Iam.ActivityLog.type` +* Add support for new value `user_access` on enum `v2.iam.ActivityLogListParams.action_groups` +* Add support for new value `user_access_started` on enum `v2.iam.ActivityLogListParams.actions` +* Add support for new value `blik_recurring_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability` diff --git a/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..f69c1a63c --- /dev/null +++ b/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,89 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1893 +is_breaking: true +is_stripe_api_change: true +released_in_version: 15.7.0a2 +--- + +* Add support for new resources `radar.BillingEvaluation`, `v2.signals.PaymentRetryEvaluation`, `v2.signals.PaymentRetrySignal`, and `v2.tax.IntegrationConfiguration` +* Add support for `create` method on resource `radar.BillingEvaluation` +* Add support for `create`, `deactivate`, `list`, `modify`, and `retrieve` methods on resource `billing.FeedbackOption` +* Add support for `modify` and `retrieve` methods on resource `v2.tax.IntegrationConfiguration` +* Add support for `retrieve` method on resource `v2.signals.PaymentRetrySignal` +* Add support for `cancel`, `create`, `modify`, and `retrieve` methods on resource `v2.signals.PaymentRetryEvaluation` +* Add support for `disable` method on resource `v2.money_management.PayoutMethod` +* Add support for `modify` method on resource `v2.core.ApprovalRequest` +* ⚠️ Remove support for `execute` and `submit` methods on resource `v2.core.ApprovalRequest` +* Add support for `disable_stripe_user_authentication` on `AccountSessionCreateParamsComponentPaymentMethodSettingFeature` +* Add support for `capital_financing_manual_payment` on `AccountSession.Component` +* Add support for `sequra_payments` on `Account.Capability` +* Add support for `feedback_options` on `billing_portal.ConfigurationCreateParamsFeatureSubscriptionCancelCancellationReason` and `billing_portal.ConfigurationModifyParamsFeatureSubscriptionCancelCancellationReason` +* Add support for new value `fundbox_ca_financing` on enum `Capital.FinancingSummary.Detail.disclaimer_variant` +* Add support for `sequra` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, and `PaymentRecord.PaymentMethodDetail` +* ⚠️ Remove support for value `data_share_only` from enums `Charge.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, and `SetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.result` +* Add support for `funding_types_blocked` on `checkout.SessionCreateParamsPaymentMethodOptionCardRestriction` +* Add support for `payment_intent_data` on `checkout.SessionModifyParams` +* ⚠️ Change type of `Checkout.Session.PaymentMethodOption.Bancontact.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` +* Add support for new value `sequra` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* Add support for `metadata` on `ConfirmationToken`, `V2.Signals.AccountActivity`, and `v2.signals.AccountActivityCreateParams` +* Add support for new value `sequra` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* Add support for `active_entitlements` and `customer_portal` on `CustomerSessionCreateParamsComponent` +* Add support for new value `sequra` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `address_match_confidence` and `name_match_confidence` on `Identity.VerificationReport.Email` and `Identity.VerificationReport.Phone` +* Add support for `domain_country`, `email_exists_confidence`, `observed_domain_tenure_days`, `observed_email_tenure_days`, and `phone_match_confidence` on `Identity.VerificationReport.Email` +* Add support for new values `email_address_mismatch`, `email_name_mismatch`, `email_ownership_unverified`, `email_phone_mismatch`, and `email_short_tenure` on enum `Identity.VerificationReport.Email.Error.code` +* Add support for `carrier`, `line_type`, and `observed_phone_tenure_days` on `Identity.VerificationReport.Phone` +* Add support for new values `phone_address_mismatch`, `phone_invalid_line_type`, `phone_invalid`, `phone_name_mismatch`, `phone_ownership_unverified`, `phone_short_tenure`, and `phone_unsupported_country` on enum `Identity.VerificationReport.Phone.Error.code` +* Add support for new values `email_address_mismatch`, `email_name_mismatch`, `email_ownership_unverified`, `email_phone_mismatch`, `email_short_tenure`, `phone_address_mismatch`, `phone_invalid_line_type`, `phone_invalid`, `phone_name_mismatch`, `phone_ownership_unverified`, `phone_short_tenure`, and `phone_unsupported_country` on enum `Identity.VerificationSession.LastError.code` +* Add support for new value `truemoney` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* Add support for new value `merchant_canceled` on enums `PaymentAttemptRecordReportCanceledParams.reason` and `PaymentRecordReportPaymentAttemptCanceledParams.reason` +* ⚠️ Remove support for `payment_method_types` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentModifyParams`, `SetupIntentCreateParams`, and `SetupIntentModifyParams` +* Add support for new value `touch_n_go` on enums `PaymentIntent.allowed_payment_method_types`, `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, `PaymentIntentModifyParams.allowed_payment_method_types`, `SetupIntent.allowed_payment_method_types`, `SetupIntentConfirmParams.allowed_payment_method_types`, `SetupIntentCreateParams.allowed_payment_method_types`, and `SetupIntentModifyParams.allowed_payment_method_types` +* Add support for new value `sequra` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* Add support for `verification_method` on `PaymentIntent.PaymentMethodOption.BacsDebit`, `PaymentIntentConfirmParamsPaymentMethodOptionBacsDebit`, `PaymentIntentCreateParamsPaymentMethodOptionBacsDebit`, `PaymentIntentModifyParamsPaymentMethodOptionBacsDebit`, `SetupIntent.PaymentMethodOption.BacsDebit`, `SetupIntentConfirmParamsPaymentMethodOptionBacsDebit`, `SetupIntentCreateParamsPaymentMethodOptionBacsDebit`, and `SetupIntentModifyParamsPaymentMethodOptionBacsDebit` +* Change `PaymentIntent.allowed_payment_method_types` and `SetupIntent.allowed_payment_method_types` to be required +* Add support for `application_fee_amount`, `application_fee_percent`, `on_behalf_of`, and `transfer_data` on `PaymentLinkModifyParams` +* Add support for `canceled` on `PaymentRecordReportPaymentAttemptParams` and `PaymentRecordReportPaymentParams` +* ⚠️ Change type of `ProductCatalog.TrialOffer.price` from `$Price` to `deletable($Price)` +* ⚠️ Change `ProductCatalog.TrialOffer.name` to be optional +* Add support for `recurring` on `SharedPayment.GrantedToken.UsageLimit`, `SharedPayment.IssuedToken.UsageLimit`, `shared_payment.GrantedTokenCreateParamsUsageLimit`, and `shared_payment.IssuedTokenCreateParamsUsageLimit` +* Add support for `feedback_option` on `SubscriptionCancelParamsCancellationDetail` and `SubscriptionModifyParamsCancellationDetail` +* Add support for `pricing_token` on `SubscriptionModifyParams` +* Add support for `igic` on `tax.RegistrationCreateParamsCountryOptionAt`, `tax.RegistrationCreateParamsCountryOptionBe`, `tax.RegistrationCreateParamsCountryOptionBg`, `tax.RegistrationCreateParamsCountryOptionCy`, `tax.RegistrationCreateParamsCountryOptionCz`, `tax.RegistrationCreateParamsCountryOptionDe`, `tax.RegistrationCreateParamsCountryOptionDk`, `tax.RegistrationCreateParamsCountryOptionE`, `tax.RegistrationCreateParamsCountryOptionEe`, `tax.RegistrationCreateParamsCountryOptionFi`, `tax.RegistrationCreateParamsCountryOptionFr`, `tax.RegistrationCreateParamsCountryOptionGr`, `tax.RegistrationCreateParamsCountryOptionHr`, `tax.RegistrationCreateParamsCountryOptionHu`, `tax.RegistrationCreateParamsCountryOptionIe`, `tax.RegistrationCreateParamsCountryOptionIt`, `tax.RegistrationCreateParamsCountryOptionLt`, `tax.RegistrationCreateParamsCountryOptionLu`, `tax.RegistrationCreateParamsCountryOptionLv`, `tax.RegistrationCreateParamsCountryOptionMt`, `tax.RegistrationCreateParamsCountryOptionNl`, `tax.RegistrationCreateParamsCountryOptionPl`, `tax.RegistrationCreateParamsCountryOptionPt`, `tax.RegistrationCreateParamsCountryOptionRo`, `tax.RegistrationCreateParamsCountryOptionSe`, `tax.RegistrationCreateParamsCountryOptionSi`, and `tax.RegistrationCreateParamsCountryOptionSk` +* Add support for new value `2026-08-26.dahlia` on enum `WebhookEndpointCreateParams.api_version` +* Add support for `one_time_fees` on `V2.Billing.Contract` and `v2.billing.ContractCreateParams` +* ⚠️ Remove support for `payment_method_collection` on `V2.Core.Account.Configuration.Merchant.GrossSettlement`, `v2.core.AccountCreateParamsConfigurationMerchantGrossSettlement`, and `v2.core.AccountModifyParamsConfigurationMerchantGrossSettlement` +* Add support for `payout_methods` on `V2.Core.Account.Default` and `v2.core.AccountModifyParamsDefault` +* Add support for `reason` on `V2.Core.ApprovalRequest` +* ⚠️ Remove support for `description` on `V2.Core.ApprovalRequest` +* Add support for `api_key`, `type`, and `user` on `V2.Core.ApprovalRequest.RequestedBy` and `V2.Core.ApprovalRequest.Review.ReviewedBy` +* ⚠️ Remove support for `id` and `name` on `V2.Core.ApprovalRequest.RequestedBy` and `V2.Core.ApprovalRequest.Review.ReviewedBy` +* Add support for `approved_at` on `V2.Core.ApprovalRequest.StatusTransition` +* ⚠️ Remove support for `requires_execution_at` on `V2.Core.ApprovalRequest.StatusTransition` +* Add support for `crypto_transaction` on `V2.Core.FeeBatch.CollectionRecord` +* Add support for new value `crypto_transaction` on enum `V2.Core.FeeBatch.CollectionRecord.type` +* Add support for `restricted` on `V2.Core.Vault.GbBankAccount` and `V2.Core.Vault.UsBankAccount` +* Add support for `savings` on `V2.MoneyManagement.FinancialAccount` and `v2.money_management.FinancialAccountCreateParams` +* ⚠️ Add support for new value `savings` on enum `V2.MoneyManagement.FinancialAccount.type` +* Add support for `enabled_delivery_schemes` on `V2.MoneyManagement.PayoutMethod.BankAccount` +* ⚠️ Remove support for `enabled_delivery_options` on `V2.MoneyManagement.PayoutMethod.BankAccount` +* ⚠️ Add support for new value `disabled` on enum `V2.MoneyManagement.PayoutMethod.UsageStatus.payments` +* ⚠️ Add support for new value `disabled` on enum `V2.MoneyManagement.PayoutMethod.UsageStatus.transfers` +* Add support for `to_account` on `V2.MoneyManagement.ReceivedDebit.BalanceTransfer` +* Add support for `account_restricted` and `account_suspended` on `V2.Signals.AccountActivity` and `v2.signals.AccountActivityCreateParams` +* Add support for new values `account_restricted` and `account_suspended` on enums `V2.Signals.AccountActivity.type`, `v2.signals.AccountActivityCreateParams.type`, and `v2.signals.AccountEvaluationCreateParamsAccountActivityDetailData.type` +* ⚠️ Remove support for value `not_assessed` from enums `V2.Signals.AccountEvaluation.EvaluatedSignal.FraudulentWebsite.risk_level`, `V2.Signals.AccountEvaluation.EvaluatedSignal.UserAccountSharing.risk_level`, `V2.Signals.AccountEvaluation.EvaluatedSignal.UserMultiAccounting.risk_level`, `V2.Signals.AccountSignal.FraudulentMerchant.risk_level`, `V2.Signals.AccountSignal.FraudulentWebsite.risk_level`, `V2.Signals.AccountSignal.MerchantDelinquency.risk_level`, `V2.Signals.AccountSignal.UserAccountSharing.risk_level`, and `V2.Signals.AccountSignal.UserMultiAccounting.risk_level` +* Add support for `additional_details` on `V2.Signals.AccountSignal.FraudulentMerchant` and `V2.Signals.AccountSignal.MerchantDelinquency` +* ⚠️ Remove support for `indicators` on `V2.Signals.AccountSignal.FraudulentMerchant` and `V2.Signals.AccountSignal.MerchantDelinquency` +* Add support for new value `disabled` on enum `v2.money_management.PayoutMethodListParamsUsageStatus.payments` +* Add support for new value `disabled` on enum `v2.money_management.PayoutMethodListParamsUsageStatus.transfers` +* Add support for new value `savings` on enum `v2.money_management.FinancialAccountListParams.types` +* Add support for new value `savings` on enum `v2.money_management.FinancialAccountCreateParams.type` +* Add support for `action`, `created`, and `status` on `v2.core.ApprovalRequestListParams` +* Add support for `one_time_fee_actions` on `v2.billing.ContractModifyParams` +* Add support for event notifications `V2CoreHealthMetronomeNotificationLatencyFiringEvent`, `V2CoreHealthMetronomeNotificationLatencyResolvedEvent`, and `V2SignalsPaymentRetryEvaluationsRetryRecommendedEvent` +* Add support for event notifications `V2MoneyManagementPayoutIntentCanceledEvent`, `V2MoneyManagementPayoutIntentCreatedEvent`, `V2MoneyManagementPayoutIntentPostedEvent`, `V2MoneyManagementPayoutIntentProcessingEvent`, and `V2MoneyManagementPayoutIntentRequiresActionEvent` with related object `v2.money_management.PayoutIntent` +* Add support for error codes `authentication_failure`, `capability_not_active`, `expired_payment_method`, `incorrect_postal_code`, `invalid_canceled_subscription_fields`, and `payment_method_restricted` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, `StripeError`, and `Terminal.Reader.Action.ApiError` +* Add support for error code `contract_number_already_exists` on `AlreadyExistsError` +* Add support for error codes `default_payout_method_cannot_be_disabled`, `evaluation_not_monitoring`, `missing_payment_data_for_evaluation`, `one_time_fee_already_billed`, `payment_not_eligible`, and `webhook_endpoint_not_configured` on `CannotProceedError` diff --git a/.hark/changes/2026-09-09_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-09-09_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000..8c2726629 --- /dev/null +++ b/.hark/changes/2026-09-09_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,18 @@ +--- +title: Update generated code for private-preview +pr_link: https://github.com/stripe/stripe-python/pull/1901 +is_stripe_api_change: true +released_in_version: 15.7.0a3 +--- + +* Add support for `customer_tax_exemption` on `Tax.Calculation.ShippingCost.TaxBreakdown`, `Tax.CalculationLineItem.TaxBreakdown`, and `Tax.Transaction.ShippingCost.TaxBreakdown` +* Add support for new value `data_share_only` on enums `Charge.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, and `SetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.result` +* Add support for `backdate_start_date` on `Checkout.Session.Item.Subscription` and `checkout.SessionCreateParamsItemSubscription` +* Add support for `signals` on `Identity.VerificationReport` +* Add support for `network_response_code` on `Issuing.Authorization.RequestHistory` +* Add support for `unit_cost_precision` on `PaymentIntentAmountDetailsLineItem`, `PaymentIntentCaptureParamsAmountDetailLineItem`, `PaymentIntentConfirmParamsAmountDetailLineItem`, `PaymentIntentCreateParamsAmountDetailLineItem`, `PaymentIntentDecrementAuthorizationParamsAmountDetailLineItem`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItem`, and `PaymentIntentModifyParamsAmountDetailLineItem` +* Change `PaymentIntent.payment_record` to be required +* Add support for `active` on `product_catalog.TrialOfferListParams` +* Change `Subscription.TrialSetting.EndBehavior.billing_cycle_anchor` to be required +* Add support for new value `rtp` on enum `Treasury.FinancialAccount.FinancialAddress.supported_networks` +* Add support for new value `blik_recurring_payments` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` diff --git a/.hark/intros/intro-13.1.0a1.md b/.hark/intros/intro-13.1.0a1.md new file mode 100644 index 000000000..6f7629800 --- /dev/null +++ b/.hark/intros/intro-13.1.0a1.md @@ -0,0 +1 @@ +It is built on top of SDK version 13.0.0 and 13.1.0-beta.1 which contain breaking changes. Please review the changelog for these versions if upgrading from older SDK versions. diff --git a/.hark/intros/intro-14.1.0a2.md b/.hark/intros/intro-14.1.0a2.md new file mode 100644 index 000000000..738ae3d15 --- /dev/null +++ b/.hark/intros/intro-14.1.0a2.md @@ -0,0 +1 @@ +This release changes the pinned API version to `2025-11-17.preview`. diff --git a/.hark/intros/intro-14.5.0a1.md b/.hark/intros/intro-14.5.0a1.md new file mode 100644 index 000000000..8235f8a1c --- /dev/null +++ b/.hark/intros/intro-14.5.0a1.md @@ -0,0 +1 @@ +This release uses the API version `2026-01-28.preview`. diff --git a/.hark/intros/intro-15.1.0a1.md b/.hark/intros/intro-15.1.0a1.md new file mode 100644 index 000000000..29caea5a8 --- /dev/null +++ b/.hark/intros/intro-15.1.0a1.md @@ -0,0 +1 @@ +This release contains additional breaking changes. See the [GA changelog](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#1500---2026-03-25) for more information. diff --git a/.hark/versions.json b/.hark/versions.json new file mode 100644 index 000000000..362a5ef4b --- /dev/null +++ b/.hark/versions.json @@ -0,0 +1,316 @@ +{ + "versions": [ + { + "version": "15.7.0a3", + "released_on": "2026-09-09", + "pinned_api_version": "2026-08-26.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.7.0a2", + "released_on": "2026-09-02", + "pinned_api_version": "2026-08-26.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.7.0a1", + "released_on": "2026-08-26", + "pinned_api_version": "2026-08-26.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.6.0a2", + "released_on": "2026-08-19", + "pinned_api_version": "2026-08-12.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.6.0a1", + "released_on": "2026-08-12", + "pinned_api_version": "2026-08-12.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.5.0a2", + "released_on": "2026-08-05", + "pinned_api_version": "2026-07-29.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.5.0a1", + "released_on": "2026-07-29", + "pinned_api_version": "2026-07-29.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.4.0a5", + "released_on": "2026-07-22", + "pinned_api_version": "2026-07-08.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.4.0a4", + "released_on": "2026-07-16", + "pinned_api_version": "2026-07-08.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.4.0a3", + "released_on": "2026-07-08", + "pinned_api_version": "2026-07-08.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.4.0a2", + "released_on": "2026-07-01", + "pinned_api_version": "2026-07-01.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.4.0a1", + "released_on": "2026-06-24", + "pinned_api_version": "2026-06-24.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.3.0a4", + "released_on": "2026-06-17", + "pinned_api_version": "2026-06-10.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.3.0a3", + "released_on": "2026-06-10", + "pinned_api_version": "2026-06-10.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.3.0a2", + "released_on": "2026-06-03", + "pinned_api_version": "2026-06-03.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.3.0a1", + "released_on": "2026-05-27", + "pinned_api_version": "2026-05-27.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.2.0a6", + "released_on": "2026-05-20", + "pinned_api_version": "2026-04-22.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.2.0a5", + "released_on": "2026-05-13", + "pinned_api_version": "2026-04-22.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.2.0a4", + "released_on": "2026-05-06", + "pinned_api_version": "2026-04-22.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.2.0a3", + "released_on": "2026-04-28", + "pinned_api_version": "2026-04-22.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.2.0a2", + "released_on": "2026-04-28", + "pinned_api_version": "2026-04-22.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.2.0a1", + "released_on": "2026-04-24", + "pinned_api_version": "2026-04-22.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.1.0a4", + "released_on": "2026-04-15", + "pinned_api_version": "2026-04-08.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.1.0a3", + "released_on": "2026-04-08", + "pinned_api_version": "2026-04-08.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.1.0a2", + "released_on": "2026-04-01", + "pinned_api_version": "2026-04-01.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "15.1.0a1", + "released_on": "2026-03-25", + "pinned_api_version": "2026-03-25.preview", + "minimum_runtime_version": "3.9" + }, + { + "version": "14.5.0a4", + "released_on": "2026-03-18", + "pinned_api_version": "2026-03-04.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.5.0a3", + "released_on": "2026-03-11", + "pinned_api_version": "2026-03-04.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.5.0a2", + "released_on": "2026-03-04", + "pinned_api_version": "2026-03-04.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.5.0a1", + "released_on": "2026-02-25", + "pinned_api_version": "2026-01-28.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.4.0a4", + "released_on": "2026-02-19", + "pinned_api_version": "2026-01-28.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.4.0a3", + "released_on": "2026-02-11", + "pinned_api_version": "2026-01-28.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.4.0a2", + "released_on": "2026-02-04", + "pinned_api_version": "2026-01-28.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.4.0a1", + "released_on": "2026-01-28", + "pinned_api_version": "2026-01-28.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.3.0a1", + "released_on": "2026-01-21", + "pinned_api_version": "2025-12-15.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.2.0a3", + "released_on": "2026-01-14", + "pinned_api_version": "2025-12-15.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.2.0a2", + "released_on": "2026-01-07", + "pinned_api_version": "2025-12-15.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.2.0a1", + "released_on": "2025-12-14", + "pinned_api_version": "2025-12-15.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.1.0a4", + "released_on": "2025-12-04", + "pinned_api_version": "2025-11-17.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.1.0a3", + "released_on": "2025-11-24", + "pinned_api_version": "2025-11-17.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.1.0a2", + "released_on": "2025-11-20", + "pinned_api_version": "2025-11-17.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "14.1.0a1", + "released_on": "2025-11-18", + "pinned_api_version": "2025-11-17.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "13.3.0a2", + "released_on": "2025-11-13", + "pinned_api_version": "2025-10-29.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "13.3.0a1", + "released_on": "2025-11-06", + "pinned_api_version": "2025-09-30.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "13.2.0a2", + "released_on": "2025-10-30", + "pinned_api_version": "2025-09-30.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "13.2.0a1", + "released_on": "2025-10-29", + "pinned_api_version": "2025-09-30.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "13.1.0a4", + "released_on": "2025-10-23", + "pinned_api_version": "2025-09-30.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "13.1.0a3", + "released_on": "2025-10-17", + "pinned_api_version": "2025-09-30.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "13.1.0a2", + "released_on": "2025-10-09", + "pinned_api_version": "2025-09-30.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "13.1.0a1", + "released_on": "2025-10-01", + "pinned_api_version": "2025-09-30.preview", + "minimum_runtime_version": "3.7" + }, + { + "version": "12.6.0a2", + "released_on": "2025-09-17", + "pinned_api_version": "2025-08-04.preview", + "minimum_runtime_version": "3.6" + }, + { + "version": "12.6.0a1", + "released_on": "2025-08-27", + "pinned_api_version": "2025-08-27.preview", + "minimum_runtime_version": "3.6" + } + ] +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 97a9761b5..a36b9fbc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ + + # Changelog +> This changelog only covers the **private preview** releases. Each release builds on the most recent GA release; see those notes in [the GA changelog](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md). + ## 15.7.0a3 - 2026-09-09 * [#1901](https://github.com/stripe/stripe-python/pull/1901) Update generated code for private-preview * Add support for `customer_tax_exemption` on `Tax.Calculation.ShippingCost.TaxBreakdown`, `Tax.CalculationLineItem.TaxBreakdown`, and `Tax.Transaction.ShippingCost.TaxBreakdown` @@ -15,7 +22,7 @@ * Add support for new value `blik_recurring_payments` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` ## 15.7.0a2 - 2026-09-02 -* [#1893](https://github.com/stripe/stripe-python/pull/1893) Update generated code for private-preview +* ⚠️ [#1893](https://github.com/stripe/stripe-python/pull/1893) Update generated code for private-preview * Add support for new resources `radar.BillingEvaluation`, `v2.signals.PaymentRetryEvaluation`, `v2.signals.PaymentRetrySignal`, and `v2.tax.IntegrationConfiguration` * Add support for `create` method on resource `radar.BillingEvaluation` * Add support for `create`, `deactivate`, `list`, `modify`, and `retrieve` methods on resource `billing.FeedbackOption` @@ -99,9 +106,10 @@ * Add support for error codes `default_payout_method_cannot_be_disabled`, `evaluation_not_monitoring`, `missing_payment_data_for_evaluation`, `one_time_fee_already_billed`, `payment_not_eligible`, and `webhook_endpoint_not_configured` on `CannotProceedError` ## 15.7.0a1 - 2026-08-26 -This release changes the pinned API version to 2026-08-26.preview. +This release changes the pinned API version to `2026-08-26.preview`. -* [#1884](https://github.com/stripe/stripe-python/pull/1884) Update generated code for private-preview +* [#1880](https://github.com/stripe/stripe-python/pull/1880) Add non-verified manged handlers +* ⚠️ [#1884](https://github.com/stripe/stripe-python/pull/1884) Update generated code for private-preview * Add support for new resource `CustomerTaxExemption` * Add support for `create`, `delete`, `list`, and `retrieve` methods on resource `CustomerTaxExemption` * Add support for `details` on `Account.FutureRequirement.Error`, `Account.Requirement.Error`, `BankAccount.FutureRequirement.Error`, `BankAccount.Requirement.Error`, `Capability.FutureRequirement.Error`, `Capability.Requirement.Error`, `Person.FutureRequirement.Error`, and `Person.Requirement.Error` @@ -132,50 +140,9 @@ This release changes the pinned API version to 2026-08-26.preview. * Add support for new value `user_access` on enum `v2.iam.ActivityLogListParams.action_groups` * Add support for new value `user_access_started` on enum `v2.iam.ActivityLogListParams.actions` * Add support for new value `blik_recurring_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability` -* [#1880](https://github.com/stripe/stripe-python/pull/1880) Add non-verified manged handlers - -## 15.6.1 - 2026-09-01 -* [#1896](https://github.com/stripe/stripe-python/pull/1896) Harden API requestor code against malicious URLs -* [#1898](https://github.com/stripe/stripe-python/pull/1898) Use cryptographically secure boundaries for multipart file uploads -* [#1860](https://github.com/stripe/stripe-python/pull/1860) Dispatch discriminated union fields to their variant class - -## 15.6.0 - 2026-08-26 -This release changes the pinned API version to 2026-08-26.dahlia. - -* [#1881](https://github.com/stripe/stripe-python/pull/1881) Add new `EventNotificationHandler` class for better thin event management - - - We've been putting a lot of time into rethinking the event handling experience in the SDKs. This new class is the culmination [of that effort](https://stripe.dev/blog/event-notification-handlers-thin-events). - - They're designed for a tight coupling with both `StripeClient` and the fully-typed nature of [thin events](https://docs.stripe.com/event-destinations#thin-events). This delivers painless event destination upgrades, in-editor checks for common mistakes, and better code modularity. - - Now that we've released [thin event notifications for v1 objects](https://docs.stripe.com/changelog#2026-08-26.dahlia), these new handlers are our recommended path for all integrations using thin event notifications. - - See more detailed docs here: https://docs.stripe.com/webhooks/event-notification-handlers - - As part of this work, we've widened some of the types our webhook-related methods take so they play more nicely with the types commonly returned by popular web frameworks ([#1888](https://github.com/stripe/stripe-python/pull/1888)) - -* [#1876](https://github.com/stripe/stripe-python/pull/1876) Update generated code - * Add support for new resource `billing.FeedbackOption` - * Add support for `create`, `deactivate`, `list`, `modify`, and `retrieve` methods on resource `billing.FeedbackOption` - * Add support for `payment_method_settings` on `AccountSession.Component` and `AccountSessionCreateParamsComponent` - * Add support for `feedback_options` on `BillingPortal.Configuration.Feature.SubscriptionCancel.CancellationReason`, `billing_portal.ConfigurationCreateParamsFeatureSubscriptionCancelCancellationReason`, and `billing_portal.ConfigurationModifyParamsFeatureSubscriptionCancelCancellationReason` - * Add support for new value `customer_update` on enums `BillingPortal.Session.Flow.type` and `billing_portal.SessionCreateParamsFlowDatum.type` - * Add support for `customer_update` on `BillingPortal.Session.Flow` - * Add support for `funding_source_group` on `Charge.PaymentMethodDetail.Card.Wallet.Link` and `Charge.PaymentMethodDetail.Link` - * Add support for `funding_types_blocked` on `Checkout.Session.PaymentMethodOption.Card.Restriction` and `checkout.SessionCreateParamsPaymentMethodOptionCardRestriction` - * Add support for `metadata` on `ConfirmationToken` - * Add support for `active_entitlements` and `customer_portal` on `CustomerSession.Component` and `CustomerSessionCreateParamsComponent` - * Add support for `country` on `FinancialConnections.Session.Filter` - * Add support for `frozen_fields` on `InvoiceItem` - * Add support for `billie` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOption` - * Add support for new value `billie` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` - * ⚠️ Remove support for `cryptogram` on `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure` and `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure` - * Add support for new value `touch_n_go` on enums `PaymentIntent.allowed_payment_method_types`, `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, `PaymentIntentModifyParams.allowed_payment_method_types`, `SetupIntent.allowed_payment_method_types`, `SetupIntentConfirmParams.allowed_payment_method_types`, `SetupIntentCreateParams.allowed_payment_method_types`, and `SetupIntentModifyParams.allowed_payment_method_types` - * Change `PaymentIntent.allowed_payment_method_types` and `SetupIntent.allowed_payment_method_types` to be required - * Add support for `application_fee_amount`, `application_fee_percent`, `on_behalf_of`, and `transfer_data` on `PaymentLinkModifyParams` - * Add support for `feedback_option` on `Subscription.CancellationDetail`, `SubscriptionCancelParamsCancellationDetail`, and `SubscriptionModifyParamsCancellationDetail` - * Add support for `igic` on `Tax.Registration.CountryOption.At`, `Tax.Registration.CountryOption.Be`, `Tax.Registration.CountryOption.Bg`, `Tax.Registration.CountryOption.Cy`, `Tax.Registration.CountryOption.Cz`, `Tax.Registration.CountryOption.De`, `Tax.Registration.CountryOption.Dk`, `Tax.Registration.CountryOption.E`, `Tax.Registration.CountryOption.Ee`, `Tax.Registration.CountryOption.Fi`, `Tax.Registration.CountryOption.Fr`, `Tax.Registration.CountryOption.Gr`, `Tax.Registration.CountryOption.Hr`, `Tax.Registration.CountryOption.Hu`, `Tax.Registration.CountryOption.Ie`, `Tax.Registration.CountryOption.It`, `Tax.Registration.CountryOption.Lt`, `Tax.Registration.CountryOption.Lu`, `Tax.Registration.CountryOption.Lv`, `Tax.Registration.CountryOption.Mt`, `Tax.Registration.CountryOption.Nl`, `Tax.Registration.CountryOption.Pl`, `Tax.Registration.CountryOption.Pt`, `Tax.Registration.CountryOption.Ro`, `Tax.Registration.CountryOption.Se`, `Tax.Registration.CountryOption.Si`, `Tax.Registration.CountryOption.Sk`, `tax.RegistrationCreateParamsCountryOptionAt`, `tax.RegistrationCreateParamsCountryOptionBe`, `tax.RegistrationCreateParamsCountryOptionBg`, `tax.RegistrationCreateParamsCountryOptionCy`, `tax.RegistrationCreateParamsCountryOptionCz`, `tax.RegistrationCreateParamsCountryOptionDe`, `tax.RegistrationCreateParamsCountryOptionDk`, `tax.RegistrationCreateParamsCountryOptionE`, `tax.RegistrationCreateParamsCountryOptionEe`, `tax.RegistrationCreateParamsCountryOptionFi`, `tax.RegistrationCreateParamsCountryOptionFr`, `tax.RegistrationCreateParamsCountryOptionGr`, `tax.RegistrationCreateParamsCountryOptionHr`, `tax.RegistrationCreateParamsCountryOptionHu`, `tax.RegistrationCreateParamsCountryOptionIe`, `tax.RegistrationCreateParamsCountryOptionIt`, `tax.RegistrationCreateParamsCountryOptionLt`, `tax.RegistrationCreateParamsCountryOptionLu`, `tax.RegistrationCreateParamsCountryOptionLv`, `tax.RegistrationCreateParamsCountryOptionMt`, `tax.RegistrationCreateParamsCountryOptionNl`, `tax.RegistrationCreateParamsCountryOptionPl`, `tax.RegistrationCreateParamsCountryOptionPt`, `tax.RegistrationCreateParamsCountryOptionRo`, `tax.RegistrationCreateParamsCountryOptionSe`, `tax.RegistrationCreateParamsCountryOptionSi`, and `tax.RegistrationCreateParamsCountryOptionSk` - * Add support for new value `2026-08-26.dahlia` on enum `WebhookEndpointCreateParams.api_version` - * Add support for error codes `authentication_failure`, `capability_not_active`, `expired_payment_method`, `incorrect_postal_code`, `invalid_canceled_subscription_fields`, and `payment_method_restricted` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, `StripeError`, and `Terminal.Reader.Action.ApiError` ## 15.6.0a2 - 2026-08-19 -* [#1875](https://github.com/stripe/stripe-python/pull/1875) Update generated code for private-preview +* ⚠️ [#1875](https://github.com/stripe/stripe-python/pull/1875) Update generated code for private-preview * Add support for new resources `PaymentPlan` and `billing.FeedbackOption` * ⚠️ Remove support for resource `billing.FeedbackOptions` * Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `PaymentPlan` @@ -206,9 +173,9 @@ This release changes the pinned API version to 2026-08-26.dahlia. * Add support for snapshot events `payment_plan.created`, `payment_plan.installment_due`, `payment_plan.installment_paid`, `payment_plan.installment_will_be_due`, and `payment_plan.updated` with resource `PaymentPlan` ## 15.6.0a1 - 2026-08-12 -This release changes the pinned API version to 2026-08-12.preview. +This release changes the pinned API version to `2026-08-12.preview`. -* [#1873](https://github.com/stripe/stripe-python/pull/1873) Update generated code for private-preview +* ⚠️ [#1873](https://github.com/stripe/stripe-python/pull/1873) Update generated code for private-preview * Add support for new resource `v2.tax.OperationsResolveAddressResult` * Add support for `resolve_address` method on resource `v2.tax.OperationsResolveAddressResult` * Add support for `confirm` and `fx_quote` methods on resource `v2.money_management.PayoutIntent` @@ -255,27 +222,8 @@ This release changes the pinned API version to 2026-08-12.preview. * Add support for event notification `V1InvoicePaymentAttemptRequiredEvent` with related object `Invoice` * Add support for error type `FxQuoteNeedsRefreshError` -## 15.5.1 - 2026-08-18 -* [#1879](https://github.com/stripe/stripe-python/pull/1879) better document `StripeObject`'s `to_dict` behavior - -## 15.5.0 - 2026-08-10 -* [#1874](https://github.com/stripe/stripe-python/pull/1874) Add async iteration to v2 list auto-pagination - - Adds `async for` support to v2 `ListObject.auto_paging_iter()`. -* [#1869](https://github.com/stripe/stripe-python/pull/1869) Surface `object` property on `EventNotification` -* [#1867](https://github.com/stripe/stripe-python/pull/1867) Emit Claude Code plugin hint at module load time - - Emits new Claude Code plugin hint when `CLAUDECODE` or `CLAUDE_CODE_CHILD_SESSION` environment variables are detected. -* [#1855](https://github.com/stripe/stripe-python/pull/1855) add/adjust event parsing helpers - - - Added methods that return their respective `Event`/`EventNotification` class instances without verifying authenticity. Use them when you've previously verified an event (e.g. you verified, put the event in a queue, and are now processing). Supports events from [AWS EventBridge](https://docs.stripe.com/event-destinations/eventbridge) and [Azure Event Grid](https://docs.stripe.com/event-destinations/eventgrid) natively. - - `Webhook.construct_event_without_verification(payload)` - - `StripeClient.construct_event_without_verification(payload)` - - `StripeClient.parse_event_notification_without_verification(payload)` - - Added `WebhookSignature.generate_signature_header(payload, secret, timestamp=None)`, which computes a full `Stripe-Signature` header for the given payload. Useful for unit tests! - -* [#1863](https://github.com/stripe/stripe-python/pull/1863) Add `stripe.major_api_version` constant - ## 15.5.0a2 - 2026-08-05 -* [#1859](https://github.com/stripe/stripe-python/pull/1859) Update generated code for private-preview +* ⚠️ [#1859](https://github.com/stripe/stripe-python/pull/1859) Update generated code for private-preview * Add support for new resource `billing.FeedbackOptions` * Add support for `sequra_payments` on `Account.Capability` * Add support for `feedback_options` on `BillingPortal.Configuration.Feature.SubscriptionCancel.CancellationReason` @@ -299,14 +247,11 @@ This release changes the pinned API version to 2026-08-12.preview. * Add support for `application` on `V2.Payments.OffSessionPayment` * Add support for `status` on `v2.money_management.FinancialAccountStatementListParams` * Change `v2.billing.ContractCreateParams.pricing_lines` to be optional -* [#1865](https://github.com/stripe/stripe-python/pull/1865) Merge to private-preview - - No user-facing changes — this is a merge commit only. ## 15.5.0a1 - 2026-07-29 -This release changes the pinned API version to 2026-07-29.preview. +This release changes the pinned API version to `2026-07-29.preview`. -* [#1854](https://github.com/stripe/stripe-python/pull/1854) Update generated code for private-preview +* ⚠️ [#1854](https://github.com/stripe/stripe-python/pull/1854) Update generated code for private-preview * Add support for new resources `v2.money_management.ReceivedDebitMandate`, `v2.risk.Inquiry`, `v2.signals.AccountActivity`, and `v2.signals.AccountEvaluation` * Add support for `create` and `retrieve` methods on resource `v2.signals.AccountEvaluation` * Add support for `create`, `delete`, and `retrieve` methods on resource `v2.signals.AccountActivity` @@ -355,60 +300,8 @@ This release changes the pinned API version to 2026-07-29.preview. * Add support for event notification `V2SignalsAccountEvaluationCompleteEvent` with related object `v2.signals.AccountEvaluation` * Add support for event notifications `V2SignalsAccountSignalFraudulentWebsiteReadyEvent` and `V2SignalsAccountSignalPaymentDelinquencyExposureReadyEvent` with related object `v2.signals.AccountSignal` -## 15.4.0 - 2026-07-29 -This release changes the pinned API version to 2026-07-29.dahlia. - -* [#1857](https://github.com/stripe/stripe-python/pull/1857) Update generated code - * Add support for new resource `financial_connections.Authorization` - * Add support for `unreject` method on resource `Account` - * Add support for `list` method on resource `PaymentRecord` - * Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `Tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.Calculation.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.CalculationLineItem.TaxBreakdown.TaxRateDetail.tax_type`, and `Tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type` - * Add support for new value `chaps` on enums `FundingInstructions.BankTransfer.FinancialAddress.supported_networks` and `PaymentIntent.NextAction.DisplayBankTransferInstruction.FinancialAddress.supported_networks` - * Add support for `smart_disputes_management` on `AccountSession.Component.DisputesList.Feature`, `AccountSession.Component.Payment.Feature`, `AccountSession.Component.PaymentDetail.Feature`, `AccountSession.Component.PaymentDispute.Feature`, `AccountSessionCreateParamsComponentDisputesListFeature`, `AccountSessionCreateParamsComponentPaymentDetailFeature`, `AccountSessionCreateParamsComponentPaymentDisputeFeature`, and `AccountSessionCreateParamsComponentPaymentFeature` - * Add support for `administrative_address` and `principal_place_of_business` on `Account.Company`, `AccountCreateParamsCompany`, `AccountModifyParamsCompany`, and `TokenCreateParamsAccountCompany` - * Add support for `sepa_debit_payments` on `AccountModifyParamsSetting` - * Remove support for `proof_of_registration` on `AccountCreateParamsDocument`. This field was limited-use and is being deprecated. - * Add support for `payouts_action` on `AccountRejectParams` - * Add support for new value `data_share_only` on enums `Charge.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, and `SetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.result` - * Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `Charge.PaymentMethodDetail.Fpx.bank`, `ConfirmationToken.PaymentMethodPreview.Fpx.bank`, `PaymentAttemptRecord.PaymentMethodDetail.Fpx.bank`, `PaymentMethod.Fpx.bank`, and `PaymentRecord.PaymentMethodDetail.Fpx.bank` - * Remove support for `dynamic_tax_rates` on `checkout.SessionCreateParamsLineItem`. This field was limited-use and is being deprecated. - * Add support for `setup_future_usage` on `Checkout.Session.PaymentMethodOption.Payco`, `Checkout.Session.PaymentMethodOption.SamsungPay`, `PaymentIntent.PaymentMethodOption.Payco`, `PaymentIntent.PaymentMethodOption.SamsungPay`, `PaymentIntentConfirmParamsPaymentMethodOptionPayco`, `PaymentIntentConfirmParamsPaymentMethodOptionSamsungPay`, `PaymentIntentCreateParamsPaymentMethodOptionPayco`, `PaymentIntentCreateParamsPaymentMethodOptionSamsungPay`, `PaymentIntentModifyParamsPaymentMethodOptionPayco`, `PaymentIntentModifyParamsPaymentMethodOptionSamsungPay`, `PaymentLinkModifyParamsPaymentIntentDatum`, `checkout.SessionCreateParamsPaymentMethodOptionPayco`, and `checkout.SessionCreateParamsPaymentMethodOptionSamsungPay` - * Add support for new value `ic_nif` on enums `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` - * Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `ConfirmationTokenCreateParamsPaymentMethodDatumFpx.bank`, `PaymentIntentConfirmParamsPaymentMethodDatumFpx.bank`, `PaymentIntentCreateParamsPaymentMethodDatumFpx.bank`, `PaymentIntentModifyParamsPaymentMethodDatumFpx.bank`, `PaymentMethodCreateParamsFpx.bank`, `SetupIntentConfirmParamsPaymentMethodDatumFpx.bank`, `SetupIntentCreateParamsPaymentMethodDatumFpx.bank`, and `SetupIntentModifyParamsPaymentMethodDatumFpx.bank` - * Add support for new value `ic_nif` on enums `CustomerCreateParamsTaxIdDatum.type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParamsCustomerDetailTaxId.type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParamsCustomerDetailTaxId.type` - * Add support for `network` on `Dispute.PaymentMethodDetail.Card` - * Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enum `Event.type` - * Add support for `limits` and `manual_entry` on `FinancialConnections.Session` and `financial_connections.SessionCreateParams` - * Add support for `require_payment_method_support` on `FinancialConnections.Session.Filter` and `financial_connections.SessionCreateParamsFilter` - * Add support for `bank_account_token` on `FinancialConnections.Session` - * Add support for new values `alipay` and `mb_way` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` - * Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `InvoiceAddLinesParamsLineTaxAmountTaxRateDatum.tax_type`, `InvoiceLineItemModifyParamsTaxAmountTaxRateDatum.tax_type`, `InvoiceUpdateLinesParamsLineTaxAmountTaxRateDatum.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateModifyParams.tax_type` - * Add support for `metadata` on `InvoiceCreatePreviewParamsSubscriptionDetail` - * Add support for new value `stripe_internal_error` on enum `Issuing.Authorization.RequestHistory.reason` - * Add support for `business_name` on `Issuing.Card.Shipping`, `issuing.CardCreateParamsShipping`, and `issuing.CardModifyParamsShipping` - * Add support for new value `correos` on enum `Issuing.Card.Shipping.carrier` - * Add support for `allowed_payment_method_types` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentModifyParams`, `PaymentIntent`, `SetupIntentConfirmParams`, `SetupIntentCreateParams`, `SetupIntentModifyParams`, and `SetupIntent` - * Add support for `referrer` on `PaymentIntentConfirmParamsRadarOption` and `PaymentIntentCreateParamsRadarOption` - * Add support for `consent_collection` and `shipping_options` on `PaymentLinkModifyParams` - * Add support for `custom_fields`, `description`, and `footer` on `Quote.InvoiceSetting`, `QuoteCreateParamsInvoiceSetting`, `QuoteModifyParamsInvoiceSetting`, `SubscriptionSchedule.DefaultSetting.InvoiceSetting`, `SubscriptionSchedule.Phase.InvoiceSetting`, `SubscriptionScheduleCreateParamsDefaultSettingInvoiceSetting`, `SubscriptionScheduleCreateParamsPhaseInvoiceSetting`, `SubscriptionScheduleModifyParamsDefaultSettingInvoiceSetting`, and `SubscriptionScheduleModifyParamsPhaseInvoiceSetting` - * Add support for `customer_account` and `customer` on `Refund` - * Add support for `payment_method` on `Refund` and `Topup` - * Add support for `trial` on `SubscriptionSchedule.Phase` - * Add support for `mass_transit_parking_tax` and `parking_tax` on `Tax.Registration.CountryOption.Me` and `tax.RegistrationCreateParamsCountryOptionMe` - * Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `tax.RegistrationCreateParamsCountryOptionMe.type` - * Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `Tax.Registration.CountryOption.Me.type` - * Add support for `initiated_by` and `payment_method_options` on `Topup` - * Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` - * Add support for new value `2026-07-29.dahlia` on enum `WebhookEndpointCreateParams.api_version` - * Add support for `additional_addresses` on `V2.Core.Account.Identity.BusinessDetail`, `v2.core.AccountCreateParamsIdentityBusinessDetail`, `v2.core.AccountModifyParamsIdentityBusinessDetail`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetail` - * Add support for snapshot events `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, and `financial_connections.account.upcoming_deactivation` with resource `financial_connections.Account` - * Add support for snapshot events `financial_connections.authorization.expected_deactivation_date_updated` and `financial_connections.authorization.upcoming_deactivation` with resource `financial_connections.Authorization` - * Enum type annotations for non-exhaustive ("open") enums are now typed as `Union[Literal[...], str]` instead of plain `Literal[...]`. Many Stripe enums are open, meaning new values may appear in new versions of the API. This change ensures these fields have the correct type for both the values known at SDK release time and other values that may be added later. Refer to the [API Reference](https://docs.stripe.com) for the latest set of allowed values. -* [#1853](https://github.com/stripe/stripe-python/pull/1853) Fix intermittent Windows test flake in async httpx integration tests -* [#1849](https://github.com/stripe/stripe-python/pull/1849) Use ip address directly instead of localhost to speed up windows tests - ## 15.4.0a5 - 2026-07-22 -* [#1852](https://github.com/stripe/stripe-python/pull/1852) Update generated code for private-preview +* ⚠️ [#1852](https://github.com/stripe/stripe-python/pull/1852) Update generated code for private-preview * Add support for new resources `billing.AlertNotification` and `crypto.DepositAddress` * Add support for `create`, `list`, and `retrieve` methods on resource `crypto.DepositAddress` * Add support for `list` method on resource `billing.AlertNotification` @@ -442,7 +335,7 @@ This release changes the pinned API version to 2026-07-29.dahlia. * Add support for new value `commercial.stripe.spend_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` ## 15.4.0a4 - 2026-07-16 -* [#1844](https://github.com/stripe/stripe-python/pull/1844) Update generated code for private-preview +* ⚠️ [#1844](https://github.com/stripe/stripe-python/pull/1844) Update generated code for private-preview * ⚠️ Remove support for resource `FrMealVouchersOnboarding` * ⚠️ Remove support for `create`, `list`, `modify`, and `retrieve` methods on resource `FrMealVouchersOnboarding` * Add support for `create` method on resource `PaymentRecord` @@ -467,9 +360,9 @@ This release changes the pinned API version to 2026-07-29.dahlia. * Add support for snapshot events `financial_connections.authorization.expected_deactivation_date_updated` and `financial_connections.authorization.upcoming_deactivation` with resource `financial_connections.Authorization` ## 15.4.0a3 - 2026-07-08 -This release changes the pinned API version to 2026-07-08.preview. +This release changes the pinned API version to `2026-07-08.preview`. -* [#1842](https://github.com/stripe/stripe-python/pull/1842) Update generated code for private-preview +* ⚠️ [#1842](https://github.com/stripe/stripe-python/pull/1842) Update generated code for private-preview * Add support for `activate_gift_card`, `cashout_gift_card`, `check_gift_card_balance`, and `reload_gift_card` methods on resource `terminal.Reader` * Add support for `aggregation_period` on `Billing.AlertRecovered` * ⚠️ Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `Tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.Calculation.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.CalculationLineItem.TaxBreakdown.TaxRateDetail.tax_type`, and `Tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type` @@ -516,9 +409,9 @@ This release changes the pinned API version to 2026-07-08.preview. * Add support for event notifications `V2BillingContractActivatedEvent`, `V2BillingContractCanceledEvent`, `V2BillingContractCreatedEvent`, `V2BillingContractEndedEvent`, and `V2BillingContractUpdatedEvent` with related object `v2.billing.Contract` ## 15.4.0a2 - 2026-07-01 -This release changes the pinned API version to 2026-07-01.preview. +This release changes the pinned API version to `2026-07-01.preview`. -* [#1839](https://github.com/stripe/stripe-python/pull/1839) Update generated code for private-preview +* ⚠️ [#1839](https://github.com/stripe/stripe-python/pull/1839) Update generated code for private-preview * Add support for new resources `crypto.CustomerConsumerWallet`, `crypto.CustomerPaymentToken`, `crypto.Customer`, `crypto.OnrampSession`, and `crypto.OnrampTransactionLimits` * Add support for `list` and `retrieve` methods on resource `crypto.Customer` * Add support for `checkout`, `create`, `list`, `quote`, and `retrieve` methods on resource `crypto.OnrampSession` @@ -548,9 +441,9 @@ This release changes the pinned API version to 2026-07-01.preview. * Add support for `expires_at` on `v2.iam.ApiKeyCreateParams` ## 15.4.0a1 - 2026-06-24 -This release changes the pinned API version to 2026-06-24.preview. +This release changes the pinned API version to `2026-06-24.preview`. -* [#1833](https://github.com/stripe/stripe-python/pull/1833) Update generated code for private-preview +* ⚠️ [#1833](https://github.com/stripe/stripe-python/pull/1833) Update generated code for private-preview * Add support for new resources `v2.billing.ContractPricingLineQuantityChange`, `v2.core.health.AlertHistoryEntry`, `v2.core.health.Alert`, `v2.money_management.FinancialAddressDebitSimulation`, and `v2.money_management.PayoutIntent` * ⚠️ Remove support for resource `v2.billing.ContractLicensePricingQuantityChange` * Add support for `report_offer_acceptance` method on resource `issuing.CreditUnderwritingRecord` @@ -648,55 +541,8 @@ This release changes the pinned API version to 2026-06-24.preview. * Add support for error codes `us_bank_account_microdeposits_cannot_be_confirmed` and `us_bank_account_microdeposits_cannot_be_sent` on `ControlledByAlternateResourceError` * Add support for error code `payout_intent_not_cancelable` on `NotCancelableError` -## 15.3.1 - 2026-07-15 -* [#1846](https://github.com/stripe/stripe-python/pull/1846) Replace source hash with Telemetry UUID -* [#1845](https://github.com/stripe/stripe-python/pull/1845) Make Error fields generated -* [#1843](https://github.com/stripe/stripe-python/pull/1843) Remove unused Retry-After header support -* [#1834](https://github.com/stripe/stripe-python/pull/1834) Reduce StripeClient() cold start latency for serverless environments - - Moves HTTP library imports to module load time to better accommodate AWS Lambda and other serverless environments that have separate Init phase and Invoke phase time budgets. - -## 15.3.0 - 2026-06-24 -This release changes the pinned API version to 2026-06-24.dahlia. - -* [#1836](https://github.com/stripe/stripe-python/pull/1836) Update generated code - * Add support for `release_details` on `Reserve.Hold` - * ⚠️ Add support for new value `tax_fund` on enum `BalanceTransaction.type` - * Change `Billing.CreditGrant.priority` to be required - * Add support for `buyer_id` on `Charge.PaymentMethodDetail.Bizum`, `ConfirmationToken.PaymentMethodPreview.Bizum`, `ConfirmationToken.PaymentMethodPreview.Blik`, `PaymentAttemptRecord.PaymentMethodDetail.Bizum`, `PaymentMethod.Bizum`, `PaymentMethod.Blik`, and `PaymentRecord.PaymentMethodDetail.Bizum` - * Add support for `transaction_link_id` on `Charge.PaymentMethodDetail.Card` - * ⚠️ Add support for new value `sui` on enums `Charge.PaymentMethodDetail.Crypto.network`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto.network`, and `PaymentRecord.PaymentMethodDetail.Crypto.network` - * ⚠️ Add support for new value `usdsui` on enums `Charge.PaymentMethodDetail.Crypto.token_currency`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto.token_currency`, and `PaymentRecord.PaymentMethodDetail.Crypto.token_currency` - * Add support for `fingerprint` on `Charge.PaymentMethodDetail.Pix`, `ConfirmationToken.PaymentMethodPreview.Pix`, `PaymentMethod.Pix`, and `SetupAttempt.PaymentMethodDetail.Pix` - * Add support for `sunbit` on `Checkout.Session.PaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodOption`, and `checkout.SessionCreateParamsPaymentMethodOption` - * Add support for `billing_cycle_anchor_config` on `checkout.SessionCreateParamsSubscriptionDatum` - * Add support for `wechat_pay` on `Checkout.Session.PaymentMethodOption` - * Add support for `mastercard_compliance` on `Dispute.Evidence.EnhancedEvidence`, `Dispute.EvidenceDetail.EnhancedEligibility`, and `DisputeModifyParamsEvidenceEnhancedEvidence` - * ⚠️ Add support for new value `mastercard_compliance` on enum `Dispute.enhanced_eligibility_types` - * Add support for `status_details` on `FinancialConnections.Account` - * ⚠️ Add support for new value `validated` on enum `Identity.VerificationSession.Redaction.status` - * Add support for new value `satispay` on enums `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` - * ⚠️ Add support for new value `satispay` on enums `Invoice.PaymentSetting.payment_method_types` and `Subscription.PaymentSetting.payment_method_types` - * ⚠️ Remove support for `stored_credential_usage` on `PaymentAttemptRecord.PaymentMethodDetail.Card` and `PaymentRecord.PaymentMethodDetail.Card` - * ⚠️ Change `PaymentAttemptRecord.PaymentMethodDetail.Card.description` and `PaymentRecord.PaymentMethodDetail.Card.description` to be optional - * ⚠️ Change `PaymentAttemptRecord.PaymentMethodDetail.Card.iin` and `PaymentRecord.PaymentMethodDetail.Card.iin` to be optional - * ⚠️ Change `PaymentAttemptRecord.PaymentMethodDetail.Card.issuer` and `PaymentRecord.PaymentMethodDetail.Card.issuer` to be optional - * Add support for `setup_future_usage` on `PaymentIntent.PaymentMethodOption.Satispay`, `PaymentIntentConfirmParamsPaymentMethodOptionSatispay`, `PaymentIntentCreateParamsPaymentMethodOptionSatispay`, and `PaymentIntentModifyParamsPaymentMethodOptionSatispay` - * Change `PaymentRecordReportRefundParams.refunded` to be optional - * Add support for `satispay` on `SetupAttempt.PaymentMethodDetail` - * Add support for `custom_fields`, `description`, and `footer` on `Subscription.InvoiceSetting`, `SubscriptionCreateParamsInvoiceSetting`, and `SubscriptionModifyParamsInvoiceSetting` - * Add support for `payment_method_options` and `payment_method` on `TopupCreateParams` - * Add support for new value `2026-06-24.dahlia` on enum `WebhookEndpointCreateParams.api_version` - * Add support for `mode` on `V2.Commerce.ProductCatalogImport` - * ⚠️ Add support for new value `promotion` on enum `V2.Commerce.ProductCatalogImport.feed_type` - * Add support for `sunbit_payments` on `V2.Core.Account.Configuration.Merchant.Capability`, `v2.core.AccountCreateParamsConfigurationMerchantCapability`, and `v2.core.AccountModifyParamsConfigurationMerchantCapability` - * Add support for `crypto_money_manager` and `money_manager` on `v2.core.AccountModifyParamsIdentityAttestationTermsOfService` - * ⚠️ Remove support for `crypto_storer` and `storer` on `v2.core.AccountModifyParamsIdentityAttestationTermsOfService` - * Add support for new value `promotion` on enum `v2.commerce.ProductCatalogImportCreateParams.feed_type` - * ⚠️ Add support for new value `sunbit_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability` - * Add support for error codes `anomalous_money_movement_request`, `failed_tax_calculation`, `financial_account_balance_does_not_support_currency`, `financial_account_capability_not_enabled`, and `financial_account_capability_restricted` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, `StripeError`, and `Terminal.Reader.Action.ApiError` - ## 15.3.0a4 - 2026-06-17 -* [#1828](https://github.com/stripe/stripe-python/pull/1828) Update generated code for private-preview +* ⚠️ [#1828](https://github.com/stripe/stripe-python/pull/1828) Update generated code for private-preview * Add support for `retrieve` method on resource `radar.CustomerEvaluation` * Add support for `disable_stripe_user_authentication` on `AccountSession.Component.Bill.Feature` * Add support for `tamara` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodDatum`, and `SharedPayment.GrantedToken.PaymentMethodDetail` @@ -748,9 +594,9 @@ This release changes the pinned API version to 2026-06-24.dahlia. * Add support for `protections` on `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Celtic.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Celtic.SpendCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.SpendCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.FifthThird.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Lead.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Celtic.RevolvingCreditCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.CrossRiverBank.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead.DebitCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead.PrepaidCard`, `V2.Core.Account.Configuration.Customer.Capability.AutomaticIndirectTax`, `V2.Core.Account.Configuration.Merchant.Capability.AchDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AcssDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AffirmPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AfterpayClearpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AlmaPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AmazonPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AuBecsDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BacsDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BancontactPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BlikPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BoletoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CardPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CartesBancairesPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CashappPayment`, `V2.Core.Account.Configuration.Merchant.Capability.EpsPayment`, `V2.Core.Account.Configuration.Merchant.Capability.FpxPayment`, `V2.Core.Account.Configuration.Merchant.Capability.GbBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.GrabpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.IdealPayment`, `V2.Core.Account.Configuration.Merchant.Capability.JcbPayment`, `V2.Core.Account.Configuration.Merchant.Capability.JpBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KakaoPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KlarnaPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KonbiniPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KrCardPayment`, `V2.Core.Account.Configuration.Merchant.Capability.LinkPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MobilepayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MultibancoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MxBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.NaverPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.OxxoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.P24Payment`, `V2.Core.Account.Configuration.Merchant.Capability.PayByBankPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PaycoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PaynowPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PromptpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.RevolutPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SamsungPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SepaBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SepaDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.StripeBalance.Payout`, `V2.Core.Account.Configuration.Merchant.Capability.SwishPayment`, `V2.Core.Account.Configuration.Merchant.Capability.TwintPayment`, `V2.Core.Account.Configuration.Merchant.Capability.UsBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.ZipPayment`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Instant`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Local`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Wire`, `V2.Core.Account.Configuration.Recipient.Capability.Card`, `V2.Core.Account.Configuration.Recipient.Capability.CryptoWallet`, `V2.Core.Account.Configuration.Recipient.Capability.PaperCheck`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.Payout`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.StripeTransfer`, `V2.Core.Account.Configuration.Storer.Capability.Consumer.HoldsCurrency.Usd`, `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Eur`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Gbp`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Usd`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Usdc`, `V2.Core.Account.Configuration.Storer.Capability.InboundTransfer.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.Card`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.FinancialAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.PaperCheck`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.FinancialAccount`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCelticChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCelticSpendCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankSpendCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialFifthThirdChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialLeadPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialStripeChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialStripePrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerCelticRevolvingCreditCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerCrossRiverBankPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLeadDebitCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLeadPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCustomerCapabilityAutomaticIndirectTax`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAchDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAcssDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAffirmPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAfterpayClearpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAlmaPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAmazonPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAuBecsDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBacsDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBancontactPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBlikPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBoletoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCardPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCartesBancairesPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCashappPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityEpsPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityFpxPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityGbBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityGrabpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityIdealPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityJcbPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityJpBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKakaoPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKlarnaPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKonbiniPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKrCardPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityLinkPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMobilepayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMultibancoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMxBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityNaverPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityOxxoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityP24Payment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPayByBankPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPaycoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPaynowPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPromptpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityRevolutPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySamsungPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySepaBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySepaDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySwishPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityTwintPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityUsBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityZipPayment`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountInstant`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountLocal`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountWire`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityCard`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityCryptoWallet`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityPaperCheck`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityStripeBalanceStripeTransfer`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityConsumerHoldsCurrencyUsd`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityFinancialAddressBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityFinancialAddressCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyEur`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyGbp`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyUsd`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyUsdc`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityInboundTransferBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentCard`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentFinancialAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentPaperCheck`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferFinancialAccount`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCelticChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCelticSpendCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankSpendCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialFifthThirdChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialLeadPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialStripeChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialStripePrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerCelticRevolvingCreditCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerCrossRiverBankPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLeadDebitCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLeadPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCustomerCapabilityAutomaticIndirectTax`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAchDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAcssDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAffirmPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAfterpayClearpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAlmaPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAmazonPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAuBecsDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBacsDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBancontactPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBlikPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBoletoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCardPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCartesBancairesPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCashappPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityEpsPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityFpxPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityGbBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityGrabpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityIdealPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityJcbPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityJpBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKakaoPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKlarnaPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKonbiniPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKrCardPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityLinkPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMobilepayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMultibancoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMxBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityNaverPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityOxxoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityP24Payment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPayByBankPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPaycoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPaynowPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPromptpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityRevolutPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySamsungPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySepaBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySepaDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySwishPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityTwintPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityUsBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityZipPayment`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountInstant`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountLocal`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountWire`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityCard`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityCryptoWallet`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityPaperCheck`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityStripeBalanceStripeTransfer`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityConsumerHoldsCurrencyUsd`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityFinancialAddressBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityFinancialAddressCryptoWallet`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyEur`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyGbp`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyUsd`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyUsdc`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityInboundTransferBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentCard`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentCryptoWallet`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentFinancialAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentPaperCheck`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferCryptoWallet`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferFinancialAccount` ## 15.3.0a3 - 2026-06-10 -This release changes the pinned API version to 2026-06-10.preview. +This release changes the pinned API version to `2026-06-10.preview`. -* [#1827](https://github.com/stripe/stripe-python/pull/1827) Update generated code for private-preview +* ⚠️ [#1827](https://github.com/stripe/stripe-python/pull/1827) Update generated code for private-preview * Add support for new resources `GiftCardOperation`, `GiftCard`, and `TaxFund` * Add support for `retrieve` method on resource `GiftCardOperation` * Add support for `activate`, `cashout`, `check_balance`, `create`, `reload`, `retrieve`, and `void_operation` methods on resource `GiftCard` @@ -789,7 +635,9 @@ This release changes the pinned API version to 2026-06-10.preview. * Add support for error code `default_us_bank_account_cannot_be_archived` on `CannotProceedError` ## 15.3.0a2 - 2026-06-03 -* [#1818](https://github.com/stripe/stripe-python/pull/1818) Update generated code for private-preview +This release changes the pinned API version to `2026-06-03.preview`. + +* ⚠️ [#1818](https://github.com/stripe/stripe-python/pull/1818) Update generated code for private-preview * Add support for new resources `delegated_checkout.OrderEvent`, `delegated_checkout.Order`, `v2.billing.ContractLicensePricingQuantityChange`, `v2.billing.Contract`, and `v2.signals.AccountSignal` * Add support for `retrieve` method on resource `delegated_checkout.Order` * Add support for `list_orders` method on resource `delegated_checkout.RequestedSession` @@ -815,9 +663,9 @@ This release changes the pinned API version to 2026-06-10.preview. * Add support for event notification `V2SignalsAccountSignalMerchantDelinquencyReadyEvent` with related object `v2.signals.AccountSignal` ## 15.3.0a1 - 2026-05-27 -This release changes the pinned API version to 2026-05-27.private. +This release changes the pinned API version to `2026-05-27.preview`. -* [#1815](https://github.com/stripe/stripe-python/pull/1815) Update generated code for private-preview +* ⚠️ [#1815](https://github.com/stripe/stripe-python/pull/1815) Update generated code for private-preview * Change type of `billing.AlertCreateParamsSpendThreshold.group_by` from `literal('pricing_plan_subscription')` to `enum('billing_cadence'|'pricing_plan_subscription')` * ⚠️ Change type of `Billing.Alert.SpendThreshold.group_by` from `literal('pricing_plan_subscription')` to `enum('billing_cadence'|'pricing_plan_subscription')` * Change `DelegatedCheckout.RequestedSession.affiliate_attributions` to be required @@ -835,66 +683,9 @@ This release changes the pinned API version to 2026-05-27.private. * Add support for snapshot event `payment_intent.expired` with resource `PaymentIntent` * Add support for event notifications `V2CoreHealthElementsErrorFiringEvent`, `V2CoreHealthElementsErrorResolvedEvent`, `V2CoreHealthInvoiceCountDroppedFiringEvent`, and `V2CoreHealthInvoiceCountDroppedResolvedEvent` -## 15.2.1 - 2026-06-12 -* [#1825](https://github.com/stripe/stripe-python/pull/1825) Add "source" field to user-agent header - -## 15.2.0 - 2026-05-27 -This release changes the pinned API version to 2026-05-27.dahlia. - -* [#1816](https://github.com/stripe/stripe-python/pull/1816) Update generated code - * Add support for new resource `v2.commerce.ProductCatalogImport` - * Add support for `create` and `retrieve` methods on resource `v2.commerce.ProductCatalogImport` - * Add support for `bizum_payments` and `scalapay_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` - * Add support for `automatic_transfer_rules_by_currency` on `BalanceSettings.Payment.Payout` and `BalanceSettingsModifyParamsPaymentPayout` - * Add support for `start_of_day` on `BalanceSettings.Payment.SettlementTiming` and `BalanceSettingsModifyParamsPaymentSettlementTiming` - * Add support for `description` on `ChargeCreateParamsTransferDatum`, `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, and `PaymentIntentModifyParamsTransferDatum` - * Add support for `bizum` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodOption`, `SetupIntentModifyParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodOption` - * Add support for `scalapay` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `Refund.DestinationDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodDatum`, and `checkout.SessionCreateParamsPaymentMethodOption` - * Add support for `mandate` on `Charge.PaymentMethodDetail.Twint`, `PaymentAttemptRecord.PaymentMethodDetail.Twint`, and `PaymentRecord.PaymentMethodDetail.Twint` - * Add support for new values `bizum` and `scalapay` on enums `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, `SetupIntentModifyParams.excluded_payment_method_types`, and `checkout.SessionCreateParams.excluded_payment_method_types` - * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionTwint.setup_future_usage`, `PaymentIntentCreateParamsPaymentMethodOptionTwint.setup_future_usage`, `PaymentIntentModifyParamsPaymentMethodOptionTwint.setup_future_usage`, and `checkout.SessionCreateParamsPaymentMethodOptionTwint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` - * Add support for new values `bizum` and `scalapay` on enum `checkout.SessionCreateParams.payment_method_types` - * ⚠️ Change type of `Checkout.Session.PaymentMethodOption.Twint.setup_future_usage` and `PaymentIntent.PaymentMethodOption.Twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` - * Add support for new values `bizum` and `scalapay` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` - * ⚠️ Add support for new values `bizum` and `scalapay` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` - * Add support for new values `bizum` and `scalapay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `credited_items` on `InvoiceItem.ProrationDetail` - * Add support for new value `twint` on enums `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` - * Add support for `discountable` on `InvoiceCreatePreviewParamsScheduleDetailPhaseAddInvoiceItem`, `SubscriptionCreateParamsAddInvoiceItem`, `SubscriptionModifyParamsAddInvoiceItem`, `SubscriptionSchedule.Phase.AddInvoiceItem`, `SubscriptionScheduleCreateParamsPhaseAddInvoiceItem`, and `SubscriptionScheduleModifyParamsPhaseAddInvoiceItem` - * Add support for `billing_schedules` on `InvoiceCreatePreviewParamsSubscriptionDetail`, `SubscriptionCreateParams`, `SubscriptionModifyParams`, and `Subscription` - * Add support for new value `max_billed_until` on enums `InvoiceCreatePreviewParamsSubscriptionDetail.cancel_at`, `SubscriptionCreateParams.cancel_at`, and `SubscriptionModifyParams.cancel_at` - * Add support for `amount_paid_off_stripe` on `Invoice` - * ⚠️ Add support for new value `twint` on enums `Invoice.PaymentSetting.payment_method_types` and `Subscription.PaymentSetting.payment_method_types` - * Add support for `twint` on `Mandate.PaymentMethodDetail` and `SetupAttempt.PaymentMethodDetail` - * Add support for `metadata` on `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, `PaymentIntentModifyParamsTransferDatum`, and `Subscription.PendingUpdate` - * Add support for `payment_data` on `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, and `PaymentIntentModifyParamsTransferDatum` - * ⚠️ Add support for new values `bizum` and `scalapay` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` - * Add support for `blik_authorize` on `PaymentIntent.NextAction` and `SetupIntent.NextAction` - * Add support for `payment_method_options` on `PaymentLinkCreateParams`, `PaymentLinkModifyParams`, and `PaymentLink` - * Add support for new value `bizum` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkModifyParams.payment_method_types` - * ⚠️ Add support for new value `bizum` on enum `PaymentLink.payment_method_types` - * Add support for `active` on `PaymentMethodConfigurationListParams` - * Add support for `billed_until` on `SubscriptionItem` - * Add support for `discount` and `discounts` on `Subscription.PendingUpdate` - * Add support for `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on `Terminal.Configuration`, `terminal.ConfigurationCreateParams`, and `terminal.ConfigurationModifyParams` - * Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `terminal.ReaderListParams.device_type` - * Add support for `api_error` and `print_content` on `Terminal.Reader.Action` - * ⚠️ Add support for new value `print_content` on enum `Terminal.Reader.Action.type` - * ⚠️ Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `Terminal.Reader.device_type` - * Add support for `customer` on `test_helpers.TestClockCreateParams` - * Add support for new value `2026-05-27.dahlia` on enum `WebhookEndpointCreateParams.api_version` - * Add support for `signer` on `V2.Core.Account.Identity.BusinessDetail.Document.ProofOfRegistration`, `V2.Core.Account.Identity.BusinessDetail.Document.ProofOfUltimateBeneficialOwnership`, `v2.core.AccountCreateParamsIdentityBusinessDetailDocumentProofOfRegistration`, `v2.core.AccountCreateParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership`, `v2.core.AccountModifyParamsIdentityBusinessDetailDocumentProofOfRegistration`, `v2.core.AccountModifyParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailDocumentProofOfRegistration`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership` - * Add support for `azure_event_grid` on `V2.Core.EventDestination` and `v2.core.EventDestinationCreateParams` - * ⚠️ Add support for new value `no_azure_partner_topic_exists` on enum `V2.Core.EventDestination.StatusDetail.Disabled.reason` - * ⚠️ Add support for new value `azure_event_grid` on enum `V2.Core.EventDestination.type` - * Add support for new value `azure_event_grid` on enum `v2.core.EventDestinationCreateParams.type` - * ⚠️ Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.Reason.ErrorType.code` and `EventsV1BillingMeterNoMeterFoundEvent.Reason.ErrorType.code` - * Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `v2.commerce.ProductCatalogImport` - * Add support for error codes `payment_method_microdeposit_processing_error` and `siret_invalid` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1813](https://github.com/stripe/stripe-python/pull/1813) Emit warning when `stripe-notify` header is present in response - ## 15.2.0a6 - 2026-05-20 -* [#1809](https://github.com/stripe/stripe-python/pull/1809) Update generated code for private-preview +* [#1811](https://github.com/stripe/stripe-python/pull/1811) remove unnecessary cast +* ⚠️ [#1809](https://github.com/stripe/stripe-python/pull/1809) Update generated code for private-preview * Add support for new resource `PaymentLocationCapability` * Add support for `list`, `modify`, and `retrieve` methods on resource `PaymentLocationCapability` * Add support for `close` and `simulate_network_lifecycle_dispute_response` test helper methods on resource `issuing.Dispute` @@ -912,10 +703,9 @@ This release changes the pinned API version to 2026-05-27.dahlia. * Change `SubscriptionPauseParams.type` to be optional * ⚠️ Remove support for `payment_behavior` on `SubscriptionResumeParams` * ⚠️ Remove support for `status_details` on `Subscription` -* [#1811](https://github.com/stripe/stripe-python/pull/1811) remove unnecessary cast ## 15.2.0a5 - 2026-05-13 -* [#1807](https://github.com/stripe/stripe-python/pull/1807) Update generated code for private-preview +* ⚠️ [#1807](https://github.com/stripe/stripe-python/pull/1807) Update generated code for private-preview * Add support for new resources `v2.core.FeeBatch`, `v2.core.FeeEntry`, `v2.money_management.DebitDispute`, and `v2.money_management.FinancialAccountStatement` * Add support for `simulate_network_lifecycle_pre_arbitration_response` and `simulate_network_lifecycle_pre_arbitration_submission` test helper methods on resource `issuing.Dispute` * Add support for `list` method on resource `PaymentLocation` @@ -941,7 +731,8 @@ This release changes the pinned API version to 2026-05-27.dahlia. * Add support for event notifications `V2MoneyManagementFinancialAccountStatementCreatedEvent` and `V2MoneyManagementFinancialAccountStatementRestatedEvent` with related object `v2.money_management.FinancialAccountStatement` ## 15.2.0a4 - 2026-05-06 -* [#1804](https://github.com/stripe/stripe-python/pull/1804) Update generated code for private-preview +* [#1805](https://github.com/stripe/stripe-python/pull/1805) Add EventNotificationHandler (private preview) +* ⚠️ [#1804](https://github.com/stripe/stripe-python/pull/1804) Update generated code for private-preview * Add support for new resource `PaymentLocation` * Add support for `create`, `delete`, `modify`, and `retrieve` methods on resource `PaymentLocation` * Add support for `protections` on `AccountCreateParamsCapabilityCardPayment`, `AccountModifyParamsCapabilityCardPayment`, and `Capability` @@ -955,16 +746,15 @@ This release changes the pinned API version to 2026-05-27.dahlia. * Add support for new value `gift_card` on enums `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` * ⚠️ Add support for new value `gift_card` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` * Add support for `status_details` on `Subscription` -* [#1805](https://github.com/stripe/stripe-python/pull/1805) Add EventNotificationHandler (private preview) ## 15.2.0a3 - 2026-04-28 -* [#1802](https://github.com/stripe/stripe-python/pull/1802) Update generated code for private-preview +* ⚠️ [#1802](https://github.com/stripe/stripe-python/pull/1802) Update generated code for private-preview * Add support for `debit_card` on `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead`, `V2.Core.Account.Identity.Attestation.TermsOfService.CardCreator.Consumer.Lead`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLead`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfServiceCardCreatorConsumerLead`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLead`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfServiceCardCreatorConsumerLead` * ⚠️ Add support for new value `consumer.lead.debit_card` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` * ⚠️ Add support for new value `consumer.lead.debit_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` ## 15.2.0a2 - 2026-04-28 -* [#1800](https://github.com/stripe/stripe-python/pull/1800) Update generated code for private-preview +* ⚠️ [#1800](https://github.com/stripe/stripe-python/pull/1800) Update generated code for private-preview * Add support for new resource `v2.data.analytics.MetricQueryResult` * Add support for `create`, `retrieve`, and `revoke` methods on resource `shared_payment.IssuedToken` * Add support for `create` method on resource `v2.data.analytics.MetricQueryResult` @@ -1037,9 +827,9 @@ This release changes the pinned API version to 2026-05-27.dahlia. * Add support for error codes `action_blocked` and `approval_required` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` ## 15.2.0a1 - 2026-04-24 -This release changes the pinned API version to 2026-04-22.private. +This release changes the pinned API version to `2026-04-22.preview`. -* [#1795](https://github.com/stripe/stripe-python/pull/1795) Update generated code for private-preview +* ⚠️ [#1795](https://github.com/stripe/stripe-python/pull/1795) Update generated code for private-preview * Add support for new resources `v2.commerce.ProductCatalogImport`, `v2.core.ApprovalRequest`, `v2.extend.WorkflowRun`, `v2.extend.Workflow`, `v2.iam.ActivityLog`, `v2.network.BusinessProfile`, and `v2.orchestrated_commerce.Agreement` * ⚠️ Remove support for resources `v2.core.WorkflowRun` and `v2.core.Workflow` * Add support for `confirm`, `create`, `list`, `retrieve`, and `terminate` methods on resource `v2.orchestrated_commerce.Agreement` @@ -1174,55 +964,11 @@ This release changes the pinned API version to 2026-04-22.private. * Add support for error type `FxQuoteExpiredError` * Add support for error codes `invalid_workflow_input_parameters` and `workflow_not_invokable` on `CannotProceedError` -## 15.1.0 - 2026-04-23 -This release changes the pinned API version to 2026-04-22.dahlia. - -* [#1793](https://github.com/stripe/stripe-python/pull/1793) Update generated code - * Add support for `balance_report` and `payout_reconciliation_report` on `AccountSession.Component` and `AccountSessionCreateParamsComponent` - * Add support for `app_distribution` and `sunbit_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` - * ⚠️ Add support for new values `fee_credit_funding`, `inbound_transfer_reversal`, and `inbound_transfer` on enum `BalanceTransaction.type` - * Add support for `sunbit` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` - * ⚠️ Add support for new values `phantom_cash` and `usdt` on enums `Charge.PaymentMethodDetail.Crypto.token_currency`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto.token_currency`, and `PaymentRecord.PaymentMethodDetail.Crypto.token_currency` - * Add support for `location` and `reader` on `Charge.PaymentMethodDetail.Klarna`, `PaymentAttemptRecord.PaymentMethodDetail.Klarna`, and `PaymentRecord.PaymentMethodDetail.Klarna` - * Add support for `mandate` on `Charge.PaymentMethodDetail.Pix`, `PaymentAttemptRecord.PaymentMethodDetail.Pix`, and `PaymentRecord.PaymentMethodDetail.Pix` - * Add support for `managed_payments` on `Checkout.Session`, `PaymentIntent`, `PaymentLinkCreateParams`, `PaymentLink`, `SetupIntent`, `Subscription`, and `checkout.SessionCreateParams` - * Add support for new value `sunbit` on enums `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, `SetupIntentModifyParams.excluded_payment_method_types`, and `checkout.SessionCreateParams.excluded_payment_method_types` - * Add support for `mandate_options` on `Checkout.Session.PaymentMethodOption.Pix`, `PaymentIntent.PaymentMethodOption.Pix`, `PaymentIntentConfirmParamsPaymentMethodOptionPix`, `PaymentIntentCreateParamsPaymentMethodOptionPix`, `PaymentIntentModifyParamsPaymentMethodOptionPix`, and `checkout.SessionCreateParamsPaymentMethodOptionPix` - * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionPix.setup_future_usage`, `PaymentIntentCreateParamsPaymentMethodOptionPix.setup_future_usage`, `PaymentIntentModifyParamsPaymentMethodOptionPix.setup_future_usage`, and `checkout.SessionCreateParamsPaymentMethodOptionPix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` - * Add support for new value `sunbit` on enum `checkout.SessionCreateParams.payment_method_types` - * ⚠️ Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` - * ⚠️ Change type of `Checkout.Session.PaymentMethodOption.Pix.setup_future_usage` and `PaymentIntent.PaymentMethodOption.Pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` - * Add support for new value `sunbit` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` - * ⚠️ Add support for new value `sunbit` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` - * Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `CustomerCreateParamsTaxIdDatum.type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParamsCustomerDetailTaxId.type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParamsCustomerDetailTaxId.type` - * Add support for new value `sunbit` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `pix` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `Mandate.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodOption`, `SetupIntentModifyParamsPaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOption` - * Add support for `upi` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOption` - * Add support for new values `pix` and `upi` on enums `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` - * ⚠️ Add support for new values `pix` and `upi` on enums `Invoice.PaymentSetting.payment_method_types` and `Subscription.PaymentSetting.payment_method_types` - * Add support for `card_presence` on `Issuing.Authorization` - * Add support for `allowed_card_presences` and `blocked_card_presences` on `Issuing.Card.SpendingControl`, `Issuing.Cardholder.SpendingControl`, `issuing.CardCreateParamsSpendingControl`, `issuing.CardModifyParamsSpendingControl`, `issuing.CardholderCreateParamsSpendingControl`, and `issuing.CardholderModifyParamsSpendingControl` - * ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.cancellation_reason` - * ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.replacement_reason` - * Add support for `amount` and `currency` on `Mandate.MultiUse` - * Add support for `amount_to_confirm` on `PaymentIntentConfirmParams` - * ⚠️ Add support for new value `sunbit` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` - * Add support for `klarna_display_qr_code` on `PaymentIntent.NextAction` - * Add support for new value `sunbit` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkModifyParams.payment_method_types` - * ⚠️ Add support for new value `sunbit` on enum `PaymentLink.payment_method_types` - * ⚠️ Add support for new values `low`, `not_assessed`, and `unknown` on enum `Radar.PaymentEvaluation.Signal.FraudulentPayment.risk_level` - * Add support for new value `account` on enum `radar.ValueListCreateParams.item_type` - * ⚠️ Add support for new value `account` on enum `Radar.ValueList.item_type` - * Add support for `moto` on `SetupAttempt.PaymentMethodDetail.Card` - * Add support for `pix_display_qr_code` on `SetupIntent.NextAction` - * Add support for new value `2026-04-22.dahlia` on enum `WebhookEndpointCreateParams.api_version` - * Add support for error codes `action_blocked` and `approval_required` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` - ## 15.1.0a4 - 2026-04-15 * [#1794](https://github.com/stripe/stripe-python/pull/1794) Update generated code for private-preview * Add support for `latest_version` on `V2.Billing.LicenseFee`, `V2.Billing.PricingPlan`, and `V2.Billing.RateCard` * Add support for `service_interval_count` and `service_interval` on `V2.Billing.LicenseFee` and `V2.Billing.RateCard` -* [#1791](https://github.com/stripe/stripe-python/pull/1791) Update generated code for private-preview +* ⚠️ [#1791](https://github.com/stripe/stripe-python/pull/1791) Update generated code for private-preview * Add support for new resources `v2.core.WorkflowRun` and `v2.core.Workflow` * Add support for `report_authorized` method on resource `PaymentAttemptRecord` * Add support for `list` and `retrieve` methods on resource `v2.core.WorkflowRun` @@ -1249,7 +995,9 @@ This release changes the pinned API version to 2026-04-22.dahlia. * Change `SharedPayment.GrantedToken.PaymentMethodDetail.billing_details` to be required ## 15.1.0a3 - 2026-04-08 -* [#1789](https://github.com/stripe/stripe-python/pull/1789) Update generated code for private-preview +This release changes the pinned API version to `2026-04-08.preview`. + +* ⚠️ [#1789](https://github.com/stripe/stripe-python/pull/1789) Update generated code for private-preview * Add support for `payment_record` on `ApplicationFee.FeeSource` * Add support for `fleet_data` on `ChargeCaptureParamsPaymentDetail`, `ChargeModifyParamsPaymentDetail`, `PaymentIntent.PaymentDetail`, `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Card`, `PaymentIntentCaptureParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentCaptureParamsPaymentDetail`, `PaymentIntentConfirmParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentCreateParamsPaymentDetail`, `PaymentIntentDecrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCard`, `PaymentIntentModifyParamsAmountDetailLineItemPaymentMethodOptionCard`, and `PaymentIntentModifyParamsPaymentDetail` * Add support for `beneficiary_account`, `beneficiary_details`, `sender_account`, and `sender_details` on `ChargeCaptureParamsPaymentDetailMoneyServiceAccountFunding`, `ChargeModifyParamsPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCaptureParamsPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentConfirmParamsPaymentDetailMoneyServiceAccountFunding`, `PaymentIntentCreateParamsPaymentDetailMoneyServiceAccountFunding`, and `PaymentIntentModifyParamsPaymentDetailMoneyServiceAccountFunding` @@ -1270,8 +1018,11 @@ This release changes the pinned API version to 2026-04-22.dahlia. * Add support for error type `CannotProceedError` ## 15.1.0a2 - 2026-04-01 +This release changes the pinned API version to `2026-04-01.preview`. + +* Please refer to the changelog for [v15.0.1](https://github.com/stripe/stripe-python/blob/v15.0.1/CHANGELOG.md#1501---2026-04-01) for additional changes. * See the changelog for [v15.0.1](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#1501---2026-04-01) for additional changes -* [#1778](https://github.com/stripe/stripe-python/pull/1778) Update generated code for private-preview +* ⚠️ [#1778](https://github.com/stripe/stripe-python/pull/1778) Update generated code for private-preview * Add support for new resources `shared_payment.IssuedToken` and `v2.data.reporting.QueryRun` * Add support for `create` and `retrieve` methods on resource `v2.data.reporting.QueryRun` * Add support for `pause` and `resume` methods on resource `v2.payments.OffSessionPayment` @@ -1318,13 +1069,13 @@ This release changes the pinned API version to 2026-04-22.dahlia. * Add support for `stripe_access_grant` on `EventsV2IamStripeAccessGrantApprovedEvent`, `EventsV2IamStripeAccessGrantCanceledEvent`, `EventsV2IamStripeAccessGrantDeniedEvent`, `EventsV2IamStripeAccessGrantRemovedEvent`, `EventsV2IamStripeAccessGrantRequestedEvent`, and `EventsV2IamStripeAccessGrantUpdatedEvent` * Add support for event notifications `V2DataReportingQueryRunCreatedEvent`, `V2DataReportingQueryRunFailedEvent`, `V2DataReportingQueryRunSucceededEvent`, and `V2DataReportingQueryRunUpdatedEvent` with related object `v2.data.reporting.QueryRun` * Add support for event notifications `V2PaymentsOffSessionPaymentPausedEvent` and `V2PaymentsOffSessionPaymentResumedEvent` with related object `v2.payments.OffSessionPayment` -* Please refer to the changelog for [v15.0.1](https://github.com/stripe/stripe-python/blob/v15.0.1/CHANGELOG.md#1501---2026-04-01) for additional changes. ## 15.1.0a1 - 2026-03-25 +This release changes the pinned API version to `2026-03-25.preview`. -This release changes the pinned API version to 2026-03-25.preview and contains additional breaking changes. See the [GA changelog](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#1500---2026-03-25) for more information. +This release contains additional breaking changes. See the [GA changelog](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#1500---2026-03-25) for more information. -* [#1776](https://github.com/stripe/stripe-python/pull/1776) Update generated code for private-preview +* ⚠️ [#1776](https://github.com/stripe/stripe-python/pull/1776) Update generated code for private-preview * Add support for new resource `RiskSignals` * Add support for `financial_account_rewards` and `nesting_demo` on `AccountSession.Component` * Add support for `upi_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` @@ -1391,7 +1142,7 @@ This release changes the pinned API version to 2026-03-25.preview and contains a * Add support for `consumer_privacy_disclosures` and `consumer_storer` on `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfService`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfService` * ⚠️ Remove support for `include` on `v2.billing.IntentCreateParams` and `v2.billing.IntentReserveParams` * Add support for error code `service_period_coupon_with_metered_tiered_item_unsupported` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1763](https://github.com/stripe/stripe-python/pull/1763) Update generated code for private-preview +* ⚠️ [#1763](https://github.com/stripe/stripe-python/pull/1763) Update generated code for private-preview * Add support for new resource `v2.core.AccountEvaluation` * ⚠️ Remove support for resources `v2.billing.LicenseFeeSubscription` and `v2.billing.PricingPlanSubscriptionComponents` * Add support for `create` method on resource `v2.core.AccountEvaluation` @@ -1426,88 +1177,9 @@ This release changes the pinned API version to 2026-03-25.preview and contains a * Add support for `statement_descriptor` on `v2.money_management.OutboundPaymentCreateParams` and `v2.money_management.OutboundTransferCreateParams` * Add support for `include` on `v2.billing.IntentCreateParams`, `v2.billing.IntentReserveParams`, `v2.billing.PricingPlanSubscriptionListParams`, `v2.billing.PricingPlanSubscriptionRetrieveParams`, `v2.money_management.FinancialAccountListParams`, and `v2.money_management.FinancialAccountRetrieveParams` * Add support for event notifications `V1AccountSignalsIncludingDelinquencyCreatedEvent`, `V2CoreAccountSignalsFraudulentWebsiteReadyEvent`, and `V2SignalsAccountSignalFraudulentMerchantReadyEvent` -* [#1766](https://github.com/stripe/stripe-python/pull/1766) Merge to private-preview - -## 15.0.1 - 2026-04-01 -* [#1786](https://github.com/stripe/stripe-python/pull/1786) Fix encoding two-dimensional array request params -* [#1785](https://github.com/stripe/stripe-python/pull/1785) Improve types for `metadata` and other dict-like types -* [#1780](https://github.com/stripe/stripe-python/pull/1780) Fix `str` / `repr` for `StripeObjects` with decimals & add support for plain dicts - -## 15.0.0 - 2026-03-25 - -This release changes the pinned API version to `2026-03-25.dahlia` and contains breaking changes (prefixed with ⚠️ below). There's also a [detailed migration guide](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v15) to simplify your upgrade process. - -Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/dahlia) before upgrading. - -* ⚠️ **Breaking change:** [#1769](https://github.com/stripe/stripe-python/pull/1769) Add decimal_string coercion for v1 and v2 API fields - - All `decimal_string` fields changed type from `str` to `decimal.Decimal` in both request params and response objects. Code that reads or writes these fields as `str` will need to use `Decimal` instead. Affected fields across v1 and v2 APIs: - - **checkout.Session**: `fx_rate` - - **climate.Order**: `metric_tons`; **climate.Product**: `metric_tons_available` - - **CreditNoteLineItem**: `unit_amount_decimal` - - **InvoiceItem**: `quantity_decimal`, `unit_amount_decimal` - - **InvoiceLineItem**: `quantity_decimal`, `unit_amount_decimal` - - **issuing.Authorization** / **issuing.Transaction** (and TestHelpers): `quantity_decimal`, `unit_cost_decimal`, `gross_amount_decimal`, `local_amount_decimal`, `national_amount_decimal` - - **Plan**: `amount_decimal`, `flat_amount_decimal`, `unit_amount_decimal` - - **Price**: `unit_amount_decimal`, `flat_amount_decimal` (including `currency_options` and `tiers`) - - **v2.core.Account** / **v2.core.AccountPerson**: `percent_ownership` - - Request params on **Invoice**, **Product**, **Quote**, **Subscription**, **SubscriptionItem**, **SubscriptionSchedule**, **PaymentLink**: `unit_amount_decimal`, `flat_amount_decimal`, `quantity_decimal` (where applicable) -* [⚠️ **Breaking change:**#1767](https://github.com/stripe/stripe-python/pull/1767) Throw an error when using the wrong webhook parsing method -* ⚠️ **Breaking change:** [#1764](https://github.com/stripe/stripe-python/pull/1764) Drop support for Python 3.7 & 3.8 -* ⚠️ **Breaking change:** [#1762](https://github.com/stripe/stripe-python/pull/1762) `StripeObject` no longer inherits from `dict` - - - `StripeObject` no longer inherits from `dict`, so any `dict` methods will no longer exist, including `.get()` and notably, `.items()`. - - For convenience, it's still possible to check key presence with `'some_key' in some_obj`. To replicate `.get()` behavior, use `getattr(obj, 'some_key', None)` for now. We've got some improvements around accessing properties that may not be present planned, but `getattr` works for now. - - `.update()` has been retained for easier interaction with `metadata`, but it's not really intended for use on full objects. - - Equality between `StripeObject`s still works: it checks for equality between the same class and underlying data. - - To access the underlying data as a `dict`, call `some_obj.to_dict()`, which recursively dumps all stripe-provided classes into native Python types. This is a read-only view; changes to the output of `to_dict()` won't affect the original object. - - Write operations can still be done with dot notation (`some_obj.val = 123`) or bracket notation (`some_obj["val"] = 123`). Do that instead of trying to interact with the underlying data store, as the implementation is considered private and may change without warning in the future. - -### ⚠️ Breaking changes due to changes in the Stripe API - -* Generated changes from [#1749](https://github.com/stripe/stripe-python/pull/1749), [#1771](https://github.com/stripe/stripe-python/pull/1771), [#1773](https://github.com/stripe/stripe-python/pull/1773), [#1775](https://github.com/stripe/stripe-python/pull/1775) - * Add support for `upi_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` - * Add support for `upi` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `Mandate.PaymentMethodDetail`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodOption`, `SetupIntentModifyParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodOption`, and `checkout.SessionCreateParamsPaymentMethodOption` - * Add support for new value `tempo` on enums `Charge.PaymentMethodDetail.Crypto.network`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto.network`, and `PaymentRecord.PaymentMethodDetail.Crypto.network` - * Add support for `integration_identifier` on `Checkout.Session` and `checkout.SessionCreateParams` - * Add support for new value `upi` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, `SetupIntentModifyParams.excluded_payment_method_types`, and `checkout.SessionCreateParams.excluded_payment_method_types` - * Add support for `crypto` on `checkout.SessionCreateParamsPaymentMethodOption` - * Add support for new value `upi` on enum `checkout.SessionCreateParams.payment_method_types` - * Add support for `pending_invoice_item_interval` on `checkout.SessionCreateParamsSubscriptionDatum` - * Add support for new values `elements`, `embedded_page`, `form`, and `hosted_page` on enums `Checkout.Session.ui_mode` and `checkout.SessionCreateParams.ui_mode` - * Add support for new value `marine_carbon_removal` on enum `Climate.Supplier.removal_pathway` - * Add support for new value `upi` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` - * Add support for new value `upi` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` - * Add support for `metadata` on `CreditNoteCreateParamsLine`, `CreditNoteLineItem`, `CreditNotePreviewLinesParamsLine`, and `CreditNotePreviewParamsLine` - * Add support for new value `upi` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `quantity_decimal` on `InvoiceAddLinesParamsLine`, `InvoiceCreatePreviewParamsInvoiceItem`, `InvoiceItemCreateParams`, `InvoiceItemModifyParams`, `InvoiceItem`, `InvoiceLineItemModifyParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParamsLine` - * ⚠️ Add support for `level` on `issuing.AuthorizationCreateParamsRiskAssessmentCardTestingRisk` and `issuing.AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk` - * ⚠️ Remove support for `risk_level` on `issuing.AuthorizationCreateParamsRiskAssessmentCardTestingRisk` and `issuing.AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk` - * Add support for `lifecycle_controls` on `Issuing.Card` and `issuing.CardCreateParams` - * ⚠️ Change type of `Issuing.Token.NetworkDatum.Visa.card_reference_id` from `string` to `nullable(string)` - * ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.brand` and `PaymentRecord.PaymentMethodDetail.Card.brand` from `enum` to `nullable(enum)` - * ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.exp_month` and `PaymentRecord.PaymentMethodDetail.Card.exp_month` from `longInteger` to `nullable(longInteger)` - * ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.exp_year` and `PaymentRecord.PaymentMethodDetail.Card.exp_year` from `longInteger` to `nullable(longInteger)` - * ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.funding` and `PaymentRecord.PaymentMethodDetail.Card.funding` from `enum('credit'|'debit'|'prepaid'|'unknown')` to `nullable(enum('credit'|'debit'|'prepaid'|'unknown'))` - * ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.last4` and `PaymentRecord.PaymentMethodDetail.Card.last4` from `string` to `nullable(string)` - * ⚠️ Change type of `PaymentAttemptRecord.PaymentMethodDetail.Card.moto` and `PaymentRecord.PaymentMethodDetail.Card.moto` from `boolean` to `nullable(boolean)` - * Add support for `cryptogram`, `electronic_commerce_indicator`, `exemption_indicator_applied`, and `exemption_indicator` on `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure` and `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure` - * Add support for `upi_handle_redirect_or_display_qr_code` on `PaymentIntent.NextAction` and `SetupIntent.NextAction` - * Add support for new value `upi` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkModifyParams.payment_method_types` - * Add support for `recommended_action` and `signals` on `Radar.PaymentEvaluation` - * ⚠️ Remove support for `insights` on `Radar.PaymentEvaluation` - * Add support for new value `crypto_fingerprint` on enums `Radar.ValueList.item_type` and `radar.ValueListCreateParams.item_type` - * Add support for new value `canceled_by_retention_policy` on enum `Subscription.CancellationDetail.reason` - * Add support for new value `2026-03-25.dahlia` on enum `WebhookEndpointCreateParams.api_version` - * ⚠️ Change type of `V2.Core.EventDestination.events_from` and `v2.core.EventDestinationCreateParams.events_from` from `enum('other_accounts'|'self')` to `string` - * Add support for error code `service_period_coupon_with_metered_tiered_item_unsupported` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1756](https://github.com/stripe/stripe-python/pull/1756) Add runtime support for V2 int64 string-encoded fields ## 14.5.0a4 - 2026-03-18 -* [#1760](https://github.com/stripe/stripe-python/pull/1760) Update generated code for private-preview - * Add support for `simulate_crypto_deposit` test helper method on resource `PaymentIntent` - * Add support for `deposit_options` and `mode` on `PaymentIntent.PaymentMethodOption.Crypto`, `PaymentIntentConfirmParamsPaymentMethodOptionCrypto`, `PaymentIntentCreateParamsPaymentMethodOptionCrypto`, and `PaymentIntentModifyParamsPaymentMethodOptionCrypto` - * Add support for `crypto_display_details` on `PaymentIntent.NextAction` -* [#1755](https://github.com/stripe/stripe-python/pull/1755) Update generated code for private-preview +* ⚠️ [#1755](https://github.com/stripe/stripe-python/pull/1755) Update generated code for private-preview * Add support for new resources `orchestration.PaymentAttempt` and `radar.CustomerEvaluation` * Add support for `retrieve` method on resource `orchestration.PaymentAttempt` * Add support for `create` and `modify` methods on resource `radar.CustomerEvaluation` @@ -1538,9 +1210,13 @@ Please review details for the breaking changes and alternatives in the [Stripe A * Change `shared_payment.GrantedTokenCreateParamsUsageLimit.expires_at` to be optional * Add support for `home_rule_tax` on `Tax.Registration.CountryOption.Me` and `tax.RegistrationCreateParamsCountryOptionMe` * Add support for new value `home_rule_tax` on enums `Tax.Registration.CountryOption.Me.type` and `tax.RegistrationCreateParamsCountryOptionMe.type` +* [#1760](https://github.com/stripe/stripe-python/pull/1760) Update generated code for private-preview + * Add support for `simulate_crypto_deposit` test helper method on resource `PaymentIntent` + * Add support for `deposit_options` and `mode` on `PaymentIntent.PaymentMethodOption.Crypto`, `PaymentIntentConfirmParamsPaymentMethodOptionCrypto`, `PaymentIntentCreateParamsPaymentMethodOptionCrypto`, and `PaymentIntentModifyParamsPaymentMethodOptionCrypto` + * Add support for `crypto_display_details` on `PaymentIntent.NextAction` ## 14.5.0a3 - 2026-03-11 -* [#1750](https://github.com/stripe/stripe-python/pull/1750) Update generated code for private-preview +* ⚠️ [#1750](https://github.com/stripe/stripe-python/pull/1750) Update generated code for private-preview * Add support for new resource `radar.IssuingAuthorizationEvaluation` * Add support for `create` method on resource `radar.IssuingAuthorizationEvaluation` * Add support for new value `fee_credits` on enum `BalanceTransaction.balance_type` @@ -1559,7 +1235,7 @@ Please review details for the breaking changes and alternatives in the [Stripe A ## 14.5.0a2 - 2026-03-04 This release changes the pinned API version to `2026-03-04.preview`. -* [#1741](https://github.com/stripe/stripe-python/pull/1741) Update generated code for private-preview +* ⚠️ [#1741](https://github.com/stripe/stripe-python/pull/1741) Update generated code for private-preview * Add support for new resources `Profile` and `billing.AlertRecovered` * Add support for `reauthorize` method on resource `PaymentIntent` * Add support for `settings` on `QuoteLine.Action.AddDiscount`, `QuoteLine.Action.AddItem.Discount`, `QuoteLine.Action.SetDiscount`, `QuoteLine.Action.SetItem.Discount`, `QuotePreviewSubscriptionSchedule.Phase.Discount`, `QuotePreviewSubscriptionSchedule.Phase.Item.Discount`, `SubscriptionSchedule.Phase.Discount`, and `SubscriptionSchedule.Phase.Item.Discount` @@ -1631,43 +1307,8 @@ This release uses the API version `2026-01-28.preview`. * Add support for `url` on `FinancialConnections.Session` * Add support for `billing_cycle_anchor` on `SubscriptionCreateParamsTrialSettingEndBehavior` and `SubscriptionModifyParamsTrialSettingEndBehavior` -## 14.4.1 - 2026-03-06 -* [#1748](https://github.com/stripe/stripe-python/pull/1748) Add Stripe-Request-Trigger header -* [#1743](https://github.com/stripe/stripe-python/pull/1743) Add agent information to UserAgent - -## 14.4.0 - 2026-02-25 -This release changes the pinned API version to `2026-02-25.clover`. - -* [#1737](https://github.com/stripe/stripe-python/pull/1737) Allow AIOHTTPClient to accept user-provided session or connector. Fixes [#1736](https://github.com/stripe/stripe-python/pull/1736) -* [#1732](https://github.com/stripe/stripe-python/pull/1732) Update generated code - * Add support for new resources `reserve.Hold`, `reserve.Plan`, and `reserve.Release` - * Add support for `location` and `reader` on `Charge.PaymentMethodDetail.CardPresent`, `Charge.PaymentMethodDetail.InteracPresent`, `ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, `PaymentAttemptRecord.PaymentMethodDetail.CardPresent`, `PaymentAttemptRecord.PaymentMethodDetail.InteracPresent`, `PaymentMethod.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, `PaymentRecord.PaymentMethodDetail.CardPresent`, and `PaymentRecord.PaymentMethodDetail.InteracPresent` - * Add support for new value `lk_vat` on enums `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` - * Add support for new value `lk_vat` on enums `CustomerCreateParamsTaxIdDatum.type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParamsCustomerDetailTaxId.type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParamsCustomerDetailTaxId.type` - * Add support for new values `reserve.hold.created`, `reserve.hold.updated`, `reserve.plan.created`, `reserve.plan.disabled`, `reserve.plan.expired`, `reserve.plan.updated`, and `reserve.release.created` on enum `Event.type` - * Add support for new values `terminal_wifi_certificate` and `terminal_wifi_private_key` on enums `File.purpose` and `FileListParams.purpose` - * Add support for new values `terminal_wifi_certificate` and `terminal_wifi_private_key` on enum `FileCreateParams.purpose` - * Add support for new value `pay_by_bank` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` - * Add support for `display_name` and `service_user_number` on `Mandate.PaymentMethodDetail.BacsDebit` - * Change type of `PaymentAttemptRecord.PaymentMethodDetail.Boleto.tax_id` and `PaymentRecord.PaymentMethodDetail.Boleto.tax_id` from `string` to `nullable(string)` - * Change type of `PaymentAttemptRecord.PaymentMethodDetail.UsBankAccount.expected_debit_date` and `PaymentRecord.PaymentMethodDetail.UsBankAccount.expected_debit_date` from `nullable(string)` to `string` - * Add support for `transaction_purpose` on `PaymentIntent.PaymentMethodOption.UsBankAccount`, `PaymentIntentConfirmParamsPaymentMethodOptionUsBankAccount`, `PaymentIntentCreateParamsPaymentMethodOptionUsBankAccount`, and `PaymentIntentModifyParamsPaymentMethodOptionUsBankAccount` - * Add support for `optional_items` on `PaymentLinkModifyParams` - * Remove support for unused `card_issuer_decline` on `Radar.PaymentEvaluation.Insight` - * Add support for `payment_behavior` on `SubscriptionItemDeleteParams` - * Add support for `lk` on `Tax.Registration.CountryOption` and `tax.RegistrationCreateParamsCountryOption` - * Add support for `cellular` and `stripe_s710` on `Terminal.Configuration`, `terminal.ConfigurationCreateParams`, and `terminal.ConfigurationModifyParams` - * Add support for new values `simulated_stripe_s710` and `stripe_s710` on enums `Terminal.Reader.device_type` and `terminal.ReaderListParams.device_type` - * Add support for new values `reserve.hold.created`, `reserve.hold.updated`, `reserve.plan.created`, `reserve.plan.disabled`, `reserve.plan.expired`, `reserve.plan.updated`, and `reserve.release.created` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` - * Add support for new value `2026-02-25.clover` on enum `WebhookEndpointCreateParams.api_version` - * Add support for snapshot events `reserve.hold.created` and `reserve.hold.updated` with resource `reserve.Hold` - * Add support for snapshot events `reserve.plan.created`, `reserve.plan.disabled`, `reserve.plan.expired`, and `reserve.plan.updated` with resource `reserve.Plan` - * Add support for snapshot event `reserve.release.created` with resource `reserve.Release` - * Add support for error codes `storer_capability_missing` and `storer_capability_not_active` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1731](https://github.com/stripe/stripe-python/pull/1731) Added instruction to update CA certificates in README. - ## 14.4.0a4 - 2026-02-19 -* [#1734](https://github.com/stripe/stripe-python/pull/1734) Update generated code for private-preview +* ⚠️ [#1734](https://github.com/stripe/stripe-python/pull/1734) Update generated code for private-preview * ⚠️ Add support for new value `spend_threshold` on enums `Billing.Alert.alert_type`, `billing.AlertCreateParams.alert_type`, and `billing.AlertListParams.alert_type` * Add support for `spend_threshold` on `Billing.Alert` and `billing.AlertCreateParams` * Add support for `invoice_item`, `proration_details`, `proration`, and `subscription` on `InvoiceLineItem.Parent.ScheduleDetail` @@ -1746,44 +1387,11 @@ This release changes the pinned API version to `2026-01-28.preview`. * Add support for `subtotal` on `InvoiceLineItem` * Add support for `billing_cadence` on `SubscriptionListParams` -## 14.3.0 - 2026-01-28 -This release changes the pinned API version to `2026-01-28.clover`. - -* [#1725](https://github.com/stripe/stripe-python/pull/1725) Update generated code - * Add support for new resource `radar.PaymentEvaluation` - * Add support for `create` method on resource `radar.PaymentEvaluation` - * Add support for `adjustable_quantity` on `LineItem` - * Add support for new value `risk_reserved` on enum `BalanceTransaction.balance_type` - * Add support for new values `reserve_hold` and `reserve_release` on enum `BalanceTransaction.type` - * Add support for new values `2.3.0` and `2.3.1` on enums `Charge.PaymentMethodDetail.Card.ThreeDSecure.version`, `PaymentIntentConfirmParamsPaymentMethodOptionCardThreeDSecure.version`, `PaymentIntentCreateParamsPaymentMethodOptionCardThreeDSecure.version`, `PaymentIntentModifyParamsPaymentMethodOptionCardThreeDSecure.version`, `SetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.version`, `SetupIntentConfirmParamsPaymentMethodOptionCardThreeDSecure.version`, `SetupIntentCreateParamsPaymentMethodOptionCardThreeDSecure.version`, and `SetupIntentModifyParamsPaymentMethodOptionCardThreeDSecure.version` - * Add support for new value `adyen` on enums `Charge.PaymentMethodDetail.Ideal.bank`, `ConfirmationToken.PaymentMethodPreview.Ideal.bank`, `ConfirmationTokenCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bank`, `PaymentIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentModifyParamsPaymentMethodDatumIdeal.bank`, `PaymentMethod.Ideal.bank`, `PaymentMethodCreateParamsIdeal.bank`, `PaymentRecord.PaymentMethodDetail.Ideal.bank`, `SetupAttempt.PaymentMethodDetail.Ideal.bank`, `SetupIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `SetupIntentCreateParamsPaymentMethodDatumIdeal.bank`, and `SetupIntentModifyParamsPaymentMethodDatumIdeal.bank` - * Add support for new value `ADYBNL2A` on enums `Charge.PaymentMethodDetail.Ideal.bic`, `ConfirmationToken.PaymentMethodPreview.Ideal.bic`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bic`, `PaymentMethod.Ideal.bic`, `PaymentRecord.PaymentMethodDetail.Ideal.bic`, and `SetupAttempt.PaymentMethodDetail.Ideal.bic` - * Add support for new value `pl_nip` on enums `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` - * Add support for new value `pl_nip` on enums `CustomerCreateParamsTaxIdDatum.type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParamsCustomerDetailTaxId.type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParamsCustomerDetailTaxId.type` - * Change `Invoice.PaymentSetting.PaymentMethodOption.payto` and `Subscription.PaymentSetting.PaymentMethodOption.payto` to be required - * Add support for `enforce_arithmetic_validation` on `PaymentIntentCaptureParamsAmountDetail`, `PaymentIntentConfirmParamsAmountDetail`, `PaymentIntentCreateParamsAmountDetail`, `PaymentIntentIncrementAuthorizationParamsAmountDetail`, and `PaymentIntentModifyParamsAmountDetail` - * Add support for `error` on `PaymentIntent.AmountDetail` - * Remove support for `bgn` on `Terminal.Configuration.Tipping`, `terminal.ConfigurationCreateParamsTipping`, and `terminal.ConfigurationModifyParamsTipping` - * Add support for `topup` on `Treasury.ReceivedDebit.LinkedFlow` - * Add support for `contact_phone` on `V2.Core.Account`, `v2.core.AccountCreateParams`, `v2.core.AccountModifyParams`, and `v2.core.AccountTokenCreateParams` - * Add support for `registration_date` on `V2.Core.Account.Identity.BusinessDetail`, `v2.core.AccountCreateParamsIdentityBusinessDetail`, `v2.core.AccountModifyParamsIdentityBusinessDetail`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetail` - * Add support for new value `gb_vat` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailIdNumber.type` - * Add support for error code `request_blocked` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1722](https://github.com/stripe/stripe-python/pull/1722) Add documentation for undocumented API parameters - ## 14.3.0a1 - 2026-01-21 * [#1723](https://github.com/stripe/stripe-python/pull/1723) Update generated code for private-preview * Remove support for `pause` method on resource `Subscription` * Change type of `Quote.SubscriptionDataOverride.phase_effective_at` and `Quote.SubscriptionDatum.phase_effective_at` from `enum('billing_period_start'|'phase_start')` to `nullable(enum('billing_period_start'|'phase_start'))` -## 14.2.0 - 2026-01-16 -* [#1720](https://github.com/stripe/stripe-python/pull/1720) Update generated code - * Add support for event notifications `V2CoreAccountClosedEvent`, `V2CoreAccountCreatedEvent`, `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingDefaultsUpdatedEvent`, `V2CoreAccountIncludingFutureRequirementsUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, `V2CoreAccountIncludingRequirementsUpdatedEvent`, and `V2CoreAccountUpdatedEvent` with related object `v2.core.Account` - * Add support for event notification `V2CoreAccountLinkReturnedEvent` - * Add support for event notifications `V2CoreAccountPersonCreatedEvent`, `V2CoreAccountPersonDeletedEvent`, and `V2CoreAccountPersonUpdatedEvent` with related object `v2.core.AccountPerson` -* [#1687](https://github.com/stripe/stripe-python/pull/1687) Fix DeprecationWarning when encoding StripeObject metadata (fixes #1651) -* [#1703](https://github.com/stripe/stripe-python/pull/1703) Update ci to run on Python 3.14 as well - ## 14.2.0a3 - 2026-01-14 * [#1718](https://github.com/stripe/stripe-python/pull/1718) Update generated code for private-preview * Add support for `risk_details` on `DelegatedCheckout.RequestedSession` @@ -1793,11 +1401,6 @@ This release changes the pinned API version to `2026-01-28.clover`. * Change type of `radar.AccountEvaluationModifyParams.type` from `literal('registration_succeeded')` to `enum('login_failed'|'login_succeeded'|'registration_failed'|'registration_succeeded')` ## 14.2.0a2 - 2026-01-07 -* [#1711](https://github.com/stripe/stripe-python/pull/1711) Update generated code for private-preview - * Add support for `tracking_details` on `V2.MoneyManagement.OutboundPayment` - * Add support for `paper_check` on `V2.MoneyManagement.OutboundPayment.DeliveryOption` and `v2.money_management.OutboundPaymentCreateParamsDeliveryOption` - * Add support for event notification `V2CoreAccountIncludingFutureRequirementsUpdatedEvent` with related object `v2.core.Account` - * Add support for error code `account_rate_limit_exceeded` on `RateLimitError` * [#1698](https://github.com/stripe/stripe-python/pull/1698) Update generated code for private-preview * Add support for new resource `tax.Location` * Add support for `create`, `list`, and `retrieve` methods on resource `tax.Location` @@ -1817,8 +1420,15 @@ This release changes the pinned API version to `2026-01-28.clover`. * Add support for new values `admissions_tax`, `attendance_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `resort_tax`, and `tourism_tax` on enums `Tax.Registration.CountryOption.Me.type` and `tax.RegistrationCreateParamsCountryOptionMe.type` * Add support for `admissions_tax`, `attendance_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `resort_tax`, and `tourism_tax` on `Tax.Registration.CountryOption.Me` * Add support for `requirements` on `TaxCode` +* [#1711](https://github.com/stripe/stripe-python/pull/1711) Update generated code for private-preview + * Add support for `tracking_details` on `V2.MoneyManagement.OutboundPayment` + * Add support for `paper_check` on `V2.MoneyManagement.OutboundPayment.DeliveryOption` and `v2.money_management.OutboundPaymentCreateParamsDeliveryOption` + * Add support for event notification `V2CoreAccountIncludingFutureRequirementsUpdatedEvent` with related object `v2.core.Account` + * Add support for error code `account_rate_limit_exceeded` on `RateLimitError` ## 14.2.0a1 - 2025-12-14 +This release changes the pinned API version to `2025-12-15.preview`. + * [#1693](https://github.com/stripe/stripe-python/pull/1693) Update generated code for private-preview * Add support for new resources `shared_payment.GrantedToken`, `v2.iam.ApiKey`, `v2.payments.SettlementAllocationIntentSplit`, `v2.payments.SettlementAllocationIntent`, and `v2.tax.ManualRule` * Add support for `retrieve` method on resource `shared_payment.GrantedToken` @@ -1857,83 +1467,6 @@ This release changes the pinned API version to `2026-01-28.clover`. * Add support for event notifications `V2PaymentsSettlementAllocationIntentSplitCanceledEvent`, `V2PaymentsSettlementAllocationIntentSplitCreatedEvent`, and `V2PaymentsSettlementAllocationIntentSplitSettledEvent` with related object `v2.payments.SettlementAllocationIntentSplit` * Remove support for error code `account_rate_limit_exceeded` on `RateLimitError` -## 14.1.0 - 2025-12-16 -This release changes the pinned API version to `2025-12-15.clover`. - -* [#1696](https://github.com/stripe/stripe-python/pull/1696) Update generated code - * Add support for new resources `v2.core.AccountLink`, `v2.core.AccountPersonToken`, `v2.core.AccountPerson`, `v2.core.AccountToken`, and `v2.core.Account` - * Add support for `create` and `retrieve` methods on resources `v2.core.AccountPersonToken` and `v2.core.AccountToken` - * Add support for `create` method on resource `v2.core.AccountLink` - * Add support for `close`, `create`, `list`, `modify`, and `retrieve` methods on resource `v2.core.Account` - * Add support for `create`, `delete`, `list`, `modify`, and `retrieve` methods on resource `v2.core.AccountPerson` - * Add support for `customer_account` on `Billing.CreditBalanceSummary`, `Billing.CreditGrant`, `BillingPortal.Session`, `CashBalance`, `Checkout.Session`, `ConfirmationToken.PaymentMethodPreview`, `CreditNoteListParams`, `CreditNote`, `CustomerBalanceTransaction`, `CustomerCashBalanceTransaction`, `CustomerSessionCreateParams`, `CustomerSession`, `Customer`, `Discount`, `FinancialConnections.Account.AccountHolder`, `FinancialConnections.Session.AccountHolder`, `InvoiceCreateParams`, `InvoiceCreatePreviewParams`, `InvoiceItemCreateParams`, `InvoiceItemListParams`, `InvoiceItem`, `InvoiceListParams`, `Invoice`, `PaymentIntentCreateParams`, `PaymentIntentListParams`, `PaymentIntentModifyParams`, `PaymentIntent`, `PaymentMethodAttachParams`, `PaymentMethodListParams`, `PaymentMethod`, `PromotionCodeCreateParams`, `PromotionCodeListParams`, `PromotionCode`, `QuoteCreateParams`, `QuoteListParams`, `QuoteModifyParams`, `Quote`, `SetupAttempt`, `SetupIntentCreateParams`, `SetupIntentListParams`, `SetupIntentModifyParams`, `SetupIntent`, `SubscriptionCreateParams`, `SubscriptionListParams`, `SubscriptionScheduleCreateParams`, `SubscriptionScheduleListParams`, `SubscriptionSchedule`, `Subscription`, `TaxId.Owner`, `TaxIdCreateParamsOwner`, `TaxIdListParamsOwner`, `TaxId`, `billing.CreditBalanceSummaryRetrieveParams`, `billing.CreditBalanceTransactionListParams`, `billing.CreditGrantCreateParams`, `billing.CreditGrantListParams`, `billing_portal.SessionCreateParams`, `checkout.SessionCreateParams`, `checkout.SessionListParams`, `financial_connections.AccountListParamsAccountHolder`, and `financial_connections.SessionCreateParamsAccountHolder` - * Add support for `metadata` on `LineItem` and `checkout.SessionCreateParamsLineItem` - * Add support for `payto_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` - * Add support for `signer` on `AccountCreateParamsDocumentProofOfRegistration`, `AccountCreateParamsDocumentProofOfUltimateBeneficialOwnership`, `AccountModifyParamsDocumentProofOfRegistration`, and `AccountModifyParamsDocumentProofOfUltimateBeneficialOwnership` - * Change `CustomerSessionCreateParams.customer`, `InvoiceItemCreateParams.customer`, `PaymentMethodAttachParams.customer`, `SubscriptionCreateParams.customer`, `billing.CreditBalanceSummaryRetrieveParams.customer`, `billing.CreditBalanceTransactionListParams.customer`, `billing.CreditGrantCreateParams.customer`, and `billing_portal.SessionCreateParams.customer` to be optional - * Add support for `billing_cycle_anchor` on `BillingPortal.Configuration.Feature.SubscriptionUpdate`, `billing_portal.ConfigurationCreateParamsFeatureSubscriptionUpdate`, and `billing_portal.ConfigurationModifyParamsFeatureSubscriptionUpdate` - * Add support for `payto` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `Mandate.PaymentMethodDetail`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethodModifyParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodOption`, `SetupIntentModifyParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, `SubscriptionModifyParamsPaymentSettingPaymentMethodOption`, and `checkout.SessionCreateParamsPaymentMethodOption` - * Add support for `expected_debit_date` on `Charge.PaymentMethodDetail.AcssDebit`, `Charge.PaymentMethodDetail.AuBecsDebit`, `Charge.PaymentMethodDetail.BacsDebit`, `Charge.PaymentMethodDetail.NzBankAccount`, `Charge.PaymentMethodDetail.SepaDebit`, `Charge.PaymentMethodDetail.UsBankAccount`, `PaymentAttemptRecord.PaymentMethodDetail.AcssDebit`, `PaymentAttemptRecord.PaymentMethodDetail.AuBecsDebit`, `PaymentAttemptRecord.PaymentMethodDetail.BacsDebit`, `PaymentAttemptRecord.PaymentMethodDetail.NzBankAccount`, `PaymentAttemptRecord.PaymentMethodDetail.SepaDebit`, `PaymentAttemptRecord.PaymentMethodDetail.UsBankAccount`, `PaymentRecord.PaymentMethodDetail.AcssDebit`, `PaymentRecord.PaymentMethodDetail.AuBecsDebit`, `PaymentRecord.PaymentMethodDetail.BacsDebit`, `PaymentRecord.PaymentMethodDetail.NzBankAccount`, `PaymentRecord.PaymentMethodDetail.SepaDebit`, and `PaymentRecord.PaymentMethodDetail.UsBankAccount` - * Add support for new value `mollie` on enums `Charge.PaymentMethodDetail.Ideal.bank`, `ConfirmationToken.PaymentMethodPreview.Ideal.bank`, `ConfirmationTokenCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bank`, `PaymentIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentModifyParamsPaymentMethodDatumIdeal.bank`, `PaymentMethod.Ideal.bank`, `PaymentMethodCreateParamsIdeal.bank`, `PaymentRecord.PaymentMethodDetail.Ideal.bank`, `SetupAttempt.PaymentMethodDetail.Ideal.bank`, `SetupIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `SetupIntentCreateParamsPaymentMethodDatumIdeal.bank`, and `SetupIntentModifyParamsPaymentMethodDatumIdeal.bank` - * Add support for new value `MLLENL2A` on enums `Charge.PaymentMethodDetail.Ideal.bic`, `ConfirmationToken.PaymentMethodPreview.Ideal.bic`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bic`, `PaymentMethod.Ideal.bic`, `PaymentRecord.PaymentMethodDetail.Ideal.bic`, and `SetupAttempt.PaymentMethodDetail.Ideal.bic` - * Add support for new value `payto` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, `SetupIntentModifyParams.excluded_payment_method_types`, and `checkout.SessionCreateParams.excluded_payment_method_types` - * Add support for new value `payto` on enum `checkout.SessionCreateParams.payment_method_types` - * Add support for `line_items` on `checkout.SessionModifyParams` - * Add support for new value `payto` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` - * Add support for new value `payto` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` - * Add support for new value `payto` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `invoice` on `CustomerListCustomerBalanceTransactionParams` - * Add support for `related_customer_account` on `Identity.VerificationSession`, `identity.VerificationSessionCreateParams`, and `identity.VerificationSessionListParams` - * Change type of `InvoiceItem.Pricing.PriceDetail.price` and `InvoiceLineItem.Pricing.PriceDetail.price` from `string` to `expandable($Price)` - * Add support for new value `payto` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` - * Add support for `subtotal` on `InvoiceLineItem` - * Add support for `authorization_code`, `description`, `iin`, `installments`, `issuer`, `network_advice_code`, `network_decline_code`, and `stored_credential_usage` on `PaymentAttemptRecord.PaymentMethodDetail.Card` and `PaymentRecord.PaymentMethodDetail.Card` - * Change `PaymentIntent.transfer_data` to be optional - * Add support for new value `payto` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkModifyParams.payment_method_types` - * Add support for `allow_redisplay` on `PaymentMethodListParams` - * Add support for `reported_by` on `PaymentRecord` - * Change `Product.tax_code` to be optional - * Add support for new values `2025-12-15.clover` and `2026-01-28.clover` on enum `WebhookEndpointCreateParams.api_version` - * Add support for `changes` on `V2.Core.Event` - * Add support for error code `account_token_required_for_v2_account` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1692](https://github.com/stripe/stripe-python/pull/1692) Updated bundled CA certificates -* [#1676](https://github.com/stripe/stripe-python/pull/1676) Add create_async method to EphemeralKey - -## 14.1.0b1 - 2025-11-18 -This release changes the pinned API version to `2025-11-17.preview`. - -* [#1663](https://github.com/stripe/stripe-python/pull/1663) Update generated code for beta - * Add support for new resources `v2.core.AccountPersonToken` and `v2.core.AccountToken` - * Remove support for resource `v2.payments.OffSessionPayment` - * Add support for `create` and `retrieve` methods on resources `v2.core.AccountPersonToken` and `v2.core.AccountToken` - * Remove support for `cancel`, `capture`, `create`, `list`, and `retrieve` methods on resource `v2.payments.OffSessionPayment` - * Change `Tax.Association.tax_transaction_attempts` to be required - * Add support for `specified_commercial_transactions_act_url` on `Account.BusinessProfile`, `AccountCreateParamsBusinessProfile`, and `AccountModifyParamsBusinessProfile` - * Add support for `paypay_payments` on `Account.Setting`, `AccountCreateParamsSetting`, and `AccountModifyParamsSetting` - * Change type of `billing.analytics.MeterUsageRetrieveParamsMeter.dimension_filters` from `string` to `array(string)` - * Change type of `billing.analytics.MeterUsageRetrieveParamsMeter.tenant_filters` from `string` to `array(string)` - * Add support for `car_rental_data`, `flight_data`, and `lodging_data` on `ChargeCaptureParamsPaymentDetail`, `ChargeModifyParamsPaymentDetail`, `PaymentIntentCaptureParamsPaymentDetail`, `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsPaymentDetail`, and `PaymentIntentModifyParamsPaymentDetail` - * Add support for `supplementary_purchase_data` on `OrderCreateParamsPaymentSettingPaymentMethodOptionKlarna`, `OrderModifyParamsPaymentSettingPaymentMethodOptionKlarna`, `PaymentIntentConfirmParamsPaymentMethodOptionKlarna`, `PaymentIntentCreateParamsPaymentMethodOptionKlarna`, and `PaymentIntentModifyParamsPaymentMethodOptionKlarna` - * Add support for `allow_redisplay` and `customer_account` on `PaymentMethodListParams` - * Add support for `future_requirements` on `V2.Core.Account` - * Add support for `konbini_payments` and `script_statement_descriptor` on `V2.Core.Account.Configuration.Merchant`, `v2.core.AccountCreateParamsConfigurationMerchant`, and `v2.core.AccountModifyParamsConfigurationMerchant` - * Add support for `eur` on `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrency`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrency` - * Add support for `requirements_collector` on `V2.Core.Account.Default.Responsibility` - * Add support for new value `ar_cuit` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type` - * Add support for new value `ar_dni` on enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.AccountPerson.IdNumber.type`, `v2.core.AccountCreateParamsIdentityIndividualIdNumber.type`, `v2.core.AccountModifyParamsIdentityIndividualIdNumber.type`, `v2.core.AccountPersonCreateParamsIdNumber.type`, and `v2.core.AccountPersonModifyParamsIdNumber.type` - * Remove support for `collector` on `V2.Core.Account.Requirement` - * Add support for new value `holds_currencies.eur` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` - * Add support for new values `payment_method` and `person` on enum `V2.Core.Account.Requirement.Entry.Reference.type` - * Remove support for value `resource` from enum `V2.Core.Account.Requirement.Entry.Reference.type` - * Remove support for value `future_requirements` from enum `V2.Core.Account.Requirement.Entry.RequestedReason.code` - * Add support for `changes` on `V2.Core.Event` - * Remove support for value `sepa_bank_account` from enums `V2.MoneyManagement.FinancialAddress.Credential.type` and `v2.money_management.FinancialAddressCreateParams.type` - * Add support for `account_token` on `v2.core.AccountCreateParams` and `v2.core.AccountModifyParams` - * Add support for new value `future_requirements` on enums `v2.core.AccountCreateParams.include`, `v2.core.AccountModifyParams.include`, and `v2.core.AccountRetrieveParams.include` - * Add support for `person_token` on `v2.core.AccountPersonCreateParams` and `v2.core.AccountPersonModifyParams` - * Add support for thin event `V2CoreHealthEventGenerationFailureResolvedEvent` - * Remove support for thin events `V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent`, `V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent`, `V2PaymentsOffSessionPaymentCanceledEvent`, `V2PaymentsOffSessionPaymentCreatedEvent`, `V2PaymentsOffSessionPaymentFailedEvent`, `V2PaymentsOffSessionPaymentRequiresCaptureEvent`, and `V2PaymentsOffSessionPaymentSucceededEvent` with related object `v2.payments.OffSessionPayment` - ## 14.1.0a4 - 2025-12-04 * [#1691](https://github.com/stripe/stripe-python/pull/1691) Update generated code for private-preview * Add support for event notifications `V2IamApiKeyCreatedEvent`, `V2IamApiKeyDefaultSecretRevealedEvent`, `V2IamApiKeyExpiredEvent`, `V2IamApiKeyPermissionsUpdatedEvent`, `V2IamApiKeyRotatedEvent`, and `V2IamApiKeyUpdatedEvent` @@ -2071,8 +1604,6 @@ This release changes the pinned API version to `2025-11-17.preview`. ## 14.1.0a1 - 2025-11-18 This release changes the pinned API version to `2025-11-17.preview`. -* [#1675](https://github.com/stripe/stripe-python/pull/1675) Update generated code for private-preview - * Add support for `billing_schedules_actions` on `InvoiceCreatePreviewParamsScheduleDetailAmendment` and `SubscriptionScheduleAmendParamsAmendment` * [#1674](https://github.com/stripe/stripe-python/pull/1674) Update generated code for private-preview * Add support for new resources `BalanceTransfer` and `radar.AccountEvaluation` * Add support for `create` method on resource `BalanceTransfer` @@ -2102,42 +1633,21 @@ This release changes the pinned API version to `2025-11-17.preview`. * Add support for new values `capital.financing_offer.accepted_other_offer`, `financial_connections.account.account_numbers_updated`, and `financial_connections.account.upcoming_account_number_expiry` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` * Add support for new value `2025-11-17.clover` on enum `WebhookEndpointCreateParams.api_version` * Add support for snapshot events `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` with resource `financial_connections.Account` - -## 14.0.1 - 2025-11-21 -* [#1684](https://github.com/stripe/stripe-python/pull/1684) Update generated code - * `stripe.error` module is now accessible globally. Fixes [#1682](https://github.com/stripe/stripe-python/issues/1682) -* [#1681](https://github.com/stripe/stripe-python/pull/1681) Throw a specific error when accessing `payment_intent` property on `Invoice` object to ease debugging. - -## 14.0.0 - 2025-11-18 -This release changes the pinned API version to `2025-11-17.clover`. - -* [#1673](https://github.com/stripe/stripe-python/pull/1673) Update generated code - * ⚠️ Remove support for `gt`, `gte`, `lt`, and `lte` on `v2.core.EventListParams` in favor of `created`. -* [#1669](https://github.com/stripe/stripe-python/pull/1669) Update v2 array parameter serialization to use indexed format - - `Retrieve` and `List` calls for `/v2` endpoints now use indexed format (e.g., `?include[0]=foo&include[1]=bar`) instead of repeated parameter format (e.g., `?include=foo&include=bar`) when communicating with the Stripe API. This may break any unit tests that expect the latter behavior when setting up a mock server. Instead, they should now expect the former. -* [#1667](https://github.com/stripe/stripe-python/pull/1667) Update generated code - * Add support for new resources `tax.Association` and `terminal.OnboardingLink` - * Add support for `find` method on resource `tax.Association` - * Add support for `create` method on resource `terminal.OnboardingLink` - * Add support for `payment_method_configuration` on `BillingPortal.Configuration.Feature.PaymentMethodUpdate` - * Add support for `transaction_id` on `Charge.PaymentMethodDetail.Ideal`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal`, and `PaymentRecord.PaymentMethodDetail.Ideal` - * Add support for new value `finom` on enums `Charge.PaymentMethodDetail.Ideal.bank`, `ConfirmationToken.PaymentMethodPreview.Ideal.bank`, `ConfirmationTokenCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bank`, `PaymentIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentModifyParamsPaymentMethodDatumIdeal.bank`, `PaymentMethod.Ideal.bank`, `PaymentMethodCreateParamsIdeal.bank`, `PaymentRecord.PaymentMethodDetail.Ideal.bank`, `SetupAttempt.PaymentMethodDetail.Ideal.bank`, `SetupIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `SetupIntentCreateParamsPaymentMethodDatumIdeal.bank`, and `SetupIntentModifyParamsPaymentMethodDatumIdeal.bank` - * Add support for new value `FNOMNL22` on enums `Charge.PaymentMethodDetail.Ideal.bic`, `ConfirmationToken.PaymentMethodPreview.Ideal.bic`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bic`, `PaymentMethod.Ideal.bic`, `PaymentRecord.PaymentMethodDetail.Ideal.bic`, and `SetupAttempt.PaymentMethodDetail.Ideal.bic` - * Add support for new value `tokenized_account_number_deactivated` on enums `ConfirmationToken.PaymentMethodPreview.UsBankAccount.StatusDetail.Blocked.reason` and `PaymentMethod.UsBankAccount.StatusDetail.Blocked.reason` - * Add support for `created` on `CustomerListCustomerBalanceTransactionParams` and `InvoicePaymentListParams` - * Add support for new values `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` on enum `Event.type` - * Add support for `account_numbers` on `FinancialConnections.Account` - * Change type of `FinancialConnections.Session.client_secret` from `string` to `nullable(string)` - * Add support for `fraud_risk` on `issuing.AuthorizationCreateParamsRiskAssessment` - * Add support for `latest_fraud_warning` on `Issuing.Card` - * Add support for `hooks` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentModifyParams`, and `PaymentIntent` - * Add support for `mb_way` and `twint` on `Refund.DestinationDetail` - * Add support for new values `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` - * Add support for snapshot events `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` with resource `financial_connections.Account` +* [#1675](https://github.com/stripe/stripe-python/pull/1675) Update generated code for private-preview + * Add support for `billing_schedules_actions` on `InvoiceCreatePreviewParamsScheduleDetailAmendment` and `SubscriptionScheduleAmendParamsAmendment` ## 13.3.0a2 - 2025-11-13 This release changes the pinned API version to `2025-10-29.preview`. +* [#1666](https://github.com/stripe/stripe-python/pull/1666) Update generated code for private-preview + * Remove support for resource `v2.tax.AutomaticRule` + * Remove support for `create`, `deactivate`, `find`, `modify`, and `retrieve` methods on resource `v2.tax.AutomaticRule` + * Add support for `self_reported_income` and `self_reported_monthly_housing_payment` on `AccountCreateParamsIndividual`, `AccountCreatePersonParams`, `AccountModifyParamsIndividual`, `AccountModifyPersonParams`, `Person`, `TokenCreateParamsAccountIndividual`, and `TokenCreateParamsPerson` + * Add support for new values `amendment_end`, `line_ends_at`, `schedule_end`, and `upcoming_invoice` on enums `InvoiceCreatePreviewParamsSubscriptionDetailBillingScheduleBillUntil.type`, `Subscription.BillingSchedule.BillUntil.type`, `SubscriptionCreateParamsBillingScheduleBillUntil.type`, and `SubscriptionModifyParamsBillingScheduleBillUntil.type` + * Add support for `billing_schedules` and `phase_effective_at` on `Quote.SubscriptionDataOverride`, `Quote.SubscriptionDatum`, `QuoteCreateParamsSubscriptionDataOverride`, `QuoteCreateParamsSubscriptionDatum`, `QuoteModifyParamsSubscriptionDataOverride`, and `QuoteModifyParamsSubscriptionDatum` + * Add support for `bill_from` on `Subscription.BillingSchedule` + * Add support for `amendment_end` and `line_ends_at` on `Subscription.BillingSchedule.BillUntil` + * Remove support for `data` and `related_object` on `V2.Core.Event` * [#1672](https://github.com/stripe/stripe-python/pull/1672) Update generated code for private-preview * Add support for new resource `issuing.Program` * Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `issuing.Program` @@ -2150,16 +1660,6 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for new value `schedule_details` on enum `InvoiceLineItem.Parent.type` * Add support for `latest_invoice` on `QuotePreviewSubscriptionSchedule` and `SubscriptionSchedule` * Add support for `phase_effective_at` on `QuotePreviewSubscriptionSchedule.DefaultSetting`, `SubscriptionSchedule.DefaultSetting`, `SubscriptionScheduleCreateParamsDefaultSetting`, and `SubscriptionScheduleModifyParamsDefaultSetting` -* [#1666](https://github.com/stripe/stripe-python/pull/1666) Update generated code for private-preview - * Remove support for resource `v2.tax.AutomaticRule` - * Remove support for `create`, `deactivate`, `find`, `modify`, and `retrieve` methods on resource `v2.tax.AutomaticRule` - * Add support for `self_reported_income` and `self_reported_monthly_housing_payment` on `AccountCreateParamsIndividual`, `AccountCreatePersonParams`, `AccountModifyParamsIndividual`, `AccountModifyPersonParams`, `Person`, `TokenCreateParamsAccountIndividual`, and `TokenCreateParamsPerson` - * Add support for new values `amendment_end`, `line_ends_at`, `schedule_end`, and `upcoming_invoice` on enums `InvoiceCreatePreviewParamsSubscriptionDetailBillingScheduleBillUntil.type`, `Subscription.BillingSchedule.BillUntil.type`, `SubscriptionCreateParamsBillingScheduleBillUntil.type`, and `SubscriptionModifyParamsBillingScheduleBillUntil.type` - * Add support for `billing_schedules` and `phase_effective_at` on `Quote.SubscriptionDataOverride`, `Quote.SubscriptionDatum`, `QuoteCreateParamsSubscriptionDataOverride`, `QuoteCreateParamsSubscriptionDatum`, `QuoteModifyParamsSubscriptionDataOverride`, and `QuoteModifyParamsSubscriptionDatum` - * Add support for `bill_from` on `Subscription.BillingSchedule` - * Add support for `amendment_end` and `line_ends_at` on `Subscription.BillingSchedule.BillUntil` - * Remove support for `data` and `related_object` on `V2.Core.Event` -* [#1671](https://github.com/stripe/stripe-python/pull/1671) Ramya/merge python private preview ## 13.3.0a1 - 2025-11-06 * [#1664](https://github.com/stripe/stripe-python/pull/1664) Update generated code for private-preview @@ -2170,46 +1670,6 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for `allocated_funds` on `Charge`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, and `PaymentIntentModifyParams` * Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `v2.reporting.ReportRun` -## 13.2.0 - 2025-11-05 -* [#1662](https://github.com/stripe/stripe-python/pull/1662) Update generated code - * Add support for `capture_method` on `PaymentIntent.PaymentMethodOption.CardPresent`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresent` - -## 13.2.0b1 - 2025-10-29 - -This release changes the pinned API version to `2025-10-29.preview`. - -* [#1655](https://github.com/stripe/stripe-python/pull/1655) Update generated code for beta - * Add support for `crypto_storer` on `v2.core.AccountModifyParamsIdentityAttestationTermsOfService` -* [#1624](https://github.com/stripe/stripe-python/pull/1624) Update generated code for beta - * Add support for `modify` method on resource `v2.money_management.FinancialAccount` - * Add support for `confirm_microdeposits`, `list`, and `send_microdeposits` methods on resource `v2.core.vault.UsBankAccount` - * Add support for `list` method on resource `v2.core.vault.GbBankAccount` - * Add support for new value `verification_data_not_found` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` - * Add support for `payment_portal_url` on `Charge.PaymentMethodDetail.Rechnung`, `PaymentAttemptRecord.PaymentMethodDetail.Rechnung`, and `PaymentRecord.PaymentMethodDetail.Rechnung` - * Add support for `tax_id_element` on `CustomerSession.Component` and `CustomerSessionCreateParamsComponent` - * Add support for `starting_after` on `PaymentAttemptRecordListParams` - * Add support for new value `solana` on enums `PaymentAttemptRecord.PaymentMethodDetail.Crypto.network` and `PaymentRecord.PaymentMethodDetail.Crypto.network` - * Add support for `reference` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Klarna`, `PaymentIntentCaptureParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentConfirmParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentCreateParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionKlarna`, and `PaymentIntentModifyParamsAmountDetailLineItemPaymentMethodOptionKlarna` - * Change `PaymentIntent.PaymentDetail.customer_reference` to be required - * Change `PaymentIntent.PaymentDetail.order_reference` to be required - * Add support for `subscription_reference` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Klarna` - * Add support for `closed` on `V2.Core.Account` and `v2.core.AccountListParams` - * Add support for new value `payment_method` on enums `V2.Core.Account.Configuration.Customer.AutomaticIndirectTax.location_source`, `v2.core.AccountCreateParamsConfigurationCustomerAutomaticIndirectTax.location_source`, and `v2.core.AccountModifyParamsConfigurationCustomerAutomaticIndirectTax.location_source` - * Add support for `usd` on `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrency`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrency` - * Add support for new values `application_custom` and `application_express` on enums `V2.Core.Account.Default.Responsibility.fees_collector`, `v2.core.AccountCreateParamsDefaultResponsibility.fees_collector`, and `v2.core.AccountModifyParamsDefaultResponsibility.fees_collector` - * Add support for `representative_declaration` on `V2.Core.Account.Identity.Attestation`, `v2.core.AccountCreateParamsIdentityAttestation`, and `v2.core.AccountModifyParamsIdentityAttestation` - * Add support for new value `holds_currencies.usd` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` - * Add support for `verification` on `V2.Core.Vault.UsBankAccount` - * Add support for `v1_id` on `EventsV2MoneyManagementTransactionCreatedEvent` - * Remove support for thin event `V2BillingBillSettingUpdatedEvent` with related object `v2.billing.BillSetting` - * Add support for error code `payment_intent_rate_limit_exceeded` on `QuotePreviewInvoice.LastFinalizationError` - * Add support for error codes `blocked_payout_method_crypto_wallet` and `unsupported_payout_method_crypto_wallet` on `BlockedByStripeError` - * Add support for error code `outbound_flow_from_closed_financial_account_unsupported` on `FeatureNotEnabledError` - * Add support for error code `limit_payout_method_crypto_wallet` on `QuotaExceededError` -* [#1617](https://github.com/stripe/stripe-python/pull/1617) Update generated code for beta - * Add support for `last_seen_at` on `Terminal.Reader` - * Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.api_version` - ## 13.2.0a2 - 2025-10-30 * [#1659](https://github.com/stripe/stripe-python/pull/1659) Update generated code for private-preview * Change `delegated_checkout.RequestedSessionModifyParamsLineItemDetail.quantity` to be required @@ -2221,7 +1681,6 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for new value `commercial.lead.prepaid_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` ## 13.2.0a1 - 2025-10-29 - * [#1654](https://github.com/stripe/stripe-python/pull/1654) Update generated code for private-preview * Add support for `report_refund` method on resource `PaymentRecord` * Add support for new value `verification_data_not_found` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` @@ -2273,131 +1732,6 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for `external_amount` on `V2.MoneyManagement.ReceivedCredit` and `V2.MoneyManagement.ReceivedDebit` * Add support for error code `payment_intent_rate_limit_exceeded` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -## 13.1.2 - 2025-11-04 -* [#1661](https://github.com/stripe/stripe-python/pull/1661) Add support for value `payment_record` to enum `InvoicePayment.payment.type` - -## 13.1.1 - 2025-10-31 -* [#1660](https://github.com/stripe/stripe-python/pull/1660) Fix `stripe-context` header not being included in paged list requests - -## 13.1.0 - 2025-10-29 - -This release changes the pinned API version to `2025-10-29.clover`. - -* [#1656](https://github.com/stripe/stripe-python/pull/1656) Update generated code - * Improve docs for PaymentIntent related endpoints -* [#1650](https://github.com/stripe/stripe-python/pull/1650) Update generated code - * Add support for new resources `PaymentAttemptRecord`, `PaymentIntentAmountDetailsLineItem`, and `PaymentRecord` - * Add support for `list` and `retrieve` methods on resource `PaymentAttemptRecord` - * Add support for `report_payment_attempt_canceled`, `report_payment_attempt_failed`, `report_payment_attempt_guaranteed`, `report_payment_attempt_informational`, `report_payment_attempt`, `report_payment`, `report_refund`, and `retrieve` methods on resource `PaymentRecord` - * Add support for `list` method on resource `PaymentIntentAmountDetailsLineItem` - * Add support for `representative_declaration` on `Account.Company`, `AccountCreateParamsCompany`, `AccountModifyParamsCompany`, and `TokenCreateParamsAccountCompany` - * Change `billing.CreditGrantCreateParams.category` to be optional - * Add support for `payment_method_configuration` on `billing_portal.ConfigurationCreateParamsFeaturePaymentMethodUpdate` and `billing_portal.ConfigurationModifyParamsFeaturePaymentMethodUpdate` - * Add support for new value `solana` on enum `Charge.PaymentMethodDetail.Crypto.network` - * Add support for new value `mb_way` on enum `checkout.SessionCreateParams.excluded_payment_method_types` - * Add support for `twint` on `Checkout.Session.PaymentMethodOption` and `checkout.SessionCreateParamsPaymentMethodOption` - * Add support for new value `mb_way` on enum `checkout.SessionCreateParams.payment_method_types` - * Add support for new value `custom` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` - * Add support for `payment_record_refund` and `type` on `CreditNote.Refund`, `CreditNoteCreateParamsRefund`, `CreditNotePreviewLinesParamsRefund`, and `CreditNotePreviewParamsRefund` - * Add support for `customer_sheet` and `mobile_payment_element` on `CustomerSession.Component` and `CustomerSessionCreateParamsComponent` - * Add support for new value `custom` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `provider` on `Customer.Tax` - * Add support for new values `balance_settings.updated` and `invoice.payment_attempt_required` on enum `Event.type` - * Add support for new value `platform_terms_of_service` on enums `File.purpose` and `FileListParams.purpose` - * Add support for new value `platform_terms_of_service` on enum `FileCreateParams.purpose` - * Add support for `payment_record` on `InvoiceAttachPaymentParams`, `InvoicePayment.Payment`, and `InvoicePaymentListParamsPayment` - * Change type of `InvoicePaymentListParamsPayment.type` from `literal('payment_intent')` to `enum('payment_intent'|'payment_record')` - * Add support for new value `custom` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` - * Add support for `amount_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, and `PaymentIntentModifyParams` - * Add support for `payment_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentModifyParams`, and `PaymentIntent` - * Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent.AmountDetail` - * Add support for `name_collection` on `PaymentLinkCreateParams`, `PaymentLinkModifyParams`, and `PaymentLink` - * Add support for new value `mb_way` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkModifyParams.payment_method_types` - * Add support for `crypto` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, and `Refund.DestinationDetail` - * Add support for `mb_way` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, and `PaymentMethodConfiguration` - * Add support for `custom` on `PaymentMethodCreateParams` and `PaymentMethod` - * Add support for `excluded_payment_method_types` on `SetupIntentCreateParams`, `SetupIntentModifyParams`, and `SetupIntent` - * Change `SetupIntent.flow_directions` to be optional - * Add support for `tw` on `Tax.Registration.CountryOption` and `tax.RegistrationCreateParamsCountryOption` - * Add support for `gip` on `Terminal.Configuration.Tipping`, `terminal.ConfigurationCreateParamsTipping`, and `terminal.ConfigurationModifyParamsTipping` - * Add support for `last_seen_at` on `Terminal.Reader` - * Add support for new values `balance_settings.updated` and `invoice.payment_attempt_required` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` - * Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.api_version` - * Add support for `gt`, `gte`, `lt`, `lte`, and `types` on `v2.core.EventListParams` - * Change `v2.core.EventListParams.object_id` to be optional - * Add support for snapshot event `balance_settings.updated` with resource `BalanceSettings` - * Add support for snapshot event `invoice.payment_attempt_required` with resource `Invoice` - * Add support for error code `payment_intent_rate_limit_exceeded` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1645](https://github.com/stripe/stripe-python/pull/1645) Dramatically improve performance by lazily loading most imports - - move many type imports behind an `if TYPE_CHECKING` block - - lazily initialize subservices - - add module-level `__getattr__` functions to most `__init__.py` files - -## 13.1.0b1 - 2025-09-30 -This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 13.0.0 which contains breaking changes. Please review the [changelog for 13.0.0](https://github.com/stripe/stripe-go/blob/master/CHANGELOG.md#1300---2025-09-30) if upgrading from older SDK versions. - -* [#1597](https://github.com/stripe/stripe-python/pull/1597) Update generated code for beta - * Add support for `attach_cadence` method on resource `Subscription` - * Add support for `billing_cadence` on `Invoice.CreatePreviewParams`, `Subscription.CreateParams`, `Subscription.ModifyParams`, and `Subscription` - * Add support for `billing_cadence_details` on `Invoice.Parent` and `QuotePreviewInvoice.Parent` - * Add support for new value `billing_cadence_details` on enums `Invoice.Parent.type` and `QuotePreviewInvoice.Parent.type` -* [#1584](https://github.com/stripe/stripe-python/pull/1584) Update generated code for beta - * Add support for new resources `v2.billing.BillSettingVersion`, `v2.billing.BillSetting`, `v2.billing.Cadence`, `v2.billing.CollectionSettingVersion`, `v2.billing.CollectionSetting`, and `v2.billing.Profile` - * Add support for `create`, `list`, `modify`, and `retrieve` methods on resources `v2.billing.BillSetting`, `v2.billing.CollectionSetting`, and `v2.billing.Profile` - * Add support for `list` and `retrieve` methods on resources `v2.billing.BillSettingVersion` and `v2.billing.CollectionSettingVersion` - * Add support for `cancel`, `create`, `list`, `modify`, and `retrieve` methods on resource `v2.billing.Cadence` - * Add support for new value `crypto_wallet` on enum `V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination.type` - * Add support for `profile` on `V2.Core.Account.Default`, `v2.core.Account.CreateParamsDefault`, and `v2.core.Account.ModifyParamsDefault` - * Add support for `i_p` on `V2.Core.Account.Identity.Attestation.DirectorshipDeclaration`, `V2.Core.Account.Identity.Attestation.OwnershipDeclaration`, `V2.Core.Account.Identity.Attestation.TermsOfService.Account`, `V2.Core.Account.Identity.Attestation.TermsOfService.Storer`, `V2.Core.Account.Identity.Individual.AdditionalTermsOfService.Account`, `V2.Core.Person.AdditionalTermsOfService.Account`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfServiceAccount`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfServiceStorer`, `v2.core.Account.ModifyParamsIdentityAttestationTermsOfServiceAccount`, `v2.core.Account.ModifyParamsIdentityAttestationTermsOfServiceStorer`, `v2.core.Person.CreateParamsAdditionalTermsOfServiceAccount`, and `v2.core.Person.ModifyParamsAdditionalTermsOfServiceAccount` - * Remove support for `ip` on `V2.Core.Account.Identity.Attestation.DirectorshipDeclaration`, `V2.Core.Account.Identity.Attestation.OwnershipDeclaration`, `V2.Core.Account.Identity.Attestation.TermsOfService.Account`, `V2.Core.Account.Identity.Attestation.TermsOfService.Storer`, `V2.Core.Account.Identity.Individual.AdditionalTermsOfService.Account`, `V2.Core.Person.AdditionalTermsOfService.Account`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfServiceAccount`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfServiceStorer`, `v2.core.Account.ModifyParamsIdentityAttestationTermsOfServiceAccount`, `v2.core.Account.ModifyParamsIdentityAttestationTermsOfServiceStorer`, `v2.core.Person.CreateParamsAdditionalTermsOfServiceAccount`, and `v2.core.Person.ModifyParamsAdditionalTermsOfServiceAccount` - * Remove support for `doing_business_as`, `product_description`, and `url` on `V2.Core.Account.Identity.BusinessDetail`, `v2.core.Account.CreateParamsIdentityBusinessDetail`, and `v2.core.Account.ModifyParamsIdentityBusinessDetail` - * Add support for `settlement_currency` on `V2.MoneyManagement.FinancialAddress` - * Add support for `sepa_bank_account` on `V2.MoneyManagement.FinancialAddress.Credential` and `V2.MoneyManagement.ReceivedCredit.BankTransfer` - * Add support for new value `sepa_bank_account` on enum `V2.MoneyManagement.FinancialAddress.Credential.type` - * Add support for `amount_details` and `payments_orchestration` on `V2.Payments.OffSessionPayment` and `v2.payments.OffSessionPayment.CreateParams` - * Add support for new value `authorization_expired` on enum `V2.Payments.OffSessionPayment.failure_reason` - * Add support for `retry_policy` on `V2.Payments.OffSessionPayment.RetryDetail` and `v2.payments.OffSessionPayment.CreateParamsRetryDetail` - * Add support for new values `heuristic` and `scheduled` on enums `V2.Payments.OffSessionPayment.RetryDetail.retry_strategy` and `v2.payments.OffSessionPayment.CreateParamsRetryDetail.retry_strategy` - * Change type of `V2.MoneyManagement.OutboundPaymentQuote.FxQuote.lock_duration` from `literal('five_minutes')` to `enum('five_minutes'|'none')` - * Change type of `V2.MoneyManagement.OutboundPaymentQuote.FxQuote.lock_expires_at` from `DateTime` to `nullable(DateTime)` - * Add support for new value `none` on enum `V2.MoneyManagement.OutboundPaymentQuote.FxQuote.lock_status` - * Add support for new value `crypto_wallet` on enums `V2.MoneyManagement.PayoutMethod.type`, `v2.money_management.OutboundSetupIntent.CreateParamsPayoutMethodDatum.type`, and `v2.money_management.OutboundSetupIntent.ModifyParamsPayoutMethodDatum.type` - * Add support for `origin_type` on `V2.MoneyManagement.ReceivedCredit.BankTransfer` - * Remove support for `payment_method_type` on `V2.MoneyManagement.ReceivedCredit.BankTransfer` - * Add support for `mandate_data` and `payment_method_options` on `v2.payments.OffSessionPayment.CreateParams` - * Add support for `type` on `v2.money_management.FinancialAddress.CreateParams` - * Remove support for `currency` on `v2.money_management.FinancialAddress.CreateParams` - * Add support for new values `financial_addressses.crypto_wallets`, `holds_currencies.usdc`, `outbound_payments.crypto_wallets`, and `outbound_transfers.crypto_wallets` on enum `EventsV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.updated_capability` - * Add support for thin event `V2BillingBillSettingUpdatedEvent` with related object `v2.billing.BillSetting` - * Add support for error type `RateLimitError` - * Add support for error code `invalid_payout_method_crypto_wallet` on `InvalidPayoutMethodError` -* [#1555](https://github.com/stripe/stripe-python/pull/1555) Update generated code for beta - * Add support for new resources `billing.analytics.MeterUsageRow` and `billing.analytics.MeterUsage` - * Remove support for resources `billing.MeterUsageRow` and `billing.MeterUsage` - * Add support for `retrieve` method on resource `billing.analytics.MeterUsage` - * Remove support for `retrieve` method on resource `billing.MeterUsage` - * Add support for `report_payment_attempt_informational` method on resource `PaymentRecord` - * Add support for `minimum_balance_by_currency` on `BalanceSettings.ModifyParamsPaymentPayout` and `BalanceSettings.Payment.Payout` - * Remove support for values `saturday` and `sunday` from enums `BalanceSettings.ModifyParamsPaymentPayoutSchedule.weekly_payout_days` and `BalanceSettings.Payment.Payout.Schedule.weekly_payout_days` - * Change type of `BalanceSettings.ModifyParamsPaymentSettlementTiming.delay_days_override` from `longInteger` to `emptyable(longInteger)` - * Change `BalanceSettings.ModifyParams.payments` to be optional - * Add support for `delay_days_override` on `BalanceSettings.Payment.SettlementTiming` - * Add support for `automatic_tax` and `invoice_creation` on `checkout.Session.ModifyParams` - * Add support for `unit_label` on `checkout.Session.ModifyParamsLineItemPriceDatumProductDatum` - * Add support for `invoice_settings` on `checkout.Session.ModifyParamsSubscriptionDatum` - * Change `Checkout.Session.CollectedInformation.business_name` to be required - * Add support for `intended_submission_method` on `Dispute.ModifyParams` and `Dispute` - * Change type of `Dispute.SmartDispute.recommended_evidence` from `string` to `array(string)` - * Add support for `pix` on `Invoice.CreateParamsPaymentSettingPaymentMethodOption`, `Invoice.ModifyParamsPaymentSettingPaymentMethodOption`, `Invoice.PaymentSetting.PaymentMethodOption`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`, `Subscription.CreateParamsPaymentSettingPaymentMethodOption`, `Subscription.ModifyParamsPaymentSettingPaymentMethodOption`, and `Subscription.PaymentSetting.PaymentMethodOption` - * Add support for new value `pix` 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 `billing_schedules` on `Invoice.CreatePreviewParamsSubscriptionDetail`, `Subscription.CreateParams`, `Subscription.ModifyParams`, and `Subscription` - * Add support for `paypay` on `PaymentAttemptRecord.PaymentMethodDetail` and `PaymentRecord.PaymentMethodDetail` - * Add support for `wallet` on `PaymentAttemptRecord.PaymentMethodDetail.Card` and `PaymentRecord.PaymentMethodDetail.Card` - * Change type of `PaymentAttemptRecord.ProcessorDetail.Custom.payment_reference` and `PaymentRecord.ProcessorDetail.Custom.payment_reference` from `string` to `nullable(string)` - * Add support for `flexible` on `QuotePreviewSubscriptionSchedule.BillingMode` - * Add support for `billed_until` on `SubscriptionItem` - * Add support for error codes `financial_connections_account_pending_account_numbers` and `financial_connections_account_unavailable_account_numbers` on `QuotePreviewInvoice.LastFinalizationError` - ## 13.1.0a4 - 2025-10-23 * [#1649](https://github.com/stripe/stripe-python/pull/1649) Update generated code for private-preview * Add support for new resource `v2.billing.PricingPlanSubscriptionComponents` @@ -2412,7 +1746,6 @@ This release changes the pinned API version to `2025-09-30.preview`. It is built * Add support for `amount_subtotal`, `amount_total`, `created_at`, `expires_at`, `order_details`, `shared_payment_issued_token`, `status`, `total_details`, and `updated_at` on `DelegatedCheckout.RequestedSession` * Add support for `address`, `email`, `fulfillment_options`, `name`, `phone`, and `selected_fulfillment_option` on `DelegatedCheckout.RequestedSession.FulfillmentDetail` * Add support for new values `billie`, `crypto`, `kr_card`, `kriya`, `mb_way`, `mondu`, `ng_bank_transfer`, `ng_bank`, `ng_card`, `ng_market`, `ng_ussd`, `ng_wallet`, `payco`, `paypay`, `rechnung`, `samsung_pay`, `satispay`, `scalapay`, `sequra`, `sunbit`, `us_bank_account`, and `vipps` on enums `EventsV2CoreHealthAuthorizationRateDropFiringEvent.Impact.payment_method_type`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent.Impact.payment_method_type`, `EventsV2CoreHealthPaymentMethodErrorFiringEvent.Impact.payment_method_type`, and `EventsV2CoreHealthPaymentMethodErrorResolvedEvent.Impact.payment_method_type` -* [#1648](https://github.com/stripe/stripe-python/pull/1648) Prathmesh/merge python private preview ## 13.1.0a3 - 2025-10-17 * [#1643](https://github.com/stripe/stripe-python/pull/1643) Update generated code for private-preview @@ -2437,7 +1770,9 @@ This release changes the pinned API version to `2025-09-30.preview`. It is built * Remove support for thin events `V1CustomerDiscountCreatedEvent`, `V1CustomerDiscountDeletedEvent`, and `V1CustomerDiscountUpdatedEvent` with related object `Discount` ## 13.1.0a1 - 2025-10-01 -This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 13.0.0 and 13.1.0-beta.1 which contain breaking changes. Please review the changelog for these versions if upgrading from older SDK versions. +This release changes the pinned API version to `2025-09-30.preview`. + +It is built on top of SDK version 13.0.0 and 13.1.0-beta.1 which contain breaking changes. Please review the changelog for these versions if upgrading from older SDK versions. * [#1587](https://github.com/stripe/stripe-python/pull/1587) Update generated code for private-preview * Add support for new resource `v2.money_management.RecipientVerification` @@ -2475,143 +1810,9 @@ This release changes the pinned API version to `2025-09-30.preview`. It is built * Remove support for resources `v2.reporting.ReportRun`, `v2.reporting.Report` * Remove support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `v2.reporting.ReportRun` -## 13.0.1 - 2025-10-03 -* [#1626](https://github.com/stripe/stripe-python/pull/1626) Make the new nested params classes correctly importable - - For example, In SDK `v13.0.0`, `from stripe.params.checkout import SessionCreateParamsDiscount` would raise an error when it shouldn't have. This is fixed. - - Reported in https://github.com/stripe/stripe-python/issues/1625 -* [#1633](https://github.com/stripe/stripe-python/pull/1633) Add new `async` optional dependency - - Now, `pip install stripe[async]` gets you everything you need to make async HTTP calls out of the box. - - Reported in https://github.com/stripe/stripe-python/issues/1558 -* [#1627](https://github.com/stripe/stripe-python/pull/1627) Re-add `tests` to our `sdist` - - Reported in https://github.com/stripe/stripe-python/issues/1616 -* [#1632](https://github.com/stripe/stripe-python/pull/1632) remove gpg step from publish. PyPI has ignored these for years, so we took the opportunity to simplify our build process - -## 13.0.0 - 2025-09-30 -This release changes the pinned API version to `2025-09-30.clover` and contains breaking changes (prefixed with ⚠️ below) - -* [#1604](https://github.com/stripe/stripe-python/pull/1604) Fixed InvoiceLineItem method definition - * ⚠️ `InvoiceLineItem.modify` and `InvoiceLineItem.modify_async` now require `invoice` and `line_item_id` as method parameters. - * Removed `InvoiceLineItem.ModifyParam` class. Use a `typing.dict` to type hint instead. -* [#1538](https://github.com/stripe/stripe-python/pull/1538) ⚠️ Add strongly typed EventNotifications - We've overhauled how V2 Events are handled in the SDK! This approach should provide a lot more information at authoring and compile time, leading to more robust integrations. As part of this process, there are a number of changes to be aware of. - - Added matching `EventNotification` classes to every v2 `Event`. For example, there's now a `V1BillingMeterErrorReportTriggeredEventNotification` to match the existing `V1BillingMeterErrorReportTriggeredEvent`. Each notification class defines a `fetch_event()` method to retrieve its corresponding event. For events with related objects, there's a `fetch_related_object()` method that performs the API call and casts the response to the correct type. - - ⚠️ Rename function `StripeClient.parse_thin_event` to `StripeClient.parse_event_notification` and remove the `Stripe.ThinEvent` class. - - This function now returns a `stripe.v2.core.EventNotification` (which is the shared base class that all of the more specific `stripe.events.*EventNotification` classes share) instead of `Stripe.ThinEvent`. When applicable, these event notifications will have the `related_object` property and a `fetch_related_object()` function. They also have a `fetch_()` method to retrieve their corresponding `stripe.events.*Event` instance. - - If you parse an event the SDK doesn't have types for (e.g. it's newer than the SDK you're using), you'll get an instance of `Stripe.Events.UnknownEventNotification` instead of a more specific type. It has both the `relatedObject` property and the `FetchRelatedObject()` function (but they may be/return `null`) -* [#1602](https://github.com/stripe/stripe-python/pull/1602) Move `V2.Event` API resources to `V2.Core.Events` - - ⚠️ Move `stripe.v2._event` and `stripe.v2._event_destination` to `stripe.v2.core._event` and `stripe.v2.core._event_destination` respectively. They now correctly match their API path -* [#1589](https://github.com/stripe/stripe-python/pull/1589) Add `StripeContext` object - - Add the `StripeContext` class. Previously, one could only pass a string for `stripe_context`. You can now use the new class as well. - - ⚠️ Change `EventNotification` (formerly known as `ThinEvent`)'s `context` property from `string` to `StripeContext` -* [#1565](https://github.com/stripe/stripe-python/pull/1565) ⚠️ Build SDK w/ V2 OpenAPI spec - - ⚠️ The delete methods for v2 APIs (the ones in the `StripeClient.v2` namespace) now return a `V2DeletedObject` which has the id of the object that has been deleted and a string representing the type of the object that has been deleted. - - ⚠️ Deeply nested param hashes with no properties no longer have classes generated for them. Instead, they're typed as `Dict[str, Any]`. Because there were no params, it's unlikely you were using these classes. -* [#1569](https://github.com/stripe/stripe-python/pull/1569) Renamed Urllib2Client to UrllibClient - - ⚠️ Rename `http_client.Urllib2Client` to `http_client.UrllibClient` as Python `urllib2` was renamed to `urllib` in Python 3. -* [#1606](https://github.com/stripe/stripe-python/pull/1606) ⚠️ drop support for Python 3.6 & clarify version policy - - Read our new [language version support policy](https://docs.stripe.com/sdks/versioning?lang=python#stripe-sdk-language-version-support-policy) - - ⚠️ In this release, we drop support for Python 3.6 - - Support for Python 3.7 is deprecated and will be removed in the next scheduled major release (March 2026) -* [#1596](https://github.com/stripe/stripe-python/pull/1596) ⚠️ Unify resource and service method parameters into one class - * ⚠️ Resource and service request parameter types have been moved to the top-level and are shared, prepended with their related resource/service - * For example, `_stripe._account.Account.CreateParams` and `_stripe._account_service.CreateParams` have moved to `_stripe.params._account_create_params.AccountCreateParams` - * This change only affects users who explicitly refer to params types. No migration is necessary for users otherwise -* [#1572](https://github.com/stripe/stripe-python/pull/1572) migrate from `setup.py` to `pyproject.toml` - - ⚠️ The package has swapped from `setup.py` to `pyproject.toml`. As a result, we're dropping support for `pip < 10.0.0` (released April 2018). - - Additionally, we're no longer shipping tests or examples in our sdist now, which should offer a small size reduction for the package if installed without the wheel (approx. 2.5MB unzipped) -* [#1570](https://github.com/stripe/stripe-python/pull/1570) Don't use mutable default arguments - - Service methods now correctly set `None` as the default function argument instead of `{}` -* ⚠️ Deprecated the V1 service accessors living directly under StripeClient(e.g. customers, products) as they were copied under the new V1 service in our [last release](https://github.com/stripe/stripe-python/releases/tag/v12.5.0). Service accessors living directly under StripeClient(e.g. customers, products) will be removed from StripeClient in a future release. E.g. - ```diff - client = StripeClient("sk_test...") - - # Accessing V1 Stripe services on a StripeClient should be through the V1 namespace - - client.customers.list() - + client.v1.customers.list() - ``` - Refer to the [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for help upgrading. -* [#1603](https://github.com/stripe/stripe-python/pull/1603) ⚠️ Remove deprecated compatibility exports - - ⚠️ Removed deprecated module shims. They've long been available in the `stripe` module directly; now that's the only place to import them. Specifically, we removed: - - `stripe.stripe_response` - - `stripe.stripe_object` - - `stripe.error_object` - - `stripe.error` - - `stripe.http_client` - - `stripe.util` - - `stripe.oauth` - - `stripe.webhook` - - `stripe.multipart_data_generator` - - `stripe.request_metrics` - - `stripe.api_resources.abstract` - - `stripe.api_resources` - - - To update your code, follow this pattern: - - ```diff - -from stripe. import SomeClass - +from stripe import SomeClass - - -stripe..SomeClass - +stripe.SomeClass - ``` - - - ⚠️ Removed the `FileUpload` alias - - To update your code: - - ```diff - -from stripe import FileUpload - -from stripe.api_resources import FileUpload - +from stripe import File - ``` - - - ⚠️ Removed the `io` import from `stripe._util`. If you had code relying on `stripe.util.io`, you'll need to import the `io` package directly yourself. - - added `UrllibClient` to `stripe` to make creating your own HTTP client easier. - -* [#1567](https://github.com/stripe/stripe-python/pull/1567), [#1593](https://github.com/stripe/stripe-python/pull/1593), [#1607](https://github.com/stripe/stripe-python/pull/1607), [#1605](https://github.com/stripe/stripe-python/pull/1605) Update generated code based on incoming API changes in the `2025-09-30.clover` API version. - * ⚠️ Remove support for `balance_report` and `payout_reconciliation_report` on `AccountSession.Component` and `AccountSession.CreateParamsComponent` - * ⚠️ Remove support for values `saturday` and `sunday` from enums `Account.CreateParamsSettingPayoutSchedule.weekly_payout_days`, `Account.ModifyParamsSettingPayoutSchedule.weekly_payout_days`, and `Account.Setting.Payout.Schedule.weekly_payout_days` - * ⚠️ Remove support for `iterations` on `Invoice.CreatePreviewParamsScheduleDetailPhase`, `SubscriptionSchedule.CreateParamsPhase`, and `SubscriptionSchedule.ModifyParamsPhase` - * ⚠️ Remove support for `link` and `pay_by_bank` on `PaymentMethod.ModifyParams` - * ⚠️ Remove support for `coupon` on `Discount`, `PromotionCode.CreateParams`, and `PromotionCode`. Use `Discount.source.coupon`, `PromotionCode.CreateParams.promotion.coupon`, and `PromotionCode.promotion.coupon` instead. - * Add support for new value `prevented` on enum `Dispute.status` - * Change `Invoice.id` to be required. - * Add support for new resource `BalanceSettings` - * Add support for `modify` and `retrieve` methods on resource `BalanceSettings` - * Add support for new values `external_request` and `unsupported_business_type` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` - * Add support for `source` on `Discount` - * Add support for `mb_way_payments` on `Account.Capability`, `Account.CreateParamsCapability`, and `Account.ModifyParamsCapability` - * Add support for `trial_update_behavior` on `BillingPortal.Configuration.Feature.SubscriptionUpdate`, `billing_portal.Configuration.CreateParamsFeatureSubscriptionUpdate`, and `billing_portal.Configuration.ModifyParamsFeatureSubscriptionUpdate` - * Add support for `mb_way` on `Charge.PaymentMethodDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatum`, `ConfirmationToken.PaymentMethodPreview`, `PaymentIntent.ConfirmParamsPaymentMethodDatum`, `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodDatum`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.ModifyParamsPaymentMethodDatum`, `PaymentIntent.ModifyParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, `PaymentMethod.CreateParams`, `PaymentMethod`, `SetupIntent.ConfirmParamsPaymentMethodDatum`, `SetupIntent.CreateParamsPaymentMethodDatum`, and `SetupIntent.ModifyParamsPaymentMethodDatum` - * Add support for `branding_settings` and `name_collection` on `Checkout.Session` and `checkout.Session.CreateParams` - * Add support for `excluded_payment_method_types` on `Checkout.Session`, `PaymentIntent.ConfirmParams`, `PaymentIntent.ModifyParams`, and `checkout.Session.CreateParams` - * Add support for `unit_label` on `Invoice.AddLinesParamsLinePriceDatumProductDatum`, `Invoice.UpdateLinesParamsLinePriceDatumProductDatum`, `InvoiceLineItem.ModifyParamsPriceDatumProductDatum`, `PaymentLink.CreateParamsLineItemPriceDatumProductDatum`, and `checkout.Session.CreateParamsLineItemPriceDatumProductDatum` - * Add support for `alma`, `billie`, and `satispay` on `Checkout.Session.PaymentMethodOption` and `checkout.Session.CreateParamsPaymentMethodOption` - * Add support for `demo_pay` on `checkout.Session.CreateParamsPaymentMethodOption` - * Add support for `capture_method` on `Checkout.Session.PaymentMethodOption.Affirm`, `Checkout.Session.PaymentMethodOption.AfterpayClearpay`, `Checkout.Session.PaymentMethodOption.AmazonPay`, `Checkout.Session.PaymentMethodOption.Card`, `Checkout.Session.PaymentMethodOption.Cashapp`, `Checkout.Session.PaymentMethodOption.Klarna`, `Checkout.Session.PaymentMethodOption.Link`, `Checkout.Session.PaymentMethodOption.Mobilepay`, `Checkout.Session.PaymentMethodOption.RevolutPay`, `checkout.Session.CreateParamsPaymentMethodOptionAffirm`, `checkout.Session.CreateParamsPaymentMethodOptionAfterpayClearpay`, `checkout.Session.CreateParamsPaymentMethodOptionAmazonPay`, `checkout.Session.CreateParamsPaymentMethodOptionCard`, `checkout.Session.CreateParamsPaymentMethodOptionCashapp`, `checkout.Session.CreateParamsPaymentMethodOptionKlarna`, `checkout.Session.CreateParamsPaymentMethodOptionLink`, `checkout.Session.CreateParamsPaymentMethodOptionMobilepay`, and `checkout.Session.CreateParamsPaymentMethodOptionRevolutPay` - * Add support for `flexible` on `Invoice.CreatePreviewParamsScheduleDetailBillingMode`, `Invoice.CreatePreviewParamsSubscriptionDetailBillingMode`, `Quote.CreateParamsSubscriptionDatumBillingMode`, `Quote.SubscriptionDatum.BillingMode`, `Subscription.BillingMode`, `Subscription.CreateParamsBillingMode`, `Subscription.MigrateParamsBillingMode`, `SubscriptionSchedule.BillingMode`, `SubscriptionSchedule.CreateParamsBillingMode`, and `checkout.Session.CreateParamsSubscriptionDatumBillingMode` - * Add support for `business_name` and `individual_name` on `Checkout.Session.CollectedInformation`, `Checkout.Session.CustomerDetail`, `Customer.CreateParams`, `Customer.ModifyParams`, and `Customer` - * Add support for new values `mb_way` on enums `ConfirmationToken.CreateParamsPaymentMethodDatum.type`, `PaymentIntent.ConfirmParamsPaymentMethodDatum.type`, `PaymentIntent.CreateParamsPaymentMethodDatum.type`, `PaymentIntent.ModifyParamsPaymentMethodDatum.type`, `SetupIntent.ConfirmParamsPaymentMethodDatum.type`, `SetupIntent.CreateParamsPaymentMethodDatum.type`, and `SetupIntent.ModifyParamsPaymentMethodDatum.type` - * Add support for new values `mb_way` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` - * Add support for new values `mb_way` on enums `Customer.ListPaymentMethodsParams.type`, `PaymentMethod.CreateParams.type`, and `PaymentMethod.ListParams.type` - * Add support for `chargeback_loss_reason_code` on `Dispute.PaymentMethodDetail.Klarna` - * Add support for `net_amount` and `proration_details` on `InvoiceItem` - * Add support for `fraud_disputability_likelihood` and `risk_assessment` on `issuing.Authorization.CreateParams` - * Add support for `second_line` on `Issuing.Card` - * Add support for new values `mb_way` on enums `PaymentIntent.CreateParams.excluded_payment_method_types` and `PaymentIntent.excluded_payment_method_types` - * Add support for `fr_meal_voucher_conecs` on `PaymentMethodConfiguration.CreateParams` and `PaymentMethodConfiguration.ModifyParams` - * Add support for `promotion` on `PromotionCode.CreateParams` and `PromotionCode` - * Add support for new values `acknowledged` and `payment_never_settled` on enum `Review.closed_reason` - * Add support for `provider` on `Tax.Settings.Default` - * Add support for `bbpos_wisepad3` on `Terminal.Configuration`, `terminal.Configuration.CreateParams`, and `terminal.Configuration.ModifyParams` - * Add support for `address_kana`, `address_kanji`, `display_name_kana`, `display_name_kanji`, and `phone` on `Terminal.Location`, `terminal.Location.CreateParams`, and `terminal.Location.ModifyParams` - * Change `terminal.Location.CreateParams.address` to be optional - * Change `terminal.Location.CreateParams.display_name` to be optional - * Add support for new value `2025-09-30.clover` on enum `WebhookEndpoint.CreateParams.api_version` - * Add support for error codes `financial_connections_account_pending_account_numbers` and `financial_connections_account_unavailable_account_numbers` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` - ## 12.6.0a2 - 2025-09-17 +This release changes the pinned API version to `2025-08-04.preview`. + * [#1571](https://github.com/stripe/stripe-python/pull/1571) generate private-preview SDK w/ mid Sept changes * Add support for `retrieve` method on resource `v2.core.ClaimableSandbox` * Add support for `month_of_year` on `V2.Billing.Cadence.BillingCycle.Month` and `v2.billing.Cadence.CreateParamsBillingCycleMonth` @@ -2626,10 +1827,6 @@ This release changes the pinned API version to `2025-09-30.clover` and contains * Add support for thin events `V2CoreClaimableSandboxClaimedEvent`, `V2CoreClaimableSandboxExpiredEvent`, `V2CoreClaimableSandboxExpiringEvent`, and `V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent` with related object `V2.core.ClaimableSandbox` * Remove support for thin event `V2BillingCadenceErroredEvent` with related object `V2.billing.Cadence` -## 12.5.1 - 2025-09-05 -* [#1563](https://github.com/stripe/stripe-python/pull/1563) fix: Paginate backwards if `starting_after == None` - * Addresses an [issue](https://github.com/stripe/stripe-python/issues/1562) where List iteration would be forwards when `starting_after` was set to `None` but backwards if it was not set at all. Now, it will paginate backwards in both cases. - ## 12.6.0a1 - 2025-08-27 * [#1556](https://github.com/stripe/stripe-python/pull/1556) Use the right API version 2025-08-27.preview * [#1552](https://github.com/stripe/stripe-python/pull/1552) Update generated code for private-preview @@ -2677,3468 +1874,3 @@ This release changes the pinned API version to `2025-09-30.clover` and contains * Add support for thin events `V2CoreHealthApiErrorFiringEvent`, `V2CoreHealthApiErrorResolvedEvent`, `V2CoreHealthApiLatencyFiringEvent`, `V2CoreHealthApiLatencyResolvedEvent`, `V2CoreHealthAuthorizationRateDropFiringEvent`, `V2CoreHealthAuthorizationRateDropResolvedEvent`, `V2CoreHealthEventGenerationFailureResolvedEvent`, `V2CoreHealthFraudRateIncreasedEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `V2CoreHealthPaymentMethodErrorFiringEvent`, `V2CoreHealthPaymentMethodErrorResolvedEvent`, `V2CoreHealthTrafficVolumeDropFiringEvent`, `V2CoreHealthTrafficVolumeDropResolvedEvent`, `V2CoreHealthWebhookLatencyFiringEvent`, and `V2CoreHealthWebhookLatencyResolvedEvent` * Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `v2.reporting.ReportRun` * Add support for error type `RateLimitError` - -## 12.6.0b1 - 2025-08-27 -This release changes the pinned API version to `2025-08-27.preview`. - -* [#1542](https://github.com/stripe/stripe-python/pull/1542) Update generated code for beta - * Add support for `list` and `retrieve` methods on resource `InvoicePayment` - * Add support for `list` method on resource `Mandate` - * Add support for `applied` on `V2.Core.Account.Configuration.Customer`, `V2.Core.Account.Configuration.Merchant`, `V2.Core.Account.Configuration.Recipient`, `V2.Core.Account.Configuration.Storer`, `v2.core.Account.ModifyParamsConfigurationCustomer`, `v2.core.Account.ModifyParamsConfigurationMerchant`, `v2.core.Account.ModifyParamsConfigurationRecipient`, and `v2.core.Account.ModifyParamsConfigurationStorer` - * Add support for new values `ao_nif`, `az_tin`, `bd_etin`, `cr_cpj`, `cr_nite`, `do_rcn`, `gt_nit`, `kz_bin`, `mz_nuit`, `pe_ruc`, `pk_ntn`, `sa_crn`, and `sa_tin` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.Account.CreateParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.Account.ModifyParamsIdentityBusinessDetailIdNumber.type` - * Add support for new values `ao_nif`, `az_tin`, `bd_brc`, `bd_etin`, `bd_nid`, `cr_cpf`, `cr_dimex`, `cr_nite`, `do_rcn`, `gt_nit`, `kz_iin`, `mz_nuit`, `pe_dni`, `pk_cnic`, `pk_snic`, and `sa_tin` on enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.Person.IdNumber.type`, `v2.core.Account.CreateParamsIdentityIndividualIdNumber.type`, `v2.core.Account.ModifyParamsIdentityIndividualIdNumber.type`, `v2.core.Person.CreateParamsIdNumber.type`, and `v2.core.Person.ModifyParamsIdNumber.type` - * Change type of `Billing.AlertTriggered.value` from `longInteger` to `decimal_string` - * Add support for `display_name` on `V2.MoneyManagement.FinancialAccount` and `v2.money_management.FinancialAccount.CreateParams` - * Add support for new value `currency_conversion` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category` - * Add support for `currency_conversion` on `V2.MoneyManagement.Transaction.Flow` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow` - * Add support for new value `currency_conversion` on enums `V2.MoneyManagement.Transaction.Flow.type` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.type` - * Add support for `payments` on `BalanceSettings.ModifyParams` and `BalanceSettings` - * Remove support for `debit_negative_balances`, `payouts`, and `settlement_timing` on `BalanceSettings.ModifyParams` and `BalanceSettings` - * Add support for `mandate` on `Charge.PaymentMethodDetail.Pix`, `PaymentAttemptRecord.PaymentMethodDetail.Pix`, and `PaymentRecord.PaymentMethodDetail.Pix` - * Add support for `coupon_data` on `checkout.Session.CreateParamsDiscount` - * Add support for `mandate_options` on `Checkout.Session.PaymentMethodOption.Pix`, `PaymentIntent.ConfirmParamsPaymentMethodOptionPix`, `PaymentIntent.CreateParamsPaymentMethodOptionPix`, `PaymentIntent.ModifyParamsPaymentMethodOptionPix`, `PaymentIntent.PaymentMethodOption.Pix`, and `checkout.Session.CreateParamsPaymentMethodOptionPix` - * Change type of `Checkout.Session.PaymentMethodOption.Pix.setup_future_usage`, `PaymentIntent.ConfirmParamsPaymentMethodOptionPix.setup_future_usage`, `PaymentIntent.CreateParamsPaymentMethodOptionPix.setup_future_usage`, `PaymentIntent.ModifyParamsPaymentMethodOptionPix.setup_future_usage`, `PaymentIntent.PaymentMethodOption.Pix.setup_future_usage`, and `checkout.Session.CreateParamsPaymentMethodOptionPix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` - * Add support for `amount` on `Mandate.MultiUse`, `PaymentAttemptRecord`, and `PaymentRecord` - * Add support for `currency` on `Mandate.MultiUse` - * Add support for `pix` on `Mandate.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.ConfirmParamsPaymentMethodOption`, `SetupIntent.CreateParamsPaymentMethodOption`, `SetupIntent.ModifyParamsPaymentMethodOption`, and `SetupIntent.PaymentMethodOption` - * Add support for `limit` on `PaymentAttemptRecord.ListParams` - * Add support for `amount_authorized`, `amount_refunded`, and `application` on `PaymentAttemptRecord` and `PaymentRecord` - * Add support for `processor_details` on `PaymentAttemptRecord`, `PaymentRecord.ReportPaymentParams`, and `PaymentRecord` - * Remove support for `payment_reference` on `PaymentAttemptRecord`, `PaymentRecord.ReportPaymentParams`, and `PaymentRecord` - * Add support for `installments` on `PaymentAttemptRecord.PaymentMethodDetail.Alma` and `PaymentRecord.PaymentMethodDetail.Alma` - * Add support for `transaction_id` on `PaymentAttemptRecord.PaymentMethodDetail.Alma`, `PaymentAttemptRecord.PaymentMethodDetail.AmazonPay`, `PaymentAttemptRecord.PaymentMethodDetail.Billie`, `PaymentAttemptRecord.PaymentMethodDetail.KakaoPay`, `PaymentAttemptRecord.PaymentMethodDetail.KrCard`, `PaymentAttemptRecord.PaymentMethodDetail.NaverPay`, `PaymentAttemptRecord.PaymentMethodDetail.Payco`, `PaymentAttemptRecord.PaymentMethodDetail.RevolutPay`, `PaymentAttemptRecord.PaymentMethodDetail.SamsungPay`, `PaymentAttemptRecord.PaymentMethodDetail.Satispay`, `PaymentRecord.PaymentMethodDetail.Alma`, `PaymentRecord.PaymentMethodDetail.AmazonPay`, `PaymentRecord.PaymentMethodDetail.Billie`, `PaymentRecord.PaymentMethodDetail.KakaoPay`, `PaymentRecord.PaymentMethodDetail.KrCard`, `PaymentRecord.PaymentMethodDetail.NaverPay`, `PaymentRecord.PaymentMethodDetail.Payco`, `PaymentRecord.PaymentMethodDetail.RevolutPay`, `PaymentRecord.PaymentMethodDetail.SamsungPay`, and `PaymentRecord.PaymentMethodDetail.Satispay` - * Add support for `location` and `reader` on `PaymentAttemptRecord.PaymentMethodDetail.Paynow` and `PaymentRecord.PaymentMethodDetail.Paynow` - * Add support for `latest_active_mandate` on `PaymentMethod` - * Change `Payout.payout_method` to be required - * Add support for `metadata` and `period` on `QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem` - * Add support for `pix_display_qr_code` on `SetupIntent.NextAction` - * Add support for `reader_security` on `Terminal.Configuration`, `terminal.Configuration.CreateParams`, and `terminal.Configuration.ModifyParams` - * Add support for error codes `customer_session_expired` and `india_recurring_payment_mandate_canceled` on `QuotePreviewInvoice.LastFinalizationError` - -## 12.5.0 - 2025-08-27 -* [#1554](https://github.com/stripe/stripe-python/pull/1554) Add section on private preview SDKs in readme -* [#1544](https://github.com/stripe/stripe-python/pull/1544) Update generated code. This release changes the pinned API version to `2025-08-27.basil`. - * Add support for `balance_report`, `payout_details`, and `payout_reconciliation_report` on `AccountSession.Component` and `AccountSession.CreateParamsComponent` - * Add support for `name` on `BillingPortal.Configuration`, `billing_portal.Configuration.CreateParams`, and `billing_portal.Configuration.ModifyParams` - * Add support for `installments` on `Charge.PaymentMethodDetail.Alma` - * Add support for `transaction_id` on `Charge.PaymentMethodDetail.Alma`, `Charge.PaymentMethodDetail.AmazonPay`, `Charge.PaymentMethodDetail.Billie`, `Charge.PaymentMethodDetail.KakaoPay`, `Charge.PaymentMethodDetail.KrCard`, `Charge.PaymentMethodDetail.NaverPay`, `Charge.PaymentMethodDetail.Payco`, `Charge.PaymentMethodDetail.RevolutPay`, `Charge.PaymentMethodDetail.SamsungPay`, and `Charge.PaymentMethodDetail.Satispay` - * Add support for `location` and `reader` on `Charge.PaymentMethodDetail.Paynow` - * Add support for `amount_includes_iof` on `Checkout.Session.PaymentMethodOption.Pix`, `PaymentIntent.ConfirmParamsPaymentMethodOptionPix`, `PaymentIntent.CreateParamsPaymentMethodOptionPix`, `PaymentIntent.ModifyParamsPaymentMethodOptionPix`, `PaymentIntent.PaymentMethodOption.Pix`, and `checkout.Session.CreateParamsPaymentMethodOptionPix` - * Add support for new values `block` and `resolution` on enum `Dispute.PaymentMethodDetail.Card.case_type` - * Add support for new value `terminal_android_apk` on enums `File.ListParams.purpose` and `File.purpose` - * Add support for new value `terminal_android_apk` on enum `File.CreateParams.purpose` - * Add support for `metadata` and `period` on `Invoice.CreatePreviewParamsScheduleDetailPhaseAddInvoiceItem`, `Subscription.CreateParamsAddInvoiceItem`, `Subscription.ModifyParamsAddInvoiceItem`, `SubscriptionSchedule.CreateParamsPhaseAddInvoiceItem`, `SubscriptionSchedule.ModifyParamsPhaseAddInvoiceItem`, and `SubscriptionSchedule.Phase.AddInvoiceItem` - * Add support for `exp_month` and `exp_year` on `issuing.Card.CreateParams` - * Add support for `excluded_payment_method_types` on `PaymentIntent.CreateParams` and `PaymentIntent` - * Add support for `payout_method` on `Payout.CreateParams` and `Payout` - * Add support for `mxn` on `Terminal.Configuration.Tipping`, `terminal.Configuration.CreateParamsTipping`, and `terminal.Configuration.ModifyParamsTipping` - * Add support for `card` on `terminal.Reader.PresentPaymentMethodParams` - * Add support for new value `card` on enum `terminal.Reader.PresentPaymentMethodParams.type` - * Add support for new value `2025-08-27.basil` on enum `WebhookEndpoint.CreateParams.api_version` - * Add support for error codes `customer_session_expired` and `india_recurring_payment_mandate_canceled` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1553](https://github.com/stripe/stripe-python/pull/1553) Import available http libraries more efficiently -* [#1549](https://github.com/stripe/stripe-python/pull/1549) Introduce V1 namespaces in StripeClient - - All the top level non-namespaced services under StripeClient services(eg. customers, products) are copied under the new V1 namespace. These top level non-namespaced services will be marked as deprecated in the next major release and will be removed in a future release. Eg. - ```diff - client = StripeClient("sk_test...") - - # Accessing V1 Stripe services on a StripeClient should be through the V1 namespace - - client.customers.list() - + client.v1.customers.list() - ``` - Refer to the [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for help upgrading. - -## 12.5.0b2 - 2025-08-08 -* [#1545](https://github.com/stripe/stripe-python/pull/1545) Bring back invoice payments APIs that were missing in the public preview SDKs - * Add support for new resource `InvoicePayment` - * Add support for `list` and `retrieve` methods on resource `InvoicePayment` - -## 12.5.0b1 - 2025-07-30 -This release changes the pinned API version to `2025-07-30.preview`. - -* [#1535](https://github.com/stripe/stripe-python/pull/1535) Update generated code for beta - * 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` - -## 12.4.0 - 2025-07-30 -This release changes the pinned API version to `2025-07-30.basil`. - -* [#1541](https://github.com/stripe/stripe-python/pull/1541) Update generated code - * Add support for `instant_payouts_promotion` on `AccountSession.Component` and `AccountSession.CreateParamsComponent` - * Add support for `adjustable_quantity` on `BillingPortal.Configuration.Feature.SubscriptionUpdate.Product`, `billing_portal.Configuration.CreateParamsFeatureSubscriptionUpdateProduct`, and `billing_portal.Configuration.ModifyParamsFeatureSubscriptionUpdateProduct` - * Remove support for value `disabled` from enum `Capability.status` - * Add support for `transaction_id` on `Charge.PaymentMethodDetail.Cashapp` - * Add support for `origin_context` on `Checkout.Session` and `checkout.Session.CreateParams` - * Add support for `template` on `Checkout.Session.InvoiceCreation.InvoiceDatum.RenderingOption`, `PaymentLink.CreateParamsInvoiceCreationInvoiceDatumRenderingOption`, `PaymentLink.InvoiceCreation.InvoiceDatum.RenderingOption`, `PaymentLink.ModifyParamsInvoiceCreationInvoiceDatumRenderingOption`, and `checkout.Session.CreateParamsInvoiceCreationInvoiceDatumRenderingOption` - * Add support for `setup_future_usage` on `Checkout.Session.PaymentMethodOption.Pix` and `checkout.Session.CreateParamsPaymentMethodOptionPix` - * Add support for new value `nz_bank_account` on enum `checkout.Session.CreateParams.payment_method_types` - * Change `Identity.VerificationSession.RelatedPerson.account` to be required - * Change `Identity.VerificationSession.RelatedPerson.person` to be required - * Add support for `duration` on `Invoice.CreatePreviewParamsScheduleDetailPhase`, `SubscriptionSchedule.CreateParamsPhase`, and `SubscriptionSchedule.ModifyParamsPhase` - * Change type of `Invoice.CreatePreviewParamsSubscriptionDetail.cancel_at`, `Subscription.CreateParams.cancel_at`, and `Subscription.ModifyParams.cancel_at` from `DateTime` to `DateTime | enum('max_period_end'|'min_period_end')` - * Add support for `price_data` on `PaymentLink.CreateParamsLineItem` - * Change `PaymentLink.CreateParamsLineItem.price` to be optional - * Add support for new value `America/Coyhaique` on enum `reporting.ReportRun.CreateParamsParameter.timezone` - * Add support for `standard` on `Tax.Registration.CountryOption.Ae`, `Tax.Registration.CountryOption.Au`, `Tax.Registration.CountryOption.Ch`, `Tax.Registration.CountryOption.Gb`, `Tax.Registration.CountryOption.Jp`, `Tax.Registration.CountryOption.No`, `Tax.Registration.CountryOption.Nz`, `Tax.Registration.CountryOption.Sg`, `tax.Registration.CreateParamsCountryOptionAe`, `tax.Registration.CreateParamsCountryOptionAl`, `tax.Registration.CreateParamsCountryOptionAo`, `tax.Registration.CreateParamsCountryOptionAu`, `tax.Registration.CreateParamsCountryOptionAw`, `tax.Registration.CreateParamsCountryOptionB`, `tax.Registration.CreateParamsCountryOptionBa`, `tax.Registration.CreateParamsCountryOptionBb`, `tax.Registration.CreateParamsCountryOptionBd`, `tax.Registration.CreateParamsCountryOptionBf`, `tax.Registration.CreateParamsCountryOptionBh`, `tax.Registration.CreateParamsCountryOptionCd`, `tax.Registration.CreateParamsCountryOptionCh`, `tax.Registration.CreateParamsCountryOptionEt`, `tax.Registration.CreateParamsCountryOptionGb`, `tax.Registration.CreateParamsCountryOptionGn`, `tax.Registration.CreateParamsCountryOptionIs`, `tax.Registration.CreateParamsCountryOptionJp`, `tax.Registration.CreateParamsCountryOptionMe`, `tax.Registration.CreateParamsCountryOptionMk`, `tax.Registration.CreateParamsCountryOptionMr`, `tax.Registration.CreateParamsCountryOptionNo`, `tax.Registration.CreateParamsCountryOptionNz`, `tax.Registration.CreateParamsCountryOptionOm`, `tax.Registration.CreateParamsCountryOptionR`, `tax.Registration.CreateParamsCountryOptionSg`, `tax.Registration.CreateParamsCountryOptionSr`, `tax.Registration.CreateParamsCountryOptionUy`, `tax.Registration.CreateParamsCountryOptionZa`, and `tax.Registration.CreateParamsCountryOptionZw` - * Add support for new value `inbound_goods` on enums `Tax.Registration.CountryOption.At.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Be.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Bg.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Cy.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Cz.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.De.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Dk.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.E.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Ee.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Fi.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Fr.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Gr.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Hr.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Hu.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Ie.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.It.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Lt.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Lu.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Lv.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Mt.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Nl.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Pl.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Pt.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Ro.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Se.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Si.Standard.place_of_supply_scheme`, `Tax.Registration.CountryOption.Sk.Standard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionAtStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionBeStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionBgStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionCyStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionCzStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionDeStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionDkStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionEStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionEeStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionFiStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionFrStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionGrStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionHrStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionHuStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionIeStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionItStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionLtStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionLuStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionLvStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionMtStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionNlStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionPlStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionPtStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionRoStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionSeStandard.place_of_supply_scheme`, `tax.Registration.CreateParamsCountryOptionSiStandard.place_of_supply_scheme`, and `tax.Registration.CreateParamsCountryOptionSkStandard.place_of_supply_scheme` - * Add support for `aed`, `bgn`, `huf`, and `ron` on `Terminal.Configuration.Tipping`, `terminal.Configuration.CreateParamsTipping`, and `terminal.Configuration.ModifyParamsTipping` - * Add support for new value `2025-07-30.basil` on enum `WebhookEndpoint.CreateParams.api_version` -* [#1537](https://github.com/stripe/stripe-python/pull/1537) Fix timeout type hint in RequestsClient - -## 12.4.0b2 - 2025-07-09 -* [#1536](https://github.com/stripe/stripe-python/pull/1536) Pull in V2 FinancialAccount changes for June release - * Add support for `close` and `create` methods on resource `v2.money_management.FinancialAccount` - * Add support for new value `storer` on enums `V2.Core.Account.applied_configurations` and `v2.core.Account.CloseParams.applied_configurations` - * Add support for `storer` on `V2.Core.Account.Configuration`, `v2.core.Account.CreateParamsConfiguration`, and `v2.core.Account.ModifyParamsConfiguration` - * Add support for new values `financial_addresses.bank_accounts`, `holds_currencies.gbp`, `inbound_transfers.financial_accounts`, `outbound_payments.bank_accounts`, `outbound_payments.cards`, `outbound_payments.financial_accounts`, `outbound_transfers.bank_accounts`, and `outbound_transfers.financial_accounts` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` - * Add support for new value `storer` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.configuration` - * Add support for `status_details` on `V2.MoneyManagement.FinancialAccount` - * Add support for `status` on `v2.money_management.FinancialAccount.ListParams` - * Add support for new value `configuration.storer` on enums `v2.core.Account.CreateParams.include`, `v2.core.Account.ModifyParams.include`, and `v2.core.Account.RetrieveParams.include` - * Add support for thin events `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `v2.core.Account` - * Add support for error types `AlreadyExistsError` and `NonZeroBalanceError` - -## 12.4.0b1 - 2025-07-01 -This release changes the pinned API version to `2025-06-30.preview`. - -* [#1520](https://github.com/stripe/stripe-python/pull/1520) Update generated code for beta - * Change type of `Invoice.CreatePreviewParamsScheduleDetail.billing_mode`, `Invoice.CreatePreviewParamsSubscriptionDetail.billing_mode`, `Quote.CreateParamsSubscriptionDatum.billing_mode`, `Quote.SubscriptionDatum.billing_mode`, `Subscription.CreateParams.billing_mode`, `SubscriptionSchedule.CreateParams.billing_mode`, and `checkout.Session.CreateParamsSubscriptionDatum.billing_mode` from `enum('classic'|'flexible')` to `billing_mode` - * Add support for `submission_method` on `Dispute.EvidenceDetail` - * Add support for `on_demand` and `subscriptions` on `Order.CreateParamsPaymentSettingPaymentMethodOptionKlarna` and `Order.ModifyParamsPaymentSettingPaymentMethodOptionKlarna` - * Change type of `Order.CreateParamsPaymentSettingPaymentMethodOptionKlarna.setup_future_usage`, `Order.ModifyParamsPaymentSettingPaymentMethodOptionKlarna.setup_future_usage`, and `Order.Payment.Setting.PaymentMethodOption.Klarna.setup_future_usage` from `literal('none')` to `enum('none'|'off_session'|'on_session')` - * Add support for `crypto` on `PaymentAttemptRecord.PaymentMethodDetail` and `PaymentRecord.PaymentMethodDetail` - * Add support for new value `buut` on enums `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bank` and `PaymentRecord.PaymentMethodDetail.Ideal.bank` - * Add support for new value `BUUTNL2A` on enums `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bic` and `PaymentRecord.PaymentMethodDetail.Ideal.bic` - * Change type of `PaymentIntent.ConfirmParamsPaymentMethodOptionGopay.setup_future_usage`, `PaymentIntent.CreateParamsPaymentMethodOptionGopay.setup_future_usage`, `PaymentIntent.ModifyParamsPaymentMethodOptionGopay.setup_future_usage`, and `PaymentIntent.PaymentMethodOption.Gopay.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` - * Change `Quote.SubscriptionDatum.billing_mode`, `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.billing_mode`, and `SubscriptionSchedule.billing_mode` to be required - * Add support for new value `crypto` on enum `QuotePreviewInvoice.PaymentSetting.payment_method_types` - * Change type of `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.billing_mode`, and `SubscriptionSchedule.billing_mode` from `enum('classic'|'flexible')` to `SubscriptionsResourceBillingMode` - * Change type of `Subscription.MigrateParams.billing_mode` from `literal('flexible')` to `billing_mode_migrate` - * Remove support for `billing_mode_details` on `Subscription` - * Add support for new value `xx` on enums `V2.Core.Account.Configuration.Customer.AutomaticIndirectTax.Location.country`, `V2.Core.Account.Configuration.Customer.Shipping.Address.country`, `V2.Core.Account.Configuration.Merchant.Support.Address.country`, `V2.Core.Account.Identity.BusinessDetail.Address.country`, `V2.Core.Account.Identity.BusinessDetail.ScriptAddress.Kana.country`, `V2.Core.Account.Identity.BusinessDetail.ScriptAddress.Kanji.country`, `V2.Core.Account.Identity.Individual.AdditionalAddress.country`, `V2.Core.Account.Identity.Individual.Address.country`, `V2.Core.Account.Identity.Individual.ScriptAddress.Kana.country`, `V2.Core.Account.Identity.Individual.ScriptAddress.Kanji.country`, `V2.Core.Account.Identity.country`, `V2.Core.Person.AdditionalAddress.country`, `V2.Core.Person.Address.country`, `V2.Core.Person.ScriptAddress.Kana.country`, `V2.Core.Person.ScriptAddress.Kanji.country`, `V2.MoneyManagement.FinancialAccount.country`, `v2.core.Account.CreateParamsConfigurationCustomerShippingAddress.country`, `v2.core.Account.CreateParamsConfigurationMerchantSupportAddress.country`, `v2.core.Account.CreateParamsIdentity.country`, `v2.core.Account.CreateParamsIdentityBusinessDetailAddress.country`, `v2.core.Account.CreateParamsIdentityBusinessDetailScriptAddressKana.country`, `v2.core.Account.CreateParamsIdentityBusinessDetailScriptAddressKanji.country`, `v2.core.Account.CreateParamsIdentityIndividualAdditionalAddress.country`, `v2.core.Account.CreateParamsIdentityIndividualAddress.country`, `v2.core.Account.CreateParamsIdentityIndividualScriptAddressKana.country`, `v2.core.Account.CreateParamsIdentityIndividualScriptAddressKanji.country`, `v2.core.Account.ModifyParamsConfigurationCustomerShippingAddress.country`, `v2.core.Account.ModifyParamsConfigurationMerchantSupportAddress.country`, `v2.core.Account.ModifyParamsIdentity.country`, `v2.core.Account.ModifyParamsIdentityBusinessDetailAddress.country`, `v2.core.Account.ModifyParamsIdentityBusinessDetailScriptAddressKana.country`, `v2.core.Account.ModifyParamsIdentityBusinessDetailScriptAddressKanji.country`, `v2.core.Account.ModifyParamsIdentityIndividualAdditionalAddress.country`, `v2.core.Account.ModifyParamsIdentityIndividualAddress.country`, `v2.core.Account.ModifyParamsIdentityIndividualScriptAddressKana.country`, `v2.core.Account.ModifyParamsIdentityIndividualScriptAddressKanji.country`, `v2.core.Person.CreateParamsAdditionalAddress.country`, `v2.core.Person.CreateParamsAddress.country`, `v2.core.Person.CreateParamsScriptAddressKana.country`, `v2.core.Person.CreateParamsScriptAddressKanji.country`, `v2.core.Person.ModifyParamsAdditionalAddress.country`, `v2.core.Person.ModifyParamsAddress.country`, `v2.core.Person.ModifyParamsScriptAddressKana.country`, and `v2.core.Person.ModifyParamsScriptAddressKanji.country` - * Add support for new value `unsupported_entity_type` on enums `V2.Core.Account.Configuration.Customer.Capability.AutomaticIndirectTax.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AchDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AcssDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AffirmPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AfterpayClearpayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AlmaPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AmazonPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AuBecsDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.BacsDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.BancontactPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.BlikPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.BoletoPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.CardPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.CartesBancairesPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.CashappPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.EpsPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.FpxPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.GbBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.GrabpayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.IdealPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.JcbPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.JpBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.KakaoPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.KlarnaPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.KonbiniPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.KrCardPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.LinkPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.MobilepayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.MultibancoPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.MxBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.NaverPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.OxxoPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.P24Payment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.PayByBankPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.PaycoPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.PaynowPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.PromptpayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.RevolutPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.SamsungPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.SepaBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.SepaDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.StripeBalance.Payout.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.SwishPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.TwintPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.UsBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.ZipPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Local.StatusDetail.code`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Wire.StatusDetail.code`, `V2.Core.Account.Configuration.Recipient.Capability.Card.StatusDetail.code`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.Payout.StatusDetail.code`, and `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.StripeTransfer.StatusDetail.code` - * Add support for `proof_of_address` on `V2.Core.Account.Identity.BusinessDetail.Document`, `v2.core.Account.CreateParamsIdentityBusinessDetailDocument`, and `v2.core.Account.ModifyParamsIdentityBusinessDetailDocument` - * Add support for new value `xx` on enums `V2.Core.Account.Identity.Individual.nationalities`, `V2.Core.Person.nationalities`, `v2.core.Account.CreateParamsIdentityIndividual.nationalities`, `v2.core.Account.ModifyParamsIdentityIndividual.nationalities`, `v2.core.Person.CreateParams.nationalities`, and `v2.core.Person.ModifyParams.nationalities` - * Add support for `metadata` on `V2.MoneyManagement.FinancialAccount` - * Remove support for `description` on `V2.MoneyManagement.FinancialAccount` - * Add support for new value `pending` on enum `V2.MoneyManagement.FinancialAccount.status` - * Remove support for `attempts` on `V2.Payments.OffSessionPayment` - * Change type of `V2.Payments.OffSessionPayment.TransferDatum.amount` from `integer` to `nullable(integer)` - * Add support for `from_account`, `outbound_payment`, and `outbound_transfer` on `V2.MoneyManagement.ReceivedCredit.BalanceTransfer` - * Change type of `V2.MoneyManagement.ReceivedCredit.BalanceTransfer.type` from `literal('payout_v1')` to `enum('outbound_payment'|'outbound_transfer'|'payout_v1')` - * Change type of `V2.MoneyManagement.ReceivedCredit.BalanceTransfer.payout_v1` from `string` to `nullable(string)` - * Change `v2.payments.OffSessionPayment.CreateParamsTransferDatum.amount` to be optional - * Add support for error codes `recipient_feature_not_active`, `storer_capability_missing`, and `storer_capability_not_active` on `FeatureNotEnabledError` - * Remove support for error code `outbound_payment_recipient_feature_not_active` on `FeatureNotEnabledError` - * Add support for error code `insufficient_funds` on `InsufficientFundsError` - * Remove support for error codes `outbound_payment_insufficient_funds` and `outbound_transfer_insufficient_funds` on `InsufficientFundsError` - * Add support for error codes `recipient_amount_limit_exceeded` and `recipient_count_limit_exceeded` on `QuotaExceededError` - * Remove support for error codes `outbound_payment_recipient_amount_limit_exceeded` and `outbound_payment_recipient_count_limit_exceeded` on `QuotaExceededError` - * Add support for error code `recipient_email_does_not_exist` on `RecipientNotNotifiableError` - * Remove support for error code `outbound_payment_recipient_email_does_not_exist` on `RecipientNotNotifiableError` - -## 12.3.0 - 2025-07-01 -This release changes the pinned API version to `2025-06-30.basil`. - -* [#1526](https://github.com/stripe/stripe-python/pull/1526) Update generated code - * Add support for `migrate` method on resource `Subscription` - * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `terminal.Reader` - * Add support for `crypto_payments` on `Account.Capability`, `Account.CreateParamsCapability`, and `Account.ModifyParamsCapability` - * Add support for `proof_of_address` on `Account.CreateParamsDocument` and `Account.ModifyParamsDocument` - * Add support for `monthly_payout_days` and `weekly_payout_days` on `Account.CreateParamsSettingPayoutSchedule`, `Account.ModifyParamsSettingPayoutSchedule`, and `Account.Setting.Payout.Schedule` - * Change `Account.Setting.Invoice.hosted_payment_method_save` to be required - * Add support for `crypto` on `Charge.PaymentMethodDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatum`, `ConfirmationToken.PaymentMethodPreview`, `PaymentIntent.ConfirmParamsPaymentMethodDatum`, `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodDatum`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.ModifyParamsPaymentMethodDatum`, `PaymentIntent.ModifyParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, `PaymentMethod.CreateParams`, `PaymentMethod`, `SetupIntent.ConfirmParamsPaymentMethodDatum`, `SetupIntent.CreateParamsPaymentMethodDatum`, and `SetupIntent.ModifyParamsPaymentMethodDatum` - * Change type of `Charge.PaymentMethodDetail.Card.Installment.Plan.type`, `ConfirmationToken.CreateParamsPaymentMethodOptionCardInstallmentPlan.type`, `ConfirmationToken.PaymentMethodOption.Card.Installment.Plan.type`, `Invoice.CreateParamsPaymentSettingPaymentMethodOptionCardInstallmentPlan.type`, `Invoice.ModifyParamsPaymentSettingPaymentMethodOptionCardInstallmentPlan.type`, `PaymentIntent.ConfirmParamsPaymentMethodOptionCardInstallmentPlan.type`, `PaymentIntent.CreateParamsPaymentMethodOptionCardInstallmentPlan.type`, `PaymentIntent.ModifyParamsPaymentMethodOptionCardInstallmentPlan.type`, `PaymentIntent.PaymentMethodOption.Card.Installment.AvailablePlan.type`, and `PaymentIntent.PaymentMethodOption.Card.Installment.Plan.type` from `literal('fixed_count')` to `enum('bonus'|'fixed_count'|'revolving')` - * Add support for new value `buut` on enums `Charge.PaymentMethodDetail.Ideal.bank`, `ConfirmationToken.CreateParamsPaymentMethodDatumIdeal.bank`, `ConfirmationToken.PaymentMethodPreview.Ideal.bank`, `PaymentIntent.ConfirmParamsPaymentMethodDatumIdeal.bank`, `PaymentIntent.CreateParamsPaymentMethodDatumIdeal.bank`, `PaymentIntent.ModifyParamsPaymentMethodDatumIdeal.bank`, `PaymentMethod.CreateParamsIdeal.bank`, `PaymentMethod.Ideal.bank`, `SetupAttempt.PaymentMethodDetail.Ideal.bank`, `SetupIntent.ConfirmParamsPaymentMethodDatumIdeal.bank`, `SetupIntent.CreateParamsPaymentMethodDatumIdeal.bank`, and `SetupIntent.ModifyParamsPaymentMethodDatumIdeal.bank` - * Add support for new value `BUUTNL2A` on enums `Charge.PaymentMethodDetail.Ideal.bic`, `ConfirmationToken.PaymentMethodPreview.Ideal.bic`, `PaymentMethod.Ideal.bic`, and `SetupAttempt.PaymentMethodDetail.Ideal.bic` - * Add support for `subscriptions` on `PaymentIntent.ConfirmParamsPaymentMethodOptionKlarna`, `PaymentIntent.CreateParamsPaymentMethodOptionKlarna`, `PaymentIntent.ModifyParamsPaymentMethodOptionKlarna`, and `checkout.Session.CreateParamsPaymentMethodOptionKlarna` - * Add support for new value `crypto` on enum `checkout.Session.CreateParams.payment_method_types` - * Add support for `billing_mode` on `Invoice.CreatePreviewParamsScheduleDetail`, `Invoice.CreatePreviewParamsSubscriptionDetail`, `Quote.CreateParamsSubscriptionDatum`, `Quote.SubscriptionDatum`, `Subscription.CreateParams`, `SubscriptionSchedule.CreateParams`, `SubscriptionSchedule`, `Subscription`, and `checkout.Session.CreateParamsSubscriptionDatum` - * Add support for new value `crypto` on enums `ConfirmationToken.CreateParamsPaymentMethodDatum.type`, `PaymentIntent.ConfirmParamsPaymentMethodDatum.type`, `PaymentIntent.CreateParamsPaymentMethodDatum.type`, `PaymentIntent.ModifyParamsPaymentMethodDatum.type`, `SetupIntent.ConfirmParamsPaymentMethodDatum.type`, `SetupIntent.CreateParamsPaymentMethodDatum.type`, and `SetupIntent.ModifyParamsPaymentMethodDatum.type` - * Add support for new value `crypto` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` - * Add support for new value `crypto` on enums `Customer.ListPaymentMethodsParams.type`, `PaymentMethod.CreateParams.type`, and `PaymentMethod.ListParams.type` - * Change type of `Dispute.enhanced_eligibility_types` from `literal('visa_compelling_evidence_3')` to `enum('visa_compelling_evidence_3'|'visa_compliance')` - * Add support for new value `compliance` on enum `Dispute.PaymentMethodDetail.Card.case_type` - * Add support for new value `terminal.reader.action_updated` on enum `Event.type` - * Add support for `related_person` on `Identity.VerificationSession` and `identity.VerificationSession.CreateParams` - * Add support for `matching` on `Identity.VerificationSession.Option` - * Add support for new value `crypto` on enums `Invoice.CreateParamsPaymentSetting.payment_method_types`, `Invoice.ModifyParamsPaymentSetting.payment_method_types`, `Invoice.PaymentSetting.payment_method_types`, `Subscription.CreateParamsPaymentSetting.payment_method_types`, `Subscription.ModifyParamsPaymentSetting.payment_method_types`, and `Subscription.PaymentSetting.payment_method_types` - * Add support for `klarna` on `Mandate.PaymentMethodDetail`, `SetupIntent.ConfirmParamsPaymentMethodOption`, `SetupIntent.CreateParamsPaymentMethodOption`, `SetupIntent.ModifyParamsPaymentMethodOption`, and `SetupIntent.PaymentMethodOption` - * Add support for `on_demand` on `PaymentIntent.ConfirmParamsPaymentMethodOptionKlarna`, `PaymentIntent.CreateParamsPaymentMethodOptionKlarna`, and `PaymentIntent.ModifyParamsPaymentMethodOptionKlarna` - * Change type of `PaymentIntent.ConfirmParamsPaymentMethodOptionKlarna.setup_future_usage`, `PaymentIntent.CreateParamsPaymentMethodOptionKlarna.setup_future_usage`, `PaymentIntent.ModifyParamsPaymentMethodOptionKlarna.setup_future_usage`, and `PaymentIntent.PaymentMethodOption.Klarna.setup_future_usage` from `literal('none')` to `enum('none'|'off_session'|'on_session')` - * Add support for `ua` on `Tax.Registration.CountryOption` and `tax.Registration.CreateParamsCountryOption` - * Change type of `terminal.Location.ModifyParams.display_name` from `string` to `emptyable(string)` - * Add support for `collect_payment_method` and `confirm_payment_intent` on `Terminal.Reader.Action` - * Add support for new values `collect_payment_method` and `confirm_payment_intent` on enum `Terminal.Reader.Action.type` - * Add support for `status` on `treasury.FinancialAccount.ListParams` - * Add support for new value `terminal.reader.action_updated` on enums `WebhookEndpoint.CreateParams.enabled_events` and `WebhookEndpoint.ModifyParams.enabled_events` - * Add support for new value `2025-06-30.basil` on enum `WebhookEndpoint.CreateParams.api_version` - * Add support for snapshot event `terminal.reader.action_updated` with resource `terminal.Reader` -* [#1534](https://github.com/stripe/stripe-python/pull/1534) Fix the link to releases page from readme - -## 12.3.0b2 - 2025-06-26 -* [#1531](https://github.com/stripe/stripe-python/pull/1531) Pull in OffSessionPayment changes for the May release - -## 12.3.0b1 - 2025-05-29 -This release changes the pinned API version to `2025-05-28.preview`. - -* [#1509](https://github.com/stripe/stripe-python/pull/1509) Update generated code for beta - ### Breaking changes - * Remove support for deprecated previews - * Remove support for resources `billing.MeterErrorReport`, `gift_cards.Card`, `gift_cards.Transaction`, and `privacy.RedactionJobRootObjects` - * Remove support for `create`, `list`, `modify`, `retrieve`, and `validate` methods on resource `gift_cards.Card` - * Remove support for `cancel`, `confirm`, `create`, `list`, `modify`, and `retrieve` methods on resource `gift_cards.Transaction` - * Remove support for `provisioning` on `Product.CreateParams` and `Product` - * Remove support for snapshot event `billing.meter_error_report.triggered` with resource `billing.MeterErrorReport` - * Remove support for error codes `gift_card_balance_insufficient`, `gift_card_code_exists`, and `gift_card_inactive` on `QuotePreviewInvoice.LastFinalizationError` and `StripeError` - * Remove support for values `credits_attributed_to_debits` and `legacy_prorations` from enums `Invoice.CreatePreviewParamsScheduleDetail.billing_mode`, `Invoice.CreatePreviewParamsSubscriptionDetail.billing_mode`, `Quote.CreateParamsSubscriptionDatum.billing_mode`, `Quote.SubscriptionDatum.billing_mode`, `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.CreateParams.billing_mode`, `Subscription.billing_mode`, `SubscriptionSchedule.CreateParams.billing_mode`, `SubscriptionSchedule.billing_mode`, and `checkout.Session.CreateParamsSubscriptionDatum.billing_mode` - * Change type of `checkout.Session.ModifyParamsLineItem.quantity` from `emptyable(longInteger)` to `longInteger` - * Change `CreditNote.post_payment_amount` to be required - * Change `CreditNote.pre_payment_amount` to be required - * Remove support for `credits` on `Order.CreateParams`, `Order.ModifyParams`, and `Order` - * Remove support for `amount_remaining` on `Order` - * Remove support for `amount_credit` on `Order.TotalDetail` - * Change type of `PaymentAttemptRecord.metadata` and `PaymentRecord.metadata` from `nullable(map(string: string))` to `map(string: string)` - * Remove support for `async_workflows` on `PaymentIntent.CaptureParams`, `PaymentIntent.ConfirmParams`, `PaymentIntent.CreateParams`, `PaymentIntent.DecrementAuthorizationParams`, `PaymentIntent.IncrementAuthorizationParams`, `PaymentIntent.ModifyParams`, and `PaymentIntent` - * Change type of `PaymentRecord.ReportPaymentAttemptCanceledParams.metadata`, `PaymentRecord.ReportPaymentAttemptFailedParams.metadata`, `PaymentRecord.ReportPaymentAttemptGuaranteedParams.metadata`, `PaymentRecord.ReportPaymentAttemptParams.metadata`, and `PaymentRecord.ReportPaymentParams.metadata` from `map(string: string)` to `emptyable(map(string: string))` - * Change type of `Privacy.RedactionJob.objects` from `$Privacy.RedactionJobRootObjects` to `RedactionResourceRootObjects` - * Change type of `Privacy.RedactionJob.status` from `string` to `enum` - * Change type of `Privacy.RedactionJob.validation_behavior` from `string` to `enum('error'|'fix')` - * Change type of `Privacy.RedactionJobValidationError.code` from `string` to `enum` - * Change type of `Privacy.RedactionJobValidationError.erroring_object` from `map(string: string)` to `RedactionResourceErroringObject` - * Remove support for `status_details` and `status` on `Tax.Association` - - ### Other changes - * Add support for `migrate` method on resource `Subscription` - * Add support for `distance`, `pickup_location_name`, `return_location_name`, and `vehicle_identification_number` on `Charge.CaptureParamsPaymentDetailCarRental`, `Charge.ModifyParamsPaymentDetailCarRental`, `PaymentIntent.CaptureParamsPaymentDetailCarRental`, `PaymentIntent.ConfirmParamsPaymentDetailCarRental`, `PaymentIntent.CreateParamsPaymentDetailCarRental`, `PaymentIntent.ModifyParamsPaymentDetailCarRental`, and `PaymentIntent.PaymentDetail.CarRental` - * Add support for `driver_identification_number` and `driver_tax_number` on `Charge.CaptureParamsPaymentDetailCarRentalDriver`, `Charge.ModifyParamsPaymentDetailCarRentalDriver`, `PaymentIntent.CaptureParamsPaymentDetailCarRentalDriver`, `PaymentIntent.ConfirmParamsPaymentDetailCarRentalDriver`, `PaymentIntent.CreateParamsPaymentDetailCarRentalDriver`, `PaymentIntent.ModifyParamsPaymentDetailCarRentalDriver`, and `PaymentIntent.PaymentDetail.CarRental.Driver` - * Add support for new values `classic` and `flexible` on enums `Invoice.CreatePreviewParamsScheduleDetail.billing_mode`, `Invoice.CreatePreviewParamsSubscriptionDetail.billing_mode`, `Quote.CreateParamsSubscriptionDatum.billing_mode`, `Quote.SubscriptionDatum.billing_mode`, `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.CreateParams.billing_mode`, `Subscription.billing_mode`, `SubscriptionSchedule.CreateParams.billing_mode`, `SubscriptionSchedule.billing_mode`, and `checkout.Session.CreateParamsSubscriptionDatum.billing_mode` - * Add support for `institution` on `FinancialConnections.Account` - * Add support for `countries` on `FinancialConnections.Institution` - * Change type of `Invoice.CreatePreviewParamsSubscriptionDetail.cancel_at`, `Subscription.CreateParams.cancel_at`, and `Subscription.ModifyParams.cancel_at` from `DateTime` to `DateTime | enum('max_period_end'|'min_period_end')` - * Add support for `location` and `reader` on `PaymentAttemptRecord.PaymentMethodDetail.Affirm`, `PaymentAttemptRecord.PaymentMethodDetail.WechatPay`, `PaymentRecord.PaymentMethodDetail.Affirm`, and `PaymentRecord.PaymentMethodDetail.WechatPay` - * Add support for `hooks` on `PaymentIntent.CaptureParams`, `PaymentIntent.ConfirmParams`, `PaymentIntent.CreateParams`, `PaymentIntent.DecrementAuthorizationParams`, `PaymentIntent.IncrementAuthorizationParams`, `PaymentIntent.ModifyParams`, and `PaymentIntent` - * Add support for `card_present` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption` - * Add support for `livemode` on `Privacy.RedactionJob` - * Add support for `billing_thresholds` on `QuotePreviewSubscriptionSchedule.DefaultSetting`, `QuotePreviewSubscriptionSchedule.Phase.Item`, and `QuotePreviewSubscriptionSchedule.Phase` - * Add support for `billing_mode_details` on `Subscription` - * Add support for `tax_transaction_attempts` on `Tax.Association` - * Add support for `confirm_config` on `Terminal.Reader.Action.ConfirmPaymentIntent` and `terminal.Reader.ConfirmPaymentIntentParams` - * Add support for error code `forwarding_api_upstream_error` on `QuotePreviewInvoice.LastFinalizationError` - -## 12.2.0 - 2025-05-29 - This release changes the pinned API version to `2025-05-28.basil`. - -* [#1517](https://github.com/stripe/stripe-python/pull/1517) Update generated code - * Add support for `attach_payment` method on resource `Invoice` - * Add support for `collect_inputs` method on resource `terminal.Reader` - * Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `terminal.Reader` - * Add support for `pix_payments` on `Account.Capability`, `Account.CreateParamsCapability`, and `Account.ModifyParamsCapability` - * Add support for `disputes_list` and `payment_disputes` on `AccountSession.Component` and `AccountSession.CreateParamsComponent` - * Add support for `refund_and_dispute_prefunding` on `Balance` - * Add support for `balance_type` on `BalanceTransaction` - * Change `billing.Alert.CreateParamsUsageThreshold.meter` to be required - * Add support for `location` and `reader` on `Charge.PaymentMethodDetail.Affirm` and `Charge.PaymentMethodDetail.WechatPay` - * Add support for `payment_method_remove` on `checkout.Session.CreateParamsSavedPaymentMethodOption` - * Add support for `setup_future_usage` on `Checkout.Session.PaymentMethodOption.NaverPay` - * Change `ConfirmationToken.PaymentMethodPreview.NaverPay.buyer_id` and `PaymentMethod.NaverPay.buyer_id` to be required - * Add support for `post_payment_amount` and `pre_payment_amount` on `CreditNote` - * Add support for new value `mixed` on enum `CreditNote.type` - * Add support for new value `invoice_payment.paid` on enum `Event.type` - * Add support for `sex`, `unparsed_place_of_birth`, and `unparsed_sex` on `Identity.VerificationReport.Document` and `Identity.VerificationSession.VerifiedOutput` - * Add support for `billing_thresholds` on `Invoice.CreatePreviewParamsScheduleDetailPhaseItem`, `Invoice.CreatePreviewParamsScheduleDetailPhase`, `Invoice.CreatePreviewParamsSubscriptionDetailItem`, `Subscription.CreateParamsItem`, `Subscription.CreateParams`, `Subscription.ModifyParamsItem`, `Subscription.ModifyParams`, `SubscriptionItem.CreateParams`, `SubscriptionItem.ModifyParams`, `SubscriptionItem`, `SubscriptionSchedule.CreateParamsDefaultSetting`, `SubscriptionSchedule.CreateParamsPhaseItem`, `SubscriptionSchedule.CreateParamsPhase`, `SubscriptionSchedule.DefaultSetting`, `SubscriptionSchedule.ModifyParamsDefaultSetting`, `SubscriptionSchedule.ModifyParamsPhaseItem`, `SubscriptionSchedule.ModifyParamsPhase`, `SubscriptionSchedule.Phase.Item`, `SubscriptionSchedule.Phase`, and `Subscription` - * Add support for `satispay` on `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.ModifyParamsPaymentMethodOption`, and `PaymentIntent.PaymentMethodOption` - * Add support for `capture_method` on `PaymentIntent.PaymentMethodOption.Billie` - * Add support for `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on `PaymentMethodConfiguration.CreateParams`, `PaymentMethodConfiguration.ModifyParams`, and `PaymentMethodConfiguration` - * Add support for `network_decline_code` on `Refund.DestinationDetail.Paypal` - * Add support for `metadata` on `Tax.CalculationLineItem` and `tax.Calculation.CreateParamsLineItem` - * Add support for new value `simulated_stripe_s700` on enums `Terminal.Reader.device_type` and `terminal.Reader.ListParams.device_type` - * Add support for `return_url` on `Terminal.Reader.Action.ProcessPaymentIntent.ProcessConfig` and `terminal.Reader.ProcessPaymentIntentParamsProcessConfig` - * Add support for `collect_inputs` on `Terminal.Reader.Action` - * Add support for new value `collect_inputs` on enum `Terminal.Reader.Action.type` - * Add support for new value `invoice_payment.paid` on enums `WebhookEndpoint.CreateParams.enabled_events` and `WebhookEndpoint.ModifyParams.enabled_events` - * Add support for new value `2025-05-28.basil` on enum `WebhookEndpoint.CreateParams.api_version` - * Add support for snapshot event `invoice_payment.paid` with resource `InvoicePayment` - * Add support for error code `forwarding_api_upstream_error` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -* [#1511](https://github.com/stripe/stripe-python/pull/1511) Adds CONTRIBUTING.md - -## 12.2.0b1 - 2025-04-30 -This release changes the pinned API version to `2025-04-30.preview`. -* [#1501](https://github.com/stripe/stripe-python/pull/1501) Update generated code for beta - * Add support for `billing_mode` on `Invoice.CreatePreviewParamsScheduleDetail`, `Invoice.CreatePreviewParamsSubscriptionDetail`, `InvoiceService.CreatePreviewParamsScheduleDetail`, `InvoiceService.CreatePreviewParamsSubscriptionDetail`, `Quote.SubscriptionDatum`, `QuotePreviewSubscriptionSchedule`, `SubscriptionSchedule`, `Subscription`, `checkout.Session.CreateParamsSubscriptionDatum`, and `checkout.SessionService.CreateParamsSubscriptionDatum` - * Add support for new value `balance_settings.updated` on enum `Event.type` - * Add support for new value `balance_settings.updated` on enums `WebhookEndpoint.ModifyParams.enabled_events` and `WebhookEndpointService.UpdateParams.enabled_events` -* [#1498](https://github.com/stripe/stripe-python/pull/1498) Update generated code for beta - * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` on enums `Checkout.Session.CollectedInformation.TaxId.type`, `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Order.TaxDetail.TaxId.type`, `QuotePreviewInvoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` - * Change `Checkout.Session.AutomaticTax.provider`, `Invoice.AutomaticTax.provider`, `Quote.AutomaticTax.provider`, and `QuotePreviewInvoice.AutomaticTax.provider` to be required - * Add support for `account_number` on `ConfirmationToken.PaymentMethodPreview.AcssDebit` and `PaymentMethod.AcssDebit` - * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` on enums `Customer.CreateParams.type`, `Customer.CreateParamsTaxIdDatum.type`, `CustomerService.CreateParamsTaxIdDatum.type`, `CustomerTaxIdService.CreateParams.type`, `Invoice.CreatePreviewParamsCustomerDetailTaxId.type`, `InvoiceService.CreatePreviewParamsCustomerDetailTaxId.type`, `Order.CreateParamsTaxDetailTaxId.type`, `Order.ModifyParamsTaxDetailTaxId.type`, `OrderService.CreateParamsTaxDetailTaxId.type`, `OrderService.UpdateParamsTaxDetailTaxId.type`, `TaxId.CreateParams.type`, `TaxIdService.CreateParams.type`, `tax.Calculation.CreateParamsCustomerDetailTaxId.type`, and `tax.CalculationService.CreateParamsCustomerDetailTaxId.type` - * Change type of `InvoiceLineItem.Parent.SubscriptionItemDetail.subscription` from `string` to `nullable(string)` - * Add support for `billing_mode` on `Quote.CreateParamsSubscriptionDatum`, `QuoteService.CreateParamsSubscriptionDatum`, `Subscription.CreateParams`, `SubscriptionSchedule.CreateParams`, `SubscriptionScheduleService.CreateParams`, and `SubscriptionService.CreateParams` - * Add support for `bf`, `cm`, and `cv` on `Tax.Registration.CountryOption`, `tax.Registration.CreateParamsCountryOption`, and `tax.RegistrationService.CreateParamsCountryOption` - * Add support for new value `2025-04-30.basil` on enums `WebhookEndpoint.CreateParams.api_version` and `WebhookEndpointService.CreateParams.api_version` - -## 12.1.0 - 2025-04-30 - -This release changes the pinned API version to `2025-04-30.basil`. - -* [#1496](https://github.com/stripe/stripe-python/pull/1496) Update generated code - * Add support for `minority_owned_business_designation` on `Account.BusinessProfile`, `Account.CreateParamsBusinessProfile`, `Account.ModifyParamsBusinessProfile`, `AccountService.CreateParamsBusinessProfile`, and `AccountService.UpdateParamsBusinessProfile` - * Add support for `registration_date` on `Account.Company`, `Account.CreateParamsCompany`, `Account.ModifyParamsCompany`, `AccountService.CreateParamsCompany`, `AccountService.UpdateParamsCompany`, `Token.CreateParamsAccountCompany`, and `TokenService.CreateParamsAccountCompany` - * Add support for `us_cfpb_data` on `Account.CreateParams`, `Account.ModifyParams`, `AccountPersonService.CreateParams`, `AccountPersonService.UpdateParams`, `Person`, `Token.CreateParamsPerson`, and `TokenService.CreateParamsPerson` - * Add support for new value `verification_legal_entity_structure_mismatch` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` - * Add support for new value `tax_id_prohibited` on enums `Invoice.LastFinalizationError.code`, `PaymentIntent.LastPaymentError.code`, `SetupAttempt.SetupError.code`, `SetupIntent.LastSetupError.code`, and `StripeError.code` - * Add support for `tax_id` on `Charge.BillingDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatumBillingDetail`, `ConfirmationToken.PaymentMethodPreview.BillingDetail`, `PaymentIntent.ConfirmParamsPaymentMethodDatumBillingDetail`, `PaymentIntent.CreateParamsPaymentMethodDatumBillingDetail`, `PaymentIntent.ModifyParamsPaymentMethodDatumBillingDetail`, `PaymentIntentService.ConfirmParamsPaymentMethodDatumBillingDetail`, `PaymentIntentService.CreateParamsPaymentMethodDatumBillingDetail`, `PaymentIntentService.UpdateParamsPaymentMethodDatumBillingDetail`, `PaymentMethod.BillingDetail`, `PaymentMethod.CreateParamsBillingDetail`, `PaymentMethod.ModifyParamsBillingDetail`, `PaymentMethodService.CreateParamsBillingDetail`, `PaymentMethodService.UpdateParamsBillingDetail`, `SetupIntent.ConfirmParamsPaymentMethodDatumBillingDetail`, `SetupIntent.CreateParamsPaymentMethodDatumBillingDetail`, `SetupIntent.ModifyParamsPaymentMethodDatumBillingDetail`, `SetupIntentService.ConfirmParamsPaymentMethodDatumBillingDetail`, `SetupIntentService.CreateParamsPaymentMethodDatumBillingDetail`, `SetupIntentService.UpdateParamsPaymentMethodDatumBillingDetail`, `test_helpers.ConfirmationTokenService.CreateParamsPaymentMethodDatumBillingDetail`, `treasury.OutboundPayment.CreateParamsDestinationPaymentMethodDatumBillingDetail`, and `treasury.OutboundPaymentService.CreateParamsDestinationPaymentMethodDatumBillingDetail` - * Add support for `wallet_options` on `Checkout.Session`, `checkout.Session.CreateParams`, and `checkout.SessionService.CreateParams` - * Add support for `provider` on `Checkout.Session.AutomaticTax`, `Invoice.AutomaticTax`, and `Quote.AutomaticTax` - * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` on enums `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` - * Add support for `payment_method_options` on `ConfirmationToken.CreateParams` and `test_helpers.ConfirmationTokenService.CreateParams` - * Add support for `installments` on `ConfirmationToken.PaymentMethodOption.Card` - * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` on enums `Customer.CreateParams.type`, `Customer.CreateParamsTaxIdDatum.type`, `CustomerService.CreateParamsTaxIdDatum.type`, `CustomerTaxIdService.CreateParams.type`, `Invoice.CreatePreviewParamsCustomerDetailTaxId.type`, `InvoiceService.CreatePreviewParamsCustomerDetailTaxId.type`, `TaxId.CreateParams.type`, `TaxIdService.CreateParams.type`, `tax.Calculation.CreateParamsCustomerDetailTaxId.type`, and `tax.CalculationService.CreateParamsCustomerDetailTaxId.type` - * Add support for `context` on `Event` - * Add support for new value `affirm` on enums `Invoice.CreateParamsPaymentSetting.payment_method_types`, `Invoice.ModifyParamsPaymentSetting.payment_method_types`, `Invoice.PaymentSetting.payment_method_types`, `InvoiceService.CreateParamsPaymentSetting.payment_method_types`, `InvoiceService.UpdateParamsPaymentSetting.payment_method_types`, `Subscription.CreateParamsPaymentSetting.payment_method_types`, `Subscription.ModifyParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionService.CreateParamsPaymentSetting.payment_method_types`, and `SubscriptionService.UpdateParamsPaymentSetting.payment_method_types` - * Change type of `InvoiceLineItem.Parent.SubscriptionItemDetail.subscription` from `string` to `nullable(string)` - * Add support for `billie` on `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.ModifyParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentService.ConfirmParamsPaymentMethodOption`, `PaymentIntentService.CreateParamsPaymentMethodOption`, and `PaymentIntentService.UpdateParamsPaymentMethodOption` - * Add support for `pix` on `PaymentMethodConfiguration.CreateParams`, `PaymentMethodConfiguration.ModifyParams`, `PaymentMethodConfigurationService.CreateParams`, `PaymentMethodConfigurationService.UpdateParams`, and `PaymentMethodConfiguration` - * Add support for `klarna` on `PaymentMethodDomain` - * Add support for `pending_reason` on `Refund` - * Change type of `Tax.CalculationLineItem.reference` from `nullable(string)` to `string` - * Add support for `aw`, `az`, `bd`, `bf`, `bj`, `cm`, `cv`, `et`, `in`, `kg`, `la`, and `ph` on `Tax.Registration.CountryOption`, `tax.Registration.CreateParamsCountryOption`, and `tax.RegistrationService.CreateParamsCountryOption` - * Add support for new value `2025-04-30.basil` on enums `WebhookEndpoint.CreateParams.api_version` and `WebhookEndpointService.CreateParams.api_version` - -## 12.1.0b3 - 2025-04-17 -* [#1495](https://github.com/stripe/stripe-python/pull/1495) Update generated code for beta - * Add support for new resources `FxQuote` and `PaymentIntentAmountDetailsLineItem` - * Add support for `create`, `list`, and `retrieve` methods on resource `FxQuote` - * Remove support for `attach_payment_intent` method on resource `Invoice` - * Add support for `registration_date` on `Account.Company`, `Account.CreateParamsCompany`, `Account.UpdateParamsCompany`, and `Token.CreateParamsAccountCompany` - * Add support for `customer_reference` and `order_reference` on `Charge.CaptureParamsPaymentDetail`, `Charge.UpdateParamsPaymentDetail`, `PaymentIntent.CaptureParamsPaymentDetail`, `PaymentIntent.ConfirmParamsPaymentDetail`, `PaymentIntent.CreateParamsPaymentDetail`, `PaymentIntent.PaymentDetail`, and `PaymentIntent.UpdateParamsPaymentDetail` - * Add support for `tax_id` on `Charge.BillingDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatumBillingDetail`, `ConfirmationToken.PaymentMethodPreview.BillingDetail`, `PaymentIntent.ConfirmParamsPaymentMethodDatumBillingDetail`, `PaymentIntent.CreateParamsPaymentMethodDatumBillingDetail`, `PaymentIntent.UpdateParamsPaymentMethodDatumBillingDetail`, `PaymentMethod.BillingDetail`, `PaymentMethod.CreateParamsBillingDetail`, `PaymentMethod.UpdateParamsBillingDetail`, `SetupIntent.ConfirmParamsPaymentMethodDatumBillingDetail`, `SetupIntent.CreateParamsPaymentMethodDatumBillingDetail`, `SetupIntent.UpdateParamsPaymentMethodDatumBillingDetail`, and `treasury.OutboundPayment.CreateParamsDestinationPaymentMethodDatumBillingDetail` - * Add support for `price_data` on `checkout.Session.UpdateParamsLineItem` - * Change type of `checkout.Session.UpdateParamsLineItem.quantity` from `longInteger` to `emptyable(longInteger)` - * Add support for `script` on `Coupon.CreateParams` and `Coupon` - * Add support for `type` on `Coupon` - * Add support for new value `fx_quote.expired` on enum `Event.type` - * Add support for new value `affirm` on enums `Invoice.CreateParamsPaymentSetting.payment_method_types`, `Invoice.PaymentSetting.payment_method_types`, `Invoice.UpdateParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.CreateParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, and `Subscription.UpdateParamsPaymentSetting.payment_method_types` - * Add support for `fx_quote` on `PaymentIntent.ConfirmParams`, `PaymentIntent.CreateParams`, `PaymentIntent.UpdateParams`, `PaymentIntent`, `Transfer.CreateParams`, and `Transfer` - * Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent.AmountDetail` - * Add support for `pix` on `PaymentMethodConfiguration.CreateParams`, `PaymentMethodConfiguration.UpdateParams`, and `PaymentMethodConfiguration` - * Add support for `us_cfpb_data` on `Person` and `Token.CreateParamsPerson` - * Add support for `pending_reason` on `Refund` - * Add support for `aw`, `az`, `bd`, `bj`, `et`, `kg`, `la`, and `ph` on `TaxRegistration.CountryOption` and `tax.Registration.CreateParamsCountryOption` - * Add support for new value `fx_quote.expired` on enums `WebhookEndpoint.CreateParams.enabled_events` and `WebhookEndpoint.UpdateParams.enabled_events` - * Add support for snapshot event `fx_quote.expired` with resource `FxQuote` - -## 12.1.0b2 - 2025-04-10 -* [#1489](https://github.com/stripe/stripe-python/pull/1489) Update generated code for beta - - ### Breaking changes - * Change type of `V2MoneyManagementReceivedDebit.status_transitions` from `an object` to `nullable(an object)` - * Remove support for values `bank_accounts.local_uk`, `bank_accounts.wire_uk`, `cards_uk`, and `crypto_wallets_v2` from enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability` - - ### Additions - * Add support for new resources `Privacy.RedactionJobRootObjects`, `Privacy.RedactionJobValidationError`, and `Privacy.RedactionJob` - * Add support for `cancel`, `create`, `list`, `modify`, `retrieve`, `run`, and `validate` methods on resource `RedactionJob` - * Add support for `list` and `retrieve` methods on resource `RedactionJobValidationError` - * Add support for `minority_owned_business_designation` on `Account.BusinessProfile`, `Account.CreateParamsBusinessProfile`, and `Account.UpdateParamsBusinessProfile` - * Add support for new value `verification_legal_entity_structure_mismatch` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `AccountCapability.FutureRequirement.Error.code`, `AccountCapability.Requirement.Error.code`, `AccountPerson.FutureRequirement.Error.code`, `AccountPerson.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, and `BankAccount.Requirement.Error.code` - * Add support for `export_tax_transactions` and `payment_disputes` on `AccountSession.CreateParamsComponent` - * Add support for new value `tax_id_prohibited` on enums `Invoice.LastFinalizationError.code`, `PaymentIntent.LastPaymentError.code`, `QuotePreviewInvoice.LastFinalizationError.code`, `SetupAttempt.SetupError.code`, `SetupIntent.LastSetupError.code`, and `StripeError.code` - * Add support for new value `fixed_term_loan` on enum `CapitalFinancingOffer.type` - * Add support for `wallet_options` on `CheckoutSession` and `checkout.Session.CreateParams` - * Add support for new values `privacy.redaction_job.canceled`, `privacy.redaction_job.created`, `privacy.redaction_job.ready`, `privacy.redaction_job.succeeded`, and `privacy.redaction_job.validation_error` on enum `Event.type` - * Add support for `klarna` on `PaymentMethodDomain` - * Change type of `TaxCalculationLineItem.reference` from `nullable(string)` to `string` - * Add support for `in` on `TaxRegistration.CountryOption` and `tax.Registration.CreateParamsCountryOption` - * Add support for new values `privacy.redaction_job.canceled`, `privacy.redaction_job.created`, `privacy.redaction_job.ready`, `privacy.redaction_job.succeeded`, and `privacy.redaction_job.validation_error` on enums `WebhookEndpoint.CreateParams.enabled_events` and `WebhookEndpoint.UpdateParams.enabled_events` -* [#1490](https://github.com/stripe/stripe-python/pull/1490) Handle external account - - Changes `external_account` field in `external_account_service.create` from `string` to a union type. - -## 12.1.0b1 - 2025-04-02 -* [#1455](https://github.com/stripe/stripe-python/pull/1455), [#1477](https://github.com/stripe/stripe-python/pull/1477), [#1482](https://github.com/stripe/stripe-python/pull/1482) Update generated code for beta - -This release changes the pinned API version to `2025-03-31.preview` - -### Breaking changes: -* Remove support for `AmountOverpaid` on `InvoicePayment` -* Remove support for values `out_of_band_payment` and `payment_record` from enum `InvoicePayment.Payment.type` -* Remove support for `RateCardSubscriptionDetails` on `InvoiceItemParent` -* Remove support for `ApplicationFeeAmount`, `PaidOutOfBand`, and `Paid` on `QuotePreviewInvoice` -* Remove support for `billing_thresholds` on `QuotePreviewSubscriptionSchedule.DefaultSetting`, `QuotePreviewSubscriptionSchedule.Phase.Item`, and `QuotePreviewSubscriptionSchedule.Phase` -* Remove support for `coupon` on `QuotePreviewSubscriptionSchedule.Phase` -* Change type of `QuotePreviewInvoice.Parent.SubscriptionDetail.subscription` from `string` to `expandable($Subscription)` -* Change `CheckoutSession.Permission.update` to be optional -* Change type of `PaymentAttemptRecord.PaymentMethodDetail.type` and `PaymentRecord.PaymentMethodDetail.type` from `literal('custom')` to `string` -* Change type of `PaymentAttemptRecord.payment_record` from `string` to `nullable(string)` -* Change `PaymentAttemptRecord.PaymentMethodDetail.custom` and `PaymentRecord.PaymentMethodDetail.custom` to be optional -* Change type of `PaymentRecord.latest_payment_attempt_record` from `string` to `nullable(string)` -* Change type of `Order.CreateParamsPaymentSettingPaymentMethodOptionWechatPay.client` and `Order.UpdateParamsPaymentSettingPaymentMethodOptionWechatPay.client` to be optional - -### Additions -* Add support for `payment_method_options` on `ConfirmationToken.CreateParams` -* Add support for `installments` on `ConfirmationToken.PaymentMethodOption.Card` -* Add support for `billie` on `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, and `PaymentIntent.UpdateParamsPaymentMethodOption` -* Add support for `update_line_items` on `CheckoutSession.Permission` and `checkout.Session.CreateParamsPermission` -* Add support for `new resources` BalanceSettings -* Add support for `modify` and `retrieve` methods on resource `BalanceSettings` -* Add support for `create`, `delete`, `list`, `modify`, and `retrieve` methods on a new `ExternalAccountService` to access cards and bank accounts made available in the new path `v1/external_accounts` -* Add support for `stripe_balance_payments` on `Account.Capability`, `Account.CreateParamsCapability`, and `Account.UpdateParamsCapability` -* Add support for new values `stripe_balance_payment_debit_reversal` and `stripe_balance_payment_debit` on enum `BalanceTransaction.type` -* Add support for `customer_account` on `BillingCreditBalanceSummary`, `BillingCreditGrant`, `BillingPortalSession`, `CheckoutSession`, `ConfirmationToken.PaymentMethodPreview`, `CreditNote.ListParams`, `CreditNote`, `CustomerBalanceTransaction`, `CustomerCashBalanceTransaction`, `CustomerCashBalance`, `CustomerPaymentMethod`, `CustomerSession.CreateParams`, `CustomerSession`, `CustomerTaxId.Owner`, `CustomerTaxId`, `Customer`, `Discount`, `FinancialConnectionsAccount.AccountHolder`, `FinancialConnectionsSession.AccountHolder`, `Invoice.CreateParams`, `Invoice.CreatePreviewParams`, `Invoice.ListParams`, `InvoiceItem.CreateParams`, `InvoiceItem.ListParams`, `InvoiceItem`, `Invoice`, `PaymentIntent.CreateParams`, `PaymentIntent.ListParams`, `PaymentIntent.UpdateParams`, `PaymentIntent`, `PaymentMethod.AttachParams`, `PaymentMethod`, `PromotionCode.CreateParams`, `PromotionCode.ListParams`, `PromotionCode`, `Quote.CreateParams`, `Quote.ListParams`, `Quote.UpdateParams`, `QuotePreviewInvoice`, `QuotePreviewSubscriptionSchedule`, `Quote`, `SetupAttempt`, `SetupIntent.CreateParams`, `SetupIntent.ListParams`, `SetupIntent.UpdateParams`, `SetupIntent`, `Subscription.CreateParams`, `Subscription.ListParams`, `SubscriptionSchedule.CreateParams`, `SubscriptionSchedule.ListParams`, `SubscriptionSchedule`, `Subscription`, `TaxId.CreateParamsOwner`, `TaxId.ListParamsOwner`, `TaxId.Owner`, `TaxId`, `billing.CreditBalanceSummary.RetrieveParams`, `billing.CreditBalanceTransaction.ListParams`, `billing.CreditGrant.CreateParams`, `billing.CreditGrant.ListParams`, `billingportal.Session.CreateParams`, `checkout.Session.CreateParams`, `checkout.Session.ListParams`, `financialconnections.Account.ListParamsAccountHolder`, and `financialconnections.Session.CreateParamsAccountHolder` -* Add support for `stripe_balance` on `Charge.PaymentMethodDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatum`, `ConfirmationToken.PaymentMethodPreview`, `CustomerPaymentMethod`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.ConfirmParamsPaymentMethodDatum`, `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodDatum`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, `PaymentIntent.UpdateParamsPaymentMethodDatum`, `PaymentIntent.UpdateParamsPaymentMethodOption`, `PaymentMethod.CreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.ConfirmParamsPaymentMethodDatum`, `SetupIntent.CreateParamsPaymentMethodDatum`, and `SetupIntent.UpdateParamsPaymentMethodDatum` -* Add support for `update_shipping_details` on `CheckoutSession.Permission` and `checkout.Session.CreateParamsPermission` -* Add support for `provider` on `CheckoutSession.AutomaticTax`, `Invoice.AutomaticTax`, `Quote.AutomaticTax`, and `QuotePreviewInvoice.AutomaticTax` -* Add support for `tax_calculation_reference` on `CreditNoteLineItem`, `CreditNotePreviewLines`, `InvoiceLineItem`, `LineItem`, `PaymentLinkLineItem`, `QuoteComputedUpfrontLineItems`, `QuoteLineItem`, and `SessionLineItem` -* Add support for `context` on `Event` -* Add support for `related_customer_account` on `IdentityVerificationSession`, `identity.VerificationSession.CreateParams`, and `identity.VerificationSession.ListParams` -* Add support for `payout_method` on `Payout.CreateParams` and `Payout` -* Add support for `confirmation_secret`, `parent`, and `total_taxes` on `QuotePreviewInvoice` -* Add support for new values `forwarding_api_retryable_upstream_error`, `setup_intent_mobile_wallet_unsupported`, `v2_account_disconnection_unsupported`, and `v2_account_missing_configuration` on enum `QuotePreviewInvoice.LastFinalizationError.code` -* Add support for new values `klarna`, `nz_bank_account`, and `stripe_balance` on enum `QuotePreviewInvoice.PaymentSetting.payment_method_types` -* Add support for `id` and `text` on `TerminalReader.Action.CollectInput.Input.Selection.Choice`, `TerminalReader.Action.CollectInput.Input.Selection`, and `terminal.Reader.CollectInputsParamsInputSelectionChoice` -* Add support for `network_data` on `IssuingDisputeSettlementDetail` -* Add support for `interchange_fees_amount`, `net_total_amount`, `network_fees_amount`, `other_fees_amount`, `other_fees_count`, and `transaction_amount` on `IssuingSettlement` -* Add support for `reported_by` on `PaymentAttemptRecord` - -#### New APIs for Money CardManagement - -* Add support for new resources `V2.FinancialAddressCreditSimulation`, `V2.FinancialAddressGeneratedMicrodeposits`, `V2.MoneyManagement.Adjustment`, `V2.MoneyManagement.FinancialAccount`, `V2.MoneyManagement.FinancialAddress`, `V2.MoneyManagement.InboundTransfer`, `V2.MoneyManagement.OutboundPaymentQuote`, `V2.MoneyManagement.OutboundPayment`, `V2.MoneyManagement.OutboundSetupIntent`, `V2.MoneyManagement.OutboundTransfer`, `V2.MoneyManagement.PayoutMethod`, `V2.MoneyManagement.PayoutMethodsBankAccountSpec`, `V2.MoneyManagement.ReceivedCredit`, `V2.MoneyManagement.ReceivedDebit`, `V2.MoneyManagement.TransactionEntry`, and `V2.MoneyManagement.Transaction` -* Add support for `create` method on resource `V2.MoneyManagement.OutboundPaymentQuote` -* Add support for `list` and `retrieve` methods on resources `V2.MoneyManagement.Adjustment`, `V2.MoneyManagement.FinancialAccount`, `V2.MoneyManagement.ReceivedCredit`, `V2.MoneyManagement.ReceivedDebit`, `V2.MoneyManagement.TransactionEntry`, and `V2.MoneyManagement.Transaction` -* Add support for `create`, `list`, and `retrieve` methods on resources `V2.MoneyManagement.FinancialAddress` and `V2.MoneyManagement.InboundTransfer` -* Add support for `cancel`, `create`, `list`, and `retrieve` methods on resources `V2.MoneyManagement.OutboundPayment` and `V2.MoneyManagement.OutboundTransfer` -* Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `V2.MoneyManagement.PayoutMethod` -* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve` methods on resource `V2.MoneyManagement.OutboundSetupIntent` -* Add support for `retrieve` method on resource `V2.MoneyManagement.PayoutMethodsBankAccountSpec` -* Add support for `acknowledge_confirmation_of_payee`, `archive`, `create`, `initiate_confirmation_of_payee`, and `retrieve` methods on resource `V2.Core.Vault.GbBankAccount` -* Add support for `archive`, `create`, `modify`, and `retrieve` methods on resource `V2.Core.Vault.UsBankAccount` -* Add support for new values `account_number`, `fedwire_routing_number`, and `routing_number` on enum `InvalidPaymentMethod.invalid_param` -* Add support for new thin event `V2MoneyManagementFinancialAccountCreatedEvent` with related object `V2.MoneyManagement.FinancialAccount` -* Add support for new thin events `V2MoneyManagementFinancialAddressActivatedEvent` and `V2MoneyManagementFinancialAddressFailedEvent` with related object `V2.MoneyManagement.FinancialAddress` -* Add support for new thin events `V2MoneyManagementInboundTransferAvailableEvent`, `V2MoneyManagementInboundTransferBankDebitFailedEvent`, `V2MoneyManagementInboundTransferBankDebitProcessingEvent`, `V2MoneyManagementInboundTransferBankDebitQueuedEvent`, `V2MoneyManagementInboundTransferBankDebitReturnedEvent`, and `V2MoneyManagementInboundTransferBankDebitSucceededEvent` with related object `V2.MoneyManagement.InboundTransfer` -* Add support for new thin events `V2MoneyManagementOutboundPaymentCanceledEvent`, `V2MoneyManagementOutboundPaymentCreatedEvent`, `V2MoneyManagementOutboundPaymentFailedEvent`, `V2MoneyManagementOutboundPaymentPostedEvent`, and `V2MoneyManagementOutboundPaymentReturnedEvent` with related object `V2.MoneyManagement.OutboundPayment` -* Add support for new thin events `V2MoneyManagementOutboundTransferCanceledEvent`, `V2MoneyManagementOutboundTransferCreatedEvent`, `V2MoneyManagementOutboundTransferFailedEvent`, `V2MoneyManagementOutboundTransferPostedEvent`, and `V2MoneyManagementOutboundTransferReturnedEvent` with related object `V2.MoneyManagement.OutboundTransfer` -* Add support for new thin events `V2MoneyManagementReceivedCreditAvailableEvent`, `V2MoneyManagementReceivedCreditFailedEvent`, `V2MoneyManagementReceivedCreditReturnedEvent`, and `V2MoneyManagementReceivedCreditSucceededEvent` with related object `V2.MoneyManagement.ReceivedCredit` -* Add support for new thin events `V2MoneyManagementReceivedDebitCanceledEvent`, `V2MoneyManagementReceivedDebitFailedEvent`, `V2MoneyManagementReceivedDebitPendingEvent`, `V2MoneyManagementReceivedDebitSucceededEvent`, and `V2MoneyManagementReceivedDebitUpdatedEvent` with related object `V2.MoneyManagement.ReceivedDebit` -* Add support for new error types `AlreadyCanceledError`, `BlockedByStripeError`, `ControlledByDashboardError`, `FeatureNotEnabledError`, `FinancialAccountNotOpenError`, `InsufficientFundsError`, `InvalidPayoutMethodError`, `NotCancelableError`, and `RecipientNotNotifiableError` - -#### New APIs for Accounts v2 in private preview -See [SaaS platform payments with subscription billing using Accounts v2](https://docs.stripe.com/connect/accounts-v2/saas-platform-payments-billing) - -* Add support for new resources `V2.Core.AccountLink`, `V2.Core.Account`, `V2.Core.Person`, `V2.Core.Vault.GbBankAccount`, `V2.Core.Vault.UsBankAccount` -* Add support for `close`, `create`, `list`, `modify`, and `retrieve` methods on resource `V2.Core.Account` -* Add support for `create` method on resource `V2.Core.AccountLink` -* Add support for new thin events `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, and `V2CoreAccountIncludingRequirementsUpdatedEvent` -* Add support for new thin event `V2CoreAccountLinkCompletedEvent` with related object `V2.Core.AccountLink` -* Add support for new thin events `V2CoreAccountPersonCreatedEvent`, `V2CoreAccountPersonDeletedEvent`, and `V2CoreAccountPersonUpdatedEvent` with related object `V2.Core.Person` - -### Changes -* Change `CustomerSession.CreateParams.customer`, `InvoiceItem.CreateParams.customer`, `PaymentMethod.AttachParams.customer`, `Subscription.CreateParams.customer`, `billing.CreditBalanceSummary.RetrieveParams.customer`, `billing.CreditBalanceTransaction.ListParams.customer`, `billing.CreditGrant.CreateParams.customer`, and `billingportal.Session.CreateParams.customer` to be optional -* Change type of `Invoice.Parent.SubscriptionDetail.PauseCollection.behavior` and `QuotePreviewInvoice.Parent.SubscriptionDetail.PauseCollection.behavior` from `string` to `enum('keep_as_draft'|'mark_uncollectible'|'void')` -* Change `CreditNote.refunds` to be required -* Change `Invoice.amount_overpaid` and `QuotePreviewInvoice.amount_overpaid` to be required -* Change type of `InvoicePayment.is_default` from `nullable(boolean)` to `boolean` -* Change type of `PaymentAttemptRecord.PaymentMethodDetail.custom` and `PaymentRecord.PaymentMethodDetail.custom` from `nullable(PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails)` to `PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails` -* Change `PaymentRecord.ReportPaymentParams.payment_reference` to be optional - -* [#1476](https://github.com/stripe/stripe-python/pull/1476) Update add_beta_version logic - * ⚠️ stripe.add_beta_version` will use the highest version number used for a beta feature instead of raising an `Exception` on a conflict as it had done previously. - -## 12.0.1 - 2025-04-21 -* [#1499](https://github.com/stripe/stripe-python/pull/1499) Encode bools with lower case - - Serializes boolean query parameter values to `true`/`false` (lower case) before sending to the Stripe API for compatibility with Stripe V2 endpoints -* [#1401](https://github.com/stripe/stripe-python/pull/1401) Fix type hint for SearchResultObject.data -* [#1493](https://github.com/stripe/stripe-python/pull/1493) Update readme with clarification on resource based call patterns - -## 12.0.0 - 2025-04-01 -* [#1463](https://github.com/stripe/stripe-python/pull/1463) Support for APIs in the new API version 2025-03-31.basil - - This release changes the pinned API version to `2025-03-31.basil`. - - ### ⚠️ Breaking changes due to changes in the Stripe API - - Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/basil) before upgrading. - - * Remove support for resources `SubscriptionItemUsageRecordSummary` and `SubscriptionItemUsageRecord` - * Remove support for `create` method on resource `SubscriptionItemUsageRecord` - * Remove support for `list` method on resource `SubscriptionItemUsageRecordSummary` - * Remove support for `upcomingLines` and `upcoming` methods on resource `Invoice` - * Remove support for `invoice` on `Charge` and `PaymentIntent` - * Remove support for `shipping_details` on `CheckoutSession` - * Remove support for `carrier`, `phone`, and `tracking_number` on `CheckoutSession.CollectedInformation.ShippingDetail` - * Remove support for `refund` on `CreditNote.CreateParams`, `CreditNote.PreviewParams`, `CreditNotePreviewLines.ListParams`, and `CreditNote` - * Remove support for `tax_amounts` on `CreditNoteLineItem`, `CreditNote`, and `InvoiceLineItem` - * Remove support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem` - * Remove support for `coupon` on `Customer.CreateParams`, `Customer.UpdateParams`, `Invoice.CreatePreviewParamsScheduleDetailPhase`, `Invoice.CreatePreviewParams`, `Subscription.CreateParams`, `Subscription.UpdateParams`, `SubscriptionSchedule.CreateParamsPhase`, `SubscriptionSchedule.Phase`, and `SubscriptionSchedule.UpdateParamsPhase` - * Remove support for `promotion_code` on `Customer.CreateParams`, `Customer.UpdateParams`, `Subscription.CreateParams`, and `Subscription.UpdateParams` - * Remove support for `price` on `Invoice.AddLinesParamsLine`, `Invoice.UpdateLinesParamsLine`, `InvoiceItem.CreateParams`, `InvoiceItem.UpdateParams`, `InvoiceItem`, `InvoiceLineItem.UpdateParams`, and `InvoiceLineItem` - * Remove support for `billing_thresholds` on `Invoice.CreatePreviewParamsScheduleDetailPhaseItem`, `Invoice.CreatePreviewParamsScheduleDetailPhase`, `Invoice.CreatePreviewParamsSubscriptionDetailItem`, `Subscription.CreateParamsItem`, `Subscription.CreateParams`, `Subscription.UpdateParamsItem`, `Subscription.UpdateParams`, `SubscriptionItem.CreateParams`, `SubscriptionItem.UpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.CreateParamsDefaultSetting`, `SubscriptionSchedule.CreateParamsPhaseItem`, `SubscriptionSchedule.CreateParamsPhase`, `SubscriptionSchedule.DefaultSetting`, `SubscriptionSchedule.Phase.Item`, `SubscriptionSchedule.Phase`, `SubscriptionSchedule.UpdateParamsDefaultSetting`, `SubscriptionSchedule.UpdateParamsPhaseItem`, `SubscriptionSchedule.UpdateParamsPhase`, and `Subscription` - * Remove support for `application_fee_amount`, `charge`, `paid_out_of_band`, `paid`, `payment_intent`, `quote`, `subscription`, `subscription_details`, `subscription_proration_date`, `tax`, `total_tax_amounts`, and `transfer_data` on `Invoice` - * Remove support for `discount` on `Invoice` and `Subscription` - * Remove support for `invoice_item`, `proration_details`, `proration`, `tax_rates`, and `type` on `InvoiceLineItem` - * Remove support for `plan` and `subscription_item` on `InvoiceItem` and `InvoiceLineItem` - * Remove support for `unit_amount` on `InvoiceItem.CreateParams`, `InvoiceItem.UpdateParams`, and `InvoiceItem` - * Remove support for `subscription` and `unit_amount_decimal` on `InvoiceItem` - * Remove support for `naver_pay` on `PaymentMethod.UpdateParams` - * Remove support for `aggregate_usage` on `Plan.CreateParams`, `Plan`, `Price.CreateParamsRecurring`, and `Price.Recurring` - * Remove support for `current_period_end` and `current_period_start` on `Subscription` - * Remove support for page on `v2.Event.ListParams` and `v2.EventDestination.ListParams` - - ### Changes - * Change `CheckoutSession.collected_information` to be required - * Change `CheckoutSession.CollectedInformation.shipping_details` to be required - * Change `CheckoutSession.CollectedInformation.ShippingDetail.address` to be required - * Change `CheckoutSession.CollectedInformation.ShippingDetail.name` to be required - * Change `PaymentIntent.ConfirmParamsPaymentMethodOptionWechatPay.client`, `PaymentIntent.CreateParamsPaymentMethodOptionWechatPay.client`, and `PaymentIntent.UpdateParamsPaymentMethodOptionWechatPay.client` to be optional - * Change `political_exposure` on resources `Person` and `Token` and params `Token.CreateParams` from string to `enum("existing" | "none")` - - ### Additions - - * Add support for new resource `InvoicePayment` - * Add support for `list` and `retrieve` methods on resource `InvoicePayment` - * Add support for `billie_payments`, `nz_bank_account_becs_debit_payments`, and `satispay_payments` on `Account.Capability`, `Account.CreateParamsCapability`, and `Account.UpdateParamsCapability` - * Add support for `hosted_payment_method_save` on `Account.Setting.Invoice` and `Account.UpdateParamsSettingInvoice` - * Add support for `invoices` on `Account.CreateParamsSetting` - * Add support for new values `information_missing`, `invalid_signator`, `verification_failed_authorizer_authority`, and `verification_rejected_ownership_exemption_reason` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `AccountCapability.FutureRequirement.Error.code`, `AccountCapability.Requirement.Error.code`, `AccountPerson.FutureRequirement.Error.code`, `AccountPerson.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, and `BankAccount.Requirement.Error.code` - * Add support for new values `forwarding_api_retryable_upstream_error` and `setup_intent_mobile_wallet_unsupported` on enums `Invoice.LastFinalizationError.code`, `PaymentIntent.LastPaymentError.code`, `SetupAttempt.SetupError.code`, `SetupIntent.LastSetupError.code`, and `StripeError.code` - * Add support for new values `stripe_balance_payment_debit_reversal` and `stripe_balance_payment_debit` on enum `BalanceTransaction.type` - * Add support for new value `last` on enums `BillingMeter.DefaultAggregation.formula` and `billing.Meter.CreateParamsDefaultAggregation.formula` - * Add support for `presentment_details` on `Charge`, `CheckoutSession`, `PaymentIntent`, and `Refund` - * Add support for `billie` and `satispay` on `Charge.PaymentMethodDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatum`, `ConfirmationToken.PaymentMethodPreview`, `CustomerPaymentMethod`, `PaymentIntent.ConfirmParamsPaymentMethodDatum`, `PaymentIntent.CreateParamsPaymentMethodDatum`, `PaymentIntent.UpdateParamsPaymentMethodDatum`, `PaymentMethod.CreateParams`, `PaymentMethodConfiguration.CreateParams`, `PaymentMethodConfiguration.UpdateParams`, `PaymentMethodConfiguration`, `PaymentMethod`, `SetupIntent.ConfirmParamsPaymentMethodDatum`, `SetupIntent.CreateParamsPaymentMethodDatum`, and `SetupIntent.UpdateParamsPaymentMethodDatum` - * Add support for `nz_bank_account` on `Charge.PaymentMethodDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatum`, `ConfirmationToken.PaymentMethodPreview`, `CustomerPaymentMethod`, `Mandate.PaymentMethodDetail`, `PaymentIntent.ConfirmParamsPaymentMethodDatum`, `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodDatum`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, `PaymentIntent.UpdateParamsPaymentMethodDatum`, `PaymentIntent.UpdateParamsPaymentMethodOption`, `PaymentMethod.CreateParams`, `PaymentMethodConfiguration.CreateParams`, `PaymentMethodConfiguration.UpdateParams`, `PaymentMethodConfiguration`, `PaymentMethod`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.ConfirmParamsPaymentMethodDatum`, `SetupIntent.CreateParamsPaymentMethodDatum`, and `SetupIntent.UpdateParamsPaymentMethodDatum` - * Add support for `optional_items` on `CheckoutSession`, `PaymentLink.CreateParams`, `PaymentLink`, and `checkout.Session.CreateParams` - * Add support for `permissions` on `CheckoutSession` and `checkout.Session.CreateParams` - * Add support for new values `billie` and `satispay` on enum `checkout.Session.CreateParams.payment_method_types` - * Add support for new value `custom` on enums `CheckoutSession.ui_mode` and `checkout.Session.CreateParams.ui_mode` - * Add support for `shipping_options` on `checkout.Session.UpdateParams` - * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `ConfirmationToken.CreateParamsPaymentMethodDatum.type`, `PaymentIntent.ConfirmParamsPaymentMethodDatum.type`, `PaymentIntent.CreateParamsPaymentMethodDatum.type`, `PaymentIntent.UpdateParamsPaymentMethodDatum.type`, `SetupIntent.ConfirmParamsPaymentMethodDatum.type`, `SetupIntent.CreateParamsPaymentMethodDatum.type`, and `SetupIntent.UpdateParamsPaymentMethodDatum.type` - * Add support for `buyer_id` on `ConfirmationToken.PaymentMethodPreview.NaverPay`, `CustomerPaymentMethod.NaverPay`, and `PaymentMethod.NaverPay` - * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `ConfirmationToken.PaymentMethodPreview.type`, `CustomerPaymentMethod.type`, and `PaymentMethod.type` - * Add support for `refunds` on `CreditNote.CreateParams`, `CreditNote.PreviewParams`, `CreditNotePreviewLines.ListParams`, and `CreditNote` - * Add support for `total_taxes` on `CreditNote` and `Invoice` - * Add support for `taxes` on `CreditNoteLineItem` and `InvoiceLineItem` - * Add support for `checkout_session` on `CustomerBalanceTransaction` - * Add support for new values `checkout_session_subscription_payment_canceled` and `checkout_session_subscription_payment` on enum `CustomerBalanceTransaction.type` - * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `CustomerPaymentMethod.ListParams.type`, `PaymentMethod.CreateParams.type`, and `PaymentMethod.ListParams.type` - * Add support for new value `invoice.overpaid` on enum `Event.type` - * Add support for new values `klarna` and `nz_bank_account` on enums `Invoice.CreateParamsPaymentSetting.payment_method_types`, `Invoice.PaymentSetting.payment_method_types`, `Invoice.UpdateParamsPaymentSetting.payment_method_types`, `Subscription.CreateParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, and `Subscription.UpdateParamsPaymentSetting.payment_method_types` - * Add support for `pricing` on `Invoice.AddLinesParamsLine`, `Invoice.UpdateLinesParamsLine`, `InvoiceItem.CreateParams`, `InvoiceItem.UpdateParams`, `InvoiceItem`, `InvoiceLineItem.UpdateParams`, and `InvoiceLineItem` - * Add support for `taxability_reason` on `Invoice.AddLinesParamsLineTaxAmount`, `Invoice.UpdateLinesParamsLineTaxAmount`, and `InvoiceLineItem.UpdateParamsTaxAmount` - * Add support for `jurisdiction_level` on `Invoice.AddLinesParamsLineTaxAmountTaxRateDatum`, `Invoice.UpdateLinesParamsLineTaxAmountTaxRateDatum`, and `InvoiceLineItem.UpdateParamsTaxAmountTaxRateDatum` - * Add support for `amount_overpaid`, `confirmation_secret`, and `payments` on `Invoice` - * Add support for `parent` on `InvoiceItem`, `InvoiceLineItem`, and `Invoice` - * Add support for new value `expired` on enums `IssuingAuthorization.status` and `issuing.Authorization.ListParams.status` - * Add support for new value `network_fallback` on enum `IssuingAuthorization.RequestHistory.reason` - * Add support for `naver_pay` on `Mandate.PaymentMethodDetail` and `SetupAttempt.PaymentMethodDetail` - * Add support for `setup_future_usage` on `PaymentIntent.ConfirmParamsPaymentMethodOptionNaverPay`, `PaymentIntent.CreateParamsPaymentMethodOptionNaverPay`, `PaymentIntent.PaymentMethodOption.NaverPay`, and `PaymentIntent.UpdateParamsPaymentMethodOptionNaverPay` - * Add support for `default_value` on `PaymentLink.CreateParamsCustomFieldDropdown`, `PaymentLink.CreateParamsCustomFieldNumeric`, `PaymentLink.CreateParamsCustomFieldText`, `PaymentLink.CustomField.Dropdown`, `PaymentLink.CustomField.Numeric`, `PaymentLink.CustomField.Text`, `PaymentLink.UpdateParamsCustomFieldDropdown`, `PaymentLink.UpdateParamsCustomFieldNumeric`, and `PaymentLink.UpdateParamsCustomFieldText` - * Add support for new values `billie` and `satispay` on enums `PaymentLink.CreateParams.payment_method_types`, `PaymentLink.UpdateParams.payment_method_types`, and `PaymentLink.payment_method_types` - * Add support for `nz_bank_transfer` on `Refund.DestinationDetail` - * Add support for new value `canceled` on enum `Review.closed_reason` - * Add support for `current_period_end` and `current_period_start` on `SubscriptionItem` - * Add support for `wifi` on `TerminalConfiguration`, `terminal.Configuration.CreateParams`, and `terminal.Configuration.UpdateParams` - * Add support for new value `invoice.overpaid` on enums `WebhookEndpoint.CreateParams.enabled_events` and `WebhookEndpoint.UpdateParams.enabled_events` - * Add support for new values `2025-03-01.dashboard` and `2025-03-31.basil` on enum `WebhookEndpoint.CreateParams.api_version` - -### ⚠️ Other Breaking changes in the SDK -* [#1474](https://github.com/stripe/stripe-python/pull/1474) Rename `StripeStreamResponseAsync`'s `.read()` to `read_async()` for consistency - * Rename `StripeStreamResponseAsync.read()` to `.read_async()` - * This brings the method name in line with the conventions used by every other async method in the package, ensuring consistent `async` usage. - * You'll need to update your code if you call `Quote.pdf_async().read()` method. A typechecker will alert you to this change. -* [#1471](https://github.com/stripe/stripe-python/pull/1471) Fix incorrect property name on `ThinEvent.related_object.type` - * Rename `ThinEvent.related_object.type_` to `ThinEvent.related_object.type` - * This was an unintentional typo before. The property name now correctly matches the value you get back from the API - -## 11.7.0b1 - 2025-03-18 -* [#1469](https://github.com/stripe/stripe-python/pull/1469) Beta SDK updates between Open API versions 1473 and 1505 - - * Add support for `target_date` on parameter classes `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit`, `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit`, `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit`, and `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit` and resource classes `stripe.Order.Payment.Settings.PaymentMethodOptions.AcssDebit` and `stripe.Order.Payment.Settings.PaymentMethodOptions.SepaDebit` - * Add support for `succeed_input_collection` and `timeout_input_collection` on resource `stripe.terminal.Reader` -* [#1467](https://github.com/stripe/stripe-python/pull/1467) Merge python-beta - -## 11.6.0 - 2025-02-24 -* [#1450](https://github.com/stripe/stripe-python/pull/1450) Update generated code - * Add support for `target_date` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsAcssDebit`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsAuBecsDebit`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsBacsDebit`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsSepaDebit`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccount`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsAcssDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsAuBecsDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsBacsDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsSepaDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccount`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsAcssDebit`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsAuBecsDebit`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsBacsDebit`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsSepaDebit`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccount`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsAcssDebit`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsAuBecsDebit`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebit`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebit`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsUsBankAccount` and resource classes `stripe.PaymentIntent.PaymentMethodOptions.AcssDebit`, `stripe.PaymentIntent.PaymentMethodOptions.AuBecsDebit`, `stripe.PaymentIntent.PaymentMethodOptions.BacsDebit`, `stripe.PaymentIntent.PaymentMethodOptions.SepaDebit`, `stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount`, `stripe.checkout.Session.PaymentMethodOptions.AcssDebit`, `stripe.checkout.Session.PaymentMethodOptions.AuBecsDebit`, `stripe.checkout.Session.PaymentMethodOptions.BacsDebit`, `stripe.checkout.Session.PaymentMethodOptions.SepaDebit`, and `stripe.checkout.Session.PaymentMethodOptions.UsBankAccount` - * Add support for `metadata` on parameter class `stripe.Product.CreateParamsDefaultPriceData` - * Add support for `prices` on parameter classes `stripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope` and `stripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope` and resource class `stripe.billing.CreditGrant.ApplicabilityConfig.Scope` - * Add support for `priority` on parameter class `stripe.billing.CreditGrant.CreateParams` and resource `stripe.billing.CreditGrant` - * Add support for `restrictions` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card` - * Add support for `collected_information` on parameter class `stripe.checkout.Session.ModifyParams` and resource `stripe.checkout.Session` - * Change type of `price_type` on `stripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope` and `stripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope` from `Literal['metered']` to `NotRequired[Literal['metered']]` - * Change type of `price_type` on `stripe.billing.CreditGrant.ApplicabilityConfig.Scope` from `Literal['metered']` to `Optional[Literal['metered']]` - * Add support for `2025-02-24.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version` -* [#1461](https://github.com/stripe/stripe-python/pull/1461) Remove incorrect changelog entry about parse_snapshot_event -* [#1457](https://github.com/stripe/stripe-python/pull/1457) add codeowners file -* [#1456](https://github.com/stripe/stripe-python/pull/1456) upgrade ruff version -* [#1452](https://github.com/stripe/stripe-python/pull/1452) Revert "Bump version to 11.5.0" -* [#1451](https://github.com/stripe/stripe-python/pull/1451) Upgrade to download-artifact@v4 -* [#1443](https://github.com/stripe/stripe-python/pull/1443) Update generated code - * Add support for `pay_by_bank_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `directorship_declaration` on resource class `stripe.Account.Company` and parameter classes `stripe.Account.CreateParamsCompany` and `stripe.Token.CreateParamsAccountCompany` - * Add support for `ownership_exemption_reason` on resource class `stripe.Account.Company` and parameter classes `stripe.Account.CreateParamsCompany` and `stripe.Token.CreateParamsAccountCompany` - * Add support for `proof_of_ultimate_beneficial_ownership` on parameter class `stripe.Account.CreateParamsDocuments` - * Add support for `financial_account` on resource classes `stripe.AccountSession.Components` and `stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `issuing_card` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `advice_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError` - * Add support for `country` on resource classes `stripe.Charge.PaymentMethodDetails.Paypal`, `stripe.ConfirmationToken.PaymentMethodPreview.Paypal`, and `stripe.PaymentMethod.Paypal` - * Add support for `pay_by_bank` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `phone_number_collection` on parameter class `stripe.PaymentLink.ModifyParams` - * Add support for `discounts` on resource `stripe.checkout.Session` - * Add support for `jpy` on parameter classes `stripe.terminal.Configuration.CreateParamsTipping` and `stripe.terminal.Configuration.ModifyParamsTipping` and resource class `stripe.terminal.Configuration.Tipping` - * Add support for `nickname` on parameter classes `stripe.treasury.FinancialAccount.CreateParams` and `stripe.treasury.FinancialAccount.ModifyParams` and resource `stripe.treasury.FinancialAccount` - * Add support for `forwarding_settings` on parameter class `stripe.treasury.FinancialAccount.ModifyParams` - * Add support for `_cls_close` on resource `stripe.treasury.FinancialAccount` - * Add support for `close` on resource `stripe.treasury.FinancialAccount` - * Add support for `is_default` on resource `stripe.treasury.FinancialAccount` - * Add support for `destination_payment_method_data` on parameter class `stripe.treasury.OutboundTransfer.CreateParams` - * Add support for `outbound_transfer` on resource class `stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails` - * Add support for `SD` on enums `stripe.checkout.Session.ShippingAddressCollection.allowed_countries`, `stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries`, `stripe.PaymentLink.ShippingAddressCollection.allowed_countries`, `stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries`, and `stripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries` - * Add support for `pay_by_bank` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `financial_account` on enum `stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type` - * Add support for `outbound_transfer` on enums `stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type` and `stripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type` - * Add support for `2025-01-27.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version` - * Change type of `pretax_credit_amounts` on `stripe.CreditNote` and `stripe.CreditNoteLineItem` from `Optional[List[PretaxCreditAmount]]` to `List[PretaxCreditAmount]` -* [#1448](https://github.com/stripe/stripe-python/pull/1448) Updated upload artifact ci action -* [#1446](https://github.com/stripe/stripe-python/pull/1446) add just to publish CI -* [#1444](https://github.com/stripe/stripe-python/pull/1444) Added CONTRIBUTING.md file -* [#1445](https://github.com/stripe/stripe-python/pull/1445) minor justfile fixes & pin CI version -* [#1440](https://github.com/stripe/stripe-python/pull/1440) add justfile, update readme, remove coveralls -* [#1442](https://github.com/stripe/stripe-python/pull/1442) Fix V2 ListObject.data type hint - - Change `stripe.v2.ListObject.data` type hint from `List[StripeObject]` to `List[T]` where T is the specific stripe object contained within the list - -## 11.6.0b1 - 2025-02-07 -* [#1449](https://github.com/stripe/stripe-python/pull/1449) Update generated code for beta - * Add support for `rejected_reason` on resource class `stripe.Account.RiskControls` - * Add support for `product_tax_code_selector` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `brand_product` on resource classes `stripe.Charge.PaymentMethodDetails.AmazonPay.Funding.Card` and `stripe.Charge.PaymentMethodDetails.RevolutPay.Funding.Card` - * Add support for `prices` on parameter classes `stripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope` and `stripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope` and resource class `stripe.billing.CreditGrant.ApplicabilityConfig.Scope` - * Add support for `restrictions` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card` - * Change type of `political_exposure` on `stripe.Account.CreatePersonParams`, `stripe.Account.ModifyPersonParams`, and `stripe.Token.CreateParamsPerson` from `str` to `Literal['existing', 'none']` - * Change type of `price_type` on `stripe.billing.CreditGrant.ApplicabilityConfig.Scope` from `Literal['metered']` to `Optional[Literal['metered']]` - -## 11.5.0 - 2025-01-27 -* [#1443](https://github.com/stripe/stripe-python/pull/1443) Update generated code - * Add support for `pay_by_bank_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `directorship_declaration` on resource class `stripe.Account.Company` and parameter classes `stripe.Account.CreateParamsCompany` and `stripe.Token.CreateParamsAccountCompany` - * Add support for `ownership_exemption_reason` on resource class `stripe.Account.Company` and parameter classes `stripe.Account.CreateParamsCompany` and `stripe.Token.CreateParamsAccountCompany` - * Add support for `proof_of_ultimate_beneficial_ownership` on parameter class `stripe.Account.CreateParamsDocuments` - * Add support for `financial_account` on resource classes `stripe.AccountSession.Components` and `stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `issuing_card` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `advice_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError` - * Add support for `country` on resource classes `stripe.Charge.PaymentMethodDetails.Paypal`, `stripe.ConfirmationToken.PaymentMethodPreview.Paypal`, and `stripe.PaymentMethod.Paypal` - * Add support for `pay_by_bank` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `phone_number_collection` on parameter class `stripe.PaymentLink.ModifyParams` - * Add support for `discounts` on resource `stripe.checkout.Session` - * Add support for `jpy` on parameter classes `stripe.terminal.Configuration.CreateParamsTipping` and `stripe.terminal.Configuration.ModifyParamsTipping` and resource class `stripe.terminal.Configuration.Tipping` - * Add support for `nickname` on parameter classes `stripe.treasury.FinancialAccount.CreateParams` and `stripe.treasury.FinancialAccount.ModifyParams` and resource `stripe.treasury.FinancialAccount` - * Add support for `forwarding_settings` on parameter class `stripe.treasury.FinancialAccount.ModifyParams` - * Add support for `_cls_close` on resource `stripe.treasury.FinancialAccount` - * Add support for `close` on resource `stripe.treasury.FinancialAccount` - * Add support for `is_default` on resource `stripe.treasury.FinancialAccount` - * Add support for `destination_payment_method_data` on parameter class `stripe.treasury.OutboundTransfer.CreateParams` - * Add support for `outbound_transfer` on resource class `stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails` - * Add support for `SD` on enums `stripe.checkout.Session.ShippingAddressCollection.allowed_countries`, `stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries`, `stripe.PaymentLink.ShippingAddressCollection.allowed_countries`, `stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries`, and `stripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries` - * Add support for `pay_by_bank` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `financial_account` on enum `stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type` - * Add support for `outbound_transfer` on enums `stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type` and `stripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type` - * Add support for `2025-01-27.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version` - * Change type of `pretax_credit_amounts` on `stripe.CreditNote` and `stripe.CreditNoteLineItem` from `Optional[List[PretaxCreditAmount]]` to `List[PretaxCreditAmount]` -* [#1451](https://github.com/stripe/stripe-python/pull/1451) Upgrade to download-artifact@v4 -* [#1448](https://github.com/stripe/stripe-python/pull/1448) Updated upload artifact ci action -* [#1446](https://github.com/stripe/stripe-python/pull/1446) add just to publish CI -* [#1444](https://github.com/stripe/stripe-python/pull/1444) Added CONTRIBUTING.md file -* [#1445](https://github.com/stripe/stripe-python/pull/1445) minor justfile fixes & pin CI version -* [#1440](https://github.com/stripe/stripe-python/pull/1440) add justfile, update readme, remove coveralls -* [#1442](https://github.com/stripe/stripe-python/pull/1442) Fix V2 ListObject.data type hint - - Change `stripe.v2.ListObject.data` type hint from `List[StripeObject]` to `List[T]` where T is the specific stripe object contained within the list - -## 11.5.0b3 - 2025-01-23 -* [#1447](https://github.com/stripe/stripe-python/pull/1447) Update generated code for beta - * Remove support for `stripe_account` on resource classes `stripe.terminal.Reader.Action.CollectPaymentMethod`, `stripe.terminal.Reader.Action.ConfirmPaymentIntent`, `stripe.terminal.Reader.Action.ProcessPaymentIntent`, and `stripe.terminal.Reader.Action.RefundPayment` - -## 11.5.0b2 - 2025-01-17 -* [#1439](https://github.com/stripe/stripe-python/pull/1439) Update generated code for beta - * Add support for `pay_by_bank_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `directorship_declaration` on parameter classes `stripe.Account.CreateParamsCompany` and `stripe.Token.CreateParamsAccountCompany` - * Add support for `proof_of_ultimate_beneficial_ownership` on parameter class `stripe.Account.CreateParamsDocuments` - * Add support for `financial_account` on resource class `stripe.AccountSession.Components` - * Add support for `issuing_card` on resource class `stripe.AccountSession.Components` - * Add support for `tax_threshold_monitoring` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `pay_by_bank` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `discounts` on resource `stripe.checkout.Session` - * Add support for `jpy` on parameter classes `stripe.terminal.Configuration.CreateParamsTipping` and `stripe.terminal.Configuration.ModifyParamsTipping` and resource class `stripe.terminal.Configuration.Tipping` - * Add support for `always_invoice` on enums `stripe.billing_portal.Configuration.Features.SubscriptionCancel.proration_behavior`, `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionCancel.proration_behavior`, and `stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionCancel.proration_behavior` - * Add support for `SD` on enums `stripe.checkout.Session.ShippingAddressCollection.allowed_countries`, `stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries`, `stripe.PaymentLink.ShippingAddressCollection.allowed_countries`, `stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries`, and `stripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries` - * Add support for `pay_by_bank` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `2025-01-27.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version` - -## 11.5.0b1 - 2025-01-09 -* [#1433](https://github.com/stripe/stripe-python/pull/1433) Update generated code for beta - * Add support for `directorship_declaration` on resource class `stripe.Account.Company` - * Add support for `ownership_exemption_reason` on resource class `stripe.Account.Company` and parameter classes `stripe.Account.CreateParamsCompany` and `stripe.Token.CreateParamsAccountCompany` - * Add support for `brand_product` on resource `stripe.Card` and resource classes `stripe.Source.Card`, `stripe.Source.CardPresent`, and `stripe.Source.ThreeDSecure` - * Add support for `advice_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.QuotePreviewInvoice.LastFinalizationError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError` - * Add support for `country` on resource classes `stripe.Charge.PaymentMethodDetails.Paypal`, `stripe.ConfirmationToken.PaymentMethodPreview.Paypal`, and `stripe.PaymentMethod.Paypal` - * Add support for `phone_number_collection` on parameter class `stripe.PaymentLink.ModifyParams` - * Add support for `nickname` on parameter classes `stripe.treasury.FinancialAccount.CreateParams` and `stripe.treasury.FinancialAccount.ModifyParams` and resource `stripe.treasury.FinancialAccount` - * Add support for `forwarding_settings` on parameter class `stripe.treasury.FinancialAccount.ModifyParams` - * Add support for `_cls_close` on resource `stripe.treasury.FinancialAccount` - * Add support for `close` on resource `stripe.treasury.FinancialAccount` - * Add support for `is_default` on resource `stripe.treasury.FinancialAccount` - * Add support for `destination_payment_method_data` on parameter class `stripe.treasury.OutboundTransfer.CreateParams` - * Add support for `financial_account` on resource class `stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails` - * Add support for `outbound_transfer` on resource class `stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails` - * Remove support for `always_invoice` on enums `stripe.billing_portal.Configuration.Features.SubscriptionCancel.proration_behavior`, `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionCancel.proration_behavior`, and `stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionCancel.proration_behavior` - * Add support for `al_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `financial_account` on enum `stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type` - * Add support for `outbound_transfer` on enums `stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type` and `stripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type` - * Change type of `pretax_credit_amounts` on `stripe.CreditNote` and `stripe.CreditNoteLineItem` from `Optional[List[PretaxCreditAmount]]` to `List[PretaxCreditAmount]` - -## 11.4.1 - 2024-12-19 -* [#1438](https://github.com/stripe/stripe-python/pull/1438) Fix regression when using httpx HTTP client - -## 11.4.0 - 2024-12-18 -* [#1430](https://github.com/stripe/stripe-python/pull/1430) This release changes the pinned API version to `2024-12-18.acacia`. - * Add support for `allow_redisplay` on resources `stripe.Card` and `stripe.Source` - * Add support for `regulated_status` on resource `stripe.Card` and resource classes `stripe.Charge.PaymentMethodDetails.Card`, `stripe.ConfirmationToken.PaymentMethodPreview.Card`, and `stripe.PaymentMethod.Card` - * Add support for `network_advice_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError` - * Add support for `network_decline_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError` - * Add support for `funding` on resource classes `stripe.Charge.PaymentMethodDetails.AmazonPay` and `stripe.Charge.PaymentMethodDetails.RevolutPay` - * Add support for `network_transaction_id` on resource class `stripe.Charge.PaymentMethodDetails.Card` - * Add support for `visa_compliance` on resource classes `stripe.Dispute.Evidence.EnhancedEvidence` and `stripe.Dispute.EvidenceDetails.EnhancedEligibility` and parameter class `stripe.Dispute.ModifyParamsEvidenceEnhancedEvidence` - * Add support for `account_holder_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Iban`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.SortCode`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Zengin`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin` - * Add support for `bank_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Iban`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.SortCode`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Zengin`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin` - * Add support for `account_holder_name` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei` and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei` - * Add support for `disabled_reason` on resource classes `stripe.Invoice.AutomaticTax`, `stripe.Subscription.AutomaticTax`, `stripe.SubscriptionSchedule.DefaultSettings.AutomaticTax`, and `stripe.SubscriptionSchedule.Phase.AutomaticTax` - * Add support for `reference_prefix` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions` and resource classes `stripe.PaymentIntent.PaymentMethodOptions.BacsDebit.MandateOptions`, `stripe.PaymentIntent.PaymentMethodOptions.SepaDebit.MandateOptions`, `stripe.SetupIntent.PaymentMethodOptions.BacsDebit.MandateOptions`, `stripe.SetupIntent.PaymentMethodOptions.SepaDebit.MandateOptions`, `stripe.checkout.Session.PaymentMethodOptions.BacsDebit.MandateOptions`, and `stripe.checkout.Session.PaymentMethodOptions.SepaDebit.MandateOptions` - * Add support for `trial_period_days` on parameter class `stripe.PaymentLink.ModifyParamsSubscriptionData` - * Add support for `credits_application_invoice_voided` on resource class `stripe.billing.CreditBalanceTransaction.Credit` - * Add support for `tax_id` on resource classes `stripe.issuing.Authorization.MerchantData` and `stripe.issuing.Transaction.MerchantData` - * Add support for `al` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `am` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `ao` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `ba` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `bb` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `bs` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `cd` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `gn` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `kh` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `me` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `mk` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `mr` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `np` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `pe` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `sn` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `sr` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `tj` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `ug` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `uy` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `zm` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `zw` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `payout_minimum_balance_hold` on enum `stripe.BalanceTransaction.type` - * Add support for `payout_minimum_balance_release` on enum `stripe.BalanceTransaction.type` - * Add support for `credits_application_invoice_voided` on enum `stripe.billing.CreditBalanceTransaction.Credit.type` - * Add support for `al_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `am_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `ao_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `ba_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `bb_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `bs_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `cd_nif` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `gn_nif` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `kh_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `me_pib` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `mk_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `mr_nif` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `np_pan` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `sn_ninea` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `sr_fin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `tj_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `ug_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `zm_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `zw_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `request_signature` on enums `stripe.forwarding.Request.replacements` and `stripe.forwarding.Request.CreateParams.replacements` - * Add support for `2024-12-18.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version` - * Change type of `schedule_at_period_end` on `stripe.billing_portal.Configuration.Features.SubscriptionUpdate` from `Optional[ScheduleAtPeriodEnd]` to `ScheduleAtPeriodEnd` -* [#1434](https://github.com/stripe/stripe-python/pull/1434) Fix using `auto_paging_iter()` with `expand: [...]` -* [#1435](https://github.com/stripe/stripe-python/pull/1435) Fix StripeError http_body - - Fixes an issue where `StripeError.http_body` may be None even when `json_body` is a valid dictionary. -* [#1431](https://github.com/stripe/stripe-python/pull/1431) fix deprecation warning in httpx @ 0.28 - -## 11.4.0b3 - 2024-12-12 -* [#1429](https://github.com/stripe/stripe-python/pull/1429) Update generated code for beta - * Add support for `allow_redisplay` on resources `stripe.Card` and `stripe.Source` - * Add support for `account` on resource classes `stripe.terminal.Reader.Action.CollectPaymentMethod`, `stripe.terminal.Reader.Action.ConfirmPaymentIntent`, `stripe.terminal.Reader.Action.ProcessPaymentIntent`, and `stripe.terminal.Reader.Action.RefundPayment` - * Remove support for `amount_refunded` on resource `stripe.PaymentRecord` - * Add support for `am_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `ao_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `ba_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `bb_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `bs_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `cd_nif` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `gn_nif` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `kh_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `me_pib` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `mk_vat` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `mr_nif` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `np_pan` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `sn_ninea` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `sr_fin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `tj_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `ug_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `zm_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `zw_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Add support for `network_fallback` on enum `stripe.issuing.Authorization.RequestHistory.reason` - -## 11.4.0b2 - 2024-12-05 -* [#1426](https://github.com/stripe/stripe-python/pull/1426) Update generated code for beta - * Add support for `automatic_indirect_tax` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `disabled_reason` on resource classes `stripe.Invoice.AutomaticTax`, `stripe.QuotePreviewInvoice.AutomaticTax`, `stripe.QuotePreviewSubscriptionSchedule.DefaultSettings.AutomaticTax`, `stripe.QuotePreviewSubscriptionSchedule.Phase.AutomaticTax`, `stripe.Subscription.AutomaticTax`, `stripe.SubscriptionSchedule.DefaultSettings.AutomaticTax`, and `stripe.SubscriptionSchedule.Phase.AutomaticTax` - * Add support for `reference_prefix` on parameter classes `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions` and resource classes `stripe.Order.Payment.Settings.PaymentMethodOptions.SepaDebit.MandateOptions`, `stripe.PaymentIntent.PaymentMethodOptions.BacsDebit.MandateOptions`, `stripe.PaymentIntent.PaymentMethodOptions.SepaDebit.MandateOptions`, `stripe.SetupIntent.PaymentMethodOptions.BacsDebit.MandateOptions`, `stripe.SetupIntent.PaymentMethodOptions.SepaDebit.MandateOptions`, `stripe.checkout.Session.PaymentMethodOptions.BacsDebit.MandateOptions`, and `stripe.checkout.Session.PaymentMethodOptions.SepaDebit.MandateOptions` - * Add support for `trial_period_days` on parameter class `stripe.PaymentLink.ModifyParamsSubscriptionData` - * Add support for `payout_minimum_balance_hold` on enum `stripe.BalanceTransaction.type` - * Add support for `payout_minimum_balance_release` on enum `stripe.BalanceTransaction.type` - -## 11.4.0b1 - 2024-11-21 -* [#1425](https://github.com/stripe/stripe-python/pull/1425) Update generated code for beta - * Add support for `network_advice_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.QuotePreviewInvoice.LastFinalizationError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError` - * Add support for `network_decline_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.QuotePreviewInvoice.LastFinalizationError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError` - * Add support for `funding` on resource classes `stripe.Charge.PaymentMethodDetails.AmazonPay` and `stripe.Charge.PaymentMethodDetails.RevolutPay` - * Add support for `amount_requested` on resource class `stripe.Charge.PaymentMethodDetails.Card` - * Add support for `partial_authorization` on resource class `stripe.Charge.PaymentMethodDetails.Card` - * Add support for `adjustable_quantity` on resource `stripe.LineItem` - * Add support for `display` on resource `stripe.LineItem` - * Add support for `metadata` on resource `stripe.LineItem` and parameter class `stripe.checkout.Session.CreateParamsLineItem` - * Add support for `request_partial_authorization` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCard`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCard`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCard` and resource class `stripe.PaymentIntent.PaymentMethodOptions.Card` - * Add support for `payment_method_options` on parameter class `stripe.PaymentIntent.IncrementAuthorizationParams` - * Add support for `line_items` on parameter classes `stripe.checkout.Session.CreateParamsPermissionsUpdate` and `stripe.checkout.Session.ModifyParams` and resource class `stripe.checkout.Session.Permissions.Update` - * Change type of `schedule_at_period_end` on `stripe.billing_portal.Configuration.Features.SubscriptionUpdate` from `Optional[ScheduleAtPeriodEnd]` to `ScheduleAtPeriodEnd` - * Add support for `invoice.overpaid` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - -## 11.3.0 - 2024-11-20 -* [#1424](https://github.com/stripe/stripe-python/pull/1424) This release changes the pinned API version to `2024-11-20.acacia`. - * Add support for `authorizer` on parameter classes `stripe.Account.CreatePersonParamsRelationship`, `stripe.Account.ListPersonsParamsRelationship`, `stripe.Account.ModifyPersonParamsRelationship`, `stripe.Account.PersonsParamsRelationship`, and `stripe.Token.CreateParamsPersonRelationship` and resource class `stripe.Person.Relationship` - * Add support for `account_holder_address`, `account_holder_name`, `account_type` and `bank_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift` - * Add support for `submit_type` on parameter class `stripe.PaymentLink.ModifyParams` - * Add support for `trace_id` on resource `stripe.Payout` - * Add support for `network_decline_code` on resource classes `stripe.Refund.DestinationDetails.Blik` and `stripe.Refund.DestinationDetails.Swish` - * Add support for `adaptive_pricing` on parameter class `stripe.checkout.Session.CreateParams` and resource `stripe.checkout.Session` - * Add support for `mandate_options` on parameter classes `stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebit` and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebit` and resource classes `stripe.checkout.Session.PaymentMethodOptions.BacsDebit` and `stripe.checkout.Session.PaymentMethodOptions.SepaDebit` - * Add support for `request_extended_authorization`, `request_incremental_authorization`, `request_multicapture` and `request_overcapture` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card` - * Add support for `capture_method` on parameter classes `stripe.checkout.Session.CreateParamsPaymentMethodOptionsKakaoPay`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsKrCard`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsNaverPay`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsPayco`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSamsungPay` - * Add support for `merchant_amount` and `merchant_currency` on parameter class `stripe.issuing.Authorization.CreateParams` - * Add support for `fraud_challenges`, `verified_by_fraud_challenge` and `respond` on resource `stripe.issuing.Authorization` - * Change type of `disabled_reason` on `stripe.Account.FutureRequirements` and `stripe.Account.Requirements` from `str` to `Literal['action_required.requested_capabilities', 'listed', 'other', 'platform_paused', 'rejected.fraud', 'rejected.incomplete_verification', 'rejected.listed', 'rejected.other', 'rejected.platform_fraud', 'rejected.platform_other', 'rejected.platform_terms_of_service', 'rejected.terms_of_service', 'requirements.past_due', 'requirements.pending_verification', 'under_review']` - * Change type of `disable_stripe_user_authentication` on `stripe.AccountSession.Components.AccountManagement.Features`, `stripe.AccountSession.Components.AccountOnboarding.Features`, `stripe.AccountSession.Components.Balances.Features`, `stripe.AccountSession.Components.NotificationBanner.Features`, and `stripe.AccountSession.Components.Payouts.Features` from `Optional[bool]` to `bool` - * Add support for `subscribe` on enums `stripe.checkout.Session.submit_type`, `stripe.checkout.Session.CreateParams.submit_type`, `stripe.PaymentLink.submit_type`, and `stripe.PaymentLink.CreateParams.submit_type` - * Add support for `li_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `financial_account_statement` on enums `stripe.File.purpose` and `stripe.File.ListParams.purpose` - * Add support for `service_tax` on enums `stripe.Invoice.AddLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.Invoice.UpdateLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type`, `stripe.tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.TaxRate.tax_type`, `stripe.TaxRate.CreateParams.tax_type`, and `stripe.TaxRate.ModifyParams.tax_type` - * Add support for `link` on enums `stripe.PaymentIntent.PaymentMethodOptions.Card.network`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCard.network`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCard.network`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.PaymentMethodOptions.Card.network`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsCard.network`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.Card.network`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCard.network`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCard.network` - * Add support for `2024-11-20.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version` - * Change type of `amount` on `stripe.issuing.Authorization.CreateParams` from `int` to `NotRequired[int]` - * Change type of `origin_payment_method` on `stripe.treasury.InboundTransfer` from `str` to `Optional[str]` - -## 11.3.0b3 - 2024-11-14 -* [#1422](https://github.com/stripe/stripe-python/pull/1422) Update generated code for beta - * Add support for `account_holder_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Iban`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.SortCode`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Zengin`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin` - * Add support for `bank_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Iban`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.SortCode`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Zengin`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin` - * Add support for `account_holder_name` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei` and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei` - * Add support for `subscribe` on enum `stripe.PaymentLink.ModifyParams.submit_type` - -## 11.3.0b2 - 2024-11-07 -* [#1421](https://github.com/stripe/stripe-python/pull/1421) Update generated code for beta - * Add support for `card_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardFeatures` - * Add support for `card_spend_dispute_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardFeatures` - * Add support for `cardholder_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardFeatures` - * Add support for `spend_control_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardFeatures` - * Add support for `disable_stripe_user_authentication` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardsListFeatures` - * Add support for `account_holder_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift` - * Add support for `account_holder_name` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift` - * Add support for `account_type` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift` - * Add support for `bank_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift` - * Add support for `payment_record` on parameter class `stripe.Invoice.AttachPaymentParams` and resource class `stripe.InvoicePayment.Payment` - * Add support for `amount_overpaid` on resources `stripe.Invoice` and `stripe.QuotePreviewInvoice` - * Add support for resource `stripe.PaymentAttemptRecord` - * Add support for `submit_type` on parameter class `stripe.PaymentLink.ModifyParams` - * Add support for resource `stripe.PaymentRecord` - * Add support for `adaptive_pricing` on parameter class `stripe.checkout.Session.CreateParams` and resource `stripe.checkout.Session` - * Add support for `mandate_options` on parameter classes `stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebit` and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebit` and resource classes `stripe.checkout.Session.PaymentMethodOptions.BacsDebit` and `stripe.checkout.Session.PaymentMethodOptions.SepaDebit` - * Add support for `request_decremental_authorization` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card` - * Add support for `request_extended_authorization` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card` - * Add support for `request_incremental_authorization` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card` - * Add support for `request_multicapture` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card` - * Add support for `request_overcapture` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card` - * Add support for `capture_method` on parameter classes `stripe.checkout.Session.CreateParamsPaymentMethodOptionsKakaoPay`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsKrCard`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsNaverPay`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsPayco`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSamsungPay` - * Add support for `merchant_amount` on parameter class `stripe.issuing.Authorization.CreateParams` - * Add support for `merchant_currency` on parameter class `stripe.issuing.Authorization.CreateParams` - * Add support for resource `stripe.issuing.FraudLiabilityDebit` - * Remove support for `money_movement` on parameter class `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures` - * Remove support for `out_of_band_payment` on parameter class `stripe.Invoice.AttachPaymentParams` and resource class `stripe.InvoicePayment.Payment` - * Change type of `disabled_reason` on `stripe.Account.FutureRequirements` and `stripe.Account.Requirements` from `str` to `Literal['action_required.requested_capabilities', 'listed', 'other', 'platform_paused', 'rejected.fraud', 'rejected.incomplete_verification', 'rejected.listed', 'rejected.other', 'rejected.platform_fraud', 'rejected.platform_other', 'rejected.platform_terms_of_service', 'rejected.terms_of_service', 'requirements.past_due', 'requirements.pending_verification', 'under_review']` - * Change type of `disable_stripe_user_authentication` on `stripe.AccountSession.Components.AccountManagement.Features`, `stripe.AccountSession.Components.AccountOnboarding.Features`, `stripe.AccountSession.Components.Balances.Features`, `stripe.AccountSession.Components.NotificationBanner.Features`, and `stripe.AccountSession.Components.Payouts.Features` from `Optional[bool]` to `bool` - * Add support for `li_vat` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `invoice.payment_attempt_required` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `issuing_fraud_liability_debit.created` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `custom` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `service_tax` on enums `stripe.Invoice.AddLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.Invoice.UpdateLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type`, `stripe.tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.TaxRate.tax_type`, `stripe.TaxRate.CreateParams.tax_type`, and `stripe.TaxRate.ModifyParams.tax_type` - * Add support for `payment_record` on enum `stripe.InvoicePayment.Payment.type` - * Add support for `link` on enums `stripe.PaymentIntent.PaymentMethodOptions.Card.network`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCard.network`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCard.network`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.PaymentMethodOptions.Card.network`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsCard.network`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.Card.network`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCard.network`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCard.network` - * Change type of `amount` on `stripe.issuing.Authorization.CreateParams` from `int` to `NotRequired[int]` - * Change type of `origin_payment_method` on `stripe.treasury.InboundTransfer` from `str` to `Optional[str]` - -## 11.3.0b1 - 2024-10-29 -* [#1417](https://github.com/stripe/stripe-python/pull/1417) Update generated code for beta - * Add support for `id_bank_transfer_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `bank_bca_onboarding` on parameter class `stripe.Account.CreateParamsSettings` and resource class `stripe.Account.Settings` - * Add support for `send_money` on parameter class `stripe.AccountSession.CreateParamsComponentsRecipientsFeatures` - * Add support for `id_bank_transfer` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.Invoice.PaymentSettings.PaymentMethodOptions`, `stripe.PaymentIntent.PaymentMethodOptions`, `stripe.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions`, `stripe.Refund.DestinationDetails`, `stripe.SetupAttempt.PaymentMethodDetails`, and `stripe.Subscription.PaymentSettings.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptions`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptions`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptions`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `_cls_trigger_action` on resource `stripe.PaymentIntent` - * Add support for `trigger_action` on resource `stripe.PaymentIntent` - * Add support for `gopay` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for `qris` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for `shopeepay` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for `id_bank_transfer` on enums `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Change type of `enhanced_eligibility_types` on `stripe.Dispute` from `Optional[List[Literal['visa_compelling_evidence_3']]]` to `List[Literal['visa_compelling_evidence_3']]` - * Change type of `enhanced_evidence` on `stripe.Dispute.Evidence` from `Optional[EnhancedEvidence]` to `EnhancedEvidence` - * Change type of `enhanced_eligibility` on `stripe.Dispute.EvidenceDetails` from `Optional[EnhancedEligibility]` to `EnhancedEligibility` - * Remove support for `payout_statement_descriptor_profanity` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - -## 11.2.0 - 2024-10-29 -* [#1411](https://github.com/stripe/stripe-python/pull/1411) This release changes the pinned API version to `2024-10-28.acacia`. - * Add support for resource `stripe.v2.EventDestinations` - * Add support for `create`, `retrieve`, `update`, `list`, `delete`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` - * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, `samsung_pay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `groups` on parameter class `stripe.Account.CreateParams` and resource `stripe.Account` - * Add support for `disable_stripe_user_authentication` on resource classes `stripe.AccountSession.Components.AccountManagement.Features`, `stripe.AccountSession.Components.AccountOnboarding.Features`, `stripe.AccountSession.Components.Balances.Features`, `stripe.AccountSession.Components.NotificationBanner.Features`, and `stripe.AccountSession.Components.Payouts.Features` and parameter classes `stripe.AccountSession.CreateParamsComponentsAccountManagementFeatures`, `stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures`, `stripe.AccountSession.CreateParamsComponentsBalancesFeatures`, `stripe.AccountSession.CreateParamsComponentsNotificationBannerFeatures`, and `stripe.AccountSession.CreateParamsComponentsPayoutsFeatures` - * Add support for `alma` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, and `stripe.Refund.DestinationDetails`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `kakao_pay`, `kr_card` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.Mandate.PaymentMethodDetails`, `stripe.PaymentIntent.PaymentMethodOptions`, `stripe.SetupAttempt.PaymentMethodDetails`, and `stripe.checkout.Session.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resource `stripe.PaymentMethod` - * Add support for `naver_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, and `stripe.checkout.Session.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resource `stripe.PaymentMethod` - * Add support for `payco`, `samsung_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, and `stripe.checkout.Session.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resource `stripe.PaymentMethod` - * Add support for `enhanced_evidence` on resource class `stripe.Dispute.Evidence` and parameter class `stripe.Dispute.ModifyParamsEvidence` - * Add support for `enhanced_eligibility` on resource class `stripe.Dispute.EvidenceDetails` - * Add support for `enhanced_eligibility_types` on resource `stripe.Dispute` - * Add support for `automatically_finalizes_at` on parameter classes `stripe.Invoice.CreateParams` and `stripe.Invoice.ModifyParams` - * Add support for `amazon_pay` on resource `stripe.PaymentMethodDomain` - * Add support for `flat_amount`, `rate_type` on resource `stripe.TaxRate` and resource class `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails` - * Add support for `schedule_at_period_end` on parameter classes `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate` and `stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionUpdate` and resource class `stripe.billing_portal.Configuration.Features.SubscriptionUpdate` - * Add support for `metadata` on parameter class `stripe.forwarding.Request.CreateParams` and resource `stripe.forwarding.Request` - * Add support for `_cls_submit_card` on resource `stripe.issuing.Card` - * Add support for `submit_card` on resource `stripe.issuing.Card` - * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, `uz` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `pln` on parameter classes `stripe.terminal.Configuration.CreateParamsTipping` and `stripe.terminal.Configuration.ModifyParamsTipping` and resource class `stripe.terminal.Configuration.Tipping` - * Change type of `business_profile` on `stripe.billing_portal.Configuration.CreateParams` from `Configuration.CreateParamsBusinessProfile` to `NotRequired[Configuration.CreateParamsBusinessProfile]` - * Add support for `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, `uz_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `samsung_pay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `auto` on enum `stripe.Customer.ModifyParamsTax.validate_location` - * Add support for `issuing_transaction.purchase_details_receipt_updated`, `refund.failed` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `jp_credit_transfer` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `retail_delivery_fee` on enums `stripe.Invoice.AddLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.Invoice.UpdateLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type`, `stripe.tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.TaxRate.tax_type`, `stripe.TaxRate.CreateParams.tax_type`, and `stripe.TaxRate.ModifyParams.tax_type` - * Add support for `state_retail_delivery_fee` on enums `stripe.tax.Registration.CountryOptions.Us.type` and `stripe.tax.Registration.CreateParamsCountryOptionsUs.type` - * Add support for `2024-10-28.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version` - -## 11.2.0b3 - 2024-10-18 -* [#1413](https://github.com/stripe/stripe-python/pull/1413) Update generated code for beta - * Add support for `alma_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `gopay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `kakao_pay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `kr_card_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `naver_pay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `payco_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `qris_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `samsung_pay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `shopeepay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `treasury_evolve` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `treasury_fifth_third` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `treasury_goldman_sachs` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `alma` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, and `stripe.Refund.DestinationDetails`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `gopay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Add support for `qris` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Add support for `shopeepay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Add support for `amazon_pay` on resource `stripe.PaymentMethodDomain` - * Add support for `schedule_at_period_end` on parameter classes `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate` and `stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionUpdate` and resource class `stripe.billing_portal.Configuration.Features.SubscriptionUpdate` - * Add support for `metadata` on parameter class `stripe.forwarding.Request.CreateParams` - * Add support for `external_reference` on parameter class `stripe.tax.Form.ListParamsPayee` and resource class `stripe.tax.Form.Payee` - * Add support for `au_serr` on resource `stripe.tax.Form` - * Add support for `ca_mrdp` on resource `stripe.tax.Form` - * Add support for `eu_dac7` on resource `stripe.tax.Form` - * Add support for `gb_mrdp` on resource `stripe.tax.Form` - * Add support for `nz_mrdp` on resource `stripe.tax.Form` - * Add support for `pln` on parameter classes `stripe.terminal.Configuration.CreateParamsTipping` and `stripe.terminal.Configuration.ModifyParamsTipping` and resource class `stripe.terminal.Configuration.Tipping` - * Add support for `bank` on parameter classes `stripe.treasury.FinancialAccount.CreateParamsFeaturesFinancialAddressesAba`, `stripe.treasury.FinancialAccount.ModifyParamsFeaturesFinancialAddressesAba`, and `stripe.treasury.FinancialAccount.UpdateFeaturesParamsFinancialAddressesAba` and resource class `stripe.treasury.FinancialAccountFeatures.FinancialAddresses.Aba` - * Change type of `business_profile` on `stripe.billing_portal.Configuration.CreateParams` from `Configuration.CreateParamsBusinessProfile` to `NotRequired[Configuration.CreateParamsBusinessProfile]` - * Add support for `alma` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `gopay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `qris` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `shopeepay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `auto` on enum `stripe.Customer.ModifyParamsTax.validate_location` - * Add support for `jp_credit_transfer` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `kakao_pay` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `kr_card` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `naver_pay` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `payco` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `au_serr` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type` - * Add support for `ca_mrdp` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type` - * Add support for `eu_dac7` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type` - * Add support for `gb_mrdp` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type` - * Add support for `nz_mrdp` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type` - * Add support for `external_reference` on enums `stripe.tax.Form.Payee.type` and `stripe.tax.Form.ListParamsPayee.type` - * Remove support for `expired` on enums `stripe.issuing.Authorization.status` and `stripe.issuing.Authorization.ListParams.status` - -## 11.2.0b2 - 2024-10-08 -* [#1396](https://github.com/stripe/stripe-python/pull/1396) Update generated code for beta - * Add support for `groups` on parameter class `stripe.Account.CreateParams` and resource `stripe.Account` - * Add support for `disable_stripe_user_authentication` on resource classes `stripe.AccountSession.Components.AccountManagement.Features`, `stripe.AccountSession.Components.AccountOnboarding.Features`, `stripe.AccountSession.Components.Balances.Features`, `stripe.AccountSession.Components.NotificationBanner.Features`, and `stripe.AccountSession.Components.Payouts.Features` and parameter classes `stripe.AccountSession.CreateParamsComponentsAccountManagementFeatures`, `stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures`, `stripe.AccountSession.CreateParamsComponentsBalancesFeatures`, `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures`, `stripe.AccountSession.CreateParamsComponentsNotificationBannerFeatures`, and `stripe.AccountSession.CreateParamsComponentsPayoutsFeatures` - * Add support for `card_spend_dispute_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardsListFeatures` - * Add support for `spend_control_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardsListFeatures` - * Add support for `kakao_pay` and `kr_card` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.Mandate.PaymentMethodDetails`, `stripe.PaymentIntent.PaymentMethodOptions`, and `stripe.SetupAttempt.PaymentMethodDetails`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Add support for `naver_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Add support for `payco` and `samsung_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Add support for `line_items` on parameter classes `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsPaypal`, `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsPaypal`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsPaypal`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsPaypal`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsPaypal` and resource classes `stripe.Order.Payment.Settings.PaymentMethodOptions.Paypal` and `stripe.PaymentIntent.PaymentMethodOptions.Paypal` - * Add support for `flat_amount` on resource `stripe.TaxRate` and resource class `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails` - * Add support for `rate_type` on resource `stripe.TaxRate` and resource class `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails` - * Add support for `metadata` on resource `stripe.forwarding.Request` - * Add support for `_cls_submit_card` on resource `stripe.issuing.Card` - * Add support for `submit_card` on resource `stripe.issuing.Card` - * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `refund.failed` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `payout_statement_descriptor_profanity` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `retail_delivery_fee` on enums `stripe.Invoice.AddLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.Invoice.UpdateLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type`, `stripe.tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.TaxRate.tax_type`, `stripe.TaxRate.CreateParams.tax_type`, and `stripe.TaxRate.ModifyParams.tax_type` - * Add support for `expired` on enums `stripe.issuing.Authorization.status` and `stripe.issuing.Authorization.ListParams.status` - * Add support for `state_retail_delivery_fee` on enums `stripe.tax.Registration.CountryOptions.Us.type` and `stripe.tax.Registration.CreateParamsCountryOptionsUs.type` - -## 11.2.0b1 - 2024-10-03 -* [#1407](https://github.com/stripe/stripe-python/pull/1407) Updates beta branch with changes in master & update generated code - * Add support for `reporting_chart` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `total_pretax_credit_amounts` on resource `stripe.QuotePreviewInvoice` - * Add support for `allow_redisplay` on parameter class `stripe.terminal.Reader.CollectPaymentMethodParamsCollectConfig` - * Remove support for `from_schedule` on resource class `stripe.Quote.SubscriptionData` - * Move `raw_request` and related methods from `_raw_request` module to the `StripeClient` class - * Remove `_preview` module; use raw request methods in the `StripeClient` class instead - -## 11.1.1 - 2024-10-18 -* [#1414](https://github.com/stripe/stripe-python/pull/1414) Deserialize into correct v2 EventData types - * Fixes a bug where v2 EventData was not being deserialized into the appropriate type for `V1BillingMeterErrorReportTriggeredEvent` and `V1BillingMeterNoMeterFoundEvent` -* [#1415](https://github.com/stripe/stripe-python/pull/1415) update object tags for meter-related classes - - - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server. -* [#1412](https://github.com/stripe/stripe-python/pull/1412) Clean up examples - -## 11.1.0 - 2024-10-03 -* [#1409](https://github.com/stripe/stripe-python/pull/1409) Update the class for `ThinEvent` to include `livemode` -* [#1408](https://github.com/stripe/stripe-python/pull/1408) Update generated code - * Remove the support for resource `Margin` that was accidentally made public in the last release - -## 11.0.0 - 2024-10-01 -* [#1404](https://github.com/stripe/stripe-python/pull/1404) Support for APIs in the new API version 2024-09-30.acacia - - This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Changelog](https://docs.stripe.com/changelog/acacia#2024-09-30.acacia) and carefully review the API changes before upgrading. - - ### ⚠️ Breaking changes due to changes in the API - - - * Rename for `usage_threshold_config` to `usage_threshold` on parameter class `stripe.billing.Alert.CreateParams` and resource `stripe.billing.Alert` - * Remove support for `filter` on parameter class `stripe.billing.Alert.CreateParams` and resource `stripe.billing.Alert`. Use the filters on the `usage_threshold` instead - * * Remove support for `customer_consent_collected` on parameter class `stripe.terminal.Reader.ProcessSetupIntentParams` - - ### ⚠️ Other Breaking changes in the SDK - * Adjusted default values for HTTP requests. You can use the old defaults by setting them explicitly. New values are: - - max retries: `0` -> `2` - - max timeout (seconds): `2` -> `5` - - ### Additions - - * Add support for `custom_unit_amount` on parameter class `stripe.Product.CreateParamsDefaultPriceData` - * Add support for `usage_threshold` on parameter class `stripe.billing.Alert.CreateParams` and resource `stripe.billing.Alert` - * Add support for `allow_redisplay` on parameter classes `stripe.terminal.Reader.ProcessPaymentIntentParamsProcessConfig` and `stripe.terminal.Reader.ProcessSetupIntentParams` - * Add support for `international_transaction` on enum `stripe.treasury.ReceivedCredit.failure_code` - * Add support for `2024-09-30.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version` - * Add support for new Usage Billing APIs `stripe.v2.billing.MeterEvent`, `stripe.v2.billing.MeterEventAdjustments`, `stripe.v2.billing.MeterEventSession`, `stripe.v2.billing.MeterEventStream` and the new Events API `stripe.v2.core.Events` under the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview) - * Add method [rawRequest()](https://github.com/stripe/stripe-python/tree/master?tab=readme-ov-file#custom-requests) on the `StripeClient` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK. - * Add method `parse_thin_event()` on the `StripeClient` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview) - - ### Other changes - * Change type of `default_allowed_updates` on `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate` from `Union[Literal[''], List[Literal['price', 'promotion_code', 'quantity']]]` to `NotRequired[Literal['']|List[Literal['price', 'promotion_code', 'quantity']]]` - * Change type of `products` on `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate` from `Union[Literal[''], List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]]` to `NotRequired[Literal['']|List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]]` - -## 10.13.0b1 - 2024-09-18 -* [#1395](https://github.com/stripe/stripe-python/pull/1395) Update generated code for beta - * Add support for `send_money` on parameter class `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures` - * Add support for `transfer_balance` on parameter class `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures` - * Add support for `automatically_finalizes_at` on resource `stripe.QuotePreviewInvoice` - * Remove support for resource `stripe.QuotePhase` - * Add support for `rechnung` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` - * Add support for `terminal_reader_invalid_location_for_activation` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - -## 10.12.0 - 2024-09-18 -* [#1394](https://github.com/stripe/stripe-python/pull/1394) Update generated code - * Add support for `international_transaction` on enum `stripe.treasury.ReceivedDebit.failure_code` -* [#1393](https://github.com/stripe/stripe-python/pull/1393) Update generated code - * Add support for `payer_details` on resource class `stripe.Charge.PaymentMethodDetails.Klarna` - * Add support for `amazon_pay` on resource class `stripe.Dispute.PaymentMethodDetails` - * Add support for `automatically_finalizes_at` on resource `stripe.Invoice` - * Add support for `state_sales_tax` on resource class `stripe.tax.Registration.CountryOptions.Us` and parameter class `stripe.tax.Registration.CreateParamsCountryOptionsUs` - * Add support for `verification_supportability` on enums `stripe.Account.FutureRequirements.Error.code`, `stripe.Account.Requirements.Error.code`, `stripe.BankAccount.FutureRequirements.Error.code`, `stripe.BankAccount.Requirements.Error.code`, `stripe.Capability.FutureRequirements.Error.code`, `stripe.Capability.Requirements.Error.code`, `stripe.Person.FutureRequirements.Error.code`, and `stripe.Person.Requirements.Error.code` - * Add support for `amazon_pay` on enum `stripe.Dispute.PaymentMethodDetails.type` - * Add support for `terminal_reader_invalid_location_for_activation` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - -## 10.12.0b1 - 2024-09-13 -* [#1389](https://github.com/stripe/stripe-python/pull/1389) Update generated code for beta - * Add support for `template` on resource class `stripe.QuotePreviewInvoice.Rendering` - * Add support for resource `stripe.issuing.DisputeSettlementDetail` - * Add support for resource `stripe.issuing.Settlement` - * Add support for `settlement` on parameter class `stripe.issuing.Transaction.ListParams` and resource `stripe.issuing.Transaction` - * Remove support for `list` on resource `stripe.QuotePhase` - * Add support for `rechnung` on enum `stripe.checkout.Session.CreateParams.payment_method_types` - * Add support for `issuing_dispute_settlement_detail.created` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `issuing_dispute_settlement_detail.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `issuing_settlement.created` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `issuing_settlement.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - -## 10.11.0 - 2024-09-12 -* [#1391](https://github.com/stripe/stripe-python/pull/1391) Update generated code - * Add support for `template` on parameter classes `stripe.Customer.CreateParamsInvoiceSettingsRenderingOptions`, `stripe.Customer.ModifyParamsInvoiceSettingsRenderingOptions`, `stripe.Invoice.CreateParamsRendering`, and `stripe.Invoice.ModifyParamsRendering` and resource classes `stripe.Customer.InvoiceSettings.RenderingOptions` and `stripe.Invoice.Rendering` - * Add support for resource `stripe.InvoiceRenderingTemplate` - * Add support for `required` on parameter classes `stripe.PaymentLink.CreateParamsTaxIdCollection`, `stripe.PaymentLink.ModifyParamsTaxIdCollection`, and `stripe.checkout.Session.CreateParamsTaxIdCollection` and resource classes `stripe.PaymentLink.TaxIdCollection` and `stripe.checkout.Session.TaxIdCollection` - * Add support for `submitted` on enum `stripe.issuing.Card.Shipping.status` - * Change type of `tax_amounts` on `stripe.InvoiceLineItem` from `Optional[List[TaxAmount]]` to `List[TaxAmount]` - * Change type of `tax_rates` on `stripe.InvoiceLineItem` from `Optional[List[TaxRate]]` to `List[TaxRate]` - * Change type of `status_details` on `stripe.test_helpers.TestClock` from `Optional[StatusDetails]` to `StatusDetails` - -## 10.11.0b1 - 2024-09-05 -* [#1387](https://github.com/stripe/stripe-python/pull/1387) Update generated code for beta - * Add support for `recipients` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for resource `stripe.billing.MeterErrorReport` - * Add support for `business_name` on resource class `stripe.checkout.Session.CollectedInformation` - * Add support for `tax_ids` on resource class `stripe.checkout.Session.CollectedInformation` - * Add support for `billing.meter_error_report.triggered` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `mb_way` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` -* [#1386](https://github.com/stripe/stripe-python/pull/1386) Merge from master -* [#1384](https://github.com/stripe/stripe-python/pull/1384) Merge from master after the changes to not pass api_mode from individual methods -* [#1380](https://github.com/stripe/stripe-python/pull/1380) Update generated code for beta - * Add support for `email` on resource class `stripe.checkout.Session.CollectedInformation` - * Add support for `phone` on resource class `stripe.checkout.Session.CollectedInformation` - * Add support for `regulatory_reporting_file` on parameter classes `stripe.issuing.CreditUnderwritingRecord.CorrectParams`, `stripe.issuing.CreditUnderwritingRecord.CreateFromProactiveReviewParams`, and `stripe.issuing.CreditUnderwritingRecord.ReportDecisionParams` and resource `stripe.issuing.CreditUnderwritingRecord` - * Add support for resource `stripe.terminal.ReaderCollectedData` - * Remove support for `rechnung` on parameter class `stripe.PaymentMethod.ModifyParams` - * Add support for `mb_way` on enum `stripe.checkout.Session.CreateParams.payment_method_types` - * Add support for `terminal_reader_collected_data_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - -## 10.10.0 - 2024-09-05 -* [#1376](https://github.com/stripe/stripe-python/pull/1376) Update generated code - * Add support for `subscription` on parameter class `stripe.billing.Alert.CreateParamsFilter` - * Change type of `customer_consent_collected` on `stripe.terminal.Reader.ProcessSetupIntentParams` from `bool` to `NotRequired[bool]` - -## 10.9.0 - 2024-08-29 -* [#1385](https://github.com/stripe/stripe-python/pull/1385) Generate SDK for OpenAPI spec version 1230 - * Add support for `status_details` on resource `stripe.test_helpers.TestClock` - * Change type of `fields` on `stripe.AccountLink.CreateParamsCollectionOptions` from `Literal['currently_due', 'eventually_due']` to `NotRequired[Literal['currently_due', 'eventually_due']]` - * Add support for `hr_oib` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `issuing_regulatory_reporting` on enums `stripe.File.purpose`, `stripe.File.CreateParams.purpose`, and `stripe.File.ListParams.purpose` - -## 10.9.0b2 - 2024-08-22 -* [#1377](https://github.com/stripe/stripe-python/pull/1377) Update generated code for beta - * Add support for `mb_way_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `mb_way` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Remove support for `phases` on parameter classes `stripe.Quote.CreateParams` and `stripe.Quote.ModifyParams` - * Remove support for `from_schedule` on parameter class `stripe.Quote.CreateParamsSubscriptionData` - * Add support for `mb_way` on enums `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `hr_oib` on enums `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - * Remove support for `accepted` on enum `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.status` - * Remove support for `partner_rejected` on enum `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.status` - * Remove support for `submitted` on enum `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.status` - -## 10.9.0b1 - 2024-08-15 -* [#1375](https://github.com/stripe/stripe-python/pull/1375) Update generated code for beta - * Add support for `capital_financing` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `permissions` on parameter class `stripe.checkout.Session.CreateParams` and resource `stripe.checkout.Session` - * Add support for `collected_information` on parameter class `stripe.checkout.Session.ModifyParams` and resource `stripe.checkout.Session` - * Add support for `shipping_options` on parameter class `stripe.checkout.Session.ModifyParams` - -## 10.8.0 - 2024-08-15 -* [#1373](https://github.com/stripe/stripe-python/pull/1373) Update generated code - * Add support for `authorization_code` on resource class `stripe.Charge.PaymentMethodDetails.Card` - * Add support for `wallet` on resource classes `stripe.Charge.PaymentMethodDetails.CardPresent`, `stripe.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent`, `stripe.ConfirmationToken.PaymentMethodPreview.CardPresent`, `stripe.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent`, and `stripe.PaymentMethod.CardPresent` - * Add support for `mandate_options` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsBacsDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsBacsDebit`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsBacsDebit` and resource class `stripe.PaymentIntent.PaymentMethodOptions.BacsDebit` - * Add support for `bacs_debit` on parameter classes `stripe.SetupIntent.ConfirmParamsPaymentMethodOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptions`, and `stripe.SetupIntent.ModifyParamsPaymentMethodOptions` and resource class `stripe.SetupIntent.PaymentMethodOptions` - * Add support for `chips` on resource classes `stripe.treasury.OutboundPayment.TrackingDetails.UsDomesticWire` and `stripe.treasury.OutboundTransfer.TrackingDetails.UsDomesticWire` and parameter classes `stripe.treasury.OutboundPayment.UpdateParamsTrackingDetailsUsDomesticWire` and `stripe.treasury.OutboundTransfer.UpdateParamsTrackingDetailsUsDomesticWire` - * Change type of `imad` on `stripe.treasury.OutboundPayment.TrackingDetails.UsDomesticWire` and `stripe.treasury.OutboundTransfer.TrackingDetails.UsDomesticWire` from `str` to `Optional[str]` - -## 10.8.0b1 - 2024-08-12 -* [#1372](https://github.com/stripe/stripe-python/pull/1372) Update generated code for beta - * Add support for `capital_financing` on resource class `stripe.AccountSession.Components` - * Add support for `payto` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptions` and resource class `stripe.checkout.Session.PaymentMethodOptions` - * ⚠️ Remove support for `risk_correlation_id` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRechnung`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRechnung`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRechnung` and resource class `stripe.PaymentIntent.PaymentMethodOptions.Rechnung` - * Add support for `custom` on enums `stripe.checkout.Session.ui_mode` and `stripe.checkout.Session.CreateParams.ui_mode` - * Add support for `payto` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` - * Add support for `invalid_mandate_reference_prefix_format` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - -## 10.7.0 - 2024-08-08 -* [#1371](https://github.com/stripe/stripe-python/pull/1371) Update generated code - * Add support for `type` on resource classes `stripe.Charge.PaymentMethodDetails.CardPresent.Offline`, `stripe.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Offline`, `stripe.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Offline`, and `stripe.SetupAttempt.PaymentMethodDetails.CardPresent.Offline` - * Add support for `offline` on resource classes `stripe.ConfirmationToken.PaymentMethodPreview.CardPresent` and `stripe.PaymentMethod.CardPresent` - * Add support for `_cls_activate` on resource `stripe.billing.Alert` - * Add support for `_cls_archive` on resource `stripe.billing.Alert` - * Add support for `_cls_deactivate` on resource `stripe.billing.Alert` - * Add support for `activate` on resource `stripe.billing.Alert` - * Add support for `archive` on resource `stripe.billing.Alert` - * Add support for `create` on resource `stripe.billing.Alert` - * Add support for `deactivate` on resource `stripe.billing.Alert` - * Add support for `list` on resource `stripe.billing.Alert` - * Add support for `retrieve` on resources `stripe.billing.Alert` and `stripe.tax.Calculation` - * Add support for `related_customer` on parameter classes `stripe.identity.VerificationSession.CreateParams` and `stripe.identity.VerificationSession.ListParams` and resource `stripe.identity.VerificationSession` - * Add support for `invalid_mandate_reference_prefix_format` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `girocard` on enums `stripe.PaymentIntent.PaymentMethodOptions.Card.network`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCard.network`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCard.network`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.PaymentMethodOptions.Card.network`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsCard.network`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.Card.network`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCard.network`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCard.network` - * Add support for `financial_addresses.aba.forwarding` on enums `stripe.treasury.FinancialAccount.active_features`, `stripe.treasury.FinancialAccount.pending_features`, and `stripe.treasury.FinancialAccount.restricted_features` - * Change type of `count` on `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCardInstallmentsPlan`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCardInstallmentsPlan` from `int` to `NotRequired[int]` - * Change type of `interval` on `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCardInstallmentsPlan`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCardInstallmentsPlan` from `Literal['month']` to `NotRequired[Literal['month']]` - * Change type of `account` on `stripe.Person.AdditionalTosAcceptances` from `Account` to `Optional[Account]` - -## 10.7.0b1 - 2024-08-01 -* [#1370](https://github.com/stripe/stripe-python/pull/1370) Update generated code for beta - * Add support for `app_install` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `app_viewport` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `_cls_attach_payment` on resource `stripe.Invoice` - * Add support for `attach_payment` on resource `stripe.Invoice` - * Add support for `lines_invalid` on resource class `stripe.Quote.StatusDetails.Stale.LastReason` - * Add support for `last_price_migration_error` on resources `stripe.QuotePreviewSubscriptionSchedule`, `stripe.Subscription`, and `stripe.SubscriptionSchedule` - * Remove support for `partner_rejected_details` on resource class `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3` - * Add support for `customer.subscription.price_migration_failed` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `subscription_schedule.price_migration_failed` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `lines_invalid` on enum `stripe.Quote.StatusDetails.Stale.LastReason.type` - * Add support for `charge_exceeds_transaction_limit` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - -## 10.6.0 - 2024-08-01 -* [#1369](https://github.com/stripe/stripe-python/pull/1369) Update generated code - * Add support for resource `stripe.billing.Alert` - * ⚠️ Remove support for `authorization_code` on resource class `stripe.Charge.PaymentMethodDetails.Card`. This was accidentally released last week. - * Add support for `billing.alert.triggered` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `charge_exceeds_transaction_limit` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - -## 10.6.0b1 - 2024-07-25 -* [#1361](https://github.com/stripe/stripe-python/pull/1361) Update generated code for beta - * Add support for `capital` on parameter class `stripe.Account.CreateParamsSettings` and resource class `stripe.Account.Settings` - * Add support for `payment` on resource `stripe.InvoicePayment` - * Add support for `async_workflows` on parameter classes `stripe.PaymentIntent.CaptureParams`, `stripe.PaymentIntent.ConfirmParams`, `stripe.PaymentIntent.CreateParams`, `stripe.PaymentIntent.DecrementAuthorizationParams`, `stripe.PaymentIntent.IncrementAuthorizationParams`, and `stripe.PaymentIntent.ModifyParams` and resource `stripe.PaymentIntent` - * Add support for `payto` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for resource `stripe.billing.Alert` - * Add support for resource `stripe.tax.Association` - * Add support for `display_name` on parameter classes `stripe.treasury.FinancialAccount.CreateParams` and `stripe.treasury.FinancialAccount.ModifyParams` and resource `stripe.treasury.FinancialAccount` - * Remove support for `charge` on resource `stripe.InvoicePayment` - * Remove support for `payment_intent` on resource `stripe.InvoicePayment` - * Add support for `issuing.account_closed_for_not_providing_business_model_clarification` on enum `stripe.AccountNotice.reason` - * Add support for `issuing.account_closed_for_not_providing_url_clarification` on enum `stripe.AccountNotice.reason` - * Add support for `issuing.account_closed_for_not_providing_use_case_clarification` on enum `stripe.AccountNotice.reason` - * Add support for `billing.alert.triggered` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `multibanco` on enum `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types` - -## 10.5.0 - 2024-07-25 -* [#1368](https://github.com/stripe/stripe-python/pull/1368) Update generated code - * Add support for `tax_registrations` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `tax_settings` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` -* [#1364](https://github.com/stripe/stripe-python/pull/1364) Update generated code - * Add support for `transaction_id` on resource class `stripe.Charge.PaymentMethodDetails.Affirm` - * Add support for `buyer_id` on resource class `stripe.Charge.PaymentMethodDetails.Blik` - * Add support for `authorization_code` on resource class `stripe.Charge.PaymentMethodDetails.Card` - * Add support for `brand_product` on resource classes `stripe.Charge.PaymentMethodDetails.CardPresent`, `stripe.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent`, `stripe.ConfirmationToken.PaymentMethodPreview.CardPresent`, `stripe.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent`, and `stripe.PaymentMethod.CardPresent` - * Add support for `network_transaction_id` on resource classes `stripe.Charge.PaymentMethodDetails.CardPresent`, `stripe.Charge.PaymentMethodDetails.InteracPresent`, `stripe.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent`, and `stripe.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent` - * Add support for `case_type` on resource class `stripe.Dispute.PaymentMethodDetails.Card` - * Add support for `twint` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for `modify` on resource `stripe.checkout.Session` - * Add support for `invoice.overdue` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `invoice.will_be_due` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - -## 10.4.0 - 2024-07-18 -* [#1362](https://github.com/stripe/stripe-python/pull/1362) Update generated code - * Add support for `customer` on resource class `stripe.ConfirmationToken.PaymentMethodPreview` - * Add support for `issuing_dispute.funds_rescinded` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `multibanco` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `stripe_s700` on enums `stripe.terminal.Reader.device_type` and `stripe.terminal.Reader.ListParams.device_type` -* [#1360](https://github.com/stripe/stripe-python/pull/1360) Update changelog - -## 10.4.0b1 - 2024-07-11 -* [#1356](https://github.com/stripe/stripe-python/pull/1356) Update generated code for beta - * Change type of `payment_element` on `stripe.CustomerSession.Components` from `Optional[PaymentElement]` to `PaymentElement` - * Add support for `not_qualified` on enum `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.status` - * Remove support for `billing_policy_remote_function_response_invalid` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - * Remove support for `billing_policy_remote_function_timeout` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - * Remove support for `billing_policy_remote_function_unexpected_status_code` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - * Remove support for `billing_policy_remote_function_unreachable` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - * Remove support for `payment_intent_fx_quote_invalid` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - -## 10.3.0 - 2024-07-11 -* [#1358](https://github.com/stripe/stripe-python/pull/1358) Update generated code - * Add support for `payment_method_options` on resource `stripe.ConfirmationToken` - * Add support for `payment_element` on resource class `stripe.CustomerSession.Components` and parameter class `stripe.CustomerSession.CreateParamsComponents` - * Add support for `address_validation` on parameter class `stripe.issuing.Card.CreateParamsShipping` and resource class `stripe.issuing.Card.Shipping` - * Add support for `shipping` on parameter class `stripe.issuing.Card.ModifyParams` - * ⚠️ Remove support for `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * ⚠️ Remove support for `payment_intent_fx_quote_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`. The property was mistakenly released last week. - * [#1357](https://github.com/stripe/stripe-python/pull/1357) don't auto-organize imports - -## 10.3.0b1 - 2024-07-05 -* [#1355](https://github.com/stripe/stripe-python/pull/1355) Update generated code for beta - * ⚠️ Remove support for `payment_method_update` on resource class `stripe.CustomerSession.Components.PaymentElement.Features` and parameter class `stripe.CustomerSession.CreateParamsComponentsPaymentElementFeatures`. Users are expected to completely migrate from using payment_method_update. - * Add support for `payment_method_allow_redisplay_filters`, `payment_method_redisplay`, `payment_method_save_usage` on resource class `stripe.CustomerSession.Components.PaymentElement.Features` and parameter class `stripe.CustomerSession.CreateParamsComponentsPaymentElementFeatures` - * Add support for `institution` on parameter classes `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, and `stripe.financial_connections.Session.CreateParamsFilters` and resource classes `stripe.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, and `stripe.financial_connections.Session.Filters` - * Add support for resource `stripe.financial_connections.Institution` - * Add support for `balance` on enums `stripe.financial_connections.Account.subscriptions`, `stripe.financial_connections.Account.SubscribeParams.features`, and `stripe.financial_connections.Account.UnsubscribeParams.features` - * Add support for `financial_connections_institution_unavailable` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `payment_intent_fx_quote_invalid` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - -## 10.2.0 - 2024-07-05 -* [#1354](https://github.com/stripe/stripe-python/pull/1354) Update generated code - * Add support for `_cls_add_lines`, `_cls_remove_lines`, `_cls_update_lines`, `add_lines`, `remove_lines`, `update_lines` on resource `stripe.Invoice` - * Add support for `posted_at` on parameter class `stripe.tax.Transaction.CreateFromCalculationParams` and resource `stripe.tax.Transaction` - * Add support for `payment_intent_fx_quote_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - -## 10.2.0b1 - 2024-06-27 -* [#1349](https://github.com/stripe/stripe-python/pull/1349) Update generated code for beta - * Add support for `filters` on resource class `stripe.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections` - * Remove support for `payment_method_set_as_default` on resource class `stripe.CustomerSession.Components.PaymentElement.Features` and parameter class `stripe.CustomerSession.CreateParamsComponentsPaymentElementFeatures` - * Add support for `ch_uid` on enums `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - -## 10.1.0 - 2024-06-27 -* [#1353](https://github.com/stripe/stripe-python/pull/1353) Update generated code - * Add support for `email_type` on parameter classes `stripe.CreditNote.CreateParams`, `stripe.CreditNote.PreviewLinesParams`, and `stripe.CreditNote.PreviewParams` - * Add support for `filters` on parameter classes `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections` and resource classes `stripe.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections`, `stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections`, `stripe.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections`, and `stripe.checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections` - * Add support for `account_subcategories` on parameter class `stripe.financial_connections.Session.CreateParamsFilters` and resource class `stripe.financial_connections.Session.Filters` - * Add support for `reboot_window` on parameter classes `stripe.terminal.Configuration.CreateParams` and `stripe.terminal.Configuration.ModifyParams` and resource `stripe.terminal.Configuration` - * Add support for `day` on enum `stripe.billing.Meter.ListEventSummariesParams.value_grouping_window` - * Add support for `multibanco` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` - * Add support for `twint` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` - * Add support for `zip` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` - -## 10.0.0 - 2024-06-24 -* [#1350](https://github.com/stripe/stripe-python/pull/1350) Update generated code - - This release changes the pinned API version to 2024-06-20. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-06-20) and carefully review the API changes before upgrading. - - ### ⚠️ Breaking changes - - * Remove the unused resource `PlatformTaxFee` - * Rename `volume_decimal` to `quantity_decimal` on parameter classes `stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel`, `stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel`, and `stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel` and resource class `stripe.issuing.Transaction.PurchaseDetails.Fuel` - - ### Additions - - * Add support for `fleet` on parameter classes `stripe.issuing.Authorization.CaptureParamsPurchaseDetails`, `stripe.issuing.Authorization.CreateParams`, `stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetails`, and `stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetails`, resource `stripe.issuing.Authorization`, and resource class `stripe.issuing.Transaction.PurchaseDetails` - * Add support for new values `platform_disabled`, `paused.inactivity` and `other` on enums `Capability.Requirements.disabled_reason` and `Capability.FutureRequirements.disabled_reason` - * Add support for `industry_product_code` on parameter classes `stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel`, `stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel`, and `stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel` and resource class `stripe.issuing.Transaction.PurchaseDetails.Fuel` - * Add support for `quantity_decimal` on parameter classes `stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel`, `stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel`, and `stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel` and resource class `stripe.issuing.Transaction.PurchaseDetails.Fuel` - * Add support for `fuel` on parameter class `stripe.issuing.Authorization.CreateParams` and resource `stripe.issuing.Authorization` - * Add support for `_cls_finalize_amount` on resource `stripe.issuing.Authorization` - * Add support for `finalize_amount` on resource `stripe.issuing.Authorization` - * Change type of `disabled_reason` on `stripe.Capability.FutureRequirements` and `stripe.Capability.Requirements` from `str` to `Literal['other', 'paused.inactivity', 'pending.onboarding', 'pending.review', 'platform_disabled', 'platform_paused', 'rejected.inactivity', 'rejected.other', 'rejected.unsupported_business', 'requirements.fields_needed']` - * Add support for `ch_uid` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method` and `pin_blocked` on enum `stripe.issuing.Authorization.RequestHistory.reason` - * Add support for `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `pound`, on enums `stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit`, `stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit`, and `stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit` - * Add support for `2024-06-20` on enum `stripe.WebhookEndpoint.CreateParams.api_version` - -## 9.12.0 - 2024-06-17 -* [#1348](https://github.com/stripe/stripe-python/pull/1348) Update generated code - * Add support for `tax_id_collection` on parameter class `stripe.PaymentLink.ModifyParams` - * Add support for `mobilepay` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types` - -## 9.12.0b1 - 2024-06-13 -* [#1343](https://github.com/stripe/stripe-python/pull/1343) Update generated code for beta - * Add support for `de_stn` on enums `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type` - -## 9.11.0 - 2024-06-13 -* [#1342](https://github.com/stripe/stripe-python/pull/1342) Update generated code - * Add support for `multibanco_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `twint_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `twint` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Add support for `multibanco` on parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, resource classes `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, `stripe.Refund.DestinationDetails`, and `stripe.checkout.Session.PaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `multibanco_display_details` on resource class `stripe.PaymentIntent.NextAction` - * Add support for `invoice_settings` on resource `stripe.Subscription` - * Add support for `de_stn` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `multibanco` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `twint` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - -## 9.11.0b1 - 2024-06-06 -* [#1339](https://github.com/stripe/stripe-python/pull/1339) Update generated code for beta - * Add support for `twint` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions` and resource class `stripe.PaymentIntent.PaymentMethodOptions` - * Add support for `swish` on enum `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types` - -## 9.10.0 - 2024-06-06 -* [#1340](https://github.com/stripe/stripe-python/pull/1340) Update generated code - * Add support for `gb_bank_transfer_payments`, `jp_bank_transfer_payments`, `mx_bank_transfer_payments`, `sepa_bank_transfer_payments`, `us_bank_transfer_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `swish` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - -## 9.10.0b1 - 2024-05-30 -* [#1334](https://github.com/stripe/stripe-python/pull/1334) Update generated code for beta - * Add support for `en-RO` on enums `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale` and `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale` - * Add support for `ro-RO` on enums `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale` and `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale` - -## 9.9.0 - 2024-05-30 -* [#1335](https://github.com/stripe/stripe-python/pull/1335) Add method to list invoice line items - * Add methods `list_lines()` and `list_lines_async()` on the class `Invoice` to list the invoice line items -* [#1336](https://github.com/stripe/stripe-python/pull/1336) Update generated code - * Add support for `generated_from` on resource classes `stripe.ConfirmationToken.PaymentMethodPreview.Card` and `stripe.PaymentMethod.Card` - * Add support for `default_value` on parameter classes `stripe.checkout.Session.CreateParamsCustomFieldDropdown`, `stripe.checkout.Session.CreateParamsCustomFieldNumeric`, and `stripe.checkout.Session.CreateParamsCustomFieldText` and resource classes `stripe.checkout.Session.CustomField.Dropdown`, `stripe.checkout.Session.CustomField.Numeric`, and `stripe.checkout.Session.CustomField.Text` - * Add support for `verification_requires_additional_proof_of_registration` on enums `stripe.Account.FutureRequirements.Error.code`, `stripe.Account.Requirements.Error.code`, `stripe.BankAccount.FutureRequirements.Error.code`, `stripe.BankAccount.Requirements.Error.code`, `stripe.Capability.FutureRequirements.Error.code`, `stripe.Capability.Requirements.Error.code`, `stripe.Person.FutureRequirements.Error.code`, and `stripe.Person.Requirements.Error.code` - * Add support for `issuing_personalization_design.activated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `issuing_personalization_design.deactivated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `issuing_personalization_design.rejected` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `issuing_personalization_design.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `en-RO` on enums `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsKlarna.preferred_locale`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsKlarna.preferred_locale`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsKlarna.preferred_locale` - * Add support for `ro-RO` on enums `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsKlarna.preferred_locale`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsKlarna.preferred_locale`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsKlarna.preferred_locale` - * Change type of `features` on `stripe.issuing.PhysicalBundle` from `Optional[Features]` to `Features` - -## 9.9.0b1 - 2024-05-23 -* [#1331](https://github.com/stripe/stripe-python/pull/1331) Update generated code for beta - * Change type of `refund` on `stripe.CreditNote.CreateParamsRefund`, `stripe.CreditNote.PreviewParamsRefund`, and `stripe.CreditNote.PreviewLinesParamsRefund` from `str` to `NotRequired[str]` - * Add support for `terminal_reader_invalid_location_for_payment` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code` - -## 9.8.0 - 2024-05-23 -* [#1332](https://github.com/stripe/stripe-python/pull/1332) Update generated code - * Add support for `external_account_collection` on resource classes `stripe.AccountSession.Components.Balances.Features` and `stripe.AccountSession.Components.Payouts.Features` and parameter classes `stripe.AccountSession.CreateParamsComponentsBalancesFeatures` and `stripe.AccountSession.CreateParamsComponentsPayoutsFeatures` - * Add support for `payment_method_remove` on resource class `stripe.checkout.Session.SavedPaymentMethodOptions` - * Add support for `terminal_reader_invalid_location_for_payment` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - -## 9.8.0b1 - 2024-05-16 -* [#1327](https://github.com/stripe/stripe-python/pull/1327) Update generated code for beta - -* [#1330](https://github.com/stripe/stripe-python/pull/1330) (beta) swap from `black` to `ruff` for formatting - -## 9.7.0 - 2024-05-16 -* [#1328](https://github.com/stripe/stripe-python/pull/1328) Update generated code - * Add support for `fee_source` on resource `stripe.ApplicationFee` - * Add support for `net_available` on resource class `stripe.Balance.InstantAvailable` - * Add support for `preferred_locales` on resource classes `stripe.Charge.PaymentMethodDetails.CardPresent`, `stripe.ConfirmationToken.PaymentMethodPreview.CardPresent`, and `stripe.PaymentMethod.CardPresent` - * Add support for `klarna` on resource class `stripe.Dispute.PaymentMethodDetails` - * Add support for `routing` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCardPresent`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCardPresent`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCardPresent` and resource class `stripe.PaymentIntent.PaymentMethodOptions.CardPresent` - * Add support for `application_fee` on resource `stripe.Payout` - * Add support for `archived` on parameter class `stripe.entitlements.Feature.ListParams` - * Add support for `lookup_key` on parameter class `stripe.entitlements.Feature.ListParams` - * Add support for `no_valid_authorization` on parameter classes `stripe.issuing.Dispute.CreateParamsEvidence` and `stripe.issuing.Dispute.ModifyParamsEvidence` and resource class `stripe.issuing.Dispute.Evidence` - * Add support for `loss_reason` on resource `stripe.issuing.Dispute` - * Add support for `stripe_s700` on parameter classes `stripe.terminal.Configuration.CreateParams` and `stripe.terminal.Configuration.ModifyParams` and resource `stripe.terminal.Configuration` - * Add support for `klarna` on enum `stripe.Dispute.PaymentMethodDetails.type` - * Add support for `no_valid_authorization` on enums `stripe.issuing.Dispute.Evidence.reason`, `stripe.issuing.Dispute.CreateParamsEvidence.reason`, and `stripe.issuing.Dispute.ModifyParamsEvidence.reason` - * Change type of `countries` on `stripe.financial_connections.Session.CreateParamsFilters` from `List[str]` to `NotRequired[List[str]]` -* [#1329](https://github.com/stripe/stripe-python/pull/1329) Switch from `black` to `ruff` for formatting - -## 9.7.0b1 - 2024-05-09 -* [#1321](https://github.com/stripe/stripe-python/pull/1321) Update generated code for beta - * No new beta features. Merging changes from the main branch. - -## 9.6.0 - 2024-05-09 -* [#1323](https://github.com/stripe/stripe-python/pull/1323) Update generated code - * Add support for `allow_redisplay` on resource class `stripe.ConfirmationToken.PaymentMethodPreview` and resource `stripe.PaymentMethod` - * Add support for `preview_mode` on parameter classes `stripe.Invoice.CreatePreviewParams`, `stripe.Invoice.UpcomingLinesParams`, and `stripe.Invoice.UpcomingParams` - * Add support for `_cls_update` on resources `stripe.treasury.OutboundPayment` and `stripe.treasury.OutboundTransfer` - * Add support for `tracking_details` on resources `stripe.treasury.OutboundPayment` and `stripe.treasury.OutboundTransfer` - * Add support for `update` on resources `stripe.treasury.OutboundPayment` and `stripe.treasury.OutboundTransfer` - * Add support for `treasury.outbound_payment.tracking_details_updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - * Add support for `treasury.outbound_transfer.tracking_details_updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - -## 9.6.0b1 - 2024-05-02 -* [#1318](https://github.com/stripe/stripe-python/pull/1318) Update generated code for beta - * Add support for `rechnung_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities` - * Add support for `rechnung` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod` - * Add support for `multibanco` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptions` and resource class `stripe.checkout.Session.PaymentMethodOptions` - * Add support for `multibanco` on enum `stripe.checkout.Session.CreateParams.payment_method_types` - * Add support for `rechnung` on enums `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Change type of `transactions` on `stripe.gift_cards.Card` from `ListObject[Transaction]` to `Optional[ListObject[Transaction]]` - -## 9.5.0 - 2024-05-02 -* [#1317](https://github.com/stripe/stripe-python/pull/1317) Update generated code - * Add support for `paypal` on resource class `stripe.Dispute.PaymentMethodDetails` - * Add support for `payment_method_types` on parameter class `stripe.PaymentIntent.ConfirmParams` - * Add support for `ship_from_details` on parameter class `stripe.tax.Calculation.CreateParams` and resources `stripe.tax.Calculation` and `stripe.tax.Transaction` - * Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, `om` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions` - * Add support for `paypal` on enum `stripe.Dispute.PaymentMethodDetails.type` - * Add support for `shipping_address_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Change type of `metadata` on `stripe.entitlements.Feature.ModifyParams` from `Dict[str, str]` to `Literal['']|Dict[str, str]` -* [#1319](https://github.com/stripe/stripe-python/pull/1319) Fix type change entries in Python Changelog - -## 9.5.0b1 - 2024-04-25 -* [#1308](https://github.com/stripe/stripe-python/pull/1308) Update generated code for beta - * Add support for `payment_method_settings` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `cancel_subscription_schedule` on parameter classes `stripe.Quote.CreateParamsLine` and `stripe.Quote.ModifyParamsLine` and resource `stripe.QuoteLine` - * Add support for `amazon_pay` on enum `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types` - * Add support for `revolut_pay` on enum `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types` - -## 9.4.0 - 2024-04-25 -* [#1316](https://github.com/stripe/stripe-python/pull/1316) Update generated code - * Add support for `amazon_pay` on resource classes `stripe.Mandate.PaymentMethodDetails` and `stripe.SetupAttempt.PaymentMethodDetails` - * Add support for `revolut_pay` on resource classes `stripe.Mandate.PaymentMethodDetails` and `stripe.SetupAttempt.PaymentMethodDetails` - * Add support for `setup_future_usage` on resource classes `stripe.PaymentIntent.PaymentMethodOptions.AmazonPay`, `stripe.PaymentIntent.PaymentMethodOptions.RevolutPay`, `stripe.checkout.Session.PaymentMethodOptions.AmazonPay`, and `stripe.checkout.Session.PaymentMethodOptions.RevolutPay` - * Add support for `mobilepay` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for `ending_before` on parameter class `stripe.PaymentMethodConfiguration.ListParams` - * Add support for `limit` on parameter class `stripe.PaymentMethodConfiguration.ListParams` - * Add support for `starting_after` on parameter class `stripe.PaymentMethodConfiguration.ListParams` - * Change type of `feature` on `stripe.entitlements.ActiveEntitlement` from `str` to `ExpandableField[Feature]` - * Add support for `amazon_pay` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Add support for `revolut_pay` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types` - * Remove support for inadvertently released identity verification features `email` and `phone` on parameter classes `stripe.identity.VerificationSession.CreateParamsOptions` and `stripe.identity.VerificationSession.ModifyParamsOptions` -* [#1307](https://github.com/stripe/stripe-python/pull/1307) Bump aiohttp from 3.9.2 to 3.9.4 - -## 9.4.0b1 - 2024-04-18 -* [#1302](https://github.com/stripe/stripe-python/pull/1302) Update generated code for beta - * Add support for `balances` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `payouts_list` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `capital_overview` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `tax_registrations` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `tax_settings` on parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `external_account_collection` on parameter class `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures` - * Add support for `allow_redisplay` on parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.Customer.ListPaymentMethodsParams`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData` - * Add support for `subscription_trial_from_plan` on parameter classes `stripe.Invoice.UpcomingLinesParams` and `stripe.Invoice.UpcomingParams` - * Add support for `swish` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for `payment_method_data` on parameter class `stripe.checkout.Session.CreateParams` - * Add support for `saved_payment_method_options` on parameter class `stripe.checkout.Session.CreateParams` and resource `stripe.checkout.Session` - * Add support for `mobilepay` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptions` and resource class `stripe.checkout.Session.PaymentMethodOptions` - * Remove support for `config` on parameter class `stripe.forwarding.Request.CreateParams` and resource `stripe.forwarding.Request` - * Change type of fields `stripe.AccountSession.Components.PaymentDetails.Features` and `stripe.AccountSession.Components.Payments.Features` from `Optional[bool]` to `bool` of `destination_on_behalf_of_charge_management` - * Change type of field `stripe.billing.MeterEvent.CreateParams` from `int` to `NotRequired[int]` of `timestamp` - * Add support for `mobilepay` on enum `stripe.checkout.Session.CreateParams.payment_method_types` - * Add support for `other` on enums `stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit`, `stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit`, and `stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit` - -## 9.3.0 - 2024-04-18 -* [#1305](https://github.com/stripe/stripe-python/pull/1305) Update generated code - * Add support for `allow_redisplay` on parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.Customer.ListPaymentMethodsParams`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData` - * Add support for `schedule_details` on parameter classes `stripe.Invoice.UpcomingLinesParams` and `stripe.Invoice.UpcomingParams` - * Add support for `subscription_details` on parameter classes `stripe.Invoice.UpcomingLinesParams` and `stripe.Invoice.UpcomingParams` - * Add support for `create_preview` on resource `stripe.Invoice` - * Add support for `payment_method_data` on parameter class `stripe.checkout.Session.CreateParams` - * Add support for `saved_payment_method_options` on parameter class `stripe.checkout.Session.CreateParams` and resource `stripe.checkout.Session` - * Add support for `mobilepay` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptions` and resource class `stripe.checkout.Session.PaymentMethodOptions` - * Add support for `mobilepay` on enum `stripe.checkout.Session.CreateParams.payment_method_types` - * Add support for `other` on enums `stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit`, `stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit`, and `stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit` -* [#1306](https://github.com/stripe/stripe-python/pull/1306) Update `Quote.pdf()` to use the right base address i.e. files.stripe.com instead of api.stripe.com. Fixes [#1303](https://github.com/stripe/stripe-python/issues/1303) - -## 9.2.0 - 2024-04-16 -* [#1301](https://github.com/stripe/stripe-python/pull/1301) Update generated code - * Add support for `balances` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `payouts_list` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `capture_method` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay` and resource class `stripe.PaymentIntent.PaymentMethodOptions.RevolutPay` - * Add support for `swish` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for resource `stripe.entitlements.ActiveEntitlementSummary` - * Remove support for `config` on parameter class `stripe.forwarding.Request.CreateParams` and resource `stripe.forwarding.Request`. This field is no longer used by the Forwarding Request API. - * Change type of `destination_on_behalf_of_charge_management` on `stripe.AccountSession.Components.PaymentDetails.Features` and `stripe.AccountSession.Components.Payments.Features` from `Optional[bool]` to `bool` - * Change type of `timestamp` on `stripe.billing.MeterEvent.CreateParams` from `int` to `NotRequired[int]` - * Add support for `entitlements.active_entitlement_summary.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events` - -## 9.2.0b1 - 2024-04-11 -* [#1296](https://github.com/stripe/stripe-python/pull/1296) Update generated code for beta - * Add support for `external_account_collection` on resource class `stripe.AccountSession.Components.AccountOnboarding.Features` and parameter class `stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures` - * Add support for `account_management` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `notification_banner` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `amazon_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, `stripe.Refund.DestinationDetails`, `stripe.SetupIntent.PaymentMethodOptions`, and `stripe.checkout.Session.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptions`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `capture_method` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay` and resource class `stripe.PaymentIntent.PaymentMethodOptions.RevolutPay` - * Change type of field `stripe.billing.MeterEventAdjustment` from `Cancel` to `Optional[Cancel]` of `cancel` - * Change type of field `stripe.billing.MeterEventAdjustment.Cancel` from `str` to `Optional[str]` of `identifier` - * Change type of field `stripe.billing.MeterEventAdjustment.CreateParamsCancel` from `str` to `NotRequired[str]` of `identifier` - * Change type of field `stripe.billing.MeterEventAdjustment.CreateParams` from `MeterEventAdjustment.CreateParamsCancel` to `NotRequired[MeterEventAdjustment.CreateParamsCancel]` of `cancel` - * Change type of field `stripe.billing.MeterEventAdjustment.CreateParams` from `NotRequired[Literal['cancel']]` to `Literal['cancel']` of `type` - * Add support for `bh_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `kz_bin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `ng_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `om_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `amazon_pay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `billing_policy_remote_function_response_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `billing_policy_remote_function_timeout` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `billing_policy_remote_function_unexpected_status_code` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `billing_policy_remote_function_unreachable` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - -## 9.1.0 - 2024-04-11 -* [#1300](https://github.com/stripe/stripe-python/pull/1300) Update generated code - * Add support for `external_account_collection` on resource class `stripe.AccountSession.Components.AccountOnboarding.Features` and parameter class `stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures` - * Add support for `account_management` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `notification_banner` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents` - * Add support for `amazon_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, `stripe.Refund.DestinationDetails`, `stripe.SetupIntent.PaymentMethodOptions`, and `stripe.checkout.Session.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptions`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration` - * Add support for `next_refresh_available_at` on resource class `stripe.financial_connections.Account.OwnershipRefresh` - * Change type of `cancel` on `stripe.billing.MeterEventAdjustment` from `Cancel` to `Optional[Cancel]` - * Change type of `identifier` on `stripe.billing.MeterEventAdjustment.Cancel` from `str` to `Optional[str]` - * Change type of `identifier` on `stripe.billing.MeterEventAdjustment.CreateParamsCancel` from `str` to `NotRequired[str]` - * Change type of `cancel` on `stripe.billing.MeterEventAdjustment.CreateParams` from `MeterEventAdjustment.CreateParamsCancel` to `NotRequired[MeterEventAdjustment.CreateParamsCancel]` - * Change type of `type` on `stripe.billing.MeterEventAdjustment.CreateParams` from `NotRequired[Literal['cancel']]` to `Literal['cancel']` - * Add support for `bh_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `kz_bin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `ng_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `om_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type` - * Add support for `ownership` on enums `stripe.checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.permissions`, `stripe.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch`, `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.permissions`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch` - * Add support for `amazon_pay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type` - * Add support for `billing_policy_remote_function_response_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `billing_policy_remote_function_timeout` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `billing_policy_remote_function_unexpected_status_code` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` - * Add support for `billing_policy_remote_function_unreachable` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code` -* [#1297](https://github.com/stripe/stripe-python/pull/1297) Use stdlib AsyncMock when available - -## 9.0.0 - 2024-04-10 -* [#1286](https://github.com/stripe/stripe-python/pull/1286) - - * This release changes the pinned API version to `2024-04-10`. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-04-10) and carefully review the API changes before upgrading. - - ### ⚠️ Breaking changes - - * Remove `FinancialAccountFeaturesService.CreateParams`, `FinancialAccountFeaturesService.ListParams`, `FinancialAccountFeaturesService.create()`, `FinancialAccountFeaturesService.list()` as Financial account features is a singleton and so should have retrieve and update methods instead of create and list methods. - * Rename `features` to `marketing_features` on parameter classes `stripe.Product.CreateParams` and `stripe.Product.ModifyParams` and resource `stripe.Product`. - - #### ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API - * Remove `.subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated - * `Configuration.Features` - * `ConfigurationService.CreateParamsFeatures` - * `ConfigurationService.UpdateParamsFeatures` - * Remove the below deprecated values for `BalanceTransaction.type` - * `obligation_inbound` - * `obligation_payout` - * `obligation_payout_failure` - * `obligation_reversal_outbound` - * Remove the below deprecated events from `Event.type`, `WebhookEndpoint.CreateParams.enabled_events`, `WebhookEndpoint.ModifyParams.enabled_events`, `WebhookEndpointService.CreateParams.enabled_events`, `WebhookEndpointService.ModifyParams.enabled_events` - * `invoiceitem.updated` - * `order.created` - * `recipient.created` - * `recipient.deleted` - * `recipient.updated` - * `sku.created` - * `sku.deleted` - * `sku.updated` - * Remove the deprecated value `include_and_require` for `Invoice.CreateParams.pending_invoice_items_behavior` and `InvoiceService.CreateParams.pending_invoice_items_behavior` - * Remove the deprecated value `service_tax` for - * `TaxRate.RetrieveParams.tax_type` - * `TaxRate.CreateParams.tax_type` - * `TaxRate.ModifyParams.tax_type` - * `TaxRateService.CreateParams.tax_type` - * `TaxRateService.UpdateParams.tax_type` - * `InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type` - * `InvoiceLineItemService.UpdateParamsTaxAmountTaxRateData.tax_type` - * Remove `request_incremental_authorization` from - * `PaymentIntent.ConfirmParamsPaymentMethodOptionsCardPresent` - * `PaymentIntent.CreateParamsPaymentMethodOptionsCardPresent` - * `PaymentIntent.ModifyParamsPaymentMethodOptionsCardPresent` - * `PaymentIntentService.ConfirmParamsPaymentMethodOptionsCardPresent` - * `PaymentIntentService.CreateParamsPaymentMethodOptionsCardPresent` - * `PaymentIntentService.ModifyParamsPaymentMethodOptionsCardPresent` - * Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration` - * Remove the deprecated value `challenge_only` from `SetupIntent.PaymentMethodOptions.Card.request_three_d_secure` - * Remove deprecated value `various` for `Climate.Supplier.removal_pathway` - * Remove the deprecated value `obligation` for `ReportRun.CreateParamsParameters.reporting_category` and `ReportRunService.CreateParamsParameters.reporting_category` - * Remove the legacy field `rendering_options` on parameter classes `stripe.Invoice.CreateParams` and `stripe.Invoice.ModifyParams` and resource `stripe.Invoice`. Use `rendering` instead. - -## 8.11.0 - 2024-04-09 -* [#1295](https://github.com/stripe/stripe-python/pull/1295) Update generated code - * Add support for `fees`, `losses`, `requirement_collection` & `stripe_dashboard` on resource class `stripe.Account.Controller` - * Add support for `controller` on parameter class `stripe.Account.CreateParams` - * Add support for `create_feature`, `delete_feature`, `list_features`, `retrieve_feature` on resource `stripe.Product` - * Add support for resource `stripe.ProductFeature` - * Add support for `event_name` on parameter class `stripe.billing.MeterEventAdjustment.CreateParams` and resource `stripe.billing.MeterEventAdjustment` - * Add support for `cancel` and `type` on resource `stripe.billing.MeterEventAdjustment` - * Add support for resource `stripe.entitlements.ActiveEntitlement` - * Add support for resource `stripe.entitlements.Feature` - * Add support for `none` on enum `stripe.Account.type` - -* [#1299](https://github.com/stripe/stripe-python/pull/1299) Fix README.md -* [#1292](https://github.com/stripe/stripe-python/pull/1292) Tweak changelog for python async note - -## 8.11.0b1 - 2024-04-04 -* [#1293](https://github.com/stripe/stripe-python/pull/1293) Update generated code for beta - * Add support for `risk_controls` on parameter class `stripe.Account.CreateParams` and resource `stripe.Account` - * Add support for `promotion_code` on parameter classes `stripe.Invoice.AddLinesParamsLineDiscount`, `stripe.Invoice.CreateParamsDiscount`, `stripe.Invoice.ModifyParamsDiscount`, `stripe.Invoice.UpdateLinesParamsLineDiscount`, `stripe.InvoiceItem.CreateParamsDiscount`, `stripe.InvoiceItem.ModifyParamsDiscount`, `stripe.InvoiceLineItem.ModifyParamsDiscount`, `stripe.Quote.CreateParamsDiscount`, `stripe.Quote.CreateParamsLineActionAddDiscount`, `stripe.Quote.CreateParamsLineItemDiscount`, `stripe.Quote.CreateParamsPhaseLineItemDiscount`, `stripe.Quote.ModifyParamsDiscount`, `stripe.Quote.ModifyParamsLineActionAddDiscount`, `stripe.Quote.ModifyParamsLineItemDiscount`, and `stripe.Quote.ModifyParamsPhaseLineItemDiscount` - * Add support for `zip` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for `offline` on resource class `stripe.SetupAttempt.PaymentMethodDetails.CardPresent` - * Add support for `card_present` on parameter classes `stripe.SetupIntent.ConfirmParamsPaymentMethodOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptions`, and `stripe.SetupIntent.ModifyParamsPaymentMethodOptions` and resource class `stripe.SetupIntent.PaymentMethodOptions` - * Add support for `modify` on resource `stripe.entitlements.Feature` - * Add support for `email` on resource `stripe.identity.VerificationReport`, parameter classes `stripe.identity.VerificationSession.CreateParamsOptions` and `stripe.identity.VerificationSession.ModifyParamsOptions`, and resource classes `stripe.identity.VerificationSession.Options` and `stripe.identity.VerificationSession.VerifiedOutputs` - * Add support for `phone` on resource `stripe.identity.VerificationReport`, parameter classes `stripe.identity.VerificationSession.CreateParamsOptions` and `stripe.identity.VerificationSession.ModifyParamsOptions`, and resource classes `stripe.identity.VerificationSession.Options` and `stripe.identity.VerificationSession.VerifiedOutputs` - * Add support for `verification_flow` on resources `stripe.identity.VerificationReport` and `stripe.identity.VerificationSession` and parameter class `stripe.identity.VerificationSession.CreateParams` - * Add support for `provided_details` on parameter classes `stripe.identity.VerificationSession.CreateParams` and `stripe.identity.VerificationSession.ModifyParams` and resource `stripe.identity.VerificationSession` - * Add support for `allowed_merchant_countries` on parameter classes `stripe.issuing.Card.CreateParamsSpendingControls`, `stripe.issuing.Card.ModifyParamsSpendingControls`, `stripe.issuing.Cardholder.CreateParamsSpendingControls`, and `stripe.issuing.Cardholder.ModifyParamsSpendingControls` and resource classes `stripe.issuing.Card.SpendingControls` and `stripe.issuing.Cardholder.SpendingControls` - * Add support for `blocked_merchant_countries` on parameter classes `stripe.issuing.Card.CreateParamsSpendingControls`, `stripe.issuing.Card.ModifyParamsSpendingControls`, `stripe.issuing.Cardholder.CreateParamsSpendingControls`, and `stripe.issuing.Cardholder.ModifyParamsSpendingControls` and resource classes `stripe.issuing.Card.SpendingControls` and `stripe.issuing.Cardholder.SpendingControls` - * Change type of field `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSwish` from `Literal['']|str` to `str` of `reference` - * Add support for `verification_flow` on enums `stripe.identity.VerificationReport.type` and `stripe.identity.VerificationSession.type` - * Add support for `email_unverified_other` on enum `stripe.identity.VerificationSession.LastError.code` - * Add support for `email_verification_declined` on enum `stripe.identity.VerificationSession.LastError.code` - * Add support for `phone_unverified_other` on enum `stripe.identity.VerificationSession.LastError.code` - * Add support for `phone_verification_declined` on enum `stripe.identity.VerificationSession.LastError.code` - * Add support for `mobile_phone_reader` on enums `stripe.terminal.Reader.device_type` and `stripe.terminal.Reader.ListParams.device_type` - * Change type of field `stripe.identity.VerificationSession.CreateParams` from `Literal['document', 'id_number']` to `NotRequired[Literal['document', 'id_number']]` of `type` - * Change type of fields `stripe.Invoice`, `stripe.InvoiceLineItem`, `stripe.QuotePreviewInvoice`, `stripe.Subscription`, and `stripe.SubscriptionItem` from `Optional[List[ExpandableField[Discount]]]` to `List[ExpandableField[Discount]]` of `discounts` - * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` of `data` - * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` of `image_url_png` - * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` of `image_url_svg` - * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[str]` to `str` of `hosted_instructions_url` - * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[str]` to `str` of `mobile_auth_url` - * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[QrCode]` to `QrCode` of `qr_code` - * Change type of fields `stripe.QuoteLine.Action.AddItem`, `stripe.QuoteLine.Action.SetItem`, `stripe.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem`, `stripe.QuotePreviewSubscriptionSchedule.Phase.Item`, `stripe.QuotePreviewSubscriptionSchedule.Phase`, `stripe.SubscriptionSchedule.Phase.AddInvoiceItem`, `stripe.SubscriptionSchedule.Phase.Item`, and `stripe.SubscriptionSchedule.Phase` from `Optional[List[Discount]]` to `List[Discount]` of `discounts` - -## 8.10.0 - 2024-04-04 - -* [#1288](https://github.com/stripe/stripe-python/pull/1288) Port **async support** from beta to the stable channel. To use it, add an `_async` suffix to any request-making method. - - ```diff - - cus = stripe.Customer.create(...) - + cus = await stripe.Customer.create_async(...) - ``` - - See the [README](./README.md#async) for detailed usage instructions. Support is provided out of the box for async requests via the HTTPX (used by default) and aiohttp libraries. For other libraries, you can also provide your own `stripe.HTTPClient` implementation. Please do not hesitate to [open a Github issue](https://github.com/stripe/stripe-python/issues/new/choose) if you have any feedback on this feature. -* [#1284](https://github.com/stripe/stripe-python/pull/1284) Update generated code - * Add support for `subscription_item` on resource `stripe.Discount` - * Add support for `promotion_code` on parameter classes `stripe.Invoice.CreateParamsDiscount`, `stripe.Invoice.ModifyParamsDiscount`, `stripe.InvoiceItem.CreateParamsDiscount`, `stripe.InvoiceItem.ModifyParamsDiscount`, `stripe.InvoiceLineItem.ModifyParamsDiscount`, `stripe.Quote.CreateParamsDiscount`, and `stripe.Quote.ModifyParamsDiscount` - * Add support for `discounts` on parameter classes `stripe.Invoice.UpcomingLinesParamsSubscriptionItem`, `stripe.Invoice.UpcomingParamsSubscriptionItem`, `stripe.Quote.CreateParamsLineItem`, `stripe.Quote.ModifyParamsLineItem`, `stripe.Subscription.CreateParams`, `stripe.Subscription.CreateParamsAddInvoiceItem`, `stripe.Subscription.CreateParamsItem`, `stripe.Subscription.ModifyParams`, `stripe.Subscription.ModifyParamsAddInvoiceItem`, `stripe.Subscription.ModifyParamsItem`, `stripe.SubscriptionItem.CreateParams`, `stripe.SubscriptionItem.ModifyParams`, `stripe.SubscriptionSchedule.CreateParamsPhase`, `stripe.SubscriptionSchedule.CreateParamsPhaseAddInvoiceItem`, `stripe.SubscriptionSchedule.CreateParamsPhaseItem`, `stripe.SubscriptionSchedule.ModifyParamsPhase`, `stripe.SubscriptionSchedule.ModifyParamsPhaseAddInvoiceItem`, and `stripe.SubscriptionSchedule.ModifyParamsPhaseItem`, resources `stripe.Subscription` and `stripe.SubscriptionItem`, and resource classes `stripe.SubscriptionSchedule.Phase.AddInvoiceItem`, `stripe.SubscriptionSchedule.Phase.Item`, and `stripe.SubscriptionSchedule.Phase` - * Add support for `zip` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration` - * Add support for `offline` on resource class `stripe.SetupAttempt.PaymentMethodDetails.CardPresent` - * Add support for `card_present` on parameter classes `stripe.SetupIntent.ConfirmParamsPaymentMethodOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptions`, and `stripe.SetupIntent.ModifyParamsPaymentMethodOptions` and resource class `stripe.SetupIntent.PaymentMethodOptions` - * Add support for `email` on resource `stripe.identity.VerificationReport`, parameter classes `stripe.identity.VerificationSession.CreateParamsOptions` and `stripe.identity.VerificationSession.ModifyParamsOptions`, and resource classes `stripe.identity.VerificationSession.Options` and `stripe.identity.VerificationSession.VerifiedOutputs` - * Add support for `phone` on resource `stripe.identity.VerificationReport`, parameter classes `stripe.identity.VerificationSession.CreateParamsOptions` and `stripe.identity.VerificationSession.ModifyParamsOptions`, and resource classes `stripe.identity.VerificationSession.Options` and `stripe.identity.VerificationSession.VerifiedOutputs` - * Add support for `verification_flow` on resources `stripe.identity.VerificationReport` and `stripe.identity.VerificationSession` and parameter class `stripe.identity.VerificationSession.CreateParams` - * Add support for `provided_details` on parameter classes `stripe.identity.VerificationSession.CreateParams` and `stripe.identity.VerificationSession.ModifyParams` and resource `stripe.identity.VerificationSession` - * Add support for `allowed_merchant_countries` on parameter classes `stripe.issuing.Card.CreateParamsSpendingControls`, `stripe.issuing.Card.ModifyParamsSpendingControls`, `stripe.issuing.Cardholder.CreateParamsSpendingControls`, and `stripe.issuing.Cardholder.ModifyParamsSpendingControls` and resource classes `stripe.issuing.Card.SpendingControls` and `stripe.issuing.Cardholder.SpendingControls` - * Add support for `blocked_merchant_countries` on parameter classes `stripe.issuing.Card.CreateParamsSpendingControls`, `stripe.issuing.Card.ModifyParamsSpendingControls`, `stripe.issuing.Cardholder.CreateParamsSpendingControls`, and `stripe.issuing.Cardholder.ModifyParamsSpendingControls` and resource classes `stripe.issuing.Card.SpendingControls` and `stripe.issuing.Cardholder.SpendingControls` - * Change type of `reference` on `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSwish` from `Literal['']|str` to `str` - * Add support for `verification_flow` on enums `stripe.identity.VerificationReport.type` and `stripe.identity.VerificationSession.type` - * Add support for `email_unverified_other` on enum `stripe.identity.VerificationSession.LastError.code` - * Add support for `email_verification_declined` on enum `stripe.identity.VerificationSession.LastError.code` - * Add support for `phone_unverified_other` on enum `stripe.identity.VerificationSession.LastError.code` - * Add support for `phone_verification_declined` on enum `stripe.identity.VerificationSession.LastError.code` - * Add support for `mobile_phone_reader` on enums `stripe.terminal.Reader.device_type` and `stripe.terminal.Reader.ListParams.device_type` - * Change type of `type` on `stripe.identity.VerificationSession.CreateParams` from `Literal['document', 'id_number']` to `NotRequired[Literal['document', 'id_number']]` - * Change type of `discounts` on `stripe.Invoice` and `stripe.InvoiceLineItem` from `Optional[List[ExpandableField[Discount]]]` to `List[ExpandableField[Discount]]` - * Change type of `data` on `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` - * Change type of `image_url_png` on `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` - * Change type of `image_url_svg` on `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` - * Change type of `hosted_instructions_url` on `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[str]` to `str` - * Change type of `mobile_auth_url` on `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[str]` to `str` - * Change type of `qr_code` on `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[QrCode]` to `QrCode` -* [#1289](https://github.com/stripe/stripe-python/pull/1289) Bump aiohttp from 3.9.0 to 3.9.2 - -## 8.10.0b1 - 2024-03-28 -* [#1277](https://github.com/stripe/stripe-python/pull/1277) Update generated code for beta - * Add support for `financial_account_transactions`, `financial_account`, `issuing_card`, and `issuing_cards_list` on `AccountSession.CreateParamsComponents` and `AccountSessionService.CreateParamsComponents` - * Remove support for `subscription_billing_cycle_anchor`, `subscription_cancel_at_period_end`, `subscription_cancel_at`, `subscription_cancel_now`, `subscription_default_tax_rates`, `subscription_items`, `subscription_prebilling`, `subscription_proration_behavior`, `subscription_proration_date`, `subscription_resume_at`, `subscription_start_date`, and `subscription_trial_end` on `Invoice.CreatePreviewParams` and `InvoiceService.CreatePreviewParams` - -* [#1283](https://github.com/stripe/stripe-python/pull/1283) Fix unneccessary quotes - -## 8.9.0 - 2024-03-28 -* [#1276](https://github.com/stripe/stripe-python/pull/1276) Update generated code - * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter` - * Add support for `create`, `deactivate`, `list`, `modify`, `reactivate`, and `retrieve` methods on resource `Meter` - * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent` - * Add support for `amazon_pay_payments` on `Account.Capabilities`, `Account.CreateParamsCapabilities`, `Account.UpdateParamsCapabilities`,`AccountService.CreateParamsCapabilities`, and `AccountService.UpdateParamsCapabilities` - * Add support for new value `verification_failed_representative_authority` on enums `Account.FutureRequirements.Error.code`, `Account.Requirements.Errors.code`, `BankAccount.FutureRequirements.Error.code`, `BankAccount.Requirements.Errors.code`, `Capability.FutureRequirements.Error.code`, `Capability.Requirements.Errors.code`, `Person.FutureRequirements.Error.code`, `Person.Requirements.Errors.code`, - * Add support for `destination_on_behalf_of_charge_management` on `AccountSession.Components.PaymentDetails.Features`, `AccountSession.Components.Payments.Features`, `AccountSession.CreateParamsComponentsPaymentDetailsFeatures`, `AccountSession.CreateParamsComponentsPaymentsFeatures`, `AccountSessionService.CreateParamsComponentsPaymentDetailsFeatures` and `AccountSessionService.CreateParamsComponentsPaymentsFeatures` - * Add support for `meter` on `Plan.CreateParams`, `Plan`, `PlanService.CreateParams`, `Price.Recurring`, `Price.CreateParamsRecurring`, `Price.ListParamsRecurring`, `PriceService.CreateParamsRecurring`, and `PriceService.ListParamsRecurring` - * Add support for `mandate` on `Charge.PaymentMethodDetails.USBankAccount`, `Treasury.InboundTransfer.OriginPaymentMethodDetails.USBankAccount`, `Treasury.OutboundPayment.DestinationPaymentMethodDetails.USBankAccount`, and `Treasury.OutboundTransfer.DestinationPaymentMethodDetails.USBankAccount` - * Add support for `second_line` on `Issuing.Card.CreateParams` -* [#1278](https://github.com/stripe/stripe-python/pull/1278) Types: remove unnecessary quotes -* [#1279](https://github.com/stripe/stripe-python/pull/1279) Update README.md - -## 8.9.0b1 - 2024-03-21 -* [#1272](https://github.com/stripe/stripe-python/pull/1272) Update generated code for beta - * Add support for new resources `Entitlements.ActiveEntitlementSummary` and `Entitlements.ActiveEntitlement` - * Add support for `list` method on resource `ActiveEntitlement` -* [#1271](https://github.com/stripe/stripe-python/pull/1271) Support AIOHTTPClient init without running event loop - -## 8.8.0 - 2024-03-21 -* [#1273](https://github.com/stripe/stripe-python/pull/1273) Update generated code - * Add support for new resources `ConfirmationToken` and `Forwarding.Request` - * Add support for `retrieve` method on resource `ConfirmationToken` - * Add support for `create`, `list`, and `retrieve` methods on resource `Request` - * Add support for `mobilepay_payments` on `Account.Capabilities`, `Account.CreateParamsCapabilities`, and `Account.UpdateParamsCapabilities` - * Add support for new values `forwarding_api_inactive`, `forwarding_api_invalid_parameter`, `forwarding_api_upstream_connection_error`, and `forwarding_api_upstream_connection_timeout` on enums `Invoice.LastFinalizationError.code`, `PaymentIntent.LastPaymentError.code`, `SetupAttempt.SetupError.code`, `SetupIntent.LastSetupError.code`, and `StripeError.code` - * Add support for `payment_reference` on `Charge.PaymentMethodDetails.UsBankAccount` - * Add support for `payout` on `Treasury.ReceivedDebit.LinkedFlows` - * Add support for `name` on `ConfigurationService.CreateParams`, `ConfigurationService.UpdateParams`, and `Configuration` for terminal - * Add support for `confirmation_token` on `PaymentIntentService.ConfirmParams`, `PaymentIntentService.CreateParams`, `SetupIntentService.ConfirmParams`, and `SetupIntentService.CreateParams` - * Add support for new value `mobilepay` on enums `Customer.ListPaymentMethodsParams.type`, `PaymentMethod.CreateParams.type`, and `PaymentMethod.ListParams.type` - * Add support for `mobilepay` on `Charge.PaymentMethodDetails`, `PaymentIntent.PaymentMethodOptions`, `PaymentIntentService.ConfirmParamsPaymentMethodData`, `PaymentIntentService.ConfirmParamsPaymentMethodOptions`, `PaymentIntentService.CreateParamsPaymentMethodData`, `PaymentIntentService.CreateParamsPaymentMethodOptions`, `PaymentIntentService.UpdateParamsPaymentMethodData`, `PaymentIntentService.UpdateParamsPaymentMethodOptions`, `PaymentMethod.CreateParams`, `PaymentMethod`, `SetupIntentService.ConfirmParamsPaymentMethodData`, `SetupIntentService.CreateParamsPaymentMethodData`, and `SetupIntentService.UpdateParamsPaymentMethodData` - * Add support for new value `mobilepay` on enums `PaymentIntentService.ConfirmParamsPaymentMethodData.type`, `PaymentIntentService.CreateParamsPaymentMethodData.type`, `PaymentIntentService.UpdateParamsPaymentMethodData.type`, `SetupIntentService.ConfirmParamsPaymentMethodData.type`, `SetupIntentService.CreateParamsPaymentMethodData.type`, and `SetupIntentService.UpdateParamsPaymentMethodData.type` - * Add support for new value `mobilepay` on enum `PaymentMethod.type` - -## 8.8.0b1 - 2024-03-14 -* [#1270](https://github.com/stripe/stripe-python/pull/1270) Update generated code for beta - * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter` - * Add support for `create`, `deactivate`, `list`, `modify`, `reactivate`, and `retrieve` methods on resource `Meter` - * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent` - * Add support for `create` test helper method on resource `ConfirmationToken` - * Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice` -* [#1266](https://github.com/stripe/stripe-python/pull/1266) Beta: record usage of async interface - -## 8.7.0 - 2024-03-14 -* [#1269](https://github.com/stripe/stripe-python/pull/1269) Update generated code - * Add support for `personalization_design` on parameter classes `CardService.CreateParams`, `CardService.ListParams`, `CardService.UpdateParams`, `stripe.issuing.Card.CreateParams`, `stripe.issuing.Card.ListParams`, and `stripe.issuing.Card.ModifyParams` and resource `stripe.issuing.Card` - * Add support for `sepa_debit` on parameter classes `SubscriptionService.CreateParamsPaymentSettingsPaymentMethodOptions`, `SubscriptionService.UpdateParamsPaymentSettingsPaymentMethodOptions`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptions`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptions` and resource class `stripe.Subscription.PaymentSettings.PaymentMethodOptions` - * Add support for resource `stripe.issuing.PersonalizationDesign` - * Add support for resource `stripe.issuing.PhysicalBundle` - * Change type from `float` to `Literal['']|float` of `application_fee_percent` on fields `stripe.Subscription.CreateParams`, `stripe.Subscription.ModifyParams`, `SubscriptionService.UpdateParams`, and `SubscriptionService.CreateParams` - -## 8.7.0b1 - 2024-03-07 -* [#1265](https://github.com/stripe/stripe-python/pull/1265) Update generated code for beta - * Add support for new value `billing_period_end` on enums `Quote.CreateParamsLineEndsAt.type`, `QuoteLine.EndsAt.type`, and `Quote.ModifyParamsLineEndsAt.type` - -## 8.6.0 - 2024-03-07 -* [#1267](https://github.com/stripe/stripe-python/pull/1267) Update generated code - * Add support for `documents` on `AccountSession.Components` - * Add support for `request_three_d_secure` on `Checkout.Session.PaymentMethodOptionsCard` and `Checkout.Session.CreateParams.PaymentMethodOptionsCard` - * Add support for `created` on `CreditNote.ListParams` - * Add support for `sepa_debit` on `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoiceCreateParams.PaymentSettings.PaymentMethodOptions`, and `InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions` -* [#1268](https://github.com/stripe/stripe-python/pull/1268) Update README.md - -## 8.6.0b1 - 2024-02-29 -* [#1251](https://github.com/stripe/stripe-python/pull/1251) Update generated code for beta - * Remove support for resource `Entitlements.Event` -* [#1264](https://github.com/stripe/stripe-python/pull/1264) Remove unconditional import of TCPConnector from aiohttp in _http_client -* [#1259](https://github.com/stripe/stripe-python/pull/1259) Add helper to add beta version - -## 8.5.0 - 2024-02-29 -* [#1255](https://github.com/stripe/stripe-python/pull/1255) Update generated code - * Change `identity.VerificationReport.type` to be required - * Change type of `identity.VerificationSession.type` from `Optional[Literal["document", "id_number"]]` to `Literal["document", "id_number"]` - * Add support for `number` on `Invoice.CreateParams` and `Invoice.ModifyParams` - * Add support for `enable_customer_cancellation` on `terminal.Reader.Action.ProcessPaymentIntent.process_config`, `Terminal.Reader.Action.ProcessSetupIntent.process_config`, `Terminal.Reader.ProcessPaymentIntentParams.process_config`, and `Terminal.Reader.ProcessSetupIntentParams.process_config` - * Add support for `refund_payment_config` on `Terminal.Reader.Action.refund_payment` and `Terminal.Reader.RefundPaymentParams` - * Add support for `payment_method` on `Token.CreateParams.bank_account` - * Add `list_refunds` and `retrieve_refund` methods on resource `Charge`. -* [#1260](https://github.com/stripe/stripe-python/pull/1260) Update README to use add_beta_version -* [#1250](https://github.com/stripe/stripe-python/pull/1250) Fix type of ErrorObject.code - -## 8.5.0b3 - 2024-02-27 -* [#1262](https://github.com/stripe/stripe-python/pull/1262) Beta: fix ssl for AIOHTTP client - -## 8.5.0b2 - 2024-02-27 -* **Python async** - In this beta release, async support is now "feature complete". If you notice missing async support for something, it's probably a bug! Usage instructions for the async interface are available in the [README.md](https://github.com/stripe/stripe-python/blob/beta/README.md#async). - * [#1253](https://github.com/stripe/stripe-python/pull/1253) Beta: Support 'allow_sync_methods=False' in HTTPXClient - * [#1254](https://github.com/stripe/stripe-python/pull/1254) Beta: add AIOHTTP http client - * [#1247](https://github.com/stripe/stripe-python/pull/1247) Make `ListObject.auto_paging_iter()` implement `AsyncIterator` - -## 8.5.0b1 - 2024-02-22 -* [#1246](https://github.com/stripe/stripe-python/pull/1246) Update generated code for beta - -* [#1239](https://github.com/stripe/stripe-python/pull/1239) Beta: Collapse HTTPClientAsync into HTTPClient - * ⚠️ Removes the `stripe.default_http_client_async` global and the `stripe.HTTPClientAsync` class. - * To set your own async-enabled http client, set `stripe.default_http_client` to a subclass of `stripe.HTTPClient` such as `stripe.HTTPXClient` that implements `.request_async`, `.sleep_async`, `.request_stream_async`, and `.close_async`. - * The default http client of the library is still `RequestsClient` for synchronous methods, that "falls back" to a `HTTPXClient` when asynchronous methods are called. - -## 8.4.0 - 2024-02-22 -* [#1241](https://github.com/stripe/stripe-python/pull/1241) Update generated code - - Add `InvoiceLineItem.modify` method. -* [#1244](https://github.com/stripe/stripe-python/pull/1244) Add TaxIds API - * Add support for `create`, `retrieve`, `delete`, and `list` methods on resource `TaxId` - * The `instance_url` function on resource `TaxId` now returns the top-level `/v1/tax_ids/{id}` path instead of the `/v1/customers/{customer}/tax_ids/{id}` path. -* [#1243](https://github.com/stripe/stripe-python/pull/1243) Remove http client base -* [#1242](https://github.com/stripe/stripe-python/pull/1242) Testing: unify http client mock - -## 8.4.0b1 - 2024-02-16 -* [#1235](https://github.com/stripe/stripe-python/pull/1235) Update generated code for beta - * Add support for `payto` and `twint` payment methods throughout the API - * Add support for `decrement_authorization` method on resource `PaymentIntent` -* [#1236](https://github.com/stripe/stripe-python/pull/1236) Beta: StripeStreamResponseAsync.read helper -* [#1233](https://github.com/stripe/stripe-python/pull/1233) Beta: async streaming - -## 8.3.0 - 2024-02-15 -* [#1230](https://github.com/stripe/stripe-python/pull/1230) Update generated code - * Add support for `networks` on `Card`, `PaymentMethod.CreateParamsCard`, `PaymentMethod.ModifyParamsCard`, and `Token.CreateParamsCard` - * Add support for new value `no_voec` on enums `Checkout.Session.CustomerDetails.TaxId.type`, `Invoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetails.TaxId.type`, `Tax.Transaction.CustomerDetails.TaxId.type`, and `TaxId.type` - * Add support for new value `no_voec` on enums `Customer.CreateParams.tax_id_data[].type`, `Invoice.UpcomingLinesParams.customer_details.tax_ids[].type`, `Invoice.UpcomingParams.customer_details.tax_ids[].type`, and `Tax.Calculation.CreateParams.customer_details.tax_ids[].type` - * Add support for new value `financial_connections.account.refreshed_ownership` on enum `Event.type` - * Add support for `display_brand` on `PaymentMethod.card` - * Add support for new value `financial_connections.account.refreshed_ownership` on enums `WebhookEndpoint.CreateParams.enabled_events[]` and `WebhookEndpoint.UpdateParams.enabled_events[]` -* [#1237](https://github.com/stripe/stripe-python/pull/1237) Remove broken child methods - * Bugfix: remove support for `CreditNoteLineItem.list`, `CustomerCashBalanceTransaction.list`, and `CustomerCashBalanceTransaction.retrieve`. These methods were included in the library unintentionally and never functioned. -* [#1232](https://github.com/stripe/stripe-python/pull/1232) Improve types in _http_client.py - -## 8.3.0b1 - 2024-02-08 -* [#1226](https://github.com/stripe/stripe-python/pull/1226) Update generated code for beta - * Add support for `payment_method_options` on `ConfirmationToken` -* [#1228](https://github.com/stripe/stripe-python/pull/1228) Beta: add `_async` methods for StripeClient - -## 8.2.0 - 2024-02-08 -* [#1225](https://github.com/stripe/stripe-python/pull/1225) Update generated code - * Add support for `invoices` on `Account.Settings` - * Add support for new value `velobank` on various enums `PaymentMethodDetails.P24.bank` - * Add support for `setup_future_usage` on `PaymentMethodOptions.Blik` - * Add support for `require_cvc_recollection` on `PaymentMethodOptions.Card` - * Add support for `account_tax_ids` on various `InvoiceSettings` request parameters -* [#1223](https://github.com/stripe/stripe-python/pull/1223) Move StripeClient usage collection onto StripeService -* [#1220](https://github.com/stripe/stripe-python/pull/1220) Measure StripeClient usage - -## 8.2.0b1 - 2024-02-05 -* [#1218](https://github.com/stripe/stripe-python/pull/1218) Update generated code for beta - * Add support for new resources `Entitlements.Event` and `Entitlements.Feature` - * Add support for `create` method on resource `Event` - * Add support for `create` and `list` methods on resource `Feature` -* [#1171](https://github.com/stripe/stripe-python/pull/1171) Beta: codegenned async methods on resources -* [#1219](https://github.com/stripe/stripe-python/pull/1219) Beta: more async infrastructure -* [#1210](https://github.com/stripe/stripe-python/pull/1210) Beta: better support for trio in HTTPClientAsync - * Fixes support for `trio` on HttpClientAsync. -* [#1209](https://github.com/stripe/stripe-python/pull/1209) Beta: Fix HTTPXClient retries - -## 8.1.0 - 2024-02-01 -* [#1213](https://github.com/stripe/stripe-python/pull/1213) Update generated code - * Add support for `swish` payment method throughout the API - * Add support for `relationship` on parameter classes `Account.CreateParamsIndividual` and `Token.CreateParamsAccountIndividual` - * Add support for `jurisdiction_level` on resource `TaxRate` - * Change type from `str` to `Literal["offline", "online"]` of `status` on field `terminal.Reader` - -## 8.1.0b1 - 2024-01-25 -* [#1198](https://github.com/stripe/stripe-python/pull/1198) Update generated code for beta - * Add support for `create_preview` method on resource `Invoice` -* [#1211](https://github.com/stripe/stripe-python/pull/1211) Merge master into beta - -## 8.0.0 - 2024-01-25 -* [#1206](https://github.com/stripe/stripe-python/pull/1206) stripe-python v8 release - This release introduces `StripeClient` and a service-based call pattern. This new interface allows you to easily call Stripe APIs and has several benefits over the existing resource-based pattern: - - * No global config: you can simultaneously use multiple clients with different configuration options (such as API keys) - * No static methods for easier mocking - - For full migration instructions, please refer to the [v8 migration guide](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v8-(StripeClient)). - - "⚠️" symbol highlights breaking changes - - ### ⚠️ Changed - * ⚠️ **Request options like `api_key`, `stripe_account`, `stripe_version`, and `idempotency_key` can no longer be passed in positionally on resource methods. Please pass these in as keyword arguments.** - - **BEFORE** - ```python - stripe.Customer.create( - "sk_test_123", # api key - "KG5LxwFBepaKHyUD", # idempotency key - "2022-11-15", # stripe version - "acct_123", # stripe account - ) - ``` - - **AFTER** - ```python - stripe.Customer.create( - api_key="sk_test_123", - idempotency_key="KG5LxwFBepaKHyUD", - stripe_version="2022-11-15", - stripe_account="acct_123", - ) - ``` - * ⚠️ Methods that turn a response stream (`Quote.pdf`) now returns a single value of type `StripeResponseStream` instead of a tuple containing `(StripeResponseStream, api_key)`. - * ⚠️ Removed public access to `APIRequestor`. `APIRequestor`'s main use is internal, and we don't have a good understanding of its external use cases. We had to make several breaking changes to its interface as part of this update, so rather than leaving it public we made it private. If you have a use case for `APIRequestor`, please open up a Github issue describing it. We'd rather you rely on something specifically designed for your use case than having to reach into the library's internals. - - - ### ⚠️ Removed - * ⚠️ Remove `api_version` from `File.create` parameters. Please use `stripe_version` instead. - * ⚠️ Remove `util.read_special_variable()` utility method (importing directly from `stripe.util` is deprecated as of [v7.8.0](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#780---2023-12-07)) - * ⚠️ Remove `StripeError.construct_error_object()`. This method was intended for internal stripe-python use only. - * ⚠️ Remove `ListObject.empty_list()`. This method was intended for internal stripe-python use only. - * ⚠️ Remove `SearchResultObject.empty_search_result()`. This method was intended for internal stripe-python use only. - * ⚠️ Remove `StripeObject.ReprJSONEncoder`. This class was intended for internal stripe-python use only. - * ⚠️ Remove `StripeObject.api_base`. This property was defunct and returned `None`. - -## 7.14.0 - 2024-01-25 -* [#1199](https://github.com/stripe/stripe-python/pull/1199) Update generated code - * Add support for `annual_revenue` and `estimated_worker_count` on `Account.business_profile`, `Account.CreateParams.business_profile`, and `Account.UpdateParams.business_profile` - * Add support for new value `registered_charity` on enums `Account.CreateParams.company.structure`, `Account.UpdateParams.company.structure`, and `Token.CreateParams.account.company.structure` - * Add support for `collection_options` on `AccountLink.CreateParams` - * Add support for `liability` on `Checkout.Session.automatic_tax`, `PaymentLink.automatic_tax`, `PaymentLink.CreateParams.automatic_tax`, `PaymentLink.UpdateParams.automatic_tax`, `Quote.automatic_tax`, `Quote.CreateParams.automatic_tax`, `Quote.UpdateParams.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, `SubscriptionSchedule.phases[].automatic_tax`, `SubscriptionSchedule.CreateParams.default_settings.automatic_tax`, `SubscriptionSchedule.CreateParams.phases[].automatic_tax`, `SubscriptionSchedule.UpdateParams.default_settings.automatic_tax`, `SubscriptionSchedule.UpdateParams.phases[].automatic_tax`, and `checkout.Session.CreateParams.automatic_tax` - * Add support for `issuer` on `Checkout.Session.invoice_creation.invoice_data`, `PaymentLink.invoice_creation.invoice_data`, `PaymentLink.CreateParams.invoice_creation.invoice_data`, `PaymentLink.UpdateParams.invoice_creation.invoice_data`, `Quote.invoice_settings`, `Quote.CreateParams.invoice_settings`, `Quote.UpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionSchedule.CreateParams.default_settings.invoice_settings`, `SubscriptionSchedule.CreateParams.phases[].invoice_settings`, `SubscriptionSchedule.UpdateParams.default_settings.invoice_settings`, `SubscriptionSchedule.UpdateParams.phases[].invoice_settings`, and `checkout.Session.CreateParams.invoice_creation.invoice_data` - * Add support for `invoice_settings` on `PaymentLink.subscription_data`, `PaymentLink.CreateParams.subscription_data`, `PaymentLink.UpdateParams.subscription_data`, and `checkout.Session.CreateParams.subscription_data` - * Add support for new value `challenge` on enums `Invoice.CreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `Invoice.UpdateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `Subscription.CreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, and `Subscription.UpdateParams.payment_settings.payment_method_options.card.request_three_d_secure` - * Add support for `promotion_code` on `Invoice.UpcomingLinesParams.discounts[]`, `Invoice.UpcomingLinesParams.invoice_items[].discounts[]`, `Invoice.UpcomingParams.discounts[]`, and `Invoice.UpcomingParams.invoice_items[].discounts[]` - * Add support for `account_type` on `PaymentMethod.UpdateParams.us_bank_account` - -## 7.14.0b1 - 2024-01-18 -* [#1197](https://github.com/stripe/stripe-python/pull/1197) Update generated code for beta - Release specs are identical. -* [#1192](https://github.com/stripe/stripe-python/pull/1192) Update generated code for beta - * Add support for new value `nn` on enum `ConfirmationToken.PaymentMethodPreview.Ideal.bank` - * Add support for new value `NNBANL2G` on enum `ConfirmationToken.PaymentMethodPreview.Ideal.bic` - * Change `Invoice.AutomaticTax.liability`, `Invoice.issuer`, and `Subscription.AutomaticTax.liability` to be required - -## 7.13.0 - 2024-01-18 -* [#1193](https://github.com/stripe/stripe-python/pull/1193) Update generated code - * Add support for providing details about `BankAccount`, `Card`, and `CardToken` on `Account.CreateExternalAccountParams.external_account` and `Account.CreateParams.external_account` - * Add support for new value `nn` on enums `Charge.PaymentMethodDetails.Ideal.bank`, `PaymentIntent.ConfirmParamsPaymentMethodDataIdeal.bank`, `PaymentIntent.CreateParamsPaymenMethodDataIdeal.bank`, `PaymentIntent.UpdateParamsPaymentMethodDataIdeal.bank`, `PaymentMethod.Ideal.bank`, `PaymentMethod.CreateParamsIdeal.bank`, `SetupAttempt.PaymentMethodDetails.Ideal.bank`, `SetupIntent.ConfirmParamsPaymenMethodDataIdeal.bank`, `SetupIntent.CreateParamsPaymenMethodDataIdeal.bank`, and `SetupIntent.UpdateParamsPaymenMethodDataIdeal.bank` - * Add support for new value `NNBANL2G` on enums `Charge.PaymentMethodDetails.Ideal.bic`, `PaymentMethod.Ideal.bic`, and `SetupAttempt.PaymentMethodDetails.Ideal.bic` - * Change `CustomerSession.Components.buy_button` and `CustomerSession.Components.pricing_table` to be required - * Add support for `issuer` on `Invoice.CreateParams`, `Invoice.UpcomingLinesParams`, `Invoice.UpcomingParams`, `Invoice.UpdateParams`, and `Invoice` - * Add support for `liability` on `Invoice.automatic_tax`, `Invoice.CreateParams.automatic_tax`, `Invoice.UpcomingLinesParams.automatic_tax`, `Invoice.UpcomingParams.automatic_tax`, `Invoice.UpdateParams.automatic_tax`, `Subscription.automatic_tax`, `Subscription.CreateParams.automatic_tax`, and `Subscription.UpdateParams.automatic_tax` - * Add support for `on_behalf_of` on `Invoice.UpcomingLinesParams` and `Invoice.UpcomingParams` - * Add support for `pin` on `issuing.Card.CreateParams` - * Add support for `revocation_reason` on `Mandate.PaymentMethodDetails.bacs_debit` - * Add support for `customer_balance` on `PaymentMethodConfiguration.CreateParams`, `PaymentMethodConfiguration.UpdateParams`, and `PaymentMethodConfiguration` - * Add support for `invoice_settings` on `Subscription.CreateParams` and `Subscription.UpdateParams` - -## 7.13.0b1 - 2024-01-12 -* [#1189](https://github.com/stripe/stripe-python/pull/1189) Update generated code for beta -* [#1191](https://github.com/stripe/stripe-python/pull/1191) Beta: report `raw_request` usage -* [#1165](https://github.com/stripe/stripe-python/pull/1165) Beta: raw_request_async with HTTPX - -## 7.12.0 - 2024-01-12 -* [#1188](https://github.com/stripe/stripe-python/pull/1188) Update generated code - * Add support for new resource `CustomerSession` - * Add support for `create` method on resource `CustomerSession` - * Remove support for values `obligation_inbound`, `obligation_payout_failure`, `obligation_payout`, and `obligation_reversal_outbound` from enum `BalanceTransaction.type` - * Add support for new values `eps` and `p24` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Remove support for value `obligation` from enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - * Add support for `billing_cycle_anchor_config` on `SubscriptionCreateParams` and `Subscription` - -## 7.12.0b1 - 2024-01-04 -* [#1187](https://github.com/stripe/stripe-python/pull/1187) Update generated code for beta - * Updated stable APIs to the latest version - -## 7.11.0 - 2024-01-04 -* [#1186](https://github.com/stripe/stripe-python/pull/1186) Update generated code - * Add support for `retrieve` on resource `tax.Registration` - * Change type from `Optional[PaymentDetails]` to `PaymentDetails` of `payment_details` on field `AccountSession.Components` - * Change type from `Optional[Payments]` to `Payments` of `payments` on field `AccountSession.Components` - * Change type from `Optional[Payouts]` to `Payouts` of `payouts` on field `AccountSession.Components` - * Change type from `Optional[Features]` to `Features` of `features` on fields `AccountSession.Components.PaymentDetails`, `AccountSession.Components.Payments`, and `AccountSession.Components.Payouts` - * Change type from `Optional[InvoiceSettings]` to `InvoiceSettings` of `invoice_settings` on field `SubscriptionSchedule.DefaultSettings` - -## 7.11.0b1 - 2023-12-22 -* [#1177](https://github.com/stripe/stripe-python/pull/1177) Update generated code for beta - -## 7.10.0 - 2023-12-22 -* [#1176](https://github.com/stripe/stripe-python/pull/1176) Update generated code - * Add support for new resource `FinancialConnections.Transaction` - * Add support for `list` and `retrieve` methods on resource `Transaction` - * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account` - * Add support for `features` on `AccountSessionCreateParams.components.payouts` - * Add support for `edit_payout_schedule`, `instant_payouts`, and `standard_payouts` on `AccountSession.components.payouts.features` - * Change type of `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` from `literal('balances')` to `enum('balances'|'transactions')` - * Add support for new value `financial_connections.account.refreshed_transactions` on enum `Event.type` - * Add support for new value `transactions` on enum `FinancialConnections.AccountRefreshParams.features[]` - * Add support for `subscriptions` and `transaction_refresh` on `FinancialConnections.Account` - * Add support for `next_refresh_available_at` on `FinancialConnections.Account.balance_refresh` - * Add support for new value `transactions` on enums `FinancialConnections.Session.prefetch[]` and `FinancialConnections.SessionCreateParams.prefetch[]` - * Add support for new value `unknown` on enums `Issuing.Authorization.verification_data.authentication_exemption.type` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data.authentication_exemption.type` - * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure`, `PaymentIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentCreateParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentUpdateParams.payment_method_options.card.request_three_d_secure`, `SetupIntent.payment_method_options.card.request_three_d_secure`, `SetupIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `SetupIntentCreateParams.payment_method_options.card.request_three_d_secure`, and `SetupIntentUpdateParams.payment_method_options.card.request_three_d_secure` - * Add support for `revolut_pay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Change type of `Quote.invoice_settings` from `InvoiceSettingQuoteSetting | null` to `InvoiceSettingQuoteSetting` - * Add support for `destination_details` on `Refund` - * Add support for new value `financial_connections.account.refreshed_transactions` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -* [#1185](https://github.com/stripe/stripe-python/pull/1185) Update generated code -* [#1184](https://github.com/stripe/stripe-python/pull/1184) Remove api_base from RequestOptions type -* [#1178](https://github.com/stripe/stripe-python/pull/1178) Support accessing reserved word resource properties via attribute - -## 7.10.0b1 - 2023-12-14 -* [#1166](https://github.com/stripe/stripe-python/pull/1166) Update generated code for beta -* [#1164](https://github.com/stripe/stripe-python/pull/1164) Beta: revert broken logger - -## 7.9.0 - 2023-12-14 -* [#1161](https://github.com/stripe/stripe-python/pull/1161) Update generated code - - * Add support for `payment_method_reuse_agreement` on resource classes `PaymentLink.ConsentCollection` and `checkout.Session.ConsentCollection` and parameter classes `PaymentLink.CreateParamsConsentCollection` and `checkout.Session.CreateParamsConsentCollection` - * Add support for `after_submit` on parameter classes `PaymentLink.CreateParamsCustomText`, `PaymentLink.ModifyParamsCustomText`, and `checkout.Session.CreateParamsCustomText` and resource classes `PaymentLink.CustomText` and `checkout.Session.CustomText` - * Add support for `created` on parameter class `radar.EarlyFraudWarning.ListParams` -* [#1146](https://github.com/stripe/stripe-python/pull/1146) Track usage of deprecated `save` - * Reports uses of the deprecated `.save` in `X-Stripe-Client-Telemetry`. (You can disable telemetry via `stripe.enable_telemetry = false`, see the [README](https://github.com/stripe/stripe-python/blob/master/README.md#telemetry).) -* [#1101](https://github.com/stripe/stripe-python/pull/1101) Mark defunct and internal methods as deprecated -* [#1169](https://github.com/stripe/stripe-python/pull/1169) Add more types to _http_client.py - -## 7.9.0b1 - 2023-12-08 -* [#1163](https://github.com/stripe/stripe-python/pull/1163) Update generated code for beta - * Add support for `retrieve` method on resource `FinancialConnections.Transaction` - -## 7.8.2 - 2023-12-11 -* [#1168](https://github.com/stripe/stripe-python/pull/1168) Do not raise a DeprecationWarning in `stripe.app_info` - -## 7.8.1 - 2023-12-08 -* [#1159](https://github.com/stripe/stripe-python/pull/1159) Fix __getattr__ to raise AttributeError rather than returning None. This fixes a regression in 7.8.0 that caused `stripe.checkout`/`stripe.issuing` etc. to return `None`. -* [#1157](https://github.com/stripe/stripe-python/pull/1157) Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature` - -## 7.8.0 - 2023-12-07 -* [#1155](https://github.com/stripe/stripe-python/pull/1155) Update generated code - * Add support for `payment_details`, `payments`, and `payouts` on `AccountSession.components` and `CreateParams.components` - * Add support for `features` on `AccountSession.components.account_onboarding` and `CreateParams.components.account_onboarding` - * Add support for new values `customer_tax_location_invalid` and `financial_connections_no_successful_transaction_refresh` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for new values `payment_network_reserve_hold` and `payment_network_reserve_release` on enum `BalanceTransaction.type` - * Change `Climate.Product.metric_tons_available` to be required - * Remove support for value `various` from enum `Climate.Supplier.removal_pathway` - * Remove support for values `challenge_only` and `challenge` from enum `PaymentIntent.payment_method_options.card.request_three_d_secure` - * Add support for `inactive_message` and `restrictions` on `CreateParams`, `ModifyParams`, and `PaymentLink` - * Add support for `transfer_group` on `PaymentLink.payment_intent_data`, `CreateParams.payment_intent_data`, and `ModifyParams.payment_intent_data` - * Add support for `trial_settings` on `PaymentLink.subscription_data`, `CreateParams.subscription_data`, and `ModifyParams.subscription_data` -* [#1153](https://github.com/stripe/stripe-python/pull/1153) Move exports for more modules - - `stripe.app_info`, `stripe.http_client`, `stripe.oauth`, `stripe.util`, `stripe.version`, `stripe.webhook`, modules are deprecated. All types are available directly from `stripe` module now. - Before: - ```python - from stripe.util import convert_to_stripe_object - # or - stripe.util.convert_to_stripe_object - ```` - After: - ```python - from stripe import convert_to_stripe_object - # or - stripe.convert_to_stripe_object - ``` - - `stripe.api_version`, `stripe.multipart_data_generator`, `stripe.request_metrics` are deprecated and will be fully removed in the future. -* [#1142](https://github.com/stripe/stripe-python/pull/1142) Move resource type exports to stripe.___ - - `stripe.error`, `stripe.stripe_object`, `stripe.api_requestor`, `stripe.stripe_response`, `stripe.request_options`, `stripe.api_resources.*`, `stripe.api_resources.abstract.*` modules are deprecated. All types are available directly from `stripe` module now. - Before: - ```python - from stripe.error import APIError - # or - stripe.error.APIError - ```` - After: - ```python - from stripe import APIError - # or - stripe.APIError - ``` - -## 7.8.0b1 - 2023-11-30 -* [#1148](https://github.com/stripe/stripe-python/pull/1148) Update generated code for beta - -## 7.7.0 - 2023-11-30 -* [#1147](https://github.com/stripe/stripe-python/pull/1147) Update generated code - * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier` - * Add support for `cancel`, `create`, `list`, `modify`, and `retrieve` methods on resource `Order` - * Add support for `list` and `retrieve` methods on resources `Product` and `Supplier` - * Add support for new value `financial_connections_account_inactive` on enums `Invoice.LastFinalizationError.code`, `PaymentIntent.LastPaymentError.code`, `SetupAttempt.SetupError.code`, and `SetupIntent.LastSetupError.code` - * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `BalanceTransaction.type` - * Add support for `created` on `Checkout.Session.ListParams` - * Add support for `validate_location` on `Customer.CreateParamsTax` and `Customer.ModifyParamsTax` - * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enum `Event.type` - * Add support for new value `challenge` on enums `PaymentIntent. PaymentMethodOptions.Card.request_three_d_secure` and `SetupIntent. PaymentMethodOptions.Card.request_three_d_secure` - * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `Reporting.ReportRun. CreateParamsParameters.reporting_category` - * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enums `WebhookEndpoint.CreateParams.enabled_events[]` and `WebhookEndpoint.ModifyParams.enabled_events[]` -* [#1145](https://github.com/stripe/stripe-python/pull/1145) Refactor integration test - -## 7.7.0b1 - 2023-11-21 -* [#1141](https://github.com/stripe/stripe-python/pull/1141) Update generated code for beta -* Rename `receipient` to `recipient` beneath `PaymentDetails` on `Charge` and `PaymentIntent` APIs.* Add support for `electronic_commerce_indicator` on resource classes `Charge.PaymentMethodDetails.Card.ThreeDSecure` and `SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure` -* Add support for `components` on parameter class `CustomerSession.CreateParams` and resource `CustomerSession` - -## 7.6.0 - 2023-11-21 -* [#1138](https://github.com/stripe/stripe-python/pull/1138) Update generated code - * Add support for `electronic_commerce_indicator` on resource classes `Charge.PaymentMethodDetails.Card.ThreeDSecure` and `SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure` - * Add support for `exemption_indicator` on resource class `Charge.PaymentMethodDetails.Card.ThreeDSecure` - * Add support for `transaction_id` on resource classes `Charge.PaymentMethodDetails.Card.ThreeDSecure`, `SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure`, `issuing.Authorization.NetworkData`, and `issuing.Transaction.NetworkData` - * Add support for `offline` on resource class `Charge.PaymentMethodDetails.CardPresent` - * Add support for `transferred_to_balance` on resource `CustomerCashBalanceTransaction` - * Add support for `three_d_secure` on parameter classes `PaymentIntent.ConfirmParamsPaymentMethodOptionsCard`, `PaymentIntent.CreateParamsPaymentMethodOptionsCard`, `PaymentIntent.ModifyParamsPaymentMethodOptionsCard`, `SetupIntent.ConfirmParamsPaymentMethodOptionsCard`, `SetupIntent.CreateParamsPaymentMethodOptionsCard`, and `SetupIntent.ModifyParamsPaymentMethodOptionsCard` - * Add support for `system_trace_audit_number` on resource class `issuing.Authorization.NetworkData` - * Add support for `network_risk_score` on resource classes `issuing.Authorization.PendingRequest` and `issuing.Authorization.RequestHistory` - * Add support for `requested_at` on resource class `issuing.Authorization.RequestHistory` - * Add support for `authorization_code` on resource class `issuing.Transaction.NetworkData` - -## 7.6.0b1 - 2023-11-16 -* [#1128](https://github.com/stripe/stripe-python/pull/1128) Update generated code for beta - * Add support for `issuing_card` and `issuing_cards_list` on `AccountSession.CreateParamsComponents` - * Add support for `event_details` and `subscription` on `payment_details` types - * Add support for `affiliate` and `delivery` on `payment_details.flight`, `payment_details.lodging`, and `payment_details.car_rental` types - * Add support for `drivers` on `payment_details.car_rental` types - * Add support for `passengers` on `payment_details.flight` and `payment_details.lodging` types - * Add support for `created` on `CustomerSession` - -## 7.5.0 - 2023-11-16 -* [#1127](https://github.com/stripe/stripe-python/pull/1127) Update generated code - * Add support for `bacs_debit_payments` on `Account.CreateParamsSettings` - * Add support for `service_user_number` on `Account.Settings.BacsDebitPayments` - * Add support for `capture_before` on `Charge.PaymentMethodDetails.Card.capture_before` - * Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions` - * Add support for `tax_amounts` on `CreditNote.CreateParamsLine`, `CreditNote.PreviewParamsLine`, and `CreditNote.PreviewLinesParamsLine` - * Add support for `network_data` on `Issuing.Transaction` - * Add support for `status` on `Checkout.Session.ListParams` -* [#1135](https://github.com/stripe/stripe-python/pull/1135) Add initial tests for exports and run them in mypy and pyright -* [#1130](https://github.com/stripe/stripe-python/pull/1130) Mention types in README.md -* [#1134](https://github.com/stripe/stripe-python/pull/1134) Run pyright via tox -* [#1131](https://github.com/stripe/stripe-python/pull/1131) Upgrade black dependency -* [#1132](https://github.com/stripe/stripe-python/pull/1132) Fix unnecessary casts from pyright 1.1.336 -* [#1126](https://github.com/stripe/stripe-python/pull/1126) Suppress type errors from latest pyright -* [#1125](https://github.com/stripe/stripe-python/pull/1125) Add support for Python 3.11/3.12 -* [#1123](https://github.com/stripe/stripe-python/pull/1123) Move to python3 venv and update vscode settings - -## 7.5.0b1 - 2023-11-10 -* [#1120](https://github.com/stripe/stripe-python/pull/1120) Update generated code for beta - -## 7.4.0 - 2023-11-09 -* [#1119](https://github.com/stripe/stripe-python/pull/1119) Update generated code - * Add support for new value `terminal_reader_hardware_fault` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `metadata` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, and `QuoteUpdateParams.subscription_data` -* [#1121](https://github.com/stripe/stripe-python/pull/1121) [types] Remove `None` from optional param types - -## 7.4.0b1 - 2023-11-02 -* [#1110](https://github.com/stripe/stripe-python/pull/1110) Update generated code for beta - * Add support for `attach_payment_intent` method on resource `Invoice` - -## 7.3.0 - 2023-11-02 -* [#1112](https://github.com/stripe/stripe-python/pull/1112) Update generated code - * Add support for new resource `Tax.Registration` - * Add support for `create`, `list`, and `modify` methods on resource `Registration` - -## 7.2.0 - 2023-10-31 -* [#1115](https://github.com/stripe/stripe-python/pull/1115) Types: Add types for `ErrorObject`. -* [#1116](https://github.com/stripe/stripe-python/pull/1116) Types: Use @staticmethod overloads instead of @classmethod to fix MyPy compatibility. - -## 7.1.0 - 2023-10-26 -* [#1104](https://github.com/stripe/stripe-python/pull/1104) Include `py.typed` and enable type annotations for the package - * This PR includes `py.typed` and enables inline type annotations for stripe-python package. Inline type annotations will now take precedence over Typeshed for users who use a type checker or IDE. - * See a detailed guide on the [Github Wiki](https://github.com/stripe/stripe-python/wiki/Inline-type-annotations). -* [#1103](https://github.com/stripe/stripe-python/pull/1103) Inner resource classes - * Behavior change: nested json objects will now deserialize into instances of specific classes that subclass `StripeObject`, instead of into generic `StripeObject` instances. - * ⚠️ Behavior change: `PromotionCode.restrictions.currency_options` will now deserialize into `dict` and not `StripeObject`. -* [#1090](https://github.com/stripe/stripe-python/pull/1090) Update generated code - * Add support for new value `balance_invalid_parameter` on enums `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, and `SetupIntent.LastSetupError` -* [#1096](https://github.com/stripe/stripe-python/pull/1096) Add @util.deprecated decorator and deprecate `save`. -* [#1091](https://github.com/stripe/stripe-python/pull/1091) APIRequestor: don't mutate incoming multipart headers - - -# Changelog - -## 7.2.0b1 - 2023-10-26 -* [#1107](https://github.com/stripe/stripe-python/pull/1107) Update generated code for beta - * Add support for new resource `Margin` - * Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `Margin` - -## 7.1.0b1 - 2023-10-17 -* [#1084](https://github.com/stripe/stripe-python/pull/1084) Update generated code for beta - - Update pinned API version to `2023-10-16` -* [#1083](https://github.com/stripe/stripe-python/pull/1083) Update generated code for beta - -## 7.0.0 - 2023-10-16 -* This release changes the pinned API version to `2023-10-16`. Please read the [API Changelog](https://docs.stripe.com/changelog/2023-10-16) and carefully review the API changes before upgrading `stripe-python`. -* [#1085](https://github.com/stripe/stripe-python/pull/1085) Update generated code - - Updated pinned API version - -## 6.8.0b3 - 2023-10-13 - - -## 6.8.0b2 - 2023-10-11 -* [#1073](https://github.com/stripe/stripe-python/pull/1073) Update generated code for beta - Release specs are identical. -* [#1061](https://github.com/stripe/stripe-python/pull/1061) Types: inner resource classes - -## 6.8.0b1 - 2023-10-05 -* [#1066](https://github.com/stripe/stripe-python/pull/1066) Update generated code for beta - * Add support for `mark_draft` and `mark_stale` methods on resource `Quote` - * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote` - * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote` -* [#1059](https://github.com/stripe/stripe-python/pull/1059) Update generated code for beta - * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle` - -## 6.7.0 - 2023-10-05 -* [#1065](https://github.com/stripe/stripe-python/pull/1065) Update generated code - * Add support for new resource `Issuing.Token` - * Add support for `list`, `modify`, and `retrieve` methods on resource `Token` - -## 6.7.0b2 - 2023-09-28 -* [#1059](https://github.com/stripe/stripe-python/pull/1059) Update generated code for beta - * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle` -* [#997](https://github.com/stripe/stripe-python/pull/997) Remove developer_message support - -## 6.7.0b1 - 2023-09-21 -* [#1053](https://github.com/stripe/stripe-python/pull/1053) Update generated code for beta - -## 6.6.0 - 2023-09-21 -* [#1056](https://github.com/stripe/stripe-python/pull/1056) Update generated code - -* [#1055](https://github.com/stripe/stripe-python/pull/1055) Partially type resource methods (no **params) -* [#1057](https://github.com/stripe/stripe-python/pull/1057) Add optional types to non-required fields -* [#1054](https://github.com/stripe/stripe-python/pull/1054) Types: add deleted field - -## 6.6.0b1 - 2023-09-14 -* [#1048](https://github.com/stripe/stripe-python/pull/1048) Update generated code for beta - * Add support for new resource `ConfirmationToken` - * Add support for `retrieve` method on resource `ConfirmationToken` - * Add support for `create` method on resource `Issuing.CardDesign` - * Add support for `reject_testmode` test helper method on resource `Issuing.CardDesign` - -## 6.5.0 - 2023-09-14 -* [#1052](https://github.com/stripe/stripe-python/pull/1052) Update generated code - * Add support for new resource `PaymentMethodConfiguration` - * Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `PaymentMethodConfiguration` -* [#1047](https://github.com/stripe/stripe-python/pull/1047) Update generated code - * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization` - * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction` -* [#1049](https://github.com/stripe/stripe-python/pull/1049) Types: datetimes to ints, add enum support -* [#1030](https://github.com/stripe/stripe-python/pull/1030) Explicitly define CRUDL methods in each resource -* [#1050](https://github.com/stripe/stripe-python/pull/1050) Generate explicit nested resource class methods - -## 6.5.0b1 - 2023-09-07 -* [#1045](https://github.com/stripe/stripe-python/pull/1045) Update generated code for beta - * Release specs are identical. -* [#1034](https://github.com/stripe/stripe-python/pull/1034) Update generated code for beta - * Remove support for `submit_card` test helper method on resource `Issuing.Card` - -## 6.4.0 - 2023-09-07 -* [#1033](https://github.com/stripe/stripe-python/pull/1033) Update generated code - * Add support for new resource `PaymentMethodDomain` - * Add support for `create`, `list`, `modify`, `retrieve`, and `validate` methods on resource `PaymentMethodDomain` -* [#1044](https://github.com/stripe/stripe-python/pull/1044) Types: ExpandableField -* [#1043](https://github.com/stripe/stripe-python/pull/1043) Types: ListObject - -## 6.3.0 - 2023-09-05 -* [#1042](https://github.com/stripe/stripe-python/pull/1042) Require typing_extensions >= 4.0.0 -* [#1026](https://github.com/stripe/stripe-python/pull/1026) Types: annotate resource properties - -## 6.3.0b1 - 2023-08-31 -* [#1029](https://github.com/stripe/stripe-python/pull/1029) Update generated code for beta - * Rename `Quote.preview_invoices` and `Quote.preview_subscription_schedules` to `Quote.list_preview_invoices` and `Quote.list_preview_schedules`. - -## 6.2.0 - 2023-08-31 -* [#1024](https://github.com/stripe/stripe-python/pull/1024) Update generated code - * Add support for new resource `AccountSession` - * Add support for `create` method on resource `AccountSession` -* [#1032](https://github.com/stripe/stripe-python/pull/1032) Types for CRUDL methods on parents - -## 6.1.0 - 2023-08-24 -* [#1016](https://github.com/stripe/stripe-python/pull/1016) Update generated code -* [#1020](https://github.com/stripe/stripe-python/pull/1020) Adds type annotations, and dependency on `typing_extensions`. - -## 6.1.0b2 - 2023-08-23 -* [#1006](https://github.com/stripe/stripe-python/pull/1006) [#1017](https://github.com/stripe/stripe-python/pull/1017) Update generated code for beta -* [#1020](https://github.com/stripe/stripe-python/pull/1020) Adds type_annotations, and dependency on `typing_extensions`. - -## 6.1.0b1 - 2023-08-23 - * Updated stable APIs to the latest version - -## 6.0.0 - 2023-08-16 -**⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️** -* [#1001](https://github.com/stripe/stripe-python/pull/1001) [#1008](https://github.com/stripe/stripe-python/pull/1008) Remove support for Python 2. - * The last version of stripe-python that supports Python 2 is 5.5.0. [The Python Software Foundation (PSF)](https://www.python.org/psf-landing/) community [announced the end of support of Python 2](https://www.python.org/doc/sunset-python-2/) on 01 January 2020. To continue to get new features and security updates, please make sure to update your Python runtime to Python 3.6+. -* [#987](https://github.com/stripe/stripe-python/pull/987) ⚠️⚠️Pin to the latest API version⚠️⚠️ - - In this release, Stripe API Version `2023-08-16` (the latest at time of release) will be sent by default on all requests. - The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). - - To successfully upgrade to stripe-python v6, you must either - - 1. **(Recommended) Upgrade your integration to be compatible with API Version `2023-08-16`.** - - Please read the API Changelog carefully for each API Version from `2023-08-16` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production. - - You can read the [v6 migration guide](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v6) for more detailed instructions. - - 2. **(Alternative option) Specify a version other than `2023-08-16` when initializing `stripe-python`.** - - If you were previously initializing stripe-python without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example: - - ```diff - import stripe - stripe.api_key = "sk_test_..." - + stripe.api_version = '2020-08-27' - ``` - - If you were already initializing stripe-python with an explicit API Version, upgrading to v6 will not affect your integration. - - Read the [v6 migration guide](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v6) for more details. - - Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release. - - That is, instead of upgrading stripe-python and separately upgrading your Stripe API Version through the Stripe Dashboard, whenever you upgrade major versions of stripe-python, you should also upgrade your integration to be compatible with the latest Stripe API version. - -* [#1013](https://github.com/stripe/stripe-python/pull/1013) ⚠️Removed @test_helper decorator - * This is technically breaking but unlikely to affect most users. -* [#1015](https://github.com/stripe/stripe-python/pull/1015) ⚠️Assert types of pagination responses - * Pagination will raise an exception if the API response is not of the correct type. This should never happen in production use but may break tests that use mock data. - -## 5.6.0b3 - 2023-08-03 -* [#1004](https://github.com/stripe/stripe-python/pull/1004) Update generated code for beta - * Add support for `submit_card` test helper method on resource `Issuing.Card` -* [#999](https://github.com/stripe/stripe-python/pull/999) Update generated code for beta - -* [#997](https://github.com/stripe/stripe-python/pull/997) Remove developer_message support - -## 5.6.0b2 - 2023-07-28 -* [#995](https://github.com/stripe/stripe-python/pull/995) Update generated code for beta - * Add support for new resource `Tax.Form` - * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form` -* [#992](https://github.com/stripe/stripe-python/pull/992) Update generated code for beta - -## 5.6.0b1 - 2023-07-13 -* [#991](https://github.com/stripe/stripe-python/pull/991) Update generated code for beta - Release specs are identical. -* [#989](https://github.com/stripe/stripe-python/pull/989) Update generated code for beta - * Add support for new resource `PaymentMethodConfiguration` - * Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `PaymentMethodConfiguration` -* [#985](https://github.com/stripe/stripe-python/pull/985) Update generated code for beta - -* [#986](https://github.com/stripe/stripe-python/pull/986) Consolidate beta SDKs section - -## 5.5.0 - 2023-07-13 -* [#990](https://github.com/stripe/stripe-python/pull/990) Update generated code - * Add support for new resource `Tax.Settings` - * Add support for `modify` and `retrieve` methods on resource `Settings` - -## 5.5.0b5 - 2023-06-22 -* [#982](https://github.com/stripe/stripe-python/pull/982) Update generated code for beta - * Add support for new resource `CustomerSession` - * Add support for `create` method on resource `CustomerSession` -* [#979](https://github.com/stripe/stripe-python/pull/979) Update generated code for beta -* [#976](https://github.com/stripe/stripe-python/pull/976) Update generated code for beta - -## 5.5.0b4 - 2023-06-02 -* [#973](https://github.com/stripe/stripe-python/pull/973) Update generated code for beta -* [#969](https://github.com/stripe/stripe-python/pull/969) Update generated code for beta -* [#971](https://github.com/stripe/stripe-python/pull/971) Handle developer message in preview error responses - -## 5.5.0b3 - 2023-05-19 -* [#966](https://github.com/stripe/stripe-python/pull/966) Update generated code for beta - * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account` -* [#965](https://github.com/stripe/stripe-python/pull/965) Add raw_request -* [#964](https://github.com/stripe/stripe-python/pull/964) Update generated code for beta -* [#961](https://github.com/stripe/stripe-python/pull/961) Update generated code for beta - -## 5.5.0b2 - 2023-04-13 -* [#954](https://github.com/stripe/stripe-python/pull/954) Update generated code for beta - * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader` -* [#953](https://github.com/stripe/stripe-python/pull/953) Update generated code for beta - -## 5.5.0b1 - 2023-03-30 -* [#950](https://github.com/stripe/stripe-python/pull/950) Update generated code for beta - -## 5.4.0 - 2023-03-30 -* [#951](https://github.com/stripe/stripe-python/pull/951) Update generated code - * Remove support for `create` method on resource `Tax.Transaction` - * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method. - -## 5.4.0b1 - 2023-03-23 -* [#941](https://github.com/stripe/stripe-python/pull/941) Update generated code for beta (new) - * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem` - * Add support for `collect_inputs` method on resource `Terminal.Reader` - -## 5.3.0 - 2023-03-23 -* [#947](https://github.com/stripe/stripe-python/pull/947) Update generated code - * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction` - * Add support for `create` and `list_line_items` methods on resource `Calculation` - * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction` - -## 5.3.0b4 - 2023-03-16 -* [#940](https://github.com/stripe/stripe-python/pull/940) Update generated code for beta (new) - * Add support for `create_from_calculation` method on resource `Tax.Transaction` -* [#938](https://github.com/stripe/stripe-python/pull/938) Update generated code for beta (new) - * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary` - * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer` - * Remove support for `retrieve` method on resource `FinancingSummary` - -## 5.3.0b3 - 2023-03-09 -* [#936](https://github.com/stripe/stripe-python/pull/936) API Updates for beta branch - * Updated stable APIs to the latest version - * Remove support for `list_transactions` method on resource `Tax.Transaction` - -## 5.3.0b2 - 2023-03-03 -* [#935](https://github.com/stripe/stripe-python/pull/935) API Updates for beta branch - * Updated stable APIs to the latest version - * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign` - * Add support for `list` and `retrieve` methods on resource `CardBundle` - * Add support for `list`, `modify`, and `retrieve` methods on resource `CardDesign` - -## 5.3.0b1 - 2023-02-23 -* [#931](https://github.com/stripe/stripe-python/pull/931) API Updates for beta branch - * Updated stable APIs to the latest version - -## 5.2.0 - 2023-02-16 -* [#924](https://github.com/stripe/stripe-python/pull/924) API Updates - * Add support for `refund_payment` method on resource `Terminal.Reader` - -## 5.2.0b1 - 2023-02-02 -* [#921](https://github.com/stripe/stripe-python/pull/921) API Updates for beta branch - * Updated stable APIs to the latest version - * Add support for new resource `FinancialConnections.Transaction` - * Add support for `list` method on resource `Transaction` - -## 5.1.1 - 2023-02-06 -* [#923](https://github.com/stripe/stripe-python/pull/923) Bugfix: revert "Pass params into logger.{info,debug}" - -## 5.1.0 - 2023-02-02 -* [#920](https://github.com/stripe/stripe-python/pull/920) API Updates - * Add support for `resume` method on resource `Subscription` -* [#913](https://github.com/stripe/stripe-python/pull/913) Pass params into logger.{info,debug} - -## 5.1.0b7 - 2023-01-26 -* [#917](https://github.com/stripe/stripe-python/pull/917) API Updates for beta branch - * Updated stable APIs to the latest version - * Add support for `list_transactions` method on resource `Tax.Transaction` - -## 5.1.0b6 - 2023-01-19 -* [#915](https://github.com/stripe/stripe-python/pull/915) API Updates for beta branch - * Updated stable APIs to the latest version - * Add support for `Tax.Settings` resource. - -## 5.1.0b5 - 2023-01-12 -* [#914](https://github.com/stripe/stripe-python/pull/914) API Updates for beta branch - * Updated stable APIs to the latest version - * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft` - * Add support for `tax.Registration` resource - -## 5.1.0b4 - 2023-01-05 -* [#912](https://github.com/stripe/stripe-python/pull/912) API Updates for beta branch - * Updated stable APIs to the latest version - * Add support for `mark_stale_quote` method on resource `Quote` - -## 5.1.0b3 - 2022-12-22 -* [#910](https://github.com/stripe/stripe-python/pull/910) API Updates for beta branch - * Updated stable APIs to the latest version - * Move `stripe.TaxCalculation` and `stripe.TaxTranscation` to `stripe.tax.Calculation` and `stripe.tax.Transaction`. - -## 5.1.0b2 - 2022-12-15 -* [#906](https://github.com/stripe/stripe-python/pull/906) API Updates for beta branch - * Updated stable APIs to the latest version - * Add support for new resources `QuoteLine`, `TaxCalculation`, and `TaxTransaction` - * Add support for `create` and `list_line_items` methods on resource `TaxCalculation` - * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction` - -## 5.1.0b1 - 2022-12-08 -* [#902](https://github.com/stripe/stripe-python/pull/902) API Updates for beta branch - * Updated stable APIs to the latest version -* [#898](https://github.com/stripe/stripe-python/pull/898) API Updates for beta branch - * Updated stable APIs to the latest version - -## 5.0.0 - 2022-11-16 - -Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://docs.stripe.com/changelog/2022-11-15. - -"⚠️" symbol highlights breaking changes. - -* [#895](https://github.com/stripe/stripe-python/pull/895) Next major release changes -* [#889](https://github.com/stripe/stripe-python/pull/889) API Updates - -* [#888](https://github.com/stripe/stripe-python/pull/888) Do not run Coveralls if secret token is not available -* [#875](https://github.com/stripe/stripe-python/pull/875) hide misleading ssl security warning in python>=2.7.9 - -## 4.3.0b3 - 2022-11-02 -* [#890](https://github.com/stripe/stripe-python/pull/890) API Updates for beta branch - * Updated beta APIs to the latest stable version -* [#885](https://github.com/stripe/stripe-python/pull/885) Update changelog for the Gift Card API -* [#884](https://github.com/stripe/stripe-python/pull/884) API Updates for beta branch - * Updated stable APIs to the latest version - -## 4.3.0b1 - 2022-09-26 -* [#878](https://github.com/stripe/stripe-python/pull/878) API Updates for beta branch - * Updated stable APIs to the latest version - * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources. - -## 4.2.0 - 2022-09-23 -* [#877](https://github.com/stripe/stripe-python/pull/877) API Updates - * Add `upcoming_lines` method to the `Invoice` resource. -* [#873](https://github.com/stripe/stripe-python/pull/873) Add abstract methods for SearchableAPIResource -* [#867](https://github.com/stripe/stripe-python/pull/867) API Updates - * Update links in documentation to be absolute. - -## 4.2.0b2 - 2022-08-26 -* [#869](https://github.com/stripe/stripe-python/pull/869) API Updates for beta branch - * Updated stable APIs to the latest version - * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards). - -## 4.2.0b1 - 2022-08-23 -* [#866](https://github.com/stripe/stripe-python/pull/866) API Updates for beta branch - - Updated stable APIs to the latest version - - `Stripe-Version` beta headers are not pinned by-default and need to be manually specified, please refer to [beta SDKs README section](https://github.com/stripe/stripe-dotnet/blob/master/README.md#beta-sdks) - -## 4.1.0 - 2022-08-19 -* [#861](https://github.com/stripe/stripe-python/pull/861) API Updates - * Add support for new resource `CustomerCashBalanceTransaction` -* [#860](https://github.com/stripe/stripe-python/pull/860) Add a support section to the readme -* [#717](https://github.com/stripe/stripe-python/pull/717) Fix test TestCharge.test_is_saveable(). - -## 4.1.0b2 - 2022-08-11 -* [#859](https://github.com/stripe/stripe-python/pull/859) API Updates for beta branch - - Updated stable APIs to the latest version - - Add `refund_payment` method to Terminal resource - -## 4.1.0b1 - 2022-08-03 -* [#848](https://github.com/stripe/stripe-python/pull/848) API Updates for beta branch - - Updated stable APIs to the latest version - - Added the `Order` resource support - -## 4.0.2 - 2022-08-03 -* [#855](https://github.com/stripe/stripe-python/pull/855) Fix issue where auto_paging_iter failed on nested list objects. - -## 4.0.1 - 2022-08-02 -* [#850](https://github.com/stripe/stripe-python/pull/850) Fix incorrect handling of additional request parameters - * Fixes issue where using special parameter like `api_key`, `idempotency_key`, `stripe_version`, `stripe_account`, `headers` can cause a `Received unknown parameter error`. - -## 4.0.0 - 2022-08-02 - -Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v4. For changes to the Stripe products, read more at https://docs.stripe.com/changelog/2022-08-01. - -"⚠️" symbol highlights breaking changes. - -* [#847](https://github.com/stripe/stripe-python/pull/847) API Updates -* [#845](https://github.com/stripe/stripe-python/pull/845) Next major release changes -* [#836](https://github.com/stripe/stripe-python/pull/836) API Updates. Add Price.create tests. -* [#835](https://github.com/stripe/stripe-python/pull/835) API Updates. Use auto-generation for credit_note and invoice methods. - -## 3.6.0b1 - 2022-07-22 -* [#843](https://github.com/stripe/stripe-python/pull/843) API Updates for beta branch - - Updated stable APIs to the latest version - - Add `QuotePhase` resource -* [#840](https://github.com/stripe/stripe-python/pull/840) API Updates for beta branch - - Updated stable APIs to the latest version - - Add `SubscriptionSchedule.amend` method. -* [#837](https://github.com/stripe/stripe-python/pull/837) API Updates for beta branch - - Include `server_side_confirmation_beta=v1` beta - - Add `secretKeyConfirmation` to `PaymentIntent` -* [#834](https://github.com/stripe/stripe-python/pull/834) API Updates for beta branch - - Updated stable APIs to the latest version -* [#826](https://github.com/stripe/stripe-python/pull/826) Use the generated API version - -## 3.5.0 - 2022-06-30 -* [#831](https://github.com/stripe/stripe-python/pull/831) API Updates - * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card` - * Switch from using `instance_url` to computing method path in place for custom methods. - * Switch from using explicit class methods for test helpers instead of using meta-programming. - -## 3.4.0 - 2022-06-17 -* [#824](https://github.com/stripe/stripe-python/pull/824) API Updates - * Add support for `fund_cash_balance` test helper method on resource `Customer` -* [#823](https://github.com/stripe/stripe-python/pull/823) Trigger workflows on beta branches - -## 3.3.0 - 2022-06-08 -* [#818](https://github.com/stripe/stripe-python/pull/818) fix: Update cash balance methods to no longer require nested ID. - -## 3.2.0 - 2022-05-23 -* [#812](https://github.com/stripe/stripe-python/pull/812) API Updates - * Add support for new resource `Apps.Secret` - -## 3.1.0 - 2022-05-19 -* [#810](https://github.com/stripe/stripe-python/pull/810) API Updates - * Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction` - * Add support for `retrieve_payment_method` method on resource `Customer` - * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account` -* [#719](https://github.com/stripe/stripe-python/pull/719) Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10 -* [#767](https://github.com/stripe/stripe-python/pull/767) Bump vendored six to 1.16.0 -* [#806](https://github.com/stripe/stripe-python/pull/806) Start testing on pypy-3.8 -* [#811](https://github.com/stripe/stripe-python/pull/811) Add sanitize_id method - -## 3.0.0 - 2022-05-09 -* [#809](https://github.com/stripe/stripe-python/pull/809) Release of major version v3.0.0. The [migration guide](https://github.com/stripe/stripe-python/wiki/Migration-Guide-for-v3) contains more information. - (⚠️ = breaking changes): - * ⚠️ Replace the legacy `Order` API with the new `Order` API. - * New methods: `cancel`, `list_line_items`, `reopen`, and `submit` - * Removed methods: `pay` and `return_order` - * Removed resources: `OrderItem` and `OrderReturn` - * ⚠️ Rename `financial_connections.account.refresh` to `financial_connections.refresh_account` - * Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem` - -## 2.76.0 - 2022-05-05 -* [#808](https://github.com/stripe/stripe-python/pull/808) API Updates - * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session` - -## 2.75.0 - 2022-05-03 -* [#805](https://github.com/stripe/stripe-python/pull/805) API Updates - * Add support for new resource `CashBalance` - -## 2.74.0 - 2022-04-21 -* [#796](https://github.com/stripe/stripe-python/pull/796) API Updates - * Add support for `expire` test helper method on resource `Refund` - -## 2.73.0 - 2022-04-18 -* [#792](https://github.com/stripe/stripe-python/pull/792) [#794](https://github.com/stripe/stripe-python/pull/794) [#795](https://github.com/stripe/stripe-python/pull/795) API Updates - * Add support for new resources `FundingInstructions` and `Terminal.Configuration` - -## 2.72.0 - 2022-04-13 -* [#791](https://github.com/stripe/stripe-python/pull/791) API Updates - * Add support for `increment_authorization` method on resource `PaymentIntent` - -## 2.71.0 - 2022-04-08 -* [#788](https://github.com/stripe/stripe-python/pull/788) API Updates - * Add support for `apply_customer_balance` method on resource `PaymentIntent` - -## 2.70.0 - 2022-03-30 -* [#785](https://github.com/stripe/stripe-python/pull/785) API Updates - * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader` - -## 2.69.0 - 2022-03-29 -* [#783](https://github.com/stripe/stripe-python/pull/783) API Updates - * Add support for Search API - * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription` -* [#784](https://github.com/stripe/stripe-python/pull/784) Pin click dependency to 8.0.4 to avoid breakage in black -* [#773](https://github.com/stripe/stripe-python/pull/773) Add infrastructure for test-helper methods -* [#782](https://github.com/stripe/stripe-python/pull/782) Revert Orders to use qualified name for upload_api_base - -## 2.68.0 - 2022-03-23 -* [#781](https://github.com/stripe/stripe-python/pull/781) API Updates - * Add support for `cancel` method on resource `Refund` -* [#777](https://github.com/stripe/stripe-python/pull/777) Add support for SearchResult. - -## 2.67.0 - 2022-03-01 -* [#774](https://github.com/stripe/stripe-python/pull/774) API Updates - * Add support for new resource `TestHelpers.TestClock` - -## 2.66.0 - 2022-02-16 -* [#771](https://github.com/stripe/stripe-python/pull/771) API Updates - * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent` - -## 2.65.0 - 2022-01-20 -* [#766](https://github.com/stripe/stripe-python/pull/766) API Updates - * Add support for new resource `PaymentLink` -* [#763](https://github.com/stripe/stripe-python/pull/763) Start testing Python 3.10 - -## 2.64.0 - 2021-12-21 -* [#757](https://github.com/stripe/stripe-python/pull/757) Update class custom methods to save list object parameters. -* [#756](https://github.com/stripe/stripe-python/pull/756) Introduce custom listing methods on objects. -* [#754](https://github.com/stripe/stripe-python/pull/754) Clarify metadata deletion message. - -## 2.63.0 - 2021-11-16 -* [#748](https://github.com/stripe/stripe-python/pull/748) API Updates - * Add support for new resource `ShippingRate` - -## 2.62.0 - 2021-11-11 -* [#745](https://github.com/stripe/stripe-python/pull/745) API Updates - * Add support for `expire` method on resource `Checkout.Session` - -## 2.61.0 - 2021-10-11 -* [#738](https://github.com/stripe/stripe-python/pull/738) API Updates - * Add support for `list_payment_methods` method on resource `Customer` -* [#736](https://github.com/stripe/stripe-python/pull/736) Stop sending raw exception message as part of Stripe user agent. - -## 2.60.0 - 2021-07-14 -* [#728](https://github.com/stripe/stripe-python/pull/728) API Updates - * Add support for `list_computed_upfront_line_items` method on resource `Quote` - -## 2.59.0 - 2021-07-09 -* [#727](https://github.com/stripe/stripe-python/pull/727) [#725](https://github.com/stripe/stripe-python/pull/725) Add support for new `Quote` API. - -## 2.58.0 - 2021-06-04 -* [#722](https://github.com/stripe/stripe-python/pull/722) API Updates - * Add support for new `TaxCode` API. - -## 2.57.0 - 2021-05-19 -* [#720](https://github.com/stripe/stripe-python/pull/720) Add support for Identity VerificationSession and VerificationReport APIs - -## 2.56.0 - 2021-02-22 -* [#713](https://github.com/stripe/stripe-python/pull/713) Add support for the Billing Portal Configuration API - -## 2.55.2 - 2021-02-05 -* [#704](https://github.com/stripe/stripe-python/pull/704) Fix CA bundle path issue - -## 2.55.1 - 2020-12-01 -* [#698](https://github.com/stripe/stripe-python/pull/698) Fix issue where StripeObjects in lists would not be converted to dicts -* [#699](https://github.com/stripe/stripe-python/pull/699) Start testing Python 3.9 -* [#691](https://github.com/stripe/stripe-python/pull/691) Include the examples in the built sources - -## 2.55.0 - 2020-10-14 -* [#684](https://github.com/stripe/stripe-python/pull/684) Add support for the Payout Reverse API - -## 2.54.0 - 2020-09-29 -* [#681](https://github.com/stripe/stripe-python/pull/681) Add support for the `SetupAttempt` resource and List API -* 2.52.0 and 2.53.0 were empty releases that contained no additional changes. - -## 2.51.0 - 2020-09-02 -* [#676](https://github.com/stripe/stripe-python/pull/676) Add support for the Issuing Dispute Submit API - -## 2.50.0 - 2020-08-05 -* [#669](https://github.com/stripe/stripe-python/pull/669) Add support for the `PromotionCode` resource and APIs - -## 2.49.0 - 2020-07-17 -* [#665](https://github.com/stripe/stripe-python/pull/665) Support stripe.File.create(stripe_version='...') - -## 2.48.0 - 2020-05-11 -* [#655](https://github.com/stripe/stripe-python/pull/655) Add support for the `LineItem` resource and APIs - -## 2.47.0 - 2020-04-29 -* [#652](https://github.com/stripe/stripe-python/pull/652) Add support for the `Price` resource and APIs - -## 2.46.0 - 2020-04-22 -* [#651](https://github.com/stripe/stripe-python/pull/651) Add support for `billing_portal` namespace and `Session` resource and APIs - -## 2.45.0 - 2020-04-06 -* [#648](https://github.com/stripe/stripe-python/pull/648) Add support for Express links in `authorize_url` for `OAuth` - -## 2.44.0 - 2020-03-23 -* [#646](https://github.com/stripe/stripe-python/pull/646) Allow overriding API key in OAuth methods - -## 2.43.0 - 2020-02-26 -* [#644](https://github.com/stripe/stripe-python/pull/644) Add support for listing Checkout `Session` - -## 2.42.0 - 2020-01-14 -* [#640](https://github.com/stripe/stripe-python/pull/640) Add support for `CreditNoteLineItem` -* [#639](https://github.com/stripe/stripe-python/pull/639) Pin black version -* [#637](https://github.com/stripe/stripe-python/pull/637) Start testing Python 3.8 - -## 2.41.1 - 2019-12-30 -* [#636](https://github.com/stripe/stripe-python/pull/636) Fix uploading files with Unicode names (Python 2.7) -* [#635](https://github.com/stripe/stripe-python/pull/635) Update Python API docs inline link -* [#631](https://github.com/stripe/stripe-python/pull/631) Update `proxy.py` - -## 2.41.0 - 2019-11-26 -* [#630](https://github.com/stripe/stripe-python/pull/630) Add support for `CreditNote` preview - -## 2.40.0 - 2019-11-08 -* [#627](https://github.com/stripe/stripe-python/pull/627) Add list_usage_record_summaries and list_source_transactions - -## 2.39.0 - 2019-11-06 -* [#625](https://github.com/stripe/stripe-python/pull/625) Add support for `Mandate` - -## 2.38.0 - 2019-10-29 -* [#623](https://github.com/stripe/stripe-python/pull/623) Add support for reverse pagination -* [#624](https://github.com/stripe/stripe-python/pull/624) Contributor Convenant - -## 2.37.2 - 2019-10-04 -* [#621](https://github.com/stripe/stripe-python/pull/621) Implement support for stripe-should-retry and retry-after headers - -## 2.37.1 - 2019-09-26 -* [#620](https://github.com/stripe/stripe-python/pull/620) Check that `error` is a dict before trying to use it to create a `StripeError` - -## 2.37.0 - 2019-09-26 -* [#619](https://github.com/stripe/stripe-python/pull/619) Add `ErrorObject` to `StripeError` exceptions -* [#616](https://github.com/stripe/stripe-python/pull/616) Pass `CFLAGS` and `LDFLAGS` when running tests - -## 2.36.2 - 2019-09-12 -* [#614](https://github.com/stripe/stripe-python/pull/614) Use `OrderedDict` to maintain key order in API requests and responses - -## 2.36.1 - 2019-09-11 -* [#612](https://github.com/stripe/stripe-python/pull/612) Use `ListObject` properties as default values in request methods - -## 2.36.0 - 2019-09-10 -* [#610](https://github.com/stripe/stripe-python/pull/610) Add support for header parameters in `ListObject` request methods - -## 2.35.1 - 2019-08-20 -* [#605](https://github.com/stripe/stripe-python/pull/605) Fix automatic retries of failed requests -* [#606](https://github.com/stripe/stripe-python/pull/606) Clarify what `max_network_retries` does - -## 2.35.0 - 2019-08-12 -* [#607](https://github.com/stripe/stripe-python/pull/607) Add `SubscriptionItem.create_usage_record` method - -## 2.34.0 - 2019-08-09 -* [#604](https://github.com/stripe/stripe-python/pull/604) Remove subscription schedule revisions - - This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused. - -## 2.33.2 - 2019-08-06 -* [#601](https://github.com/stripe/stripe-python/pull/601) Add support for passing full objects instead of IDs to custom methods -* [#603](https://github.com/stripe/stripe-python/pull/603) Bump vendored six to latest version - -## 2.33.1 - 2019-08-06 -* [#599](https://github.com/stripe/stripe-python/pull/599) Fix `del` statement to not raise `KeyError` - -## 2.33.0 - 2019-07-30 -* [#595](https://github.com/stripe/stripe-python/pull/595) Listing `BalanceTransaction` objects now uses `/v1/balance_transactions` instead of `/v1/balance/history` - -## 2.32.1 - 2019-07-08 -* [#592](https://github.com/stripe/stripe-python/pull/592) Fix argument name conflict - -## 2.32.0 - 2019-06-27 -* [#590](https://github.com/stripe/stripe-python/pull/590) Add support for the `SetupIntent` resource and APIs - -## 2.31.0 - 2019-06-24 -* [#587](https://github.com/stripe/stripe-python/pull/587) Enable request latency telemetry by default - -## 2.30.1 - 2019-06-20 -* [#589](https://github.com/stripe/stripe-python/pull/589) Fix support for `CustomerBalanceTransaction` - -## 2.30.0 - 2019-06-17 -* [#564](https://github.com/stripe/stripe-python/pull/564) Add support for `CustomerBalanceTransaction` resource and APIs - -## 2.29.4 - 2019-06-03 -* [#583](https://github.com/stripe/stripe-python/pull/583) Remove Poetry and reinstate `setup.py` - -## 2.29.3 - 2019-05-31 -Version 2.29.2 was non-functional due to a bugged `version.py` file. This release is identical to 2.29.2 save for the version number. - -## 2.29.2 - 2019-05-31 -* [#561](https://github.com/stripe/stripe-python/pull/561) Replace pipenv with poetry - -## 2.29.1 - 2019-05-31 -* [#578](https://github.com/stripe/stripe-python/pull/578) Verify signatures before deserializing events - -## 2.29.0 - 2019-05-23 -* [#575](https://github.com/stripe/stripe-python/pull/575) Add support for `radar.early_fraud_warning` resource - -## 2.28.2 - 2019-05-23 -* [#574](https://github.com/stripe/stripe-python/pull/574) Fix a few more code quality issues - -## 2.28.1 - 2019-05-20 -* [#572](https://github.com/stripe/stripe-python/pull/572) Fix a few code quality issues - -## 2.28.0 - 2019-05-14 -* [#566](https://github.com/stripe/stripe-python/pull/566) Add support for the `Capability` resource and APIs - -## 2.27.0 - 2019-04-24 -* [#554](https://github.com/stripe/stripe-python/pull/554) Add support for the `TaxRate` resource and APIs - -## 2.26.0 - 2019-04-22 -* [#555](https://github.com/stripe/stripe-python/pull/555) Add support for the `TaxId` resource and APIs - -## 2.25.0 - 2019-04-18 -* [#551](https://github.com/stripe/stripe-python/pull/551) Add support for the `CreditNote` resource and APIs - -## 2.24.1 - 2019-04-08 -* [#550](https://github.com/stripe/stripe-python/pull/550) Fix encoding of nested parameters in multipart requests - -## 2.24.0 - 2019-04-03 -* [#543](https://github.com/stripe/stripe-python/pull/543) Add `delete` class method on deletable API resources -* [#547](https://github.com/stripe/stripe-python/pull/547) Add class methods for all custom API requests (e.g. `Charge.capture`) - -## 2.23.0 - 2019-03-18 -* [#537](https://github.com/stripe/stripe-python/pull/537) Add support for the `PaymentMethod` resource and APIs -* [#540](https://github.com/stripe/stripe-python/pull/540) Add support for retrieving a Checkout `Session` -* [#542](https://github.com/stripe/stripe-python/pull/542) Add support for deleting a Terminal `Location` and `Reader` - -## 2.22.0 - 2019-03-14 -* [#541](https://github.com/stripe/stripe-python/pull/541) Add `stripe.util.convert_to_dict` method for converting `StripeObject` instances to regular `dict`s - -## 2.21.0 - 2019-02-12 -* [#532](https://github.com/stripe/stripe-python/pull/532) Add support for subscription schedules - -## 2.20.3 - 2019-01-30 -* [#530](https://github.com/stripe/stripe-python/pull/530) Fix client telemetry implementation - -## 2.20.2 - 2019-01-30 -* [#534](https://github.com/stripe/stripe-python/pull/534) Fix session initialization for multi-threaded environments - -## 2.20.1 - 2019-01-30 -* [#531](https://github.com/stripe/stripe-python/pull/531) Make `RequestsClient` thread-safe - -## 2.20.0 - 2019-01-29 -* [#526](https://github.com/stripe/stripe-python/pull/526) Reuse the default HTTP client by default - -## 2.19.0 - 2019-01-23 -* [#524](https://github.com/stripe/stripe-python/pull/524) Rename `CheckoutSession` to `Session` and move it under the `checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach. - -## 2.18.1 - 2019-01-21 -* [#525](https://github.com/stripe/stripe-python/pull/525) Properly serialize `individual` on `Account` objects - -## 2.18.0 - 2019-01-15 -* [#518](https://github.com/stripe/stripe-python/pull/518) Add configurable telemetry to gather information on client-side request latency - -## 2.17.0 - 2018-12-21 -* [#510](https://github.com/stripe/stripe-python/pull/510) Add support for Checkout sessions - -## 2.16.0 - 2018-12-10 -* [#507](https://github.com/stripe/stripe-python/pull/507) Add support for account links - -## 2.15.0 - 2018-11-30 -* [#503](https://github.com/stripe/stripe-python/pull/503) Add support for providing custom CA certificate bundle - -## 2.14.0 - 2018-11-28 -* [#500](https://github.com/stripe/stripe-python/pull/500) Add support for `Review` for Radar - -## 2.13.0 - 2018-11-27 -* [#489](https://github.com/stripe/stripe-python/pull/489) Add support for `ValueList` and `ValueListItem` for Radar - -## 2.12.1 - 2018-11-22 -* [#495](https://github.com/stripe/stripe-python/pull/495) Make `StripeResponse` a new-style class - -## 2.12.0 - 2018-11-08 -* [#483](https://github.com/stripe/stripe-python/pull/483) Add new API endpoints for the `Invoice` resource. - -## 2.11.1 - 2018-11-08 -* [#491](https://github.com/stripe/stripe-python/pull/491) Bump minimum requests version to 2.20.0 (for [CVE-2018-18074](https://nvd.nist.gov/vuln/detail/CVE-2018-18074)) - -## 2.11.0 - 2018-10-30 -* [#482](https://github.com/stripe/stripe-python/pull/482) Add support for the `Person` resource -* [#484](https://github.com/stripe/stripe-python/pull/484) Add support for the `WebhookEndpoint` resource - -## 2.10.1 - 2018-10-02 -* [#481](https://github.com/stripe/stripe-python/pull/481) Correct behavior of `stripe.max_network_retries` if it's reset after initial use - -## 2.10.0 - 2018-09-24 -* [#478](https://github.com/stripe/stripe-python/pull/478) Add support for Stripe Terminal - -## 2.9.0 - 2018-09-24 -* [#477](https://github.com/stripe/stripe-python/pull/477) Rename `FileUpload` to `File` - -## 2.8.1 - 2018-09-13 -* [#474](https://github.com/stripe/stripe-python/pull/474) Don't URL-encode square brackets -* [#473](https://github.com/stripe/stripe-python/pull/473) Integer-index encode all arrays - -## 2.8.0 - 2018-09-10 -* [#470](https://github.com/stripe/stripe-python/pull/470) Add support for automatic network retries - -## 2.7.0 - 2018-09-05 -* [#469](https://github.com/stripe/stripe-python/pull/469) Add support for reporting resources - -## 2.6.0 - 2018-08-23 -* [#467](https://github.com/stripe/stripe-python/pull/467) Add support for usage record summaries - -## 2.5.0 - 2018-08-16 -* [#463](https://github.com/stripe/stripe-python/pull/463) Remove unsupported Bitcoin endpoints (this is technically a breaking change, but we're releasing as a minor version because none of these APIs were usable anyway) - -## 2.4.0 - 2018-08-03 -* [#460](https://github.com/stripe/stripe-python/pull/460) Add cancel support for topups -* [#461](https://github.com/stripe/stripe-python/pull/461) Add support for file links - -## 2.3.0 - 2018-07-27 -* [#456](https://github.com/stripe/stripe-python/pull/456) Add support for Sigma scheduled query run objects - -## 2.2.0 - 2018-07-26 -* [#455](https://github.com/stripe/stripe-python/pull/455) Add support for Stripe Issuing - -## 2.1.0 - 2018-07-25 -* [#452](https://github.com/stripe/stripe-python/pull/452) Add `InvoiceLineItem` class - -## 2.0.3 - 2018-07-19 -* [#450](https://github.com/stripe/stripe-python/pull/450) Internal improvements to `ApiResource.class_url` - -## 2.0.2 - 2018-07-18 -* [#448](https://github.com/stripe/stripe-python/pull/448) Avoid duplicate dependency on `requests` with Python 2.7 - -## 2.0.1 - 2018-07-10 -* [#445](https://github.com/stripe/stripe-python/pull/445) Fix `setup.py` - -## 2.0.0 - 2018-07-10 -Major version release. List of backwards incompatible changes to watch out for: -* The minimum Python versions are now 2.7 / 3.4. If you're using Python 2.6 or 3.3, consider upgrading to a more recent version. -* Stripe exception classes should now be accessed via `stripe.error` rather than just `stripe` -* Some older deprecated methods have been removed -* Trying to detach an unattached source will now raise a `stripe.error.InvalidRequestError` exception instead of a `NotImplementedError` exception - -For more information, check out the [migration guide for v2](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v2) - -Pull requests included in this release: -* [#385](https://github.com/stripe/stripe-python/pull/385) Drop support for Python 2.6 and 3.3 -* [#384](https://github.com/stripe/stripe-python/pull/384) Use py.test for tests -* [#399](https://github.com/stripe/stripe-python/pull/399) Remove deprecated code -* [#402](https://github.com/stripe/stripe-python/pull/402) Remove `util.json` and use `json` module directly everywhere -* [#403](https://github.com/stripe/stripe-python/pull/403) Update setup.py and test flow -* [#410](https://github.com/stripe/stripe-python/pull/410) Use pipenv -* [#415](https://github.com/stripe/stripe-python/pull/415) Change exception when detaching unattached sources from `NotImplementedError` to `stripe.error.InvalidRequestError` - -## 1.84.2 - 2018-07-06 -* [#441](https://github.com/stripe/stripe-python/pull/441) Better (hopefully) fix for serialization of empty `ListObject`s - -## 1.84.1 - 2018-07-04 -* [#439](https://github.com/stripe/stripe-python/pull/439) Fix serialization of empty `ListObject`s - -## 1.84.0 - 2018-06-29 -* [#436](https://github.com/stripe/stripe-python/pull/436) Add support for payment intents - -## 1.83.0 - 2018-06-28 -* [#437](https://github.com/stripe/stripe-python/pull/437) Add support for `partner_id` in `stripe.set_app_info()` - -## 1.82.2 - 2018-06-19 -* [#365](https://github.com/stripe/stripe-python/pull/365) Add `__repr__` methods to `StripeError` exception classes - -## 1.82.1 - 2018-05-14 -* [#430](https://github.com/stripe/stripe-python/pull/430) Handle the case where request ID is `None` when formatting errors - -## 1.82.0 - 2018-05-13 -* [#422](https://github.com/stripe/stripe-python/pull/422) Add `user_mesage` to `StripeError` for a way in Python 3 to avoid the "Request req_...:" string normally appended to error messages - -## 1.81.0 - 2018-05-10 -* [#425](https://github.com/stripe/stripe-python/pull/425) Add support for issuer fraud records - -## 1.80.0 - 2018-04-24 -* [#421](https://github.com/stripe/stripe-python/pull/421) Add support for flexible billing and usage records - -## 1.79.1 - 2018-02-27 -* [#401](https://github.com/stripe/stripe-python/pull/401) Drop conditional dependencies that incorrectly led to an added `simplejson` dependency in Python 3+ after switching to universal wheel - -## 1.79.0 - 2018-02-23 -* [#397](https://github.com/stripe/stripe-python/pull/397) Build universal wheels by default -* [#398](https://github.com/stripe/stripe-python/pull/398) Add support for `code` attribute on all Stripe exceptions - -## 1.78.0 - 2018-02-21 -* [#396](https://github.com/stripe/stripe-python/pull/396) Add support for topups - -## 1.77.2 - 2018-02-08 -* [#394](https://github.com/stripe/stripe-python/pull/394) Make `last_response` available after calling `save()` - -## 1.77.1 - 2018-01-12 -* [#389](https://github.com/stripe/stripe-python/pull/389) Register unsaved attributes on assignment regardless of new value - -## 1.77.0 - 2017-12-21 -* [#371](https://github.com/stripe/stripe-python/pull/371) Add accessor `last_response` on `StripeObject` for accessing request ID and other metadata - -## 1.76.0 - 2017-12-21 -* [#382](https://github.com/stripe/stripe-python/pull/382) Add new `IdempotencyError` type - -## 1.75.3 - 2017-12-05 -* [#378](https://github.com/stripe/stripe-python/pull/378) Log encoded version of parameters instead of raw POST data - -## 1.75.2 - 2017-12-05 -* (Accidental no-op release. See 1.75.3.) - -## 1.75.1 - 2017-11-29 -* [#372](https://github.com/stripe/stripe-python/pull/372) Add only changed values to `_unsaved_values` in `StripeObject` -* [#375](https://github.com/stripe/stripe-python/pull/375) Use a custom JSON encoder to handle `datetime` objects when serializing `StripeObject`s - -## 1.75.0 - 2017-11-08 -* [#369](https://github.com/stripe/stripe-python/pull/369) Make custom actions on various resources (e.g. `Account.reject`) more consistent with other APIs - -## 1.74.0 - 2017-11-07 -* [#368](https://github.com/stripe/stripe-python/pull/368) Remove API that allowed the creation of new disputes (this was an erroneous addition; it never worked because the API would not allow it) - -## 1.73.0 - 2017-11-02 -* [#364](https://github.com/stripe/stripe-python/pull/364) Switch to vendored version of the `six` package for compatibility between Python 2 and 3 - -## 1.72.0 - 2017-10-31 -* [#361](https://github.com/stripe/stripe-python/pull/361) Support for exchange rates APIs - -## 1.71.2 - 2017-10-31 -* [#362](https://github.com/stripe/stripe-python/pull/362) Fix balance transaction and invoice item conversion into `StripeObject`s - -## 1.71.1 - 2017-10-27 -* [#360](https://github.com/stripe/stripe-python/pull/360) Fix `BytesWarning` being issued on logging in Python 3 - -## 1.71.0 - 2017-10-26 -* [#359](https://github.com/stripe/stripe-python/pull/359) Support for listing source transactions - -## 1.70.0 - 2017-10-23 -* [#356](https://github.com/stripe/stripe-python/pull/356) Support uploading files with `StringIO` in addition to a file on disk - -## 1.69.0 - 2017-10-20 -* [#351](https://github.com/stripe/stripe-python/pull/351) Break resource.py module into separate ones for each type of resource - * Classes are still into resource.py for backwards compatibility -* [#353](https://github.com/stripe/stripe-python/pull/353) Fix unpickling `StripeObject` in Python 3 - -## 1.68.0 - 2017-10-19 -* [#350](https://github.com/stripe/stripe-python/pull/350) Add static methods to manipulate resources from parent - * `Account` gains methods for external accounts and login links (e.g. `.create_account`, `create_login_link`) - * `ApplicationFee` gains methods for refunds - * `Customer` gains methods for sources - * `Transfer` gains methods for reversals - -## 1.67.0 - 2017-10-11 -* [#349](https://github.com/stripe/stripe-python/pull/349) Rename source `delete` to `detach` (and deprecate the former) - -## 1.66.0 - 2017-09-29 -* Support length reads on list objects - -## 1.65.1 - 2017-09-21 -* Handle `bytearray` and `bytes` (in addition to string) in `Webhook.construct_event` - -## 1.65.0 - 2017-09-07 -* Add support for passing a `stripe_version` argument to all API requests - -## 1.64.0 - 2017-09-01 -* Error when an invalid type (i.e. non-string) passed as an API method argument - -## 1.63.1 - 2017-09-01 -* Fix serialization of `items` on Relay order creation and order return - -## 1.63.0 - 2017-08-29 -* Add support for `InvalidClientError` OAuth error - -## 1.62.1 - 2017-08-07 -* Change serialization of subscription items on update to encoded as an integer-indexed map - -## 1.62.0 - 2017-06-27 -* `pay` on invoice can now take parameter - -## 1.61.0 - 2017-06-24 -* Expose `code` on `InvalidRequestError` - -## 1.60.0 - 2017-06-19 -* Add support for ephemeral keys - -## 1.59.0 - 2017-06-07 -* Refactor OAuth implementation to have dedicated classes for errors - -## 1.58.0 - 2017-06-02 -* Re-use connections with Pycurl - -## 1.57.1 - 2017-05-31 -* Fix the pycurl client - -## 1.57.0 - 2017-05-26 -* Add `api_key` parameter to webhook's `construct_event` - -## 1.56.0 - 2017-05-25 -* Add support for account login links - -## 1.55.2 - 2017-05-11 -* Remove Requests constraint from 1.55.1 now that they've patched (as of 2.14.2) - -## 1.55.1 - 2017-05-10 -* Constrain Requests to < 2.13.0 if on setuptools < 18.0.0 - -## 1.55.0 - 2017-04-28 -* Support for checking webhook signatures - -## 1.54.0 - 2017-04-28 -* Add `stripe.set_app_info` for use by plugin creators - -## 1.53.0 - 2017-04-06 -* Add support for payouts and recipient transfers - -## 1.52.0 - 2017-04-06 -* No-op release: peg test suite to a specific API version - -## 1.51.0 - 2017-03-20 -* Support OAuth operations (getting a token and deauthorizing) - -## 1.50.0 - 2017-03-17 -* Support for detaching sources from customers - -## 1.49.0 - 2017-03-13 -* Accept `session` argument for `RequestsClient` - -## 1.48.1 - 2017-02-21 -* Fix encoding of parameters when fetching upcoming invoices - -## 1.48.0 - 2017-02-21 -* Add `Account.modify_external_account` to modify an account in one API call -* Add `Customer.modify_source` to modify a source in one API call - -## 1.47.0 - 2017-01-18 -* Allow sources to be updated - -## 1.46.0 - 2017-01-06 -* Use internal session for Requests for connection pooling - -## 1.45.0 - 2017-01-06 -* request logging goes to stderr now -* Logs properly handle unicode -* Format is now the same between logging logs, and console logs - -## 1.44.0 - 2016-12-16 -* Add request logging and some mechanisms to enable it when debugging - -## 1.43.0 - 2016-11-30 -* Add support for verifying sources - -## 1.42.0 - 2016-11-21 -* Add retrieve method for 3-D Secure resources - -## 1.41.1 - 2016-10-26 -* Implement __copy__ and __deepcopy__ on StripeObject to fix these operations - -## 1.41.0 - 2016-10-12 -* Add `Source` model for generic payment sources - -## 1.40.1 - 2016-10-10 -* Return subscription model instance on subscription create/modify - -## 1.40.0 - 2016-10-07 -* Add configurable timeout for Requests HTTP library - -## 1.39.0 - 2016-10-06 -* Add support for subscription items -* Add proxy support for pycurl, Requests, urlfetch, and urllib2 libraries - -## 1.38.0 - 2016-09-15 -* Add support for Apple Pay domains - -## 1.37.0 - 2016-07-12 -* Add `ThreeDSecure` model for 3-D secure payments - -## 1.36.0 - 2016-06-29 -* Add `update` class method to resources that can be updated - -## 1.35.0 - 2016-05-24 -* Add support for returning Relay orders - -## 1.34.0 - 2016-05-20 -* Add support for Alipay accounts - -## 1.33.0 - 2016-05-04 -* Add support for the new `/v1/subscriptions` endpoint - * `stripe.Subscription.retrieve` - * `stripe.Subscription.update` - * `stripe.Subscription.create` - * `stripe.Subscription.list` - -## 1.32.2 - 2016-04-12 -* Fix bug where file uploads could not be properly listed - -## 1.32.1 - 2016-04-11 -* Fix bug where request parameters were not passed between pages with `auto_paging_iter` - -## 1.32.0 - 2016-03-31 -* Update CA cert bundle for compatibility with OpenSSL versions below 1.0.1 - -## 1.31.1 - 2016-03-24 -* Fix uploading of binary files in Python 3 - -## 1.31.0 - 2016-03-15 -* Add `reject` on `Account` to support the new API feature - -## 1.30.0 - 2016-02-27 -* Add `CountrySpec` model for looking up country payment information - -## 1.29.1 - 2016-02-01 -* Update bundled CA certs - -## 1.29.0 - 2016-01-26 -* Add support for deleting Relay products and SKUs - -## 1.28.0 - 2016-01-04 -* Add an automatic paginating iterator to lists available via `auto_paging_iter` -* List objects are now iterable -* Error messages set to `None` are now handled properly -* The `all` method on list objects has been deprecated in favor of `list` -* Calls to `instance_url` are now side effect free - -## 1.27.1 - 2015-10-02 -* Official Python 3.4 & 3.5 compatibility -* Add configurable HTTP client -* Add ability to delete attributes - -## 1.27.0 - 2015-09-14 -* Products, SKUs, Orders resources - -## 1.26.0 - 2015-09-11 -* Add support for new 429 rate limit response - -## 1.25.0 - 2015-08-17 -* Added refund listing, creation and retrieval - -## 1.24.1 - 2015-08-05 -* Fix error handling for Python 2.6 - -## 1.24.0 - 2015-08-03 -* Managed accounts can now be deleted -* Added dispute listing and retrieval - -## 1.23.0 - 2015-07-06 -* Include response headers in exceptions - -## 1.22.3 - 2015-06-04 -* Fix saving `additional_owners` on managed accounts - -## 1.22.2 - 2015-04-08 -* Fix saving manage accounts - -## 1.22.1 - 2015-03-30 -* Pass `stripe_account` to Balance.retrieve - -## 1.22.0 - 2015-03-22 -* Added methods for updating and saving arrays of objects - -## 1.21.0 - 2015-02-19 -* Added Bitcoin Receiver update and delete methods - -## 1.20.2 - 2015-01-21 -* Remove support for top-level bitcoin transactions - -## 1.20.1 - 2015-01-07 -* Adding bitcoin receiver and transaction objects - -## 1.20.0 - 2014-12-23 -* Adding support for file uploads resource - -## 1.19.1 - 2014-10-23 -* Remove redundant manual SSL blacklist preflight check - -## 1.19.0 - 2014-07-26 -* Application Fee refunds now a list instead of array - -## 1.18.0 - 2014-06-17 -* Add metadata for disputes and refunds - -## 1.17.0 - 2014-06-10 -* Remove official support for Python 2.5 - -## 1.16.0 - 2014-05-28 -* Support for canceling transfers - -## 1.15.1 - 2014-05-21 -* Support cards for recipients. - -## 1.14.1 - 2014-05-19 -* Disable loading the ssl module on the Google App Engine dev server. - -## 1.14.0 - 2014-04-09 -* Use DER encoded certificate for checksumming -* Don't rely on SNI support in integration tests - -## 1.13.0 - 2014-04-09 -* Update bundled ca-certificates -* Add certificate blacklist for CVE-2014-0160 mitigation - -## 1.12.2 - 2014-03-13 -* Fix syntax errors in setup.py metadata - -## 1.12.1 - 2014-03-13 -* Added license and other metadata in setup.py -* Fix `__repr__` in Python 3 -* Support pickling of responses - -## 1.12.0 - 2014-01-29 -* Added support for multiple subscriptions per customer - -## 1.11.0 - 2013-12-05 -* Added extensive unit tests -* Extended functional test coverage -* Refactored code into modules and out of stripe/__init__.py -* Abstracted http library selection and use from the `APIRequestor` into `stripe.http_client` -* Refactored `StripeObject` to inherit from `dict` and avoid direct access of `__dict__`. -* PEP8ified the codebase and enforced with a test. -* Proper encoding of timezone aware datetimes - -## 1.10.8 - 2013-12-02 -* Add stripe.ApplicationFee resource - -## 1.9.8 - 2013-10-17 -* Removed incorrect test. - -## 1.9.7 - 2013-10-10 -* Add support for metadata. - -## 1.9.6 - 2013-10-08 -* Fix issue with support for closing disputes. - -## 1.9.5 - 2013-09-18 -* Add support for closing disputes. - -## 1.9.4 - 2013-08-13 -* Add stripe.Balance and stripe.BalanceTransaction resources - -## 1.9.3 - 2013-08-12 -* Add support for unsetting attributes by setting to None. - Setting properties to a blank string is now an error. - -## 1.9.2 - 2013-07-12 -* Add support for multiple cards API - -## 1.9.1 - 2013-05-03 -* Remove 'id' from the list of permanent attributes - -## 1.9.0 - 2013-04-25 -* Support for Python 3 (github issue #32) - -## 1.8.0 - 2013-04-11 -* Allow transfers to be creatable -* Add new stripe.Recipient resource - -## 1.7.10 - 2013-02-21 -* Add 'id' to the list of permanent attributes - -## 1.7.9 - 2013-02-01 -* Add support for passing options when retrieving Stripe objects; e.g., stripe.Charge.retrieve("foo", params={"expand":["customer"]}) - -## 1.7.8 - 2013-01-15 -* Add support for setting a Stripe API version override - -## 1.7.7 - 2012-12-18 -* Update requests version check to work with requests 1.x.x (github issue #24) - -## 1.7.6 - 2012-11-08 -* Add support for updating charge disputes - -## 1.7.5 - 2012-10-30 -* Add support for creating invoices -* Add support for new invoice lines return format -* Add support for new List objects - -## 1.7.4 - 2012-08-31 -* Add update and pay methods for Invoice resource - -## 1.7.3 - 2012-08-15 -* Add new stripe.Account resource -* Remove uncaptured_charge tests (this has been deprecated from the API). - -## 1.7.2 - 2012-05-31 -* Fix a bug that would cause nested objects to be mis-rendered in __str__ and __repr__ methods (github issues #17, #18) - -## 1.7.1 - 2012-05-21 -* Prefer App Engine's urlfetch over requests, as that's the only thing that will work in App Engine's environment. Previously, if requests was available in the App Engine environment, we would attempt to use it. - -## 1.7.0 - 2012-05-17 -* Add new delete_discount method to stripe.Customer -* Add new stripe.Transfer resource -* Switch from using HTTP Basic auth to Bearer auth. (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward) -* Numerous test suite improvements - -## 1.6.1 - 2011-09-14 -* Parameters with value None are no longer included in API requests - From c01d25c3a2384a8e83a97ae45e0d1dff015efd9d Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 11 Sep 2026 13:55:29 -0700 Subject: [PATCH 02/11] point the hark actions at master --- .github/workflows/changelog.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index b8261d5a1..c87d0c56c 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -18,6 +18,6 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: stripe/hark/actions/require-changefile@v1 - - uses: stripe/hark/actions/require-migration-guide@v1 - - uses: stripe/hark/actions/check-pr-links@v1 + - uses: stripe/hark/actions/require-changefile@master + - uses: stripe/hark/actions/require-migration-guide@master + - uses: stripe/hark/actions/check-pr-links@master From a35769f0637229a233baa346586b8c06f513d238 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 11 Sep 2026 15:25:52 -0700 Subject: [PATCH 03/11] use the single hark/checks action in CI --- .github/workflows/changelog.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index c87d0c56c..aed122580 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -18,6 +18,4 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: stripe/hark/actions/require-changefile@master - - uses: stripe/hark/actions/require-migration-guide@master - - uses: stripe/hark/actions/check-pr-links@master + - uses: stripe/hark/actions/checks@master From 24870428faba42cf43df3f30fc82d5a003c65092 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 11 Sep 2026 17:49:10 -0700 Subject: [PATCH 04/11] use the hark checks action and rename pr_link to pr_url --- .hark/changes/2025-08-27_ramya_update-generated-code.change.md | 2 +- .hark/changes/2025-08-27_ramya_use-right-api.change.md | 2 +- .../2025-09-17_xavdid_generate-private-preview.change.md | 2 +- .../2025-09-24_prathmesh_update-generated-code.change.md | 2 +- .../2025-10-09_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-10-17_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-10-22_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-10-29_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-10-30_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-11-06_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-11-12_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-11-13_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-11-17_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-11-18_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-11-20_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-11-24_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-12-04_stripe-openapi_update-generated-code.change.md | 2 +- .../2025-12-04_stripe-openapi_update-generated-code_2.change.md | 2 +- .../2025-12-14_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-01-05_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-01-06_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-01-14_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-01-21_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-01-28_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-02-04_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-02-11_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-02-18_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-02-23_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-04_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-11_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-16_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-17_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-25_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-25_stripe-openapi_update-generated-code_2.change.md | 2 +- .../2026-04-01_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-08_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-15_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-15_stripe-openapi_update-generated-code_2.change.md | 2 +- .../2026-04-24_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-28_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-29_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-05-05_xavdid_add-eventnotific-private.change.md | 2 +- .../2026-05-06_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-05-13_stripe-openapi_update-generated-code.change.md | 2 +- .../changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md | 2 +- .../2026-05-21_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-05-27_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-06-03_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-06-10_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-06-17_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-06-24_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-02_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-08_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-16_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-23_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-30_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-08-05_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-08-13_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-08-19_stripe-openapi_update-generated-code.change.md | 2 +- .hark/changes/2026-08-19_xavdid_add-non-verified.change.md | 2 +- .../2026-08-26_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-09-02_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-09-09_stripe-openapi_update-generated-code.change.md | 2 +- 63 files changed, 63 insertions(+), 63 deletions(-) diff --git a/.hark/changes/2025-08-27_ramya_update-generated-code.change.md b/.hark/changes/2025-08-27_ramya_update-generated-code.change.md index 100679b85..5ae22618f 100644 --- a/.hark/changes/2025-08-27_ramya_update-generated-code.change.md +++ b/.hark/changes/2025-08-27_ramya_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1552 +pr_url: https://github.com/stripe/stripe-python/pull/1552 is_stripe_api_change: true released_in_version: 12.6.0a1 --- diff --git a/.hark/changes/2025-08-27_ramya_use-right-api.change.md b/.hark/changes/2025-08-27_ramya_use-right-api.change.md index 17fdcef38..25dbc60de 100644 --- a/.hark/changes/2025-08-27_ramya_use-right-api.change.md +++ b/.hark/changes/2025-08-27_ramya_use-right-api.change.md @@ -1,5 +1,5 @@ --- title: Use the right API version 2025-08-27.preview -pr_link: https://github.com/stripe/stripe-python/pull/1556 +pr_url: https://github.com/stripe/stripe-python/pull/1556 released_in_version: 12.6.0a1 --- diff --git a/.hark/changes/2025-09-17_xavdid_generate-private-preview.change.md b/.hark/changes/2025-09-17_xavdid_generate-private-preview.change.md index f19678d1b..282ac8bd4 100644 --- a/.hark/changes/2025-09-17_xavdid_generate-private-preview.change.md +++ b/.hark/changes/2025-09-17_xavdid_generate-private-preview.change.md @@ -1,6 +1,6 @@ --- title: generate private-preview SDK w/ mid Sept changes -pr_link: https://github.com/stripe/stripe-python/pull/1571 +pr_url: https://github.com/stripe/stripe-python/pull/1571 is_stripe_api_change: true released_in_version: 12.6.0a2 --- diff --git a/.hark/changes/2025-09-24_prathmesh_update-generated-code.change.md b/.hark/changes/2025-09-24_prathmesh_update-generated-code.change.md index 19e1d8b25..ab9c8326e 100644 --- a/.hark/changes/2025-09-24_prathmesh_update-generated-code.change.md +++ b/.hark/changes/2025-09-24_prathmesh_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1587 +pr_url: https://github.com/stripe/stripe-python/pull/1587 is_stripe_api_change: true released_in_version: 13.1.0a1 --- diff --git a/.hark/changes/2025-10-09_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-09_stripe-openapi_update-generated-code.change.md index 1bcc52156..2a950cf79 100644 --- a/.hark/changes/2025-10-09_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-10-09_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1629 +pr_url: https://github.com/stripe/stripe-python/pull/1629 is_stripe_api_change: true released_in_version: 13.1.0a2 --- diff --git a/.hark/changes/2025-10-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-17_stripe-openapi_update-generated-code.change.md index 4949c5f86..25d3f6611 100644 --- a/.hark/changes/2025-10-17_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-10-17_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1643 +pr_url: https://github.com/stripe/stripe-python/pull/1643 is_stripe_api_change: true released_in_version: 13.1.0a3 --- diff --git a/.hark/changes/2025-10-22_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-22_stripe-openapi_update-generated-code.change.md index c8a3547c1..f7fe359a0 100644 --- a/.hark/changes/2025-10-22_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-10-22_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1649 +pr_url: https://github.com/stripe/stripe-python/pull/1649 is_stripe_api_change: true released_in_version: 13.1.0a4 --- diff --git a/.hark/changes/2025-10-29_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-29_stripe-openapi_update-generated-code.change.md index cf1adc3a1..bb990ea19 100644 --- a/.hark/changes/2025-10-29_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-10-29_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1654 +pr_url: https://github.com/stripe/stripe-python/pull/1654 is_stripe_api_change: true released_in_version: 13.2.0a1 --- diff --git a/.hark/changes/2025-10-30_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-10-30_stripe-openapi_update-generated-code.change.md index e86fef34a..084b3ad76 100644 --- a/.hark/changes/2025-10-30_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-10-30_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1659 +pr_url: https://github.com/stripe/stripe-python/pull/1659 is_stripe_api_change: true released_in_version: 13.2.0a2 --- diff --git a/.hark/changes/2025-11-06_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-06_stripe-openapi_update-generated-code.change.md index 62004bb7c..137329114 100644 --- a/.hark/changes/2025-11-06_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-11-06_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1664 +pr_url: https://github.com/stripe/stripe-python/pull/1664 is_stripe_api_change: true released_in_version: 13.3.0a1 --- diff --git a/.hark/changes/2025-11-12_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-12_stripe-openapi_update-generated-code.change.md index b5ec40043..2747f9e0e 100644 --- a/.hark/changes/2025-11-12_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-11-12_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1666 +pr_url: https://github.com/stripe/stripe-python/pull/1666 is_stripe_api_change: true released_in_version: 13.3.0a2 --- diff --git a/.hark/changes/2025-11-13_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-13_stripe-openapi_update-generated-code.change.md index 74df7e42d..dc315575c 100644 --- a/.hark/changes/2025-11-13_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-11-13_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1672 +pr_url: https://github.com/stripe/stripe-python/pull/1672 is_stripe_api_change: true released_in_version: 13.3.0a2 --- diff --git a/.hark/changes/2025-11-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-17_stripe-openapi_update-generated-code.change.md index 62f4d1144..f3f41729a 100644 --- a/.hark/changes/2025-11-17_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-11-17_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1674 +pr_url: https://github.com/stripe/stripe-python/pull/1674 is_stripe_api_change: true released_in_version: 14.1.0a1 --- diff --git a/.hark/changes/2025-11-18_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-18_stripe-openapi_update-generated-code.change.md index b1bad6784..b5636e29c 100644 --- a/.hark/changes/2025-11-18_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-11-18_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1675 +pr_url: https://github.com/stripe/stripe-python/pull/1675 is_stripe_api_change: true released_in_version: 14.1.0a1 --- diff --git a/.hark/changes/2025-11-20_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-20_stripe-openapi_update-generated-code.change.md index fd03cf3fa..cbd0aa4ec 100644 --- a/.hark/changes/2025-11-20_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-11-20_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1679 +pr_url: https://github.com/stripe/stripe-python/pull/1679 is_stripe_api_change: true released_in_version: 14.1.0a2 --- diff --git a/.hark/changes/2025-11-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-24_stripe-openapi_update-generated-code.change.md index f26f90462..f1a72a16e 100644 --- a/.hark/changes/2025-11-24_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-11-24_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1685 +pr_url: https://github.com/stripe/stripe-python/pull/1685 is_stripe_api_change: true released_in_version: 14.1.0a3 --- diff --git a/.hark/changes/2025-12-04_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-12-04_stripe-openapi_update-generated-code.change.md index 0956e096b..d58201eaf 100644 --- a/.hark/changes/2025-12-04_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-12-04_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1691 +pr_url: https://github.com/stripe/stripe-python/pull/1691 is_stripe_api_change: true released_in_version: 14.1.0a4 --- diff --git a/.hark/changes/2025-12-04_stripe-openapi_update-generated-code_2.change.md b/.hark/changes/2025-12-04_stripe-openapi_update-generated-code_2.change.md index 947a0bff7..c0eb2e971 100644 --- a/.hark/changes/2025-12-04_stripe-openapi_update-generated-code_2.change.md +++ b/.hark/changes/2025-12-04_stripe-openapi_update-generated-code_2.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1686 +pr_url: https://github.com/stripe/stripe-python/pull/1686 is_stripe_api_change: true released_in_version: 14.1.0a4 --- diff --git a/.hark/changes/2025-12-14_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-12-14_stripe-openapi_update-generated-code.change.md index 94ad8f1e9..ae43210be 100644 --- a/.hark/changes/2025-12-14_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2025-12-14_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1693 +pr_url: https://github.com/stripe/stripe-python/pull/1693 is_stripe_api_change: true released_in_version: 14.2.0a1 --- diff --git a/.hark/changes/2026-01-05_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-05_stripe-openapi_update-generated-code.change.md index acca6e5ef..764e1c839 100644 --- a/.hark/changes/2026-01-05_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-01-05_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1698 +pr_url: https://github.com/stripe/stripe-python/pull/1698 is_stripe_api_change: true released_in_version: 14.2.0a2 --- diff --git a/.hark/changes/2026-01-06_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-06_stripe-openapi_update-generated-code.change.md index e52c2da90..9df0173b9 100644 --- a/.hark/changes/2026-01-06_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-01-06_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1711 +pr_url: https://github.com/stripe/stripe-python/pull/1711 is_stripe_api_change: true released_in_version: 14.2.0a2 --- diff --git a/.hark/changes/2026-01-14_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-14_stripe-openapi_update-generated-code.change.md index 4f30195ba..eeec53d9f 100644 --- a/.hark/changes/2026-01-14_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-01-14_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1718 +pr_url: https://github.com/stripe/stripe-python/pull/1718 is_stripe_api_change: true released_in_version: 14.2.0a3 --- diff --git a/.hark/changes/2026-01-21_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-21_stripe-openapi_update-generated-code.change.md index ab046fe6f..a22bf8c5c 100644 --- a/.hark/changes/2026-01-21_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-01-21_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1723 +pr_url: https://github.com/stripe/stripe-python/pull/1723 is_stripe_api_change: true released_in_version: 14.3.0a1 --- diff --git a/.hark/changes/2026-01-28_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-28_stripe-openapi_update-generated-code.change.md index 552a8a9fd..d746c7696 100644 --- a/.hark/changes/2026-01-28_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-01-28_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1726 +pr_url: https://github.com/stripe/stripe-python/pull/1726 is_stripe_api_change: true released_in_version: 14.4.0a1 --- diff --git a/.hark/changes/2026-02-04_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-04_stripe-openapi_update-generated-code.change.md index 979127be8..302d58dd0 100644 --- a/.hark/changes/2026-02-04_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-02-04_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1728 +pr_url: https://github.com/stripe/stripe-python/pull/1728 is_stripe_api_change: true released_in_version: 14.4.0a2 --- diff --git a/.hark/changes/2026-02-11_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-11_stripe-openapi_update-generated-code.change.md index de5549d4d..436162af2 100644 --- a/.hark/changes/2026-02-11_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-02-11_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1730 +pr_url: https://github.com/stripe/stripe-python/pull/1730 is_stripe_api_change: true released_in_version: 14.4.0a3 --- diff --git a/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md index e14641519..7577b2d6c 100644 --- a/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1734 +pr_url: https://github.com/stripe/stripe-python/pull/1734 is_breaking: true is_stripe_api_change: true released_in_version: 14.4.0a4 diff --git a/.hark/changes/2026-02-23_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-23_stripe-openapi_update-generated-code.change.md index 50aadf157..a4ce8ded2 100644 --- a/.hark/changes/2026-02-23_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-02-23_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1735 +pr_url: https://github.com/stripe/stripe-python/pull/1735 is_stripe_api_change: true released_in_version: 14.5.0a1 --- diff --git a/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md index a46c9b497..e2702aaec 100644 --- a/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1741 +pr_url: https://github.com/stripe/stripe-python/pull/1741 is_breaking: true is_stripe_api_change: true released_in_version: 14.5.0a2 diff --git a/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md index 9323ac597..91c38830f 100644 --- a/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1750 +pr_url: https://github.com/stripe/stripe-python/pull/1750 is_breaking: true is_stripe_api_change: true released_in_version: 14.5.0a3 diff --git a/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md index 510117a9d..f928972f4 100644 --- a/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1755 +pr_url: https://github.com/stripe/stripe-python/pull/1755 is_breaking: true is_stripe_api_change: true released_in_version: 14.5.0a4 diff --git a/.hark/changes/2026-03-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-17_stripe-openapi_update-generated-code.change.md index a22b654af..338757978 100644 --- a/.hark/changes/2026-03-17_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-17_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1760 +pr_url: https://github.com/stripe/stripe-python/pull/1760 is_stripe_api_change: true released_in_version: 14.5.0a4 --- diff --git a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md index 26282d6af..754166c63 100644 --- a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1776 +pr_url: https://github.com/stripe/stripe-python/pull/1776 is_breaking: true is_stripe_api_change: true released_in_version: 15.1.0a1 diff --git a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md index 7a4af13b9..965b969c6 100644 --- a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md +++ b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1763 +pr_url: https://github.com/stripe/stripe-python/pull/1763 is_breaking: true is_stripe_api_change: true released_in_version: 15.1.0a1 diff --git a/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md index 3d3e709dd..2b8e9b6c0 100644 --- a/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1778 +pr_url: https://github.com/stripe/stripe-python/pull/1778 is_breaking: true is_stripe_api_change: true released_in_version: 15.1.0a2 diff --git a/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md index a98517eb4..62bfd3f69 100644 --- a/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1789 +pr_url: https://github.com/stripe/stripe-python/pull/1789 is_breaking: true is_stripe_api_change: true released_in_version: 15.1.0a3 diff --git a/.hark/changes/2026-04-15_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code.change.md index cf97bcd51..6bbb6b765 100644 --- a/.hark/changes/2026-04-15_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1794 +pr_url: https://github.com/stripe/stripe-python/pull/1794 is_stripe_api_change: true released_in_version: 15.1.0a4 --- diff --git a/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md index a83857fd7..fe2166b57 100644 --- a/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md +++ b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1791 +pr_url: https://github.com/stripe/stripe-python/pull/1791 is_breaking: true is_stripe_api_change: true released_in_version: 15.1.0a4 diff --git a/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md index a7366a537..9eb4eca51 100644 --- a/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1795 +pr_url: https://github.com/stripe/stripe-python/pull/1795 is_breaking: true is_stripe_api_change: true released_in_version: 15.2.0a1 diff --git a/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md index ef449f36e..744a662f6 100644 --- a/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1800 +pr_url: https://github.com/stripe/stripe-python/pull/1800 is_breaking: true is_stripe_api_change: true released_in_version: 15.2.0a2 diff --git a/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md index ba0529c77..05efb7131 100644 --- a/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1802 +pr_url: https://github.com/stripe/stripe-python/pull/1802 is_breaking: true is_stripe_api_change: true released_in_version: 15.2.0a3 diff --git a/.hark/changes/2026-05-05_xavdid_add-eventnotific-private.change.md b/.hark/changes/2026-05-05_xavdid_add-eventnotific-private.change.md index bee18cc73..17afab873 100644 --- a/.hark/changes/2026-05-05_xavdid_add-eventnotific-private.change.md +++ b/.hark/changes/2026-05-05_xavdid_add-eventnotific-private.change.md @@ -1,5 +1,5 @@ --- title: Add EventNotificationHandler (private preview) -pr_link: https://github.com/stripe/stripe-python/pull/1805 +pr_url: https://github.com/stripe/stripe-python/pull/1805 released_in_version: 15.2.0a4 --- diff --git a/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md index fb479fd74..85aacc753 100644 --- a/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1804 +pr_url: https://github.com/stripe/stripe-python/pull/1804 is_breaking: true is_stripe_api_change: true released_in_version: 15.2.0a4 diff --git a/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md index b9e8e7cf2..8a63a8c6b 100644 --- a/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1807 +pr_url: https://github.com/stripe/stripe-python/pull/1807 is_breaking: true is_stripe_api_change: true released_in_version: 15.2.0a5 diff --git a/.hark/changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md b/.hark/changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md index a2f0fd860..0014d97db 100644 --- a/.hark/changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md +++ b/.hark/changes/2026-05-18_xavdid_remove-unnecessary-cast.change.md @@ -1,5 +1,5 @@ --- title: remove unnecessary cast -pr_link: https://github.com/stripe/stripe-python/pull/1811 +pr_url: https://github.com/stripe/stripe-python/pull/1811 released_in_version: 15.2.0a6 --- diff --git a/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md index 3290ebc82..262f9b61c 100644 --- a/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1809 +pr_url: https://github.com/stripe/stripe-python/pull/1809 is_breaking: true is_stripe_api_change: true released_in_version: 15.2.0a6 diff --git a/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md index 008642fcd..46e645b8f 100644 --- a/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1815 +pr_url: https://github.com/stripe/stripe-python/pull/1815 is_breaking: true is_stripe_api_change: true released_in_version: 15.3.0a1 diff --git a/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md index 4970422c7..5e89a222a 100644 --- a/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1818 +pr_url: https://github.com/stripe/stripe-python/pull/1818 is_breaking: true is_stripe_api_change: true released_in_version: 15.3.0a2 diff --git a/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md index f2a708e62..5ff6b56c2 100644 --- a/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1827 +pr_url: https://github.com/stripe/stripe-python/pull/1827 is_breaking: true is_stripe_api_change: true released_in_version: 15.3.0a3 diff --git a/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md index 44d92931d..b8150e258 100644 --- a/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1828 +pr_url: https://github.com/stripe/stripe-python/pull/1828 is_breaking: true is_stripe_api_change: true released_in_version: 15.3.0a4 diff --git a/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md index 29ac9d852..26a8f30b0 100644 --- a/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1833 +pr_url: https://github.com/stripe/stripe-python/pull/1833 is_breaking: true is_stripe_api_change: true released_in_version: 15.4.0a1 diff --git a/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md index 2c078bd5d..c39081060 100644 --- a/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1839 +pr_url: https://github.com/stripe/stripe-python/pull/1839 is_breaking: true is_stripe_api_change: true released_in_version: 15.4.0a2 diff --git a/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md index 9a7cd8ae6..34e99dbf1 100644 --- a/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1842 +pr_url: https://github.com/stripe/stripe-python/pull/1842 is_breaking: true is_stripe_api_change: true released_in_version: 15.4.0a3 diff --git a/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md index 6d739db90..da8b829f5 100644 --- a/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1844 +pr_url: https://github.com/stripe/stripe-python/pull/1844 is_breaking: true is_stripe_api_change: true released_in_version: 15.4.0a4 diff --git a/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md index 17cb186b4..4316b2bf7 100644 --- a/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1852 +pr_url: https://github.com/stripe/stripe-python/pull/1852 is_breaking: true is_stripe_api_change: true released_in_version: 15.4.0a5 diff --git a/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md index f962ea222..48ad035d2 100644 --- a/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1854 +pr_url: https://github.com/stripe/stripe-python/pull/1854 is_breaking: true is_stripe_api_change: true released_in_version: 15.5.0a1 diff --git a/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md index c9d64ccb4..1768f4a38 100644 --- a/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1859 +pr_url: https://github.com/stripe/stripe-python/pull/1859 is_breaking: true is_stripe_api_change: true released_in_version: 15.5.0a2 diff --git a/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md index b8cce7924..c4d3170a5 100644 --- a/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1873 +pr_url: https://github.com/stripe/stripe-python/pull/1873 is_breaking: true is_stripe_api_change: true released_in_version: 15.6.0a1 diff --git a/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md index bb9267fc4..6f0e90d00 100644 --- a/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1875 +pr_url: https://github.com/stripe/stripe-python/pull/1875 is_breaking: true is_stripe_api_change: true released_in_version: 15.6.0a2 diff --git a/.hark/changes/2026-08-19_xavdid_add-non-verified.change.md b/.hark/changes/2026-08-19_xavdid_add-non-verified.change.md index a81115e20..b4e3239f9 100644 --- a/.hark/changes/2026-08-19_xavdid_add-non-verified.change.md +++ b/.hark/changes/2026-08-19_xavdid_add-non-verified.change.md @@ -1,5 +1,5 @@ --- title: Add non-verified manged handlers -pr_link: https://github.com/stripe/stripe-python/pull/1880 +pr_url: https://github.com/stripe/stripe-python/pull/1880 released_in_version: 15.7.0a1 --- diff --git a/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md index 273f3d37f..0d08918a2 100644 --- a/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1884 +pr_url: https://github.com/stripe/stripe-python/pull/1884 is_breaking: true is_stripe_api_change: true released_in_version: 15.7.0a1 diff --git a/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md index f69c1a63c..ab9bf3079 100644 --- a/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1893 +pr_url: https://github.com/stripe/stripe-python/pull/1893 is_breaking: true is_stripe_api_change: true released_in_version: 15.7.0a2 diff --git a/.hark/changes/2026-09-09_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-09-09_stripe-openapi_update-generated-code.change.md index 8c2726629..4f4577063 100644 --- a/.hark/changes/2026-09-09_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-09-09_stripe-openapi_update-generated-code.change.md @@ -1,6 +1,6 @@ --- title: Update generated code for private-preview -pr_link: https://github.com/stripe/stripe-python/pull/1901 +pr_url: https://github.com/stripe/stripe-python/pull/1901 is_stripe_api_change: true released_in_version: 15.7.0a3 --- From 94b881cf1b62ce345fa76390bbe1e05a9842eedd Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 11 Sep 2026 20:32:24 -0700 Subject: [PATCH 05/11] record language and channel in versions.json metadata --- .hark/versions.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.hark/versions.json b/.hark/versions.json index 362a5ef4b..73c4ad58b 100644 --- a/.hark/versions.json +++ b/.hark/versions.json @@ -1,4 +1,8 @@ { + "metadata": { + "language": "python", + "channel": "private-preview" + }, "versions": [ { "version": "15.7.0a3", From 5095ef0987cb17f4905b0cf7fc35ed8e7a0b7ff2 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 11 Sep 2026 22:41:38 -0700 Subject: [PATCH 06/11] rename versions.json to releases.json --- .hark/{versions.json => releases.json} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .hark/{versions.json => releases.json} (99%) diff --git a/.hark/versions.json b/.hark/releases.json similarity index 99% rename from .hark/versions.json rename to .hark/releases.json index 73c4ad58b..11ec426cc 100644 --- a/.hark/versions.json +++ b/.hark/releases.json @@ -3,7 +3,7 @@ "language": "python", "channel": "private-preview" }, - "versions": [ + "releases": [ { "version": "15.7.0a3", "released_on": "2026-09-09", From 28da3dbbc4d6b1cd553c4455b35879ca86cada7f Mon Sep 17 00:00:00 2001 From: David Brownman Date: Sun, 13 Sep 2026 02:36:28 -0700 Subject: [PATCH 07/11] regenerate changelogs; pad short versions --- CHANGELOG.md | 104 +++++++++++++++++++++++++-------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a36b9fbc4..2202d9567 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ Instead, edit a corresponding `.change.md` file and run `hark build`. > This changelog only covers the **private preview** releases. Each release builds on the most recent GA release; see those notes in [the GA changelog](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md). -## 15.7.0a3 - 2026-09-09 +## 15.7.0a3 - 2026-09-09 * [#1901](https://github.com/stripe/stripe-python/pull/1901) Update generated code for private-preview * Add support for `customer_tax_exemption` on `Tax.Calculation.ShippingCost.TaxBreakdown`, `Tax.CalculationLineItem.TaxBreakdown`, and `Tax.Transaction.ShippingCost.TaxBreakdown` * Add support for new value `data_share_only` on enums `Charge.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure.result`, and `SetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.result` @@ -21,7 +21,7 @@ Instead, edit a corresponding `.change.md` file and run `hark build`. * Add support for new value `rtp` on enum `Treasury.FinancialAccount.FinancialAddress.supported_networks` * Add support for new value `blik_recurring_payments` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` -## 15.7.0a2 - 2026-09-02 +## 15.7.0a2 - 2026-09-02 * ⚠️ [#1893](https://github.com/stripe/stripe-python/pull/1893) Update generated code for private-preview * Add support for new resources `radar.BillingEvaluation`, `v2.signals.PaymentRetryEvaluation`, `v2.signals.PaymentRetrySignal`, and `v2.tax.IntegrationConfiguration` * Add support for `create` method on resource `radar.BillingEvaluation` @@ -105,7 +105,7 @@ Instead, edit a corresponding `.change.md` file and run `hark build`. * Add support for error code `contract_number_already_exists` on `AlreadyExistsError` * Add support for error codes `default_payout_method_cannot_be_disabled`, `evaluation_not_monitoring`, `missing_payment_data_for_evaluation`, `one_time_fee_already_billed`, `payment_not_eligible`, and `webhook_endpoint_not_configured` on `CannotProceedError` -## 15.7.0a1 - 2026-08-26 +## 15.7.0a1 - 2026-08-26 This release changes the pinned API version to `2026-08-26.preview`. * [#1880](https://github.com/stripe/stripe-python/pull/1880) Add non-verified manged handlers @@ -141,7 +141,7 @@ This release changes the pinned API version to `2026-08-26.preview`. * Add support for new value `user_access_started` on enum `v2.iam.ActivityLogListParams.actions` * Add support for new value `blik_recurring_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability` -## 15.6.0a2 - 2026-08-19 +## 15.6.0a2 - 2026-08-19 * ⚠️ [#1875](https://github.com/stripe/stripe-python/pull/1875) Update generated code for private-preview * Add support for new resources `PaymentPlan` and `billing.FeedbackOption` * ⚠️ Remove support for resource `billing.FeedbackOptions` @@ -172,7 +172,7 @@ This release changes the pinned API version to `2026-08-26.preview`. * Change type of `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionUpdate.metadata` from `string` to `emptyable(string)` * Add support for snapshot events `payment_plan.created`, `payment_plan.installment_due`, `payment_plan.installment_paid`, `payment_plan.installment_will_be_due`, and `payment_plan.updated` with resource `PaymentPlan` -## 15.6.0a1 - 2026-08-12 +## 15.6.0a1 - 2026-08-12 This release changes the pinned API version to `2026-08-12.preview`. * ⚠️ [#1873](https://github.com/stripe/stripe-python/pull/1873) Update generated code for private-preview @@ -222,7 +222,7 @@ This release changes the pinned API version to `2026-08-12.preview`. * Add support for event notification `V1InvoicePaymentAttemptRequiredEvent` with related object `Invoice` * Add support for error type `FxQuoteNeedsRefreshError` -## 15.5.0a2 - 2026-08-05 +## 15.5.0a2 - 2026-08-05 * ⚠️ [#1859](https://github.com/stripe/stripe-python/pull/1859) Update generated code for private-preview * Add support for new resource `billing.FeedbackOptions` * Add support for `sequra_payments` on `Account.Capability` @@ -248,7 +248,7 @@ This release changes the pinned API version to `2026-08-12.preview`. * Add support for `status` on `v2.money_management.FinancialAccountStatementListParams` * Change `v2.billing.ContractCreateParams.pricing_lines` to be optional -## 15.5.0a1 - 2026-07-29 +## 15.5.0a1 - 2026-07-29 This release changes the pinned API version to `2026-07-29.preview`. * ⚠️ [#1854](https://github.com/stripe/stripe-python/pull/1854) Update generated code for private-preview @@ -300,7 +300,7 @@ This release changes the pinned API version to `2026-07-29.preview`. * Add support for event notification `V2SignalsAccountEvaluationCompleteEvent` with related object `v2.signals.AccountEvaluation` * Add support for event notifications `V2SignalsAccountSignalFraudulentWebsiteReadyEvent` and `V2SignalsAccountSignalPaymentDelinquencyExposureReadyEvent` with related object `v2.signals.AccountSignal` -## 15.4.0a5 - 2026-07-22 +## 15.4.0a5 - 2026-07-22 * ⚠️ [#1852](https://github.com/stripe/stripe-python/pull/1852) Update generated code for private-preview * Add support for new resources `billing.AlertNotification` and `crypto.DepositAddress` * Add support for `create`, `list`, and `retrieve` methods on resource `crypto.DepositAddress` @@ -334,7 +334,7 @@ This release changes the pinned API version to `2026-07-29.preview`. * Add support for new value `payment_delinquency_exposure` on enums `V2.Signals.AccountSignal.type` and `v2.signals.AccountSignalListParams.type` * Add support for new value `commercial.stripe.spend_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` -## 15.4.0a4 - 2026-07-16 +## 15.4.0a4 - 2026-07-16 * ⚠️ [#1844](https://github.com/stripe/stripe-python/pull/1844) Update generated code for private-preview * ⚠️ Remove support for resource `FrMealVouchersOnboarding` * ⚠️ Remove support for `create`, `list`, `modify`, and `retrieve` methods on resource `FrMealVouchersOnboarding` @@ -359,7 +359,7 @@ This release changes the pinned API version to `2026-07-29.preview`. * Add support for snapshot events `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, and `financial_connections.account.upcoming_deactivation` with resource `financial_connections.Account` * Add support for snapshot events `financial_connections.authorization.expected_deactivation_date_updated` and `financial_connections.authorization.upcoming_deactivation` with resource `financial_connections.Authorization` -## 15.4.0a3 - 2026-07-08 +## 15.4.0a3 - 2026-07-08 This release changes the pinned API version to `2026-07-08.preview`. * ⚠️ [#1842](https://github.com/stripe/stripe-python/pull/1842) Update generated code for private-preview @@ -408,7 +408,7 @@ This release changes the pinned API version to `2026-07-08.preview`. * ⚠️ Change type of `v2.billing.ContractModifyParamsPricingLineActionAddStartsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionAddStartsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdatePricingPriceDetailPricingOverrideActionUpdateStartsAt.type`, `v2.billing.ContractModifyParamsPricingLineActionUpdateStartsAt.type`, `v2.billing.ContractModifyParamsPricingOverrideActionAddStartsAt.type`, and `v2.billing.ContractModifyParamsPricingOverrideActionUpdateStartsAt.type` from `enum('billing_period_start'|'timestamp')` to `literal('timestamp')` * Add support for event notifications `V2BillingContractActivatedEvent`, `V2BillingContractCanceledEvent`, `V2BillingContractCreatedEvent`, `V2BillingContractEndedEvent`, and `V2BillingContractUpdatedEvent` with related object `v2.billing.Contract` -## 15.4.0a2 - 2026-07-01 +## 15.4.0a2 - 2026-07-01 This release changes the pinned API version to `2026-07-01.preview`. * ⚠️ [#1839](https://github.com/stripe/stripe-python/pull/1839) Update generated code for private-preview @@ -440,7 +440,7 @@ This release changes the pinned API version to `2026-07-01.preview`. * Change type of `v2.money_management.FinancialAccountCreateParams.type` from `literal('storage')` to `enum('credit'|'storage')` * Add support for `expires_at` on `v2.iam.ApiKeyCreateParams` -## 15.4.0a1 - 2026-06-24 +## 15.4.0a1 - 2026-06-24 This release changes the pinned API version to `2026-06-24.preview`. * ⚠️ [#1833](https://github.com/stripe/stripe-python/pull/1833) Update generated code for private-preview @@ -541,7 +541,7 @@ This release changes the pinned API version to `2026-06-24.preview`. * Add support for error codes `us_bank_account_microdeposits_cannot_be_confirmed` and `us_bank_account_microdeposits_cannot_be_sent` on `ControlledByAlternateResourceError` * Add support for error code `payout_intent_not_cancelable` on `NotCancelableError` -## 15.3.0a4 - 2026-06-17 +## 15.3.0a4 - 2026-06-17 * ⚠️ [#1828](https://github.com/stripe/stripe-python/pull/1828) Update generated code for private-preview * Add support for `retrieve` method on resource `radar.CustomerEvaluation` * Add support for `disable_stripe_user_authentication` on `AccountSession.Component.Bill.Feature` @@ -593,7 +593,7 @@ This release changes the pinned API version to `2026-06-24.preview`. * Add support for `payment_record` on `RefundListParams` * Add support for `protections` on `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Celtic.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Celtic.SpendCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.CrossRiverBank.SpendCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.FifthThird.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Lead.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe.ChargeCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Commercial.Stripe.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Celtic.RevolvingCreditCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.CrossRiverBank.PrepaidCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead.DebitCard`, `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead.PrepaidCard`, `V2.Core.Account.Configuration.Customer.Capability.AutomaticIndirectTax`, `V2.Core.Account.Configuration.Merchant.Capability.AchDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AcssDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AffirmPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AfterpayClearpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AlmaPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AmazonPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AuBecsDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BacsDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BancontactPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BlikPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BoletoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CardPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CartesBancairesPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CashappPayment`, `V2.Core.Account.Configuration.Merchant.Capability.EpsPayment`, `V2.Core.Account.Configuration.Merchant.Capability.FpxPayment`, `V2.Core.Account.Configuration.Merchant.Capability.GbBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.GrabpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.IdealPayment`, `V2.Core.Account.Configuration.Merchant.Capability.JcbPayment`, `V2.Core.Account.Configuration.Merchant.Capability.JpBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KakaoPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KlarnaPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KonbiniPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KrCardPayment`, `V2.Core.Account.Configuration.Merchant.Capability.LinkPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MobilepayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MultibancoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MxBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.NaverPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.OxxoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.P24Payment`, `V2.Core.Account.Configuration.Merchant.Capability.PayByBankPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PaycoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PaynowPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PromptpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.RevolutPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SamsungPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SepaBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SepaDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.StripeBalance.Payout`, `V2.Core.Account.Configuration.Merchant.Capability.SwishPayment`, `V2.Core.Account.Configuration.Merchant.Capability.TwintPayment`, `V2.Core.Account.Configuration.Merchant.Capability.UsBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.ZipPayment`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Instant`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Local`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Wire`, `V2.Core.Account.Configuration.Recipient.Capability.Card`, `V2.Core.Account.Configuration.Recipient.Capability.CryptoWallet`, `V2.Core.Account.Configuration.Recipient.Capability.PaperCheck`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.Payout`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.StripeTransfer`, `V2.Core.Account.Configuration.Storer.Capability.Consumer.HoldsCurrency.Usd`, `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Eur`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Gbp`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Usd`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Usdc`, `V2.Core.Account.Configuration.Storer.Capability.InboundTransfer.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.Card`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.FinancialAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.PaperCheck`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.CryptoWallet`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.FinancialAccount`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCelticChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCelticSpendCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankSpendCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialFifthThirdChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialLeadPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialStripeChargeCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityCommercialStripePrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerCelticRevolvingCreditCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerCrossRiverBankPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLeadDebitCard`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLeadPrepaidCard`, `v2.core.AccountCreateParamsConfigurationCustomerCapabilityAutomaticIndirectTax`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAchDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAcssDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAffirmPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAfterpayClearpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAlmaPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAmazonPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityAuBecsDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBacsDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBancontactPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBlikPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityBoletoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCardPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCartesBancairesPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityCashappPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityEpsPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityFpxPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityGbBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityGrabpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityIdealPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityJcbPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityJpBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKakaoPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKlarnaPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKonbiniPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityKrCardPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityLinkPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMobilepayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMultibancoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityMxBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityNaverPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityOxxoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityP24Payment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPayByBankPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPaycoPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPaynowPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityPromptpayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityRevolutPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySamsungPayPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySepaBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySepaDebitPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilitySwishPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityTwintPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityUsBankTransferPayment`, `v2.core.AccountCreateParamsConfigurationMerchantCapabilityZipPayment`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountInstant`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountLocal`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityBankAccountWire`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityCard`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityCryptoWallet`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityPaperCheck`, `v2.core.AccountCreateParamsConfigurationRecipientCapabilityStripeBalanceStripeTransfer`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityConsumerHoldsCurrencyUsd`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityFinancialAddressBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityFinancialAddressCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyEur`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyGbp`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyUsd`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrencyUsdc`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityInboundTransferBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentCard`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentFinancialAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundPaymentPaperCheck`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferBankAccount`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferCryptoWallet`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityOutboundTransferFinancialAccount`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCelticChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCelticSpendCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialCrossRiverBankSpendCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialFifthThirdChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialLeadPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialStripeChargeCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityCommercialStripePrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerCelticRevolvingCreditCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerCrossRiverBankPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLeadDebitCard`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLeadPrepaidCard`, `v2.core.AccountModifyParamsConfigurationCustomerCapabilityAutomaticIndirectTax`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAchDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAcssDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAffirmPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAfterpayClearpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAlmaPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAmazonPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityAuBecsDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBacsDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBancontactPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBlikPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityBoletoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCardPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCartesBancairesPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityCashappPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityEpsPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityFpxPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityGbBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityGrabpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityIdealPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityJcbPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityJpBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKakaoPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKlarnaPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKonbiniPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityKrCardPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityLinkPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMobilepayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMultibancoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityMxBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityNaverPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityOxxoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityP24Payment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPayByBankPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPaycoPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPaynowPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityPromptpayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityRevolutPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySamsungPayPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySepaBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySepaDebitPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilitySwishPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityTwintPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityUsBankTransferPayment`, `v2.core.AccountModifyParamsConfigurationMerchantCapabilityZipPayment`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountInstant`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountLocal`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityBankAccountWire`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityCard`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityCryptoWallet`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityPaperCheck`, `v2.core.AccountModifyParamsConfigurationRecipientCapabilityStripeBalanceStripeTransfer`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityConsumerHoldsCurrencyUsd`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityFinancialAddressBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityFinancialAddressCryptoWallet`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyEur`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyGbp`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyUsd`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrencyUsdc`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityInboundTransferBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentCard`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentCryptoWallet`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentFinancialAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundPaymentPaperCheck`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferBankAccount`, `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferCryptoWallet`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityOutboundTransferFinancialAccount` -## 15.3.0a3 - 2026-06-10 +## 15.3.0a3 - 2026-06-10 This release changes the pinned API version to `2026-06-10.preview`. * ⚠️ [#1827](https://github.com/stripe/stripe-python/pull/1827) Update generated code for private-preview @@ -634,7 +634,7 @@ This release changes the pinned API version to `2026-06-10.preview`. * Add support for new value `promotion` on enum `v2.commerce.ProductCatalogImportCreateParams.feed_type` * Add support for error code `default_us_bank_account_cannot_be_archived` on `CannotProceedError` -## 15.3.0a2 - 2026-06-03 +## 15.3.0a2 - 2026-06-03 This release changes the pinned API version to `2026-06-03.preview`. * ⚠️ [#1818](https://github.com/stripe/stripe-python/pull/1818) Update generated code for private-preview @@ -662,7 +662,7 @@ This release changes the pinned API version to `2026-06-03.preview`. * Add support for `requirements_collector` on `v2.core.AccountCreateParamsDefaultResponsibility` and `v2.core.AccountModifyParamsDefaultResponsibility` * Add support for event notification `V2SignalsAccountSignalMerchantDelinquencyReadyEvent` with related object `v2.signals.AccountSignal` -## 15.3.0a1 - 2026-05-27 +## 15.3.0a1 - 2026-05-27 This release changes the pinned API version to `2026-05-27.preview`. * ⚠️ [#1815](https://github.com/stripe/stripe-python/pull/1815) Update generated code for private-preview @@ -683,7 +683,7 @@ This release changes the pinned API version to `2026-05-27.preview`. * Add support for snapshot event `payment_intent.expired` with resource `PaymentIntent` * Add support for event notifications `V2CoreHealthElementsErrorFiringEvent`, `V2CoreHealthElementsErrorResolvedEvent`, `V2CoreHealthInvoiceCountDroppedFiringEvent`, and `V2CoreHealthInvoiceCountDroppedResolvedEvent` -## 15.2.0a6 - 2026-05-20 +## 15.2.0a6 - 2026-05-20 * [#1811](https://github.com/stripe/stripe-python/pull/1811) remove unnecessary cast * ⚠️ [#1809](https://github.com/stripe/stripe-python/pull/1809) Update generated code for private-preview * Add support for new resource `PaymentLocationCapability` @@ -704,7 +704,7 @@ This release changes the pinned API version to `2026-05-27.preview`. * ⚠️ Remove support for `payment_behavior` on `SubscriptionResumeParams` * ⚠️ Remove support for `status_details` on `Subscription` -## 15.2.0a5 - 2026-05-13 +## 15.2.0a5 - 2026-05-13 * ⚠️ [#1807](https://github.com/stripe/stripe-python/pull/1807) Update generated code for private-preview * Add support for new resources `v2.core.FeeBatch`, `v2.core.FeeEntry`, `v2.money_management.DebitDispute`, and `v2.money_management.FinancialAccountStatement` * Add support for `simulate_network_lifecycle_pre_arbitration_response` and `simulate_network_lifecycle_pre_arbitration_submission` test helper methods on resource `issuing.Dispute` @@ -730,7 +730,7 @@ This release changes the pinned API version to `2026-05-27.preview`. * Add support for `payment_attempt_record` on `EventsV2PaymentsOffSessionPaymentAttemptFailedEvent` and `EventsV2PaymentsOffSessionPaymentFailedEvent` * Add support for event notifications `V2MoneyManagementFinancialAccountStatementCreatedEvent` and `V2MoneyManagementFinancialAccountStatementRestatedEvent` with related object `v2.money_management.FinancialAccountStatement` -## 15.2.0a4 - 2026-05-06 +## 15.2.0a4 - 2026-05-06 * [#1805](https://github.com/stripe/stripe-python/pull/1805) Add EventNotificationHandler (private preview) * ⚠️ [#1804](https://github.com/stripe/stripe-python/pull/1804) Update generated code for private-preview * Add support for new resource `PaymentLocation` @@ -747,13 +747,13 @@ This release changes the pinned API version to `2026-05-27.preview`. * ⚠️ Add support for new value `gift_card` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` * Add support for `status_details` on `Subscription` -## 15.2.0a3 - 2026-04-28 +## 15.2.0a3 - 2026-04-28 * ⚠️ [#1802](https://github.com/stripe/stripe-python/pull/1802) Update generated code for private-preview * Add support for `debit_card` on `V2.Core.Account.Configuration.CardCreator.Capability.Consumer.Lead`, `V2.Core.Account.Identity.Attestation.TermsOfService.CardCreator.Consumer.Lead`, `v2.core.AccountCreateParamsConfigurationCardCreatorCapabilityConsumerLead`, `v2.core.AccountCreateParamsIdentityAttestationTermsOfServiceCardCreatorConsumerLead`, `v2.core.AccountModifyParamsConfigurationCardCreatorCapabilityConsumerLead`, and `v2.core.AccountModifyParamsIdentityAttestationTermsOfServiceCardCreatorConsumerLead` * ⚠️ Add support for new value `consumer.lead.debit_card` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` * ⚠️ Add support for new value `consumer.lead.debit_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` -## 15.2.0a2 - 2026-04-28 +## 15.2.0a2 - 2026-04-28 * ⚠️ [#1800](https://github.com/stripe/stripe-python/pull/1800) Update generated code for private-preview * Add support for new resource `v2.data.analytics.MetricQueryResult` * Add support for `create`, `retrieve`, and `revoke` methods on resource `shared_payment.IssuedToken` @@ -826,7 +826,7 @@ This release changes the pinned API version to `2026-05-27.preview`. * Add support for event notification `V2ExtendExtensionRunFailedEvent` * Add support for error codes `action_blocked` and `approval_required` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -## 15.2.0a1 - 2026-04-24 +## 15.2.0a1 - 2026-04-24 This release changes the pinned API version to `2026-04-22.preview`. * ⚠️ [#1795](https://github.com/stripe/stripe-python/pull/1795) Update generated code for private-preview @@ -964,7 +964,7 @@ This release changes the pinned API version to `2026-04-22.preview`. * Add support for error type `FxQuoteExpiredError` * Add support for error codes `invalid_workflow_input_parameters` and `workflow_not_invokable` on `CannotProceedError` -## 15.1.0a4 - 2026-04-15 +## 15.1.0a4 - 2026-04-15 * [#1794](https://github.com/stripe/stripe-python/pull/1794) Update generated code for private-preview * Add support for `latest_version` on `V2.Billing.LicenseFee`, `V2.Billing.PricingPlan`, and `V2.Billing.RateCard` * Add support for `service_interval_count` and `service_interval` on `V2.Billing.LicenseFee` and `V2.Billing.RateCard` @@ -994,7 +994,7 @@ This release changes the pinned API version to `2026-04-22.preview`. * ⚠️ Remove support for `external_reference` on `Plan` * Change `SharedPayment.GrantedToken.PaymentMethodDetail.billing_details` to be required -## 15.1.0a3 - 2026-04-08 +## 15.1.0a3 - 2026-04-08 This release changes the pinned API version to `2026-04-08.preview`. * ⚠️ [#1789](https://github.com/stripe/stripe-python/pull/1789) Update generated code for private-preview @@ -1017,7 +1017,7 @@ This release changes the pinned API version to `2026-04-08.preview`. * ⚠️ Remove support for values `bm_pp`, `bo_ci`, `bt_cid`, `eg_tin`, `gh_pin`, `gy_tin`, `hn_rtn`, `jm_trn`, `jo_pin`, `ky_pp`, `lk_nic`, `mo_bir`, `mt_nic`, `mv_tin`, `pa_ruc`, `ph_tin`, `py_ruc`, `si_pin`, `sv_nit`, and `vg_pp` from enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.AccountPerson.IdNumber.type`, `v2.core.AccountCreateParamsIdentityIndividualIdNumber.type`, `v2.core.AccountModifyParamsIdentityIndividualIdNumber.type`, `v2.core.AccountPersonCreateParamsIdNumber.type`, `v2.core.AccountPersonModifyParamsIdNumber.type`, `v2.core.AccountPersonTokenCreateParamsIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityIndividualIdNumber.type` * Add support for error type `CannotProceedError` -## 15.1.0a2 - 2026-04-01 +## 15.1.0a2 - 2026-04-01 This release changes the pinned API version to `2026-04-01.preview`. * Please refer to the changelog for [v15.0.1](https://github.com/stripe/stripe-python/blob/v15.0.1/CHANGELOG.md#1501---2026-04-01) for additional changes. @@ -1070,7 +1070,7 @@ This release changes the pinned API version to `2026-04-01.preview`. * Add support for event notifications `V2DataReportingQueryRunCreatedEvent`, `V2DataReportingQueryRunFailedEvent`, `V2DataReportingQueryRunSucceededEvent`, and `V2DataReportingQueryRunUpdatedEvent` with related object `v2.data.reporting.QueryRun` * Add support for event notifications `V2PaymentsOffSessionPaymentPausedEvent` and `V2PaymentsOffSessionPaymentResumedEvent` with related object `v2.payments.OffSessionPayment` -## 15.1.0a1 - 2026-03-25 +## 15.1.0a1 - 2026-03-25 This release changes the pinned API version to `2026-03-25.preview`. This release contains additional breaking changes. See the [GA changelog](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#1500---2026-03-25) for more information. @@ -1178,7 +1178,7 @@ This release contains additional breaking changes. See the [GA changelog](https: * Add support for `include` on `v2.billing.IntentCreateParams`, `v2.billing.IntentReserveParams`, `v2.billing.PricingPlanSubscriptionListParams`, `v2.billing.PricingPlanSubscriptionRetrieveParams`, `v2.money_management.FinancialAccountListParams`, and `v2.money_management.FinancialAccountRetrieveParams` * Add support for event notifications `V1AccountSignalsIncludingDelinquencyCreatedEvent`, `V2CoreAccountSignalsFraudulentWebsiteReadyEvent`, and `V2SignalsAccountSignalFraudulentMerchantReadyEvent` -## 14.5.0a4 - 2026-03-18 +## 14.5.0a4 - 2026-03-18 * ⚠️ [#1755](https://github.com/stripe/stripe-python/pull/1755) Update generated code for private-preview * Add support for new resources `orchestration.PaymentAttempt` and `radar.CustomerEvaluation` * Add support for `retrieve` method on resource `orchestration.PaymentAttempt` @@ -1215,7 +1215,7 @@ This release contains additional breaking changes. See the [GA changelog](https: * Add support for `deposit_options` and `mode` on `PaymentIntent.PaymentMethodOption.Crypto`, `PaymentIntentConfirmParamsPaymentMethodOptionCrypto`, `PaymentIntentCreateParamsPaymentMethodOptionCrypto`, and `PaymentIntentModifyParamsPaymentMethodOptionCrypto` * Add support for `crypto_display_details` on `PaymentIntent.NextAction` -## 14.5.0a3 - 2026-03-11 +## 14.5.0a3 - 2026-03-11 * ⚠️ [#1750](https://github.com/stripe/stripe-python/pull/1750) Update generated code for private-preview * Add support for new resource `radar.IssuingAuthorizationEvaluation` * Add support for `create` method on resource `radar.IssuingAuthorizationEvaluation` @@ -1232,7 +1232,7 @@ This release contains additional breaking changes. See the [GA changelog](https: * Change `v2.payments.OffSessionPaymentCreateParams.payment_method` to be optional * Add support for new values `commercial.cross_river_bank.prepaid_card`, `commercial.fifth_third.charge_card`, `consumer.celtic.revolving_credit_card`, `consumer.cross_river_bank.prepaid_card`, and `consumer.lead.prepaid_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` -## 14.5.0a2 - 2026-03-04 +## 14.5.0a2 - 2026-03-04 This release changes the pinned API version to `2026-03-04.preview`. * ⚠️ [#1741](https://github.com/stripe/stripe-python/pull/1741) Update generated code for private-preview @@ -1293,7 +1293,7 @@ This release changes the pinned API version to `2026-03-04.preview`. * Add support for event notifications `V2IamStripeAccessGrantApprovedEvent`, `V2IamStripeAccessGrantCanceledEvent`, `V2IamStripeAccessGrantDeniedEvent`, `V2IamStripeAccessGrantRemovedEvent`, `V2IamStripeAccessGrantRequestedEvent`, and `V2IamStripeAccessGrantUpdatedEvent` * Add support for error codes `storer_capability_missing` and `storer_capability_not_active` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -## 14.5.0a1 - 2026-02-25 +## 14.5.0a1 - 2026-02-25 This release uses the API version `2026-01-28.preview`. * [#1735](https://github.com/stripe/stripe-python/pull/1735) Update generated code for private-preview @@ -1307,7 +1307,7 @@ This release uses the API version `2026-01-28.preview`. * Add support for `url` on `FinancialConnections.Session` * Add support for `billing_cycle_anchor` on `SubscriptionCreateParamsTrialSettingEndBehavior` and `SubscriptionModifyParamsTrialSettingEndBehavior` -## 14.4.0a4 - 2026-02-19 +## 14.4.0a4 - 2026-02-19 * ⚠️ [#1734](https://github.com/stripe/stripe-python/pull/1734) Update generated code for private-preview * ⚠️ Add support for new value `spend_threshold` on enums `Billing.Alert.alert_type`, `billing.AlertCreateParams.alert_type`, and `billing.AlertListParams.alert_type` * Add support for `spend_threshold` on `Billing.Alert` and `billing.AlertCreateParams` @@ -1318,7 +1318,7 @@ This release uses the API version `2026-01-28.preview`. * ⚠️ Remove support for `outstanding_usage` and `unused_time` on `SubscriptionPauseParamsBillFor` * ⚠️ Remove support for `payment_behavior` on `SubscriptionResumeParams` -## 14.4.0a3 - 2026-02-11 +## 14.4.0a3 - 2026-02-11 * [#1730](https://github.com/stripe/stripe-python/pull/1730) Update generated code for private-preview * Add support for new resources `v2.billing.CadenceSpendModifier`, `v2.billing.OneTimeItem`, and `v2.billing.RateCardCustomPricingUnitOverageRate` * Add support for `create`, `delete`, `list`, and `retrieve` methods on resource `v2.billing.RateCardCustomPricingUnitOverageRate` @@ -1335,7 +1335,7 @@ This release uses the API version `2026-01-28.preview`. * Add support for `effective_at` and `spend_modifier_rule` on `V2.Billing.IntentAction.Apply`, `V2.Billing.IntentAction.Remove`, `v2.billing.IntentCreateParamsActionApply`, and `v2.billing.IntentCreateParamsActionRemove` * Change type of `V2.Billing.IntentAction.Apply.type`, `V2.Billing.IntentAction.Remove.type`, `v2.billing.IntentCreateParamsActionApply.type`, and `v2.billing.IntentCreateParamsActionRemove.type` from `literal('invoice_discount_rule')` to `enum('invoice_discount_rule'|'spend_modifier_rule')` -## 14.4.0a2 - 2026-02-04 +## 14.4.0a2 - 2026-02-04 * [#1728](https://github.com/stripe/stripe-python/pull/1728) Update generated code for private-preview * Add support for new resource `v2.core.ConnectionSession` * Add support for `create` and `retrieve` methods on resource `v2.core.ConnectionSession` @@ -1368,7 +1368,7 @@ This release uses the API version `2026-01-28.preview`. * Add support for error code `invalid_payout_method_data` on `InvalidPayoutMethodError` * Add support for error code `limit_payout_method` on `QuotaExceededError` -## 14.4.0a1 - 2026-01-28 +## 14.4.0a1 - 2026-01-28 This release changes the pinned API version to `2026-01-28.preview`. * [#1726](https://github.com/stripe/stripe-python/pull/1726) Update generated code for private-preview @@ -1387,12 +1387,12 @@ This release changes the pinned API version to `2026-01-28.preview`. * Add support for `subtotal` on `InvoiceLineItem` * Add support for `billing_cadence` on `SubscriptionListParams` -## 14.3.0a1 - 2026-01-21 +## 14.3.0a1 - 2026-01-21 * [#1723](https://github.com/stripe/stripe-python/pull/1723) Update generated code for private-preview * Remove support for `pause` method on resource `Subscription` * Change type of `Quote.SubscriptionDataOverride.phase_effective_at` and `Quote.SubscriptionDatum.phase_effective_at` from `enum('billing_period_start'|'phase_start')` to `nullable(enum('billing_period_start'|'phase_start'))` -## 14.2.0a3 - 2026-01-14 +## 14.2.0a3 - 2026-01-14 * [#1718](https://github.com/stripe/stripe-python/pull/1718) Update generated code for private-preview * Add support for `risk_details` on `DelegatedCheckout.RequestedSession` * Remove support for `description`, `images`, and `name` on `DelegatedCheckout.RequestedSession.LineItemDetail` @@ -1400,7 +1400,7 @@ This release changes the pinned API version to `2026-01-28.preview`. * Add support for `login_failed` and `registration_failed` on `Radar.AccountEvaluation.Event` and `radar.AccountEvaluationModifyParams` * Change type of `radar.AccountEvaluationModifyParams.type` from `literal('registration_succeeded')` to `enum('login_failed'|'login_succeeded'|'registration_failed'|'registration_succeeded')` -## 14.2.0a2 - 2026-01-07 +## 14.2.0a2 - 2026-01-07 * [#1698](https://github.com/stripe/stripe-python/pull/1698) Update generated code for private-preview * Add support for new resource `tax.Location` * Add support for `create`, `list`, and `retrieve` methods on resource `tax.Location` @@ -1426,7 +1426,7 @@ This release changes the pinned API version to `2026-01-28.preview`. * Add support for event notification `V2CoreAccountIncludingFutureRequirementsUpdatedEvent` with related object `v2.core.Account` * Add support for error code `account_rate_limit_exceeded` on `RateLimitError` -## 14.2.0a1 - 2025-12-14 +## 14.2.0a1 - 2025-12-14 This release changes the pinned API version to `2025-12-15.preview`. * [#1693](https://github.com/stripe/stripe-python/pull/1693) Update generated code for private-preview @@ -1467,7 +1467,7 @@ This release changes the pinned API version to `2025-12-15.preview`. * Add support for event notifications `V2PaymentsSettlementAllocationIntentSplitCanceledEvent`, `V2PaymentsSettlementAllocationIntentSplitCreatedEvent`, and `V2PaymentsSettlementAllocationIntentSplitSettledEvent` with related object `v2.payments.SettlementAllocationIntentSplit` * Remove support for error code `account_rate_limit_exceeded` on `RateLimitError` -## 14.1.0a4 - 2025-12-04 +## 14.1.0a4 - 2025-12-04 * [#1691](https://github.com/stripe/stripe-python/pull/1691) Update generated code for private-preview * Add support for event notifications `V2IamApiKeyCreatedEvent`, `V2IamApiKeyDefaultSecretRevealedEvent`, `V2IamApiKeyExpiredEvent`, `V2IamApiKeyPermissionsUpdatedEvent`, `V2IamApiKeyRotatedEvent`, and `V2IamApiKeyUpdatedEvent` * [#1686](https://github.com/stripe/stripe-python/pull/1686) Update generated code for private-preview @@ -1479,7 +1479,7 @@ This release changes the pinned API version to `2025-12-15.preview`. * Add support for new values `balance_transfer` and `stripe_balance_payment` on enum `V2.MoneyManagement.ReceivedDebit.type` * Add support for `include` on `v2.core.EventListParams` and `v2.core.EventRetrieveParams` -## 14.1.0a3 - 2025-11-24 +## 14.1.0a3 - 2025-11-24 * [#1685](https://github.com/stripe/stripe-python/pull/1685) Update generated code for private-preview * Add support for new resource `product_catalog.TrialOffer` * Add support for `create` method on resource `product_catalog.TrialOffer` @@ -1489,7 +1489,7 @@ This release changes the pinned API version to `2025-12-15.preview`. * Remove support for `amount_discount` on `DelegatedCheckout.RequestedSession.TotalDetail` * Add support for `payments_orchestration` on `PaymentIntentCreateParams` and `PaymentIntent` -## 14.1.0a2 - 2025-11-20 +## 14.1.0a2 - 2025-11-20 This release changes the pinned API version to `2025-11-17.preview`. * [#1679](https://github.com/stripe/stripe-python/pull/1679) Update generated code for private-preview @@ -1601,7 +1601,7 @@ This release changes the pinned API version to `2025-11-17.preview`. * Remove support for thin events `V1TopupCanceledEvent`, `V1TopupCreatedEvent`, `V1TopupFailedEvent`, `V1TopupReversedEvent`, and `V1TopupSucceededEvent` with related object `Topup` * Remove support for thin events `V1TransferCreatedEvent`, `V1TransferReversedEvent`, and `V1TransferUpdatedEvent` with related object `Transfer` -## 14.1.0a1 - 2025-11-18 +## 14.1.0a1 - 2025-11-18 This release changes the pinned API version to `2025-11-17.preview`. * [#1674](https://github.com/stripe/stripe-python/pull/1674) Update generated code for private-preview @@ -1636,7 +1636,7 @@ This release changes the pinned API version to `2025-11-17.preview`. * [#1675](https://github.com/stripe/stripe-python/pull/1675) Update generated code for private-preview * Add support for `billing_schedules_actions` on `InvoiceCreatePreviewParamsScheduleDetailAmendment` and `SubscriptionScheduleAmendParamsAmendment` -## 13.3.0a2 - 2025-11-13 +## 13.3.0a2 - 2025-11-13 This release changes the pinned API version to `2025-10-29.preview`. * [#1666](https://github.com/stripe/stripe-python/pull/1666) Update generated code for private-preview @@ -1661,7 +1661,7 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for `latest_invoice` on `QuotePreviewSubscriptionSchedule` and `SubscriptionSchedule` * Add support for `phase_effective_at` on `QuotePreviewSubscriptionSchedule.DefaultSetting`, `SubscriptionSchedule.DefaultSetting`, `SubscriptionScheduleCreateParamsDefaultSetting`, and `SubscriptionScheduleModifyParamsDefaultSetting` -## 13.3.0a1 - 2025-11-06 +## 13.3.0a1 - 2025-11-06 * [#1664](https://github.com/stripe/stripe-python/pull/1664) Update generated code for private-preview * Add support for new resources `TransitBalance`, `v2.reporting.ReportRun`, `v2.reporting.Report` * Add support for `create` and `retrieve` methods on resource `v2.reporting.ReportRun` @@ -1670,7 +1670,7 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for `allocated_funds` on `Charge`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, and `PaymentIntentModifyParams` * Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `v2.reporting.ReportRun` -## 13.2.0a2 - 2025-10-30 +## 13.2.0a2 - 2025-10-30 * [#1659](https://github.com/stripe/stripe-python/pull/1659) Update generated code for private-preview * Change `delegated_checkout.RequestedSessionModifyParamsLineItemDetail.quantity` to be required * Add support for `payment_method_preview` on `DelegatedCheckout.RequestedSession` @@ -1680,7 +1680,7 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for new value `commercial.lead.prepaid_card` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability` * Add support for new value `commercial.lead.prepaid_card` on enum `EventsV2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.updated_capability` -## 13.2.0a1 - 2025-10-29 +## 13.2.0a1 - 2025-10-29 * [#1654](https://github.com/stripe/stripe-python/pull/1654) Update generated code for private-preview * Add support for `report_refund` method on resource `PaymentRecord` * Add support for new value `verification_data_not_found` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` @@ -1732,7 +1732,7 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for `external_amount` on `V2.MoneyManagement.ReceivedCredit` and `V2.MoneyManagement.ReceivedDebit` * Add support for error code `payment_intent_rate_limit_exceeded` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `QuotePreviewInvoice.LastFinalizationError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` -## 13.1.0a4 - 2025-10-23 +## 13.1.0a4 - 2025-10-23 * [#1649](https://github.com/stripe/stripe-python/pull/1649) Update generated code for private-preview * Add support for new resource `v2.billing.PricingPlanSubscriptionComponents` * Add support for `retrieve` method on resource `v2.billing.PricingPlanSubscriptionComponents` @@ -1747,14 +1747,14 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for `address`, `email`, `fulfillment_options`, `name`, `phone`, and `selected_fulfillment_option` on `DelegatedCheckout.RequestedSession.FulfillmentDetail` * Add support for new values `billie`, `crypto`, `kr_card`, `kriya`, `mb_way`, `mondu`, `ng_bank_transfer`, `ng_bank`, `ng_card`, `ng_market`, `ng_ussd`, `ng_wallet`, `payco`, `paypay`, `rechnung`, `samsung_pay`, `satispay`, `scalapay`, `sequra`, `sunbit`, `us_bank_account`, and `vipps` on enums `EventsV2CoreHealthAuthorizationRateDropFiringEvent.Impact.payment_method_type`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent.Impact.payment_method_type`, `EventsV2CoreHealthPaymentMethodErrorFiringEvent.Impact.payment_method_type`, and `EventsV2CoreHealthPaymentMethodErrorResolvedEvent.Impact.payment_method_type` -## 13.1.0a3 - 2025-10-17 +## 13.1.0a3 - 2025-10-17 * [#1643](https://github.com/stripe/stripe-python/pull/1643) Update generated code for private-preview * Add support for new resources `delegated_checkout.RequestedSession` and `identity.BlocklistEntry` * Add support for `confirm`, `create`, `expire`, `modify`, and `retrieve` methods on resource `delegated_checkout.RequestedSession` * Add support for `create`, `disable`, `list`, and `retrieve` methods on resource `identity.BlocklistEntry` * Add support for `blocked_by_entry` on `Identity.VerificationReport.Document`, `Identity.VerificationReport.Selfie`, and `identity.VerificationReportListParams` -## 13.1.0a2 - 2025-10-09 +## 13.1.0a2 - 2025-10-09 * [#1629](https://github.com/stripe/stripe-python/pull/1629) Update generated code for private-preview * Add support for new resource `PaymentMethodBalance` * Add support for `check_balance` method on resource `PaymentMethod` @@ -1769,7 +1769,7 @@ This release changes the pinned API version to `2025-10-29.preview`. * Add support for thin events `V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationCardCreatorUpdatedEvent` with related object `v2.core.Account` * Remove support for thin events `V1CustomerDiscountCreatedEvent`, `V1CustomerDiscountDeletedEvent`, and `V1CustomerDiscountUpdatedEvent` with related object `Discount` -## 13.1.0a1 - 2025-10-01 +## 13.1.0a1 - 2025-10-01 This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 13.0.0 and 13.1.0-beta.1 which contain breaking changes. Please review the changelog for these versions if upgrading from older SDK versions. @@ -1810,7 +1810,7 @@ It is built on top of SDK version 13.0.0 and 13.1.0-beta.1 which contain breakin * Remove support for resources `v2.reporting.ReportRun`, `v2.reporting.Report` * Remove support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `v2.reporting.ReportRun` -## 12.6.0a2 - 2025-09-17 +## 12.6.0a2 - 2025-09-17 This release changes the pinned API version to `2025-08-04.preview`. * [#1571](https://github.com/stripe/stripe-python/pull/1571) generate private-preview SDK w/ mid Sept changes @@ -1827,7 +1827,7 @@ This release changes the pinned API version to `2025-08-04.preview`. * Add support for thin events `V2CoreClaimableSandboxClaimedEvent`, `V2CoreClaimableSandboxExpiredEvent`, `V2CoreClaimableSandboxExpiringEvent`, and `V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent` with related object `V2.core.ClaimableSandbox` * Remove support for thin event `V2BillingCadenceErroredEvent` with related object `V2.billing.Cadence` -## 12.6.0a1 - 2025-08-27 +## 12.6.0a1 - 2025-08-27 * [#1556](https://github.com/stripe/stripe-python/pull/1556) Use the right API version 2025-08-27.preview * [#1552](https://github.com/stripe/stripe-python/pull/1552) Update generated code for private-preview * Add support for `attach_cadence` method on resource `Subscription` From 99397ce40b5ef7b4cdc66fbdbcb982310c4cd7ee Mon Sep 17 00:00:00 2001 From: David Brownman Date: Sun, 13 Sep 2026 02:36:30 -0700 Subject: [PATCH 08/11] add a minimum-runtime-version recipe --- justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/justfile b/justfile index c9a7a6800..8fa049441 100644 --- a/justfile +++ b/justfile @@ -103,3 +103,7 @@ profile-imports name: profile name: python -m cProfile -o {{ name }}.prof stripe/main.py tuna {{ name }}.prof + +# the lowest Python this SDK supports, for the changelog +minimum-runtime-version: + rg -N --color never -o 'requires-python = ">=([^"]+)"' --replace '$1' pyproject.toml From bdcf5a41e842401636082beb0e43012266f1ec34 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Sun, 13 Sep 2026 15:44:19 -0700 Subject: [PATCH 09/11] add print-version-info recipe --- justfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index 8fa049441..b156e797c 100644 --- a/justfile +++ b/justfile @@ -104,6 +104,9 @@ profile name: python -m cProfile -o {{ name }}.prof stripe/main.py tuna {{ name }}.prof -# the lowest Python this SDK supports, for the changelog -minimum-runtime-version: - rg -N --color never -o 'requires-python = ">=([^"]+)"' --replace '$1' pyproject.toml +# ⭐ print the API version this SDK pins and the lowest runtime it supports +print-version-info: + #!/usr/bin/env bash + set -euo pipefail + echo "pinned-api-version: $(rg -N --color never -m1 -o '[0-9]{4}-[0-9]{2}-[0-9]{2}[.\w-]*' stripe/_api_version.py)" + echo "minimum-runtime-version: $(rg -N --color never -o 'requires-python = ">=([^"]+)"' --replace '$1' pyproject.toml)" From 5e64e930c8f7b65a3f78cfd06e7ea1aaf7396c9b Mon Sep 17 00:00:00 2001 From: David Brownman Date: Mon, 14 Sep 2026 13:49:53 -0700 Subject: [PATCH 10/11] swap from is_breaking to semver_level --- .../2026-02-18_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-04_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-11_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-16_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-25_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-03-25_stripe-openapi_update-generated-code_2.change.md | 2 +- .../2026-04-01_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-08_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-15_stripe-openapi_update-generated-code_2.change.md | 2 +- .../2026-04-24_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-28_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-04-29_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-05-06_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-05-13_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-05-21_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-05-27_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-06-03_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-06-10_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-06-17_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-06-24_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-02_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-08_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-16_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-23_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-07-30_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-08-05_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-08-13_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-08-19_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-08-26_stripe-openapi_update-generated-code.change.md | 2 +- .../2026-09-02_stripe-openapi_update-generated-code.change.md | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md index 7577b2d6c..0906ce31a 100644 --- a/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-02-18_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1734 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 14.4.0a4 --- diff --git a/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md index e2702aaec..f4408e0d7 100644 --- a/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-04_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1741 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 14.5.0a2 --- diff --git a/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md index 91c38830f..805aedec3 100644 --- a/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-11_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1750 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 14.5.0a3 --- diff --git a/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md index f928972f4..56a104a00 100644 --- a/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-16_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1755 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 14.5.0a4 --- diff --git a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md index 754166c63..6696958c3 100644 --- a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1776 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.1.0a1 --- diff --git a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md index 965b969c6..05285a1e5 100644 --- a/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md +++ b/.hark/changes/2026-03-25_stripe-openapi_update-generated-code_2.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1763 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.1.0a1 --- diff --git a/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md index 2b8e9b6c0..e1ae7da69 100644 --- a/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-01_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1778 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.1.0a2 --- diff --git a/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md index 62bfd3f69..8254d1c94 100644 --- a/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-08_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1789 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.1.0a3 --- diff --git a/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md index fe2166b57..9f0298bb5 100644 --- a/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md +++ b/.hark/changes/2026-04-15_stripe-openapi_update-generated-code_2.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1791 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.1.0a4 --- diff --git a/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md index 9eb4eca51..ddb985eda 100644 --- a/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-24_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1795 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.2.0a1 --- diff --git a/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md index 744a662f6..fa12c4391 100644 --- a/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-28_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1800 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.2.0a2 --- diff --git a/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md index 05efb7131..db5cc75d6 100644 --- a/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-04-29_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1802 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.2.0a3 --- diff --git a/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md index 85aacc753..4c63df786 100644 --- a/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-05-06_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1804 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.2.0a4 --- diff --git a/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md index 8a63a8c6b..da11da75d 100644 --- a/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-05-13_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1807 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.2.0a5 --- diff --git a/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md index 262f9b61c..27728ffc8 100644 --- a/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-05-21_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1809 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.2.0a6 --- diff --git a/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md index 46e645b8f..a70ca8940 100644 --- a/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-05-27_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1815 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.3.0a1 --- diff --git a/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md index 5e89a222a..0783ebdbd 100644 --- a/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-06-03_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1818 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.3.0a2 --- diff --git a/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md index 5ff6b56c2..8d700abf3 100644 --- a/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-06-10_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1827 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.3.0a3 --- diff --git a/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md index b8150e258..ed3618091 100644 --- a/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-06-17_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1828 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.3.0a4 --- diff --git a/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md index 26a8f30b0..423d75ecb 100644 --- a/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-06-24_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1833 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.4.0a1 --- diff --git a/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md index c39081060..ccd5c1481 100644 --- a/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-02_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1839 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.4.0a2 --- diff --git a/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md index 34e99dbf1..aca053d8b 100644 --- a/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-08_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1842 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.4.0a3 --- diff --git a/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md index da8b829f5..929cf8262 100644 --- a/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-16_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1844 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.4.0a4 --- diff --git a/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md index 4316b2bf7..9fca3f748 100644 --- a/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-23_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1852 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.4.0a5 --- diff --git a/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md index 48ad035d2..38517ceda 100644 --- a/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-07-30_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1854 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.5.0a1 --- diff --git a/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md index 1768f4a38..b04d215cd 100644 --- a/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-08-05_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1859 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.5.0a2 --- diff --git a/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md index c4d3170a5..7507cd8c8 100644 --- a/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-08-13_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1873 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.6.0a1 --- diff --git a/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md index 6f0e90d00..fe5eded10 100644 --- a/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-08-19_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1875 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.6.0a2 --- diff --git a/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md index 0d08918a2..f46638b8e 100644 --- a/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-08-26_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1884 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.7.0a1 --- diff --git a/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md index ab9bf3079..0e22903c3 100644 --- a/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md +++ b/.hark/changes/2026-09-02_stripe-openapi_update-generated-code.change.md @@ -1,7 +1,7 @@ --- title: Update generated code for private-preview pr_url: https://github.com/stripe/stripe-python/pull/1893 -is_breaking: true +semver_level: major is_stripe_api_change: true released_in_version: 15.7.0a2 --- From 86388adebf8a00d00c0113afefab10448d7495ae Mon Sep 17 00:00:00 2001 From: David Brownman Date: Mon, 14 Sep 2026 15:18:39 -0700 Subject: [PATCH 11/11] trigger CI for hark v1.0.0