Skip to content

Commit 08059f9

Browse files
stripe-openapi[bot]xavdidramya-stripe
authored
Update generated code (#1749)
* Update generated code for v2189 and * Update generated code for v2189 and * Update generated code for v2202 and * Update generated code for v2202 and * Update generated code for v2203 and * Update generated code for v2204 and * Update generated code for v2204 and * Update generated code for v2204 and * Update generated code for v2204 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: David Brownman <xavdid@stripe.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
1 parent e2c2f78 commit 08059f9

188 files changed

Lines changed: 1893 additions & 544 deletions

File tree

Some content is hidden

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

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e65e48569f6dfad2d5f1b58018017856520c3ae6
1+
5a12435b3b09ae0579265713bb543b4bd962f424

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2186
1+
v2204

stripe/_account.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class Account(
8181
UpdateableAPIResource["Account"],
8282
):
8383
"""
84+
For new integrations, we recommend using the [Accounts v2 API](https://docs.stripe.com/api/v2/core/accounts), in place of /v1/accounts and /v1/customers to represent a user.
85+
8486
This is an object representing a Stripe account. You can retrieve it to see
8587
properties on the account like its current requirements or if the account is
8688
enabled to make live charges or receive payouts.
@@ -472,6 +474,10 @@ class Capabilities(StripeObject):
472474
"""
473475
The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
474476
"""
477+
upi_payments: Optional[Literal["active", "inactive", "pending"]]
478+
"""
479+
The status of the upi payments capability of the account, or whether the account can directly process upi charges.
480+
"""
475481
us_bank_account_ach_payments: Optional[
476482
Literal["active", "inactive", "pending"]
477483
]

stripe/_account_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class Features(StripeObject):
472472
"""
473473
livemode: bool
474474
"""
475-
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
475+
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
476476
"""
477477
object: Literal["account_session"]
478478
"""

stripe/_api_requestor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ def specific_v2_api_error(self, rbody, rcode, resp, rheaders, error_data):
383383
code,
384384
)
385385
# switchCases: The beginning of the section generated from our OpenAPI spec
386+
elif type == "rate_limit":
387+
return error.RateLimitError(**error_args)
386388
elif type == "temporary_session_expired":
387389
return error.TemporarySessionExpiredError(**error_args)
388390
# switchCases: The end of the section generated from our OpenAPI spec

stripe/_api_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
class _ApiVersion:
4-
CURRENT = "2026-02-25.clover"
5-
CURRENT_MAJOR = "clover"
4+
CURRENT = "2026-03-25.dahlia"
5+
CURRENT_MAJOR = "dahlia"

stripe/_apple_pay_domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ApplePayDomain(
4444
"""
4545
livemode: bool
4646
"""
47-
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
47+
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
4848
"""
4949
object: Literal["apple_pay_domain"]
5050
"""

stripe/_application_fee.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class FeeSource(StripeObject):
9898
"""
9999
livemode: bool
100100
"""
101-
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
101+
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
102102
"""
103103
object: Literal["application_fee"]
104104
"""

stripe/_balance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class SourceTypes(StripeObject):
269269
issuing: Optional[Issuing]
270270
livemode: bool
271271
"""
272-
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
272+
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
273273
"""
274274
object: Literal["balance"]
275275
"""

stripe/_cash_balance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Settings(StripeObject):
3838
"""
3939
livemode: bool
4040
"""
41-
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
41+
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
4242
"""
4343
object: Literal["cash_balance"]
4444
"""

0 commit comments

Comments
 (0)