Skip to content

Commit 6eb5a9d

Browse files
Merge pull request #1818 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 748d7f2 + 322a57c commit 6eb5a9d

93 files changed

Lines changed: 5592 additions & 69 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-
1af5aa444ea8141a2d2b8d86e76c73f788f65e09
1+
656489921ee220b536bc00fc1c8ee7ed528f24e2

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2277
1+
v2290

stripe/_api_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
class _ApiVersion:
4-
CURRENT = "2026-05-27.preview"
4+
CURRENT = "2026-06-03.preview"

stripe/_delegated_checkout_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
from typing_extensions import TYPE_CHECKING
66

77
if TYPE_CHECKING:
8+
from stripe.delegated_checkout._order_service import OrderService
89
from stripe.delegated_checkout._requested_session_service import (
910
RequestedSessionService,
1011
)
1112

1213
_subservices = {
14+
"orders": ["stripe.delegated_checkout._order_service", "OrderService"],
1315
"requested_sessions": [
1416
"stripe.delegated_checkout._requested_session_service",
1517
"RequestedSessionService",
@@ -18,6 +20,7 @@
1820

1921

2022
class DelegatedCheckoutService(StripeService):
23+
orders: "OrderService"
2124
requested_sessions: "RequestedSessionService"
2225

2326
def __init__(self, requestor):

stripe/_event_notification_handler.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,9 @@
12301230
from stripe.events._v2_signals_account_signal_fraudulent_merchant_ready_event import (
12311231
V2SignalsAccountSignalFraudulentMerchantReadyEventNotification,
12321232
)
1233+
from stripe.events._v2_signals_account_signal_merchant_delinquency_ready_event import (
1234+
V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification,
1235+
)
12331236
# event-notification-types: The end of the section generated from our OpenAPI spec
12341237

12351238
# internal type to represent any EventNotification subclass
@@ -6604,4 +6607,17 @@ def on_v2_signals_account_signal_fraudulent_merchant_ready(
66046607
)
66056608
return func
66066609

6610+
def on_v2_signals_account_signal_merchant_delinquency_ready(
6611+
self,
6612+
func: "Callable[[V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification, StripeClient], None]",
6613+
):
6614+
"""
6615+
Registers a callback for the `V2SignalsAccountSignalMerchantDelinquencyReadyEvent` (`v2.signals.account_signal.merchant_delinquency_ready`) event notification.
6616+
"""
6617+
self._register(
6618+
"v2.signals.account_signal.merchant_delinquency_ready",
6619+
func,
6620+
)
6621+
return func
6622+
66076623
# event-notification-registration-methods: The end of the section generated from our OpenAPI spec

stripe/_object_classes.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
"CustomerCashBalanceTransaction",
118118
),
119119
"customer_session": ("stripe._customer_session", "CustomerSession"),
120+
"delegated_checkout.order": ("stripe.delegated_checkout._order", "Order"),
121+
"delegated_checkout.order_event": (
122+
"stripe.delegated_checkout._order_event",
123+
"OrderEvent",
124+
),
120125
"delegated_checkout.requested_session": (
121126
"stripe.delegated_checkout._requested_session",
122127
"RequestedSession",
@@ -476,6 +481,11 @@
476481
"stripe.v2.billing._collection_setting_version",
477482
"CollectionSettingVersion",
478483
),
484+
"v2.billing.contract": ("stripe.v2.billing._contract", "Contract"),
485+
"v2.billing.contract_license_pricing_quantity_change": (
486+
"stripe.v2.billing._contract_license_pricing_quantity_change",
487+
"ContractLicensePricingQuantityChange",
488+
),
479489
"v2.billing.custom_pricing_unit": (
480490
"stripe.v2.billing._custom_pricing_unit",
481491
"CustomPricingUnit",
@@ -716,6 +726,10 @@
716726
"stripe.v2.reporting._report_run",
717727
"ReportRun",
718728
),
729+
"v2.signals.account_signal": (
730+
"stripe.v2.signals._account_signal",
731+
"AccountSignal",
732+
),
719733
"v2.tax.manual_rule": ("stripe.v2.tax._manual_rule", "ManualRule"),
720734
# V2 Object classes: The end of the section generated from our OpenAPI spec
721735
}

stripe/_payment_intent.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3140,7 +3140,9 @@ class DateOfBirth(StripeObject):
31403140
}
31413141

31423142
account_funding: Optional[AccountFunding]
3143-
transaction_type: Optional[Literal["account_funding"]]
3143+
transaction_type: Optional[
3144+
Literal["account_funding", "debt_repayment"]
3145+
]
31443146
"""
31453147
The type of money services transaction.
31463148
"""
@@ -3733,6 +3735,10 @@ class DepositOptions(StripeObject):
37333735
"""
37343736
The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
37353737
"""
3738+
static_address: Optional[bool]
3739+
"""
3740+
If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
3741+
"""
37363742

37373743
deposit_options: Optional[DepositOptions]
37383744
mode: Optional[Literal["default", "deposit"]]

