Skip to content

Commit 9aedcf9

Browse files
stripe-openapi[bot]ramya-stripeprathmesh-stripexavdid-stripembroshi-stripe
authored
Update generated code for private-preview (#1552)
* Update generated code for v1868 and 2025-07-30.basil (#1541) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> * Bump version to 12.4.0 * Introduce V1 namespaces in StripeClient (#1549) * Introduced V1 namespaces * Updated migration guide link * Import available http libraries more efficiently (#1553) * replace import stragety, fix some tests [skip ci] * wip fixing tests [skip ci] * [claude] fix tests * formatting * test cleanup * tests are fast * final cleanup * remove comment * remove accidential files * tweak import logic * Update generated code for v1932 and 2025-08-27.basil (#1544) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]> * Trigger CI after workflow update * removed manually maintained RateLimitError class as this is now generated * added private-preview to workflow triggers * removed duplicate ratelimit import --------- Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]> Co-authored-by: prathmesh-stripe <[email protected]> Co-authored-by: David Brownman <[email protected]> Co-authored-by: Ramya Rao <[email protected]> Co-authored-by: Michael Broshi <[email protected]> Co-authored-by: Jesse Rosalia <[email protected]>
1 parent 00a27fa commit 9aedcf9

File tree

155 files changed

+21630
-7511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+21630
-7511
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches:
77
- master
88
- beta
9+
- private-preview
910
- sdk-release/**
1011
- feature/**
1112
tags:
@@ -14,6 +15,7 @@ on:
1415
branches:
1516
- master
1617
- beta
18+
- private-preview
1719
- sdk-release/**
1820
- feature/**
1921

CHANGELOG.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ This release changes the pinned API version to `2025-07-30.preview`.
3333
* Remove support for thin event `V2CoreAccountLinkCompletedEvent`
3434
* Remove support for thin event `V2OffSessionPaymentRequiresCaptureEvent` with related object `v2.payments.OffSessionPayment`
3535

36+
## 12.4.0 - 2025-07-30
37+
This release changes the pinned API version to `2025-07-30.basil`.
38+
39+
* [#1541](https://github.com/stripe/stripe-python/pull/1541) Update generated code
40+
* Add support for `instant_payouts_promotion` on `AccountSession.Component` and `AccountSession.CreateParamsComponent`
41+
* Add support for `adjustable_quantity` on `BillingPortal.Configuration.Feature.SubscriptionUpdate.Product`, `billing_portal.Configuration.CreateParamsFeatureSubscriptionUpdateProduct`, and `billing_portal.Configuration.ModifyParamsFeatureSubscriptionUpdateProduct`
42+
* Remove support for value `disabled` from enum `Capability.status`
43+
* Add support for `transaction_id` on `Charge.PaymentMethodDetail.Cashapp`
44+
* Add support for `origin_context` on `Checkout.Session` and `checkout.Session.CreateParams`
45+
* Add support for `template` on `Checkout.Session.InvoiceCreation.InvoiceDatum.RenderingOption`, `PaymentLink.CreateParamsInvoiceCreationInvoiceDatumRenderingOption`, `PaymentLink.InvoiceCreation.InvoiceDatum.RenderingOption`, `PaymentLink.ModifyParamsInvoiceCreationInvoiceDatumRenderingOption`, and `checkout.Session.CreateParamsInvoiceCreationInvoiceDatumRenderingOption`
46+
* Add support for `setup_future_usage` on `Checkout.Session.PaymentMethodOption.Pix` and `checkout.Session.CreateParamsPaymentMethodOptionPix`
47+
* Add support for new value `nz_bank_account` on enum `checkout.Session.CreateParams.payment_method_types`
48+
* Change `Identity.VerificationSession.RelatedPerson.account` to be required
49+
* Change `Identity.VerificationSession.RelatedPerson.person` to be required
50+
* Add support for `duration` on `Invoice.CreatePreviewParamsScheduleDetailPhase`, `SubscriptionSchedule.CreateParamsPhase`, and `SubscriptionSchedule.ModifyParamsPhase`
51+
* 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')`
52+
* Add support for `price_data` on `PaymentLink.CreateParamsLineItem`
53+
* Change `PaymentLink.CreateParamsLineItem.price` to be optional
54+
* Add support for new value `America/Coyhaique` on enum `reporting.ReportRun.CreateParamsParameter.timezone`
55+
* 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`
56+
* 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`
57+
* Add support for `aed`, `bgn`, `huf`, and `ron` on `Terminal.Configuration.Tipping`, `terminal.Configuration.CreateParamsTipping`, and `terminal.Configuration.ModifyParamsTipping`
58+
* Add support for new value `2025-07-30.basil` on enum `WebhookEndpoint.CreateParams.api_version`
59+
* [#1537](https://github.com/stripe/stripe-python/pull/1537) Fix timeout type hint in RequestsClient
60+
3661
## 12.4.0b2 - 2025-07-09
3762
* [#1536](https://github.com/stripe/stripe-python/pull/1536) Pull in V2 FinancialAccount changes for June release
3863
* Add support for `close` and `create` methods on resource `v2.money_management.FinancialAccount`
@@ -86,6 +111,8 @@ This release changes the pinned API version to `2025-06-30.preview`.
86111
* Remove support for error code `outbound_payment_recipient_email_does_not_exist` on `RecipientNotNotifiableError`
87112

88113
## 12.3.0 - 2025-07-01
114+
This release changes the pinned API version to `2025-06-30.basil`.
115+
89116
* [#1526](https://github.com/stripe/stripe-python/pull/1526) Update generated code
90117
* Add support for `migrate` method on resource `Subscription`
91118
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `terminal.Reader`
@@ -121,9 +148,6 @@ This release changes the pinned API version to `2025-06-30.preview`.
121148
* Add support for new value `2025-06-30.basil` on enum `WebhookEndpoint.CreateParams.api_version`
122149
* Add support for snapshot event `terminal.reader.action_updated` with resource `terminal.Reader`
123150
* [#1534](https://github.com/stripe/stripe-python/pull/1534) Fix the link to releases page from readme
124-
* [#1532](https://github.com/stripe/stripe-python/pull/1532) Added lint ignore instruction for deprecated import
125-
* [#1524](https://github.com/stripe/stripe-python/pull/1524) Added import for the new deprecated services in stripe_client
126-
* [#1522](https://github.com/stripe/stripe-python/pull/1522) Add a new deprecated v1 services section
127151

128152
## 12.3.0b2 - 2025-06-26
129153
* [#1531](https://github.com/stripe/stripe-python/pull/1531) Pull in OffSessionPayment changes for the May release

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
807a16a9736d4ffa95356bf7651c2eeca326ae6f
1+
84693dc4f6a999082c29261d9db6dcfe1c76dd8d

justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ _default:
1010
just --list --unsorted
1111

1212
# ⭐ run all unit tests
13+
[positional-arguments]
1314
test *args: install-test-deps
1415
# configured in pyproject.toml
15-
pytest {{ args }}
16+
pytest "$@"
1617

1718
# ⭐ check for potential mistakes
1819
lint: install-dev-deps

stripe/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ def add_beta_version(
224224
from stripe._error import InvalidRequestError as InvalidRequestError
225225
from stripe._error import AuthenticationError as AuthenticationError
226226
from stripe._error import PermissionError as PermissionError
227-
from stripe._error import RateLimitError as RateLimitError
228227
from stripe._error import (
229228
SignatureVerificationError as SignatureVerificationError,
230229
)
@@ -493,6 +492,9 @@ def __getattr__(name):
493492
InvoiceLineItemService as InvoiceLineItemService,
494493
)
495494
from stripe._invoice_payment import InvoicePayment as InvoicePayment
495+
from stripe._invoice_payment_service import (
496+
InvoicePaymentService as InvoicePaymentService,
497+
)
496498
from stripe._invoice_rendering_template import (
497499
InvoiceRenderingTemplate as InvoiceRenderingTemplate,
498500
)
@@ -665,6 +667,7 @@ def __getattr__(name):
665667
)
666668
from stripe._transfer_service import TransferService as TransferService
667669
from stripe._treasury_service import TreasuryService as TreasuryService
670+
from stripe._v1_services import V1Services as V1Services
668671
from stripe._v2_services import V2Services as V2Services
669672
from stripe._webhook_endpoint import WebhookEndpoint as WebhookEndpoint
670673
from stripe._webhook_endpoint_service import (

stripe/_account.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ class Verification(StripeObject):
642642
class Document(StripeObject):
643643
back: Optional[ExpandableField["File"]]
644644
"""
645-
The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
645+
The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
646646
"""
647647
details: Optional[str]
648648
"""
@@ -654,7 +654,7 @@ class Document(StripeObject):
654654
"""
655655
front: Optional[ExpandableField["File"]]
656656
"""
657-
The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
657+
The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
658658
"""
659659

660660
document: Document

0 commit comments

Comments
 (0)