Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23a0d1c154d81b4b4185658446b2ee07f06f969a
eed9b64db4a551dcc837a073c124117f265c21d3
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2342
v2343
64 changes: 60 additions & 4 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,32 @@ class AddressKanji(StripeObject):
Town/cho-me.
"""

class AdministrativeAddress(StripeObject):
city: Optional[str]
"""
City, district, suburb, town, or village.
"""
country: Optional[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
line1: Optional[str]
"""
Address line 1, such as the street, PO Box, or company name.
"""
line2: Optional[str]
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
postal_code: Optional[str]
"""
ZIP or postal code.
"""
state: Optional[str]
"""
State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""

class DirectorshipDeclaration(StripeObject):
date: Optional[int]
"""
Expand Down Expand Up @@ -699,6 +725,32 @@ class OwnershipDeclaration(StripeObject):
The user-agent string from the browser where the beneficial owner attestation was made.
"""

class PrincipalPlaceOfBusiness(StripeObject):
city: Optional[str]
"""
City, district, suburb, town, or village.
"""
country: Optional[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
line1: Optional[str]
"""
Address line 1, such as the street, PO Box, or company name.
"""
line2: Optional[str]
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
postal_code: Optional[str]
"""
ZIP or postal code.
"""
state: Optional[str]
"""
State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""

class RegistrationDate(StripeObject):
day: Optional[int]
"""
Expand Down Expand Up @@ -758,6 +810,7 @@ class Document(StripeObject):
"""
The Kanji variation of the company's primary address (Japan only).
"""
administrative_address: Optional[AdministrativeAddress]
directors_provided: Optional[bool]
"""
Whether the company's directors have been provided. This Boolean will be `true` if you've manually indicated that all directors are provided via [the `directors_provided` parameter](https://docs.stripe.com/api/accounts/update#update_account-company-directors_provided).
Expand Down Expand Up @@ -811,6 +864,7 @@ class Document(StripeObject):
"""
The company's phone number (used for verification).
"""
principal_place_of_business: Optional[PrincipalPlaceOfBusiness]
registration_date: Optional[RegistrationDate]
representative_declaration: Optional[RepresentativeDeclaration]
"""
Expand Down Expand Up @@ -866,8 +920,10 @@ class Document(StripeObject):
"address": Address,
"address_kana": AddressKana,
"address_kanji": AddressKanji,
"administrative_address": AdministrativeAddress,
"directorship_declaration": DirectorshipDeclaration,
"ownership_declaration": OwnershipDeclaration,
"principal_place_of_business": PrincipalPlaceOfBusiness,
"registration_date": RegistrationDate,
"representative_declaration": RepresentativeDeclaration,
"verification": Verification,
Expand Down Expand Up @@ -1103,7 +1159,7 @@ class Error(StripeObject):
"""
errors: Optional[List[Error]]
"""
Details about validation and verification failures for `due` requirements that must be resolved.
Fields that are `currently_due` and need to be collected again because validation or verification failed.
"""
eventually_due: Optional[List[str]]
"""
Expand Down Expand Up @@ -1285,7 +1341,7 @@ class Error(StripeObject):
"""
errors: Optional[List[Error]]
"""
Details about validation and verification failures for `due` requirements that must be resolved.
Fields that are `currently_due` and need to be collected again because validation or verification failed.
"""
eventually_due: Optional[List[str]]
"""
Expand Down Expand Up @@ -1748,7 +1804,7 @@ def create(cls, **params: Unpack["AccountCreateParams"]) -> "Account":
With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).

If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/connect/marketplace/tasks/create#prefill-account-information) when
creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
You can prefill any information on the account.
"""
Expand All @@ -1769,7 +1825,7 @@ async def create_async(
With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).

If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/connect/marketplace/tasks/create#prefill-account-information) when
creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
You can prefill any information on the account.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def create(
With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).

If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/connect/marketplace/tasks/create#prefill-account-information) when
creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
You can prefill any information on the account.
"""
Expand All @@ -339,7 +339,7 @@ async def create_async(
With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).

If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/connect/marketplace/tasks/create#prefill-account-information) when
creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
You can prefill any information on the account.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2026-07-01.preview"
CURRENT = "2026-07-08.preview"
4 changes: 2 additions & 2 deletions stripe/_bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class Error(StripeObject):
"""
errors: Optional[List[Error]]
"""
Details about validation and verification failures for `due` requirements that must be resolved.
Fields that are `currently_due` and need to be collected again because validation or verification failed.
"""
past_due: Optional[List[str]]
"""
Expand Down Expand Up @@ -288,7 +288,7 @@ class Error(StripeObject):
"""
errors: Optional[List[Error]]
"""
Details about validation and verification failures for `due` requirements that must be resolved.
Fields that are `currently_due` and need to be collected again because validation or verification failed.
"""
past_due: Optional[List[str]]
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Error(StripeObject):
"""
errors: List[Error]
"""
Details about validation and verification failures for `due` requirements that must be resolved.
Fields that are `currently_due` and need to be collected again because validation or verification failed.
"""
eventually_due: List[str]
"""
Expand Down Expand Up @@ -362,7 +362,7 @@ class Error(StripeObject):
"""
errors: List[Error]
"""
Details about validation and verification failures for `due` requirements that must be resolved.
Fields that are `currently_due` and need to be collected again because validation or verification failed.
"""
eventually_due: List[str]
"""
Expand Down
5 changes: 4 additions & 1 deletion stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,14 +1310,17 @@ class Fpx(StripeObject):
"bank_muamalat",
"bank_of_china",
"bank_rakyat",
"bnp_paribas",
"bsn",
"cimb",
"citibank",
"deutsche_bank",
"hong_leong_bank",
"hsbc",
"kfh",
"maybank2e",
"maybank2u",
"mbsb_bank",
"ocbc",
"pb_enterprise",
"public_bank",
Expand All @@ -1326,7 +1329,7 @@ class Fpx(StripeObject):
"uob",
]
"""
The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
"""
transaction_id: Optional[str]
"""
Expand Down
5 changes: 4 additions & 1 deletion stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,14 +969,17 @@ class Fpx(StripeObject):
"bank_muamalat",
"bank_of_china",
"bank_rakyat",
"bnp_paribas",
"bsn",
"cimb",
"citibank",
"deutsche_bank",
"hong_leong_bank",
"hsbc",
"kfh",
"maybank2e",
"maybank2u",
"mbsb_bank",
"ocbc",
"pb_enterprise",
"public_bank",
Expand All @@ -985,7 +988,7 @@ class Fpx(StripeObject):
"uob",
]
"""
The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
"""

class GiftCard(StripeObject):
Expand Down
20 changes: 12 additions & 8 deletions stripe/_dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ class Card(StripeObject):
"""
The type of dispute opened. Different case types may have varying fees and financial impact.
"""
network: str
"""
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
"""
network_reason_code: Optional[str]
"""
The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.
Expand Down Expand Up @@ -547,7 +551,7 @@ def _cls_close(
cls, dispute: str, **params: Unpack["DisputeCloseParams"]
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand All @@ -568,7 +572,7 @@ def close(
dispute: str, **params: Unpack["DisputeCloseParams"]
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand All @@ -577,7 +581,7 @@ def close(
@overload
def close(self, **params: Unpack["DisputeCloseParams"]) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand All @@ -588,7 +592,7 @@ def close( # pyright: ignore[reportGeneralTypeIssues]
self, **params: Unpack["DisputeCloseParams"]
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand All @@ -608,7 +612,7 @@ async def _cls_close_async(
cls, dispute: str, **params: Unpack["DisputeCloseParams"]
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand All @@ -629,7 +633,7 @@ async def close_async(
dispute: str, **params: Unpack["DisputeCloseParams"]
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand All @@ -640,7 +644,7 @@ async def close_async(
self, **params: Unpack["DisputeCloseParams"]
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand All @@ -651,7 +655,7 @@ async def close_async( # pyright: ignore[reportGeneralTypeIssues]
self, **params: Unpack["DisputeCloseParams"]
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_dispute_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def close(
options: Optional["RequestOptions"] = None,
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand All @@ -172,7 +172,7 @@ async def close_async(
options: Optional["RequestOptions"] = None,
) -> "Dispute":
"""
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute (accepting it), acknowledging it as lost.

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
"""
Expand Down
Loading
Loading