Skip to content

Conversation

helenye-stripe
Copy link
Contributor

@helenye-stripe helenye-stripe commented Sep 25, 2025

Why?

Decrease the size of the library for unnecessary duplicated types

What?

Moves all params (service and resource) to the top level and are shared.

Generated changes only.

See Also

Changelog

  • ⚠️ 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.CreateParams and _stripe._account_service.CreateParams have moved to _stripe._account_create_params.AccountCreateParams
    • This change only affects users who explicitly refer to params types. No migration is necessary for users otherwise

@helenye-stripe helenye-stripe requested a review from a team as a code owner September 25, 2025 21:09
@helenye-stripe helenye-stripe requested review from mbroshi-stripe and removed request for a team September 25, 2025 21:09
@@ -1,43 +1,25 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._account_capability_list_params import AccountCapabilityListParams
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should all probably go in an if TYPE_CHECKING block. Won't need changes to the main body of the service, since the types are already in a string

@mbroshi-stripe mbroshi-stripe removed their request for review September 26, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants