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
1 change: 1 addition & 0 deletions API_VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-06-30.basil
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1773
v1819
79 changes: 75 additions & 4 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ class Capabilities(StripeObject):
"""
The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
"""
crypto_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Crypto capability of the account, or whether the account can directly process Crypto payments.
"""
eps_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
Expand Down Expand Up @@ -1235,10 +1239,30 @@ class Schedule(StripeObject):
"""
The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
"""
monthly_payout_days: Optional[List[int]]
"""
The days of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
"""
weekly_anchor: Optional[str]
"""
The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
"""
weekly_payout_days: Optional[
List[
Literal[
"friday",
"monday",
"saturday",
"sunday",
"thursday",
"tuesday",
"wednesday",
]
]
]
"""
The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
"""

debit_negative_balances: bool
"""
Expand Down Expand Up @@ -1723,6 +1747,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The cashapp_payments capability.
"""
crypto_payments: NotRequired[
"Account.CreateParamsCapabilitiesCryptoPayments"
]
"""
The crypto_payments capability.
"""
eps_payments: NotRequired[
"Account.CreateParamsCapabilitiesEpsPayments"
]
Expand Down Expand Up @@ -2068,6 +2098,12 @@ class CreateParamsCapabilitiesCashappPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesCryptoPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesEpsPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -2415,6 +2451,9 @@ class CreateParamsCompany(TypedDict):
registration_date: NotRequired[
"Literal['']|Account.CreateParamsCompanyRegistrationDate"
]
"""
When the business was incorporated or registered.
"""
registration_number: NotRequired[str]
"""
The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
Expand Down Expand Up @@ -2663,6 +2702,12 @@ class CreateParamsDocuments(TypedDict):
"""
One or more documents that demonstrate proof of a company's tax ID.
"""
proof_of_address: NotRequired[
"Account.CreateParamsDocumentsProofOfAddress"
]
"""
One or more documents that demonstrate proof of address.
"""
proof_of_registration: NotRequired[
"Account.CreateParamsDocumentsProofOfRegistration"
]
Expand Down Expand Up @@ -2712,6 +2757,12 @@ class CreateParamsDocumentsCompanyTaxIdVerification(TypedDict):
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class CreateParamsDocumentsProofOfAddress(TypedDict):
files: NotRequired[List[str]]
"""
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class CreateParamsDocumentsProofOfRegistration(TypedDict):
files: NotRequired[List[str]]
"""
Expand Down Expand Up @@ -3171,6 +3222,10 @@ class CreateParamsSettingsPayoutsSchedule(TypedDict):
"""
The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
"""
monthly_payout_days: NotRequired[List[int]]
"""
The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
"""
weekly_anchor: NotRequired[
Literal[
"friday",
Expand All @@ -3185,6 +3240,22 @@ class CreateParamsSettingsPayoutsSchedule(TypedDict):
"""
The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
"""
weekly_payout_days: NotRequired[
List[
Literal[
"friday",
"monday",
"saturday",
"sunday",
"thursday",
"tuesday",
"wednesday",
]
]
]
"""
The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
"""

class CreateParamsSettingsTreasury(TypedDict):
tos_acceptance: NotRequired[
Expand Down Expand Up @@ -4452,6 +4523,10 @@ class RetrievePersonParams(RequestOptions):
"""
Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://stripe.com/docs/payouts).
"""
deleted: Optional[Literal[True]]
"""
Always true for a deleted object
"""
details_submitted: Optional[bool]
"""
Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](https://docs.stripe.com/connect/onboarding) to finish submitting account details.
Expand Down Expand Up @@ -4503,10 +4578,6 @@ class RetrievePersonParams(RequestOptions):
"""
The Stripe account type. Can be `standard`, `express`, `custom`, or `none`.
"""
deleted: Optional[Literal[True]]
"""
Always true for a deleted object
"""

@classmethod
def create(cls, **params: Unpack["Account.CreateParams"]) -> "Account":
Expand Down
91 changes: 91 additions & 0 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The cashapp_payments capability.
"""
crypto_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesCryptoPayments"
]
"""
The crypto_payments capability.
"""
eps_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesEpsPayments"
]
Expand Down Expand Up @@ -701,6 +707,12 @@ class CreateParamsCapabilitiesCashappPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesCryptoPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesEpsPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -1052,6 +1064,9 @@ class CreateParamsCompany(TypedDict):
registration_date: NotRequired[
"Literal['']|AccountService.CreateParamsCompanyRegistrationDate"
]
"""
When the business was incorporated or registered.
"""
registration_number: NotRequired[str]
"""
The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
Expand Down Expand Up @@ -1302,6 +1317,12 @@ class CreateParamsDocuments(TypedDict):
"""
One or more documents that demonstrate proof of a company's tax ID.
"""
proof_of_address: NotRequired[
"AccountService.CreateParamsDocumentsProofOfAddress"
]
"""
One or more documents that demonstrate proof of address.
"""
proof_of_registration: NotRequired[
"AccountService.CreateParamsDocumentsProofOfRegistration"
]
Expand Down Expand Up @@ -1351,6 +1372,12 @@ class CreateParamsDocumentsCompanyTaxIdVerification(TypedDict):
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class CreateParamsDocumentsProofOfAddress(TypedDict):
files: NotRequired[List[str]]
"""
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class CreateParamsDocumentsProofOfRegistration(TypedDict):
files: NotRequired[List[str]]
"""
Expand Down Expand Up @@ -1824,6 +1851,10 @@ class CreateParamsSettingsPayoutsSchedule(TypedDict):
"""
The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
"""
monthly_payout_days: NotRequired[List[int]]
"""
The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
"""
weekly_anchor: NotRequired[
Literal[
"friday",
Expand All @@ -1838,6 +1869,22 @@ class CreateParamsSettingsPayoutsSchedule(TypedDict):
"""
The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
"""
weekly_payout_days: NotRequired[
List[
Literal[
"friday",
"monday",
"saturday",
"sunday",
"thursday",
"tuesday",
"wednesday",
]
]
]
"""
The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
"""

class CreateParamsSettingsTreasury(TypedDict):
tos_acceptance: NotRequired[
Expand Down Expand Up @@ -2261,6 +2308,12 @@ class UpdateParamsCapabilities(TypedDict):
"""
The cashapp_payments capability.
"""
crypto_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesCryptoPayments"
]
"""
The crypto_payments capability.
"""
eps_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesEpsPayments"
]
Expand Down Expand Up @@ -2610,6 +2663,12 @@ class UpdateParamsCapabilitiesCashappPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class UpdateParamsCapabilitiesCryptoPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class UpdateParamsCapabilitiesEpsPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -3173,6 +3232,12 @@ class UpdateParamsDocuments(TypedDict):
"""
One or more documents that demonstrate proof of a company's tax ID.
"""
proof_of_address: NotRequired[
"AccountService.UpdateParamsDocumentsProofOfAddress"
]
"""
One or more documents that demonstrate proof of address.
"""
proof_of_registration: NotRequired[
"AccountService.UpdateParamsDocumentsProofOfRegistration"
]
Expand Down Expand Up @@ -3222,6 +3287,12 @@ class UpdateParamsDocumentsCompanyTaxIdVerification(TypedDict):
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class UpdateParamsDocumentsProofOfAddress(TypedDict):
files: NotRequired[List[str]]
"""
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class UpdateParamsDocumentsProofOfRegistration(TypedDict):
files: NotRequired[List[str]]
"""
Expand Down Expand Up @@ -3699,6 +3770,10 @@ class UpdateParamsSettingsPayoutsSchedule(TypedDict):
"""
The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
"""
monthly_payout_days: NotRequired[List[int]]
"""
The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
"""
weekly_anchor: NotRequired[
Literal[
"friday",
Expand All @@ -3713,6 +3788,22 @@ class UpdateParamsSettingsPayoutsSchedule(TypedDict):
"""
The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
"""
weekly_payout_days: NotRequired[
List[
Literal[
"friday",
"monday",
"saturday",
"sunday",
"thursday",
"tuesday",
"wednesday",
]
]
]
"""
The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
"""

class UpdateParamsSettingsTreasury(TypedDict):
tos_acceptance: NotRequired[
Expand Down
Loading