Skip to content

Commit 819739f

Browse files
Update generated code for v2524 and da08f74e778e976dfe72651efc20286e78d404e3
1 parent 3c574d7 commit 819739f

190 files changed

Lines changed: 8651 additions & 1479 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-
2d13381d5dfd98ca6daaddeefc23711d41c7170a
1+
da08f74e778e976dfe72651efc20286e78d404e3

‎OPENAPI_VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2516
1+
v2524

‎stripe/__init__.py‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def add_beta_version(
175175
tax as tax,
176176
terminal as terminal,
177177
test_helpers as test_helpers,
178+
three_d_secure as three_d_secure,
178179
treasury as treasury,
179180
v2 as v2,
180181
)
@@ -354,7 +355,6 @@ def add_beta_version(
354355
CannotProceedError as CannotProceedError,
355356
CardError as CardError,
356357
ControlledByAlternateResourceError as ControlledByAlternateResourceError,
357-
ControlledByDashboardError as ControlledByDashboardError,
358358
FeatureNotEnabledError as FeatureNotEnabledError,
359359
FinancialAccountNotOpenError as FinancialAccountNotOpenError,
360360
FxQuoteExpiredError as FxQuoteExpiredError,
@@ -364,6 +364,7 @@ def add_beta_version(
364364
InvalidPaymentMethodError as InvalidPaymentMethodError,
365365
InvalidPayoutMethodError as InvalidPayoutMethodError,
366366
InvalidRequestError as InvalidRequestError,
367+
InvalidVaultedCredentialError as InvalidVaultedCredentialError,
367368
MerchantNotGatedError as MerchantNotGatedError,
368369
NonZeroBalanceError as NonZeroBalanceError,
369370
NotCancelableError as NotCancelableError,
@@ -376,6 +377,9 @@ def add_beta_version(
376377
StripeError as StripeError,
377378
StripeErrorWithParamCode as StripeErrorWithParamCode,
378379
TemporarySessionExpiredError as TemporarySessionExpiredError,
380+
VerificationAttemptFailedError as VerificationAttemptFailedError,
381+
VerificationExpiredError as VerificationExpiredError,
382+
VerificationNotInitiatedError as VerificationNotInitiatedError,
379383
)
380384
from stripe._error_object import (
381385
ErrorObject as ErrorObject,
@@ -667,6 +671,9 @@ def add_beta_version(
667671
from stripe._test_helpers_service import (
668672
TestHelpersService as TestHelpersService,
669673
)
674+
from stripe._three_d_secure_service import (
675+
ThreeDSecureService as ThreeDSecureService,
676+
)
670677
from stripe._token import Token as Token
671678
from stripe._token_service import TokenService as TokenService
672679
from stripe._topup import Topup as Topup
@@ -725,6 +732,7 @@ def add_beta_version(
725732
"tax": ("stripe.tax", True),
726733
"terminal": ("stripe.terminal", True),
727734
"test_helpers": ("stripe.test_helpers", True),
735+
"three_d_secure": ("stripe.three_d_secure", True),
728736
"treasury": ("stripe.treasury", True),
729737
"v2": ("stripe.v2", True),
730738
"Account": ("stripe._account", False),
@@ -863,7 +871,6 @@ def add_beta_version(
863871
"CannotProceedError": ("stripe._error", False),
864872
"CardError": ("stripe._error", False),
865873
"ControlledByAlternateResourceError": ("stripe._error", False),
866-
"ControlledByDashboardError": ("stripe._error", False),
867874
"FeatureNotEnabledError": ("stripe._error", False),
868875
"FinancialAccountNotOpenError": ("stripe._error", False),
869876
"FxQuoteExpiredError": ("stripe._error", False),
@@ -873,6 +880,7 @@ def add_beta_version(
873880
"InvalidPaymentMethodError": ("stripe._error", False),
874881
"InvalidPayoutMethodError": ("stripe._error", False),
875882
"InvalidRequestError": ("stripe._error", False),
883+
"InvalidVaultedCredentialError": ("stripe._error", False),
876884
"MerchantNotGatedError": ("stripe._error", False),
877885
"NonZeroBalanceError": ("stripe._error", False),
878886
"NotCancelableError": ("stripe._error", False),
@@ -885,6 +893,9 @@ def add_beta_version(
885893
"StripeError": ("stripe._error", False),
886894
"StripeErrorWithParamCode": ("stripe._error", False),
887895
"TemporarySessionExpiredError": ("stripe._error", False),
896+
"VerificationAttemptFailedError": ("stripe._error", False),
897+
"VerificationExpiredError": ("stripe._error", False),
898+
"VerificationNotInitiatedError": ("stripe._error", False),
888899
"ErrorObject": ("stripe._error_object", False),
889900
"OAuthErrorObject": ("stripe._error_object", False),
890901
"Event": ("stripe._event", False),
@@ -1116,6 +1127,7 @@ def add_beta_version(
11161127
"TerminalService": ("stripe._terminal_service", False),
11171128
"APIResourceTestHelpers": ("stripe._test_helpers", False),
11181129
"TestHelpersService": ("stripe._test_helpers_service", False),
1130+
"ThreeDSecureService": ("stripe._three_d_secure_service", False),
11191131
"Token": ("stripe._token", False),
11201132
"TokenService": ("stripe._token_service", False),
11211133
"Topup": ("stripe._topup", False),

‎stripe/_account.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ class Details(StripeObject):
13051305
]
13061306
]
13071307
"""
1308-
If the account is disabled, this string describes why the account can't create charges or receive payouts. Can be `rejected.fraud`, `rejected.terms_of_service`, `rejected.listed`, `rejected.other`, `fields_needed`, `listed`, `under_review`, or `other`.
1308+
This is typed as an enum for consistency with `requirements.disabled_reason`.
13091309
"""
13101310
errors: Optional[List[Error]]
13111311
"""
@@ -1498,7 +1498,7 @@ class Details(StripeObject):
14981498
]
14991499
]
15001500
"""
1501-
If the account is disabled, this string describes why the account can't create charges or receive payouts. Can be `rejected.fraud`, `rejected.terms_of_service`, `rejected.listed`, `rejected.other`, `fields_needed`, `listed`, `under_review`, or `other`.
1501+
If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://docs.stripe.com/connect/handling-api-verification).
15021502
"""
15031503
errors: Optional[List[Error]]
15041504
"""

‎stripe/_api_requestor.py‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,6 @@ def specific_v2_api_error(self, rbody, rcode, resp, rheaders, error_data):
430430
)
431431
elif type == "controlled_by_alternate_resource":
432432
return error.ControlledByAlternateResourceError(**error_args)
433-
elif type == "controlled_by_dashboard":
434-
return error.ControlledByDashboardError(**error_args)
435433
elif type == "feature_not_enabled":
436434
return error.FeatureNotEnabledError(**error_args)
437435
elif type == "financial_account_not_open":
@@ -449,6 +447,11 @@ def specific_v2_api_error(self, rbody, rcode, resp, rheaders, error_data):
449447
)
450448
elif type == "invalid_payout_method":
451449
return error.InvalidPayoutMethodError(**error_args)
450+
elif type == "invalid_vaulted_credential":
451+
return error.InvalidVaultedCredentialError(
452+
**error_args,
453+
invalid_param=error_data.get("invalid_param"),
454+
)
452455
elif type == "merchant_not_gated":
453456
return error.MerchantNotGatedError(**error_args)
454457
elif type == "non_zero_balance":
@@ -465,6 +468,21 @@ def specific_v2_api_error(self, rbody, rcode, resp, rheaders, error_data):
465468
return error.ServiceUnavailableError(**error_args)
466469
elif type == "temporary_session_expired":
467470
return error.TemporarySessionExpiredError(**error_args)
471+
elif type == "verification_attempt_failed":
472+
return error.VerificationAttemptFailedError(
473+
**error_args,
474+
verification_status=error_data.get("verification_status"),
475+
)
476+
elif type == "verification_expired":
477+
return error.VerificationExpiredError(
478+
**error_args,
479+
verification_status=error_data.get("verification_status"),
480+
)
481+
elif type == "verification_not_initiated":
482+
return error.VerificationNotInitiatedError(
483+
**error_args,
484+
verification_status=error_data.get("verification_status"),
485+
)
468486
# switchCases: The end of the section generated from our OpenAPI spec
469487

470488
return self.specific_v1_api_error(

‎stripe/_api_version.py‎

Lines changed: 1 addition & 1 deletion
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-09-23.preview"
4+
CURRENT = "2026-09-30.preview"
55
CURRENT_MAJOR = ""

‎stripe/_apps_service.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@
55
from typing_extensions import TYPE_CHECKING
66

77
if TYPE_CHECKING:
8+
from stripe.apps._install_service import InstallService
89
from stripe.apps._secret_service import SecretService
910

10-
_subservices = {"secrets": ["stripe.apps._secret_service", "SecretService"]}
11+
_subservices = {
12+
"installs": ["stripe.apps._install_service", "InstallService"],
13+
"secrets": ["stripe.apps._secret_service", "SecretService"],
14+
}
1115

1216

1317
class AppsService(StripeService):
18+
installs: "InstallService"
1419
secrets: "SecretService"
1520

1621
def __init__(self, requestor):

‎stripe/_balance_transaction.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ class FeeDetail(StripeObject):
178178
"issuing_authorization_hold",
179179
"issuing_authorization_release",
180180
"issuing_dispute",
181+
"issuing_dispute_provisional_credit",
182+
"issuing_dispute_provisional_credit_reversal",
181183
"issuing_transaction",
182184
"obligation_outbound",
183185
"obligation_reversal_inbound",
@@ -215,7 +217,7 @@ class FeeDetail(StripeObject):
215217
str,
216218
]
217219
"""
218-
Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
220+
Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_dispute_provisional_credit`, `issuing_dispute_provisional_credit_reversal`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
219221
"""
220222

221223
@classmethod

‎stripe/_charge.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,12 @@ class ShippingAddress(StripeObject):
912912
"""
913913
When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
914914
"""
915+
card_account_update: Optional[
916+
Union[Literal["expiry_changed", "number_changed"], str]
917+
]
918+
"""
919+
If present, indicates that the Card Account Updater changed the card's credentials during this authorization. `number_changed` means the card number was updated (the expiration date may have changed as well); `expiry_changed` means only the expiration date was updated.
920+
"""
915921
checks: Optional[Checks]
916922
"""
917923
Check results by Card networks on Card address and CVC at time of payment.

‎stripe/_customer_tax_exemption.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ class Ca(StripeObject):
2424
The type of Canadian tax (gst_hst, PST, QST, RST).
2525
"""
2626

27+
class Es(StripeObject):
28+
state: Optional[str]
29+
"""
30+
Two-letter Spanish subdivision code (ISO 3166-2). Absent for country-wide Spain exemptions.
31+
"""
32+
2733
class Us(StripeObject):
2834
state: str
2935
"""
@@ -51,6 +57,7 @@ class Us(StripeObject):
5157
"""
5258
ISO 8601 date (YYYY-MM-DD) when the exemption becomes effective.
5359
"""
60+
es: Optional[Es]
5461
expiration_date: Optional[str]
5562
"""
5663
ISO 8601 date (YYYY-MM-DD) when the exemption expires.
@@ -68,4 +75,4 @@ class Us(StripeObject):
6875
String representing the object's type. Objects of the same type share the same value.
6976
"""
7077
us: Optional[Us]
71-
_inner_class_types = {"ca": Ca, "us": Us}
78+
_inner_class_types = {"ca": Ca, "es": Es, "us": Us}

0 commit comments

Comments
 (0)