Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1af5aa444ea8141a2d2b8d86e76c73f788f65e09
656489921ee220b536bc00fc1c8ee7ed528f24e2
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2277
v2290
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2026-05-27.preview"
CURRENT = "2026-06-03.preview"
3 changes: 3 additions & 0 deletions stripe/_delegated_checkout_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
from typing_extensions import TYPE_CHECKING

if TYPE_CHECKING:
from stripe.delegated_checkout._order_service import OrderService
from stripe.delegated_checkout._requested_session_service import (
RequestedSessionService,
)

_subservices = {
"orders": ["stripe.delegated_checkout._order_service", "OrderService"],
"requested_sessions": [
"stripe.delegated_checkout._requested_session_service",
"RequestedSessionService",
Expand All @@ -18,6 +20,7 @@


class DelegatedCheckoutService(StripeService):
orders: "OrderService"
requested_sessions: "RequestedSessionService"

def __init__(self, requestor):
Expand Down
16 changes: 16 additions & 0 deletions stripe/_event_notification_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,9 @@
from stripe.events._v2_signals_account_signal_fraudulent_merchant_ready_event import (
V2SignalsAccountSignalFraudulentMerchantReadyEventNotification,
)
from stripe.events._v2_signals_account_signal_merchant_delinquency_ready_event import (
V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification,
)
# event-notification-types: The end of the section generated from our OpenAPI spec

# internal type to represent any EventNotification subclass
Expand Down Expand Up @@ -6604,4 +6607,17 @@ def on_v2_signals_account_signal_fraudulent_merchant_ready(
)
return func

def on_v2_signals_account_signal_merchant_delinquency_ready(
self,
func: "Callable[[V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification, StripeClient], None]",
):
"""
Registers a callback for the `V2SignalsAccountSignalMerchantDelinquencyReadyEvent` (`v2.signals.account_signal.merchant_delinquency_ready`) event notification.
"""
self._register(
"v2.signals.account_signal.merchant_delinquency_ready",
func,
)
return func

# event-notification-registration-methods: The end of the section generated from our OpenAPI spec
14 changes: 14 additions & 0 deletions stripe/_object_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
"CustomerCashBalanceTransaction",
),
"customer_session": ("stripe._customer_session", "CustomerSession"),
"delegated_checkout.order": ("stripe.delegated_checkout._order", "Order"),
"delegated_checkout.order_event": (
"stripe.delegated_checkout._order_event",
"OrderEvent",
),
"delegated_checkout.requested_session": (
"stripe.delegated_checkout._requested_session",
"RequestedSession",
Expand Down Expand Up @@ -476,6 +481,11 @@
"stripe.v2.billing._collection_setting_version",
"CollectionSettingVersion",
),
"v2.billing.contract": ("stripe.v2.billing._contract", "Contract"),
"v2.billing.contract_license_pricing_quantity_change": (
"stripe.v2.billing._contract_license_pricing_quantity_change",
"ContractLicensePricingQuantityChange",
),
"v2.billing.custom_pricing_unit": (
"stripe.v2.billing._custom_pricing_unit",
"CustomPricingUnit",
Expand Down Expand Up @@ -716,6 +726,10 @@
"stripe.v2.reporting._report_run",
"ReportRun",
),
"v2.signals.account_signal": (
"stripe.v2.signals._account_signal",
"AccountSignal",
),
"v2.tax.manual_rule": ("stripe.v2.tax._manual_rule", "ManualRule"),
# V2 Object classes: The end of the section generated from our OpenAPI spec
}
Expand Down
8 changes: 7 additions & 1 deletion stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -3140,7 +3140,9 @@ class DateOfBirth(StripeObject):
}

account_funding: Optional[AccountFunding]
transaction_type: Optional[Literal["account_funding"]]
transaction_type: Optional[
Literal["account_funding", "debt_repayment"]
]
"""
The type of money services transaction.
"""
Expand Down Expand Up @@ -3733,6 +3735,10 @@ class DepositOptions(StripeObject):
"""
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).
"""
static_address: Optional[bool]
"""
If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
"""