stripe/_payment_link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class AutomaticSurcharge(StripeObject):
8181
"""
8282
Indicates whether automatic surcharge is enabled for the payment link.
8383
"""
84-
provider: Optional[Literal["interpayments", "yeeld"]]
84+
provider: Optional[Literal["interpayments", "proserv", "yeeld"]]
8585
"""
8686
The surcharge provider used for this payment link.
8787
"""

stripe/_payment_location.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class SupportedIssuers(StripeObject):
111111
"""
112112
capability_settings: Optional[CapabilitySettings]
113113
"""
114-
The capability settings for the location. Only applicable for locations with requested Payment Location Capabilities.
114+
The capability settings for the location. Only applicable for locations with requested payment location capabilities.
115115
"""
116116
deleted: Optional[Literal[True]]
117117
"""

stripe/_payment_location_capability.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PaymentLocationCapability(
2525
UpdateableAPIResource["PaymentLocationCapability"],
2626
):
2727
"""
28-
A Payment Location Capability represents a capability for a Stripe account at a Payment Location.
28+
A `payment_location` capability represents a capability for a Stripe account at a payment location.
2929
"""
3030

3131
OBJECT_NAME: ClassVar[Literal["payment_location_capability"]] = (
@@ -72,7 +72,7 @@ class Error(StripeObject):
7272

7373
account: str
7474
"""
75-
The account for which the capability enables functionality.
75+
The account that the capability enables functionality for.
7676
"""
7777
capability: Literal["fr_meal_vouchers_conecs_payments"]
7878
"""
@@ -84,7 +84,7 @@ class Error(StripeObject):
8484
"""
8585
location: str
8686
"""
87-
The payment location for which the capability enables functionality.
87+
The payment location that the capability enables functionality for.
8888
"""
8989
object: Literal["payment_location_capability"]
9090
"""
@@ -96,7 +96,7 @@ class Error(StripeObject):
9696
"""
9797
requested_at: Optional[int]
9898
"""
99-
Time at which the capability was requested. Measured in seconds since the Unix epoch.
99+
Time when the capability was requested. Measured in seconds since the Unix epoch.
100100
"""
101101
requirements: Requirements
102102
status: Literal["active", "inactive", "pending", "unrequested"]
@@ -109,7 +109,7 @@ def list(
109109
cls, **params: Unpack["PaymentLocationCapabilityListParams"]
110110
) -> ListObject["PaymentLocationCapability"]:
111111
"""
112-
Returns a list of PaymentLocationCapability objects associated with the location.
112+
List all payment location capabilities associated with the payment location.
113113
"""
114114
result = cls._static_request(
115115
"get",
@@ -129,7 +129,7 @@ async def list_async(
129129
cls, **params: Unpack["PaymentLocationCapabilityListParams"]
130130
) -> ListObject["PaymentLocationCapability"]:
131131
"""
132-
Returns a list of PaymentLocationCapability objects associated with the location.
132+
List all payment location capabilities associated with the payment location.
133133
"""
134134
result = await cls._static_request_async(
135135
"get",
@@ -149,7 +149,7 @@ def modify(
149149
cls, id: str, **params: Unpack["PaymentLocationCapabilityModifyParams"]
150150
) -> "PaymentLocationCapability":
151151
"""
152-
Updates a specified Payment Location Capability. Request or remove a payment location capability by updating its requested parameter.
152+
Updates a payment_location capability. Request or remove a payment_location capability by updating its requested parameter.
153153
"""
154154
url = "%s/%s" % (cls.class_url(), sanitize_id(id))
155155
return cast(
@@ -166,7 +166,7 @@ async def modify_async(
166166
cls, id: str, **params: Unpack["PaymentLocationCapabilityModifyParams"]
167167
) -> "PaymentLocationCapability":
168168
"""
169-
Updates a specified Payment Location Capability. Request or remove a payment location capability by updating its requested parameter.
169+
Updates a payment_location capability. Request or remove a payment_location capability by updating its requested parameter.
170170
"""
171171
url = "%s/%s" % (cls.class_url(), sanitize_id(id))
172172
return cast(
@@ -185,7 +185,7 @@ def retrieve(
185185
**params: Unpack["PaymentLocationCapabilityRetrieveParams"],
186186
) -> "PaymentLocationCapability":
187187
"""
188-
Retrieves information about the specified Payment Location Capability.
188+
Retrieves a payment_location capability
189189
"""
190190
instance = cls(id, **params)
191191
instance.refresh()
@@ -198,7 +198,7 @@ async def retrieve_async(
198198
**params: Unpack["PaymentLocationCapabilityRetrieveParams"],
199199
) -> "PaymentLocationCapability":
200200
"""
201-
Retrieves information about the specified Payment Location Capability.
201+
Retrieves a payment_location capability
202202
"""
203203
instance = cls(id, **params)
204204
await instance.refresh_async()

0 commit comments

Comments
 (0)