Skip to content

Update generated code for beta #1520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Jul 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
425002a
Update generated code for v1789 and 2025-05-28.preview
stripe-openapi[bot] Jun 9, 2025
c7108f2
Update generated code for v1791 and 2025-05-28.preview
stripe-openapi[bot] Jun 10, 2025
3143122
Update generated code for v1795 and 2025-05-28.preview
stripe-openapi[bot] Jun 12, 2025
5fa4bc1
Update generated code for v1796 and 2025-05-28.preview
stripe-openapi[bot] Jun 12, 2025
7b83953
Update generated code for v1796 and 2025-05-28.preview
stripe-openapi[bot] Jun 12, 2025
ce3571c
Update generated code for v1797 and 2025-05-28.preview
stripe-openapi[bot] Jun 13, 2025
e404e39
Update generated code for v1799 and 2025-05-28.preview
stripe-openapi[bot] Jun 16, 2025
30ce651
Update generated code for v1800 and 2025-05-28.preview
stripe-openapi[bot] Jun 17, 2025
060893b
Update generated code for v1800 and 2025-05-28.preview
stripe-openapi[bot] Jun 17, 2025
c77d676
Update generated code for v1801 and 2025-05-28.preview
stripe-openapi[bot] Jun 17, 2025
014c860
Update generated code for v1803 and 2025-05-28.preview
stripe-openapi[bot] Jun 18, 2025
0042f04
Update generated code for v1805 and 2025-05-28.preview
stripe-openapi[bot] Jun 18, 2025
e88770c
Update generated code for v1806 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
6e60db1
Update generated code for v1807 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
4716c3d
Update generated code for v1809 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
3b462bc
Update generated code for v1811 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
810e92e
Update generated code for v1812 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
4ab9494
Update generated code for v1813 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
3fb6620
Update generated code for v1814 and 2025-06-30.preview
stripe-openapi[bot] Jun 19, 2025
d014fb8
Update generated code for v1815 and 2025-06-30.preview
stripe-openapi[bot] Jun 20, 2025
3ded03f
Update generated code for v1816 and 2025-06-30.preview
stripe-openapi[bot] Jun 20, 2025
2790c3d
Update generated code for v1817 and 2025-06-30.preview
stripe-openapi[bot] Jun 20, 2025
761e9cd
Update generated code for v1818 and 2025-06-30.preview
stripe-openapi[bot] Jun 23, 2025
fdd5147
Update generated code for v1819 and 2025-06-30.preview
stripe-openapi[bot] Jun 23, 2025
1ebdeae
Update generated code for v1819 and 2025-06-30.preview
stripe-openapi[bot] Jun 23, 2025
e3808c8
Update generated code for v1819 and 2025-06-30.preview
stripe-openapi[bot] Jun 24, 2025
a7e2bf9
Merge upstream and update generated code for v1819 and 2025-06-30.pre…
stripe-openapi[bot] Jun 26, 2025
8802d95
Update generated code for v1819 and 2025-06-30.preview
stripe-openapi[bot] Jun 26, 2025
089e640
Merge branch 'beta' into latest-codegen-beta
prathmesh-stripe Jun 30, 2025
42c1bd0
Fix the link to releases page from readme (#1534)
ramya-stripe Jun 30, 2025
128f3bb
Merge upstream and update generated code for v1819 and 2025-06-30.pre…
stripe-openapi[bot] Jul 1, 2025
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.preview
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1773
v1819
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ be aware that the data you see at runtime may not match the types.

### Public Preview SDKs

Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-beta.X` suffix like `12.2.0-beta.2`.
Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-bX` suffix like `12.2.0b2`.
We would love for you to try these as we incrementally release new features and improve them based on your feedback.

The public preview SDKs are different versions of the same package as the stable SDKs. They are appended with `b.X` such as `10.1.0b1`. To install, choose the version that includes support for the preview feature you are interested in by reviewing the [releases page](https://github.com/stripe/stripe-dotnet/releases/) and then use it in the `pip install` command:
To install, choose the version that includes support for the preview feature you are interested in by reviewing the [releases page](https://github.com/stripe/stripe-python/releases/) and then use it in the `pip install` command:

```
pip install stripe==<replace-with-the-version-of-your-choice>
Expand Down
79 changes: 75 additions & 4 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,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 @@ -1380,10 +1384,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 @@ -1890,6 +1914,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 @@ -2319,6 +2349,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 @@ -2744,6 +2780,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 @@ -3020,6 +3059,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 @@ -3069,6 +3114,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 @@ -3586,6 +3637,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 @@ -3600,6 +3655,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 CreateParamsSettingsTaxForms(TypedDict):
consented_to_paperless_delivery: NotRequired[bool]
Expand Down Expand Up @@ -4873,6 +4944,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 @@ -4925,10 +5000,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 @@ -362,6 +362,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 @@ -795,6 +801,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 @@ -1224,6 +1236,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 @@ -1506,6 +1521,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 @@ -1555,6 +1576,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 @@ -2086,6 +2113,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 @@ -2100,6 +2131,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 CreateParamsSettingsTaxForms(TypedDict):
consented_to_paperless_delivery: NotRequired[bool]
Expand Down Expand Up @@ -2539,6 +2586,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 @@ -2972,6 +3025,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 @@ -3613,6 +3672,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 @@ -3662,6 +3727,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 @@ -4197,6 +4268,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 @@ -4211,6 +4286,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 UpdateParamsSettingsTaxForms(TypedDict):
consented_to_paperless_delivery: NotRequired[bool]
Expand Down
Loading