deposit_options: Optional[DepositOptions]
mode: Optional[Literal["default", "deposit"]]
Expand Down
2 changes: 1 addition & 1 deletion stripe/_payment_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class AutomaticSurcharge(StripeObject):
"""
Indicates whether automatic surcharge is enabled for the payment link.
"""
provider: Optional[Literal["interpayments", "yeeld"]]
provider: Optional[Literal["interpayments", "proserv", "yeeld"]]
"""
The surcharge provider used for this payment link.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_payment_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class SupportedIssuers(StripeObject):
"""
capability_settings: Optional[CapabilitySettings]
"""
The capability settings for the location. Only applicable for locations with requested Payment Location Capabilities.
The capability settings for the location. Only applicable for locations with requested payment location capabilities.
"""
deleted: Optional[Literal[True]]
"""
Expand Down
20 changes: 10 additions & 10 deletions stripe/_payment_location_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PaymentLocationCapability(
UpdateableAPIResource["PaymentLocationCapability"],
):
"""
A Payment Location Capability represents a capability for a Stripe account at a Payment Location.
A `payment_location` capability represents a capability for a Stripe account at a payment location.
"""

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

account: str
"""
The account for which the capability enables functionality.
The account that the capability enables functionality for.
"""
capability: Literal["fr_meal_vouchers_conecs_payments"]
"""
Expand All @@ -84,7 +84,7 @@ class Error(StripeObject):
"""
location: str
"""
The payment location for which the capability enables functionality.
The payment location that the capability enables functionality for.
"""
object: Literal["payment_location_capability"]
"""
Expand All @@ -96,7 +96,7 @@ class Error(StripeObject):
"""
requested_at: Optional[int]
"""
Time at which the capability was requested. Measured in seconds since the Unix epoch.
Time when the capability was requested. Measured in seconds since the Unix epoch.
"""
requirements: Requirements
status: Literal["active", "inactive", "pending", "unrequested"]
Expand All @@ -109,7 +109,7 @@ def list(
cls, **params: Unpack["PaymentLocationCapabilityListParams"]
) -> ListObject["PaymentLocationCapability"]:
"""
Returns a list of PaymentLocationCapability objects associated with the location.
List all payment location capabilities associated with the payment location.
"""
result = cls._static_request(
"get",
Expand All @@ -129,7 +129,7 @@ async def list_async(
cls, **params: Unpack["PaymentLocationCapabilityListParams"]
) -> ListObject["PaymentLocationCapability"]:
"""
Returns a list of PaymentLocationCapability objects associated with the location.
List all payment location capabilities associated with the payment location.
"""
result = await cls._static_request_async(
"get",
Expand All @@ -149,7 +149,7 @@ def modify(
cls, id: str, **params: Unpack["PaymentLocationCapabilityModifyParams"]
) -> "PaymentLocationCapability":
"""
Updates a specified Payment Location Capability. Request or remove a payment location capability by updating its requested parameter.
Updates a payment_location capability. Request or remove a payment_location capability by updating its requested parameter.
"""
url = "%s/%s" % (cls.class_url(), sanitize_id(id))
return cast(
Expand All @@ -166,7 +166,7 @@ async def modify_async(
cls, id: str, **params: Unpack["PaymentLocationCapabilityModifyParams"]
) -> "PaymentLocationCapability":
"""
Updates a specified Payment Location Capability. Request or remove a payment location capability by updating its requested parameter.
Updates a payment_location capability. Request or remove a payment_location capability by updating its requested parameter.
"""
url = "%s/%s" % (cls.class_url(), sanitize_id(id))
return cast(
Expand All @@ -185,7 +185,7 @@ def retrieve(
**params: Unpack["PaymentLocationCapabilityRetrieveParams"],
) -> "PaymentLocationCapability":
"""
Retrieves information about the specified Payment Location Capability.
Retrieves a payment_location capability
"""
instance = cls(id, **params)
instance.refresh()
Expand All @@ -198,7 +198,7 @@ async def retrieve_async(
**params: Unpack["PaymentLocationCapabilityRetrieveParams"],
) -> "PaymentLocationCapability":
"""
Retrieves information about the specified Payment Location Capability.
Retrieves a payment_location capability
"""
instance = cls(id, **params)
await instance.refresh_async()
Expand Down
12 changes: 6 additions & 6 deletions stripe/_payment_location_capability_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def list(
options: Optional["RequestOptions"] = None,
) -> "ListObject[PaymentLocationCapability]":
"""
Returns a list of PaymentLocationCapability objects associated with the location.
List all payment location capabilities associated with the payment location.
"""
return cast(
"ListObject[PaymentLocationCapability]",
Expand All @@ -46,7 +46,7 @@ async def list_async(
options: Optional["RequestOptions"] = None,
) -> "ListObject[PaymentLocationCapability]":
"""
Returns a list of PaymentLocationCapability objects associated with the location.
List all payment location capabilities associated with the payment location.
"""
return cast(
"ListObject[PaymentLocationCapability]",
Expand All @@ -66,7 +66,7 @@ def retrieve(
options: Optional["RequestOptions"] = None,
) -> "PaymentLocationCapability":
"""
Retrieves information about the specified Payment Location Capability.
Retrieves a payment_location capability
"""
return cast(
"PaymentLocationCapability",
Expand All @@ -88,7 +88,7 @@ async def retrieve_async(
options: Optional["RequestOptions"] = None,
) -> "PaymentLocationCapability":
"""
Retrieves information about the specified Payment Location Capability.
Retrieves a payment_location capability
"""
return cast(
"PaymentLocationCapability",
Expand All @@ -110,7 +110,7 @@ def update(
options: Optional["RequestOptions"] = None,
) -> "PaymentLocationCapability":
"""
Updates a specified Payment Location Capability. Request or remove a payment location capability by updating its requested parameter.
Updates a payment_location capability. Request or remove a payment_location capability by updating its requested parameter.
"""
return cast(
"PaymentLocationCapability",
Expand All @@ -132,7 +132,7 @@ async def update_async(
options: Optional["RequestOptions"] = None,
) -> "PaymentLocationCapability":
"""
Updates a specified Payment Location Capability. Request or remove a payment location capability by updating its requested parameter.
Updates a payment_location capability. Request or remove a payment_location capability by updating its requested parameter.
"""
return cast(
"PaymentLocationCapability",
Expand Down
28 changes: 28 additions & 0 deletions stripe/_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,32 @@ class AddressKanji(StripeObject):
Town/cho-me.
"""

