Skip to content

Commit 6dd2d26

Browse files
Update generated code (#1650)
* Update generated code for v2093 and * Update generated code for v2095 and * Update generated code for v2096 and * Update generated code for v2099 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent a31c9ec commit 6dd2d26

File tree

119 files changed

+9539
-161
lines changed

Some content is hidden

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

119 files changed

+9539
-161
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-09-30.clover
1+
577fcb57736b925392ea563c0284df9002c75ac9

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2028
1+
v2099

stripe/__init__.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,19 @@ def set_app_info(
356356
)
357357
from stripe._oauth import OAuth as OAuth
358358
from stripe._oauth_service import OAuthService as OAuthService
359+
from stripe._payment_attempt_record import (
360+
PaymentAttemptRecord as PaymentAttemptRecord,
361+
)
362+
from stripe._payment_attempt_record_service import (
363+
PaymentAttemptRecordService as PaymentAttemptRecordService,
364+
)
359365
from stripe._payment_intent import PaymentIntent as PaymentIntent
366+
from stripe._payment_intent_amount_details_line_item import (
367+
PaymentIntentAmountDetailsLineItem as PaymentIntentAmountDetailsLineItem,
368+
)
369+
from stripe._payment_intent_amount_details_line_item_service import (
370+
PaymentIntentAmountDetailsLineItemService as PaymentIntentAmountDetailsLineItemService,
371+
)
360372
from stripe._payment_intent_service import (
361373
PaymentIntentService as PaymentIntentService,
362374
)
@@ -383,6 +395,10 @@ def set_app_info(
383395
from stripe._payment_method_service import (
384396
PaymentMethodService as PaymentMethodService,
385397
)
398+
from stripe._payment_record import PaymentRecord as PaymentRecord
399+
from stripe._payment_record_service import (
400+
PaymentRecordService as PaymentRecordService,
401+
)
386402
from stripe._payout import Payout as Payout
387403
from stripe._payout_service import PayoutService as PayoutService
388404
from stripe._person import Person as Person
@@ -718,7 +734,20 @@ def set_app_info(
718734
),
719735
"OAuth": ("stripe._oauth", False),
720736
"OAuthService": ("stripe._oauth_service", False),
737+
"PaymentAttemptRecord": ("stripe._payment_attempt_record", False),
738+
"PaymentAttemptRecordService": (
739+
"stripe._payment_attempt_record_service",
740+
False,
741+
),
721742
"PaymentIntent": ("stripe._payment_intent", False),
743+
"PaymentIntentAmountDetailsLineItem": (
744+
"stripe._payment_intent_amount_details_line_item",
745+
False,
746+
),
747+
"PaymentIntentAmountDetailsLineItemService": (
748+
"stripe._payment_intent_amount_details_line_item_service",
749+
False,
750+
),
722751
"PaymentIntentService": ("stripe._payment_intent_service", False),
723752
"PaymentLink": ("stripe._payment_link", False),
724753
"PaymentLinkLineItemService": (
@@ -741,6 +770,8 @@ def set_app_info(
741770
False,
742771
),
743772
"PaymentMethodService": ("stripe._payment_method_service", False),
773+
"PaymentRecord": ("stripe._payment_record", False),
774+
"PaymentRecordService": ("stripe._payment_record_service", False),
744775
"Payout": ("stripe._payout", False),
745776
"PayoutService": ("stripe._payout_service", False),
746777
"Person": ("stripe._person", False),

stripe/_account.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,20 @@ class RegistrationDate(StripeObject):
614614
The four-digit year of registration.
615615
"""
616616

617+
class RepresentativeDeclaration(StripeObject):
618+
date: Optional[int]
619+
"""
620+
The Unix timestamp marking when the representative declaration attestation was made.
621+
"""
622+
ip: Optional[str]
623+
"""
624+
The IP address from which the representative declaration attestation was made.
625+
"""
626+
user_agent: Optional[str]
627+
"""
628+
The user-agent string from the browser where the representative declaration attestation was made.
629+
"""
630+
617631
class Verification(StripeObject):
618632
class Document(StripeObject):
619633
back: Optional[ExpandableField["File"]]
@@ -699,6 +713,10 @@ class Document(StripeObject):
699713
The company's phone number (used for verification).
700714
"""
701715
registration_date: Optional[RegistrationDate]
716+
representative_declaration: Optional[RepresentativeDeclaration]
717+
"""
718+
This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
719+
"""
702720
structure: Optional[
703721
Literal[
704722
"free_zone_establishment",
@@ -752,6 +770,7 @@ class Document(StripeObject):
752770
"directorship_declaration": DirectorshipDeclaration,
753771
"ownership_declaration": OwnershipDeclaration,
754772
"registration_date": RegistrationDate,
773+
"representative_declaration": RepresentativeDeclaration,
755774
"verification": Verification,
756775
}
757776

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 = "2025-09-30.clover"
4+
CURRENT = "2025-10-29.clover"
55
CURRENT_MAJOR = "clover"

stripe/_charge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ class Crypto(StripeObject):
10901090
"""
10911091
The wallet address of the customer.
10921092
"""
1093-
network: Optional[Literal["base", "ethereum", "polygon"]]
1093+
network: Optional[Literal["base", "ethereum", "polygon", "solana"]]
10941094
"""
10951095
The blockchain network that the transaction was sent on.
10961096
"""

stripe/_confirmation_token.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,6 +1480,7 @@ class Zip(StripeObject):
14801480
"card_present",
14811481
"cashapp",
14821482
"crypto",
1483+
"custom",
14831484
"customer_balance",
14841485
"eps",
14851486
"fpx",

stripe/_credit_note.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,33 @@ class PretaxCreditAmount(StripeObject):
8888
"""
8989

9090
class Refund(StripeObject):
91+
class PaymentRecordRefund(StripeObject):
92+
payment_record: str
93+
"""
94+
ID of the payment record.
95+
"""
96+
refund_group: str
97+
"""
98+
ID of the refund group.
99+
"""
100+
91101
amount_refunded: int
92102
"""
93103
Amount of the refund that applies to this credit note, in cents (or local equivalent).
94104
"""
105+
payment_record_refund: Optional[PaymentRecordRefund]
106+
"""
107+
The PaymentRecord refund details associated with this credit note refund.
108+
"""
95109
refund: ExpandableField["RefundResource"]
96110
"""
97111
ID of the refund.
98112
"""
113+
type: Optional[Literal["payment_record_refund", "refund"]]
114+
"""
115+
Type of the refund, one of `refund` or `payment_record_refund`.
116+
"""
117+
_inner_class_types = {"payment_record_refund": PaymentRecordRefund}
99118

100119
class ShippingCost(StripeObject):
101120
class Tax(StripeObject):

stripe/_customer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ class Location(StripeObject):
281281
"""
282282
The identified tax location of the customer.
283283
"""
284+
provider: Literal["anrok", "avalara", "sphere", "stripe"]
285+
"""
286+
The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](https://docs.stripe.com/tax/third-party-apps).
287+
"""
284288
_inner_class_types = {"location": Location}
285289

286290
address: Optional[Address]

stripe/_customer_session.py

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,80 @@ class BuyButton(StripeObject):
3232
Whether the buy button is enabled.
3333
"""
3434

35+
class CustomerSheet(StripeObject):
36+
class Features(StripeObject):
37+
payment_method_allow_redisplay_filters: Optional[
38+
List[Literal["always", "limited", "unspecified"]]
39+
]
40+
"""
41+
A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
42+
43+
If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
44+
"""
45+
payment_method_remove: Optional[Literal["disabled", "enabled"]]
46+
"""
47+
Controls whether the customer sheet displays the option to remove a saved payment method."
48+
49+
Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
50+
"""
51+
52+
enabled: bool
53+
"""
54+
Whether the customer sheet is enabled.
55+
"""
56+
features: Optional[Features]
57+
"""
58+
This hash defines whether the customer sheet supports certain features.
59+
"""
60+
_inner_class_types = {"features": Features}
61+
62+
class MobilePaymentElement(StripeObject):
63+
class Features(StripeObject):
64+
payment_method_allow_redisplay_filters: Optional[
65+
List[Literal["always", "limited", "unspecified"]]
66+
]
67+
"""
68+
A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
69+
70+
If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
71+
"""
72+
payment_method_redisplay: Optional[
73+
Literal["disabled", "enabled"]
74+
]
75+
"""
76+
Controls whether or not the mobile payment element shows saved payment methods.
77+
"""
78+
payment_method_remove: Optional[Literal["disabled", "enabled"]]
79+
"""
80+
Controls whether the mobile payment element displays the option to remove a saved payment method."
81+
82+
Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
83+
"""
84+
payment_method_save: Optional[Literal["disabled", "enabled"]]
85+
"""
86+
Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
87+
88+
If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
89+
"""
90+
payment_method_save_allow_redisplay_override: Optional[
91+
Literal["always", "limited", "unspecified"]
92+
]
93+
"""
94+
Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
95+
96+
If not specified, defaults to `nil` (no override value).
97+
"""
98+
99+
enabled: bool
100+
"""
101+
Whether the mobile payment element is enabled.
102+
"""
103+
features: Optional[Features]
104+
"""
105+
This hash defines whether the mobile payment element supports certain features.
106+
"""
107+
_inner_class_types = {"features": Features}
108+
35109
class PaymentElement(StripeObject):
36110
class Features(StripeObject):
37111
payment_method_allow_redisplay_filters: List[
@@ -91,6 +165,14 @@ class PricingTable(StripeObject):
91165
"""
92166
This hash contains whether the buy button is enabled.
93167
"""
168+
customer_sheet: CustomerSheet
169+
"""
170+
This hash contains whether the customer sheet is enabled and the features it supports.
171+
"""
172+
mobile_payment_element: MobilePaymentElement
173+
"""
174+
This hash contains whether the mobile payment element is enabled and the features it supports.
175+
"""
94176
payment_element: PaymentElement
95177
"""
96178
This hash contains whether the Payment Element is enabled and the features it supports.
@@ -101,6 +183,8 @@ class PricingTable(StripeObject):
101183
"""
102184
_inner_class_types = {
103185
"buy_button": BuyButton,
186+
"customer_sheet": CustomerSheet,
187+
"mobile_payment_element": MobilePaymentElement,
104188
"payment_element": PaymentElement,
105189
"pricing_table": PricingTable,
106190
}

0 commit comments

Comments
 (0)