class BirthAddress(StripeObject):
city: Optional[str]
"""
City, district, suburb, town, or village.
"""
country: Optional[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
line1: Optional[str]
"""
Address line 1, such as the street, PO Box, or company name.
"""
line2: Optional[str]
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
postal_code: Optional[str]
"""
ZIP or postal code.
"""
state: Optional[str]
"""
State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""

class Dob(StripeObject):
day: Optional[int]
"""
Expand Down Expand Up @@ -676,6 +702,7 @@ class Document(StripeObject):
"""
The Kanji variation of the person's address (Japan only).
"""
birth_address: Optional[BirthAddress]
created: int
"""
Time at which the object was created. Measured in seconds since the Unix epoch.
Expand Down Expand Up @@ -811,6 +838,7 @@ def retrieve(cls, id, **params):
"address": Address,
"address_kana": AddressKana,
"address_kanji": AddressKanji,
"birth_address": BirthAddress,
"dob": Dob,
"future_requirements": FutureRequirements,
"registered_address": RegisteredAddress,
Expand Down
9 changes: 6 additions & 3 deletions stripe/_v2_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
from stripe.v2._orchestrated_commerce_service import (
OrchestratedCommerceService,
)
from stripe.v2._payment_service import PaymentService
from stripe.v2._payments_service import PaymentsService
from stripe.v2._reporting_service import ReportingService
from stripe.v2._signals_service import SignalsService
from stripe.v2._tax_service import TaxService
from stripe.v2._test_helper_service import TestHelperService

Expand All @@ -37,8 +38,9 @@
"stripe.v2._orchestrated_commerce_service",
"OrchestratedCommerceService",
],
"payments": ["stripe.v2._payment_service", "PaymentService"],
"payments": ["stripe.v2._payments_service", "PaymentsService"],
"reporting": ["stripe.v2._reporting_service", "ReportingService"],
"signals": ["stripe.v2._signals_service", "SignalsService"],
"tax": ["stripe.v2._tax_service", "TaxService"],
"test_helpers": ["stripe.v2._test_helper_service", "TestHelperService"],
}
Expand All @@ -54,8 +56,9 @@ class V2Services(StripeService):
money_management: "MoneyManagementService"
network: "NetworkService"
orchestrated_commerce: "OrchestratedCommerceService"
payments: "PaymentService"
payments: "PaymentsService"
reporting: "ReportingService"
signals: "SignalsService"
tax: "TaxService"
test_helpers: "TestHelperService"

Expand Down
2 changes: 1 addition & 1 deletion stripe/checkout/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class AutomaticSurcharge(StripeObject):
"""
Indicates whether automatic surcharge is enabled for the session.
"""
provider: Optional[Literal["interpayments", "yeeld"]]
provider: Optional[Literal["interpayments", "proserv", "yeeld"]]
"""
The surcharge provider used for this session.
"""
Expand Down
Loading
Loading