From 5ba980f0b897308a3caeb798522575c9510c5a99 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 18:31:31 +0000 Subject: [PATCH 1/6] Update generated code for v2245 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_account_session.py | 9 ++++++++- stripe/_confirmation_token.py | 5 +++++ stripe/_payment_intent.py | 20 +++++++++++++++---- stripe/_payment_method.py | 8 ++++---- stripe/checkout/_session.py | 10 ++++++++++ .../_confirmation_token_create_params.py | 4 ---- .../params/_payment_intent_confirm_params.py | 4 ---- .../params/_payment_intent_create_params.py | 4 ---- .../params/_payment_intent_modify_params.py | 4 ---- .../params/_payment_intent_update_params.py | 4 ---- stripe/params/_price_create_params.py | 4 ++++ stripe/params/_price_modify_params.py | 4 ++++ stripe/params/_price_update_params.py | 4 ++++ stripe/params/_setup_intent_confirm_params.py | 4 ---- stripe/params/_setup_intent_create_params.py | 4 ---- stripe/params/_setup_intent_modify_params.py | 4 ---- stripe/params/_setup_intent_update_params.py | 4 ---- .../params/checkout/_session_create_params.py | 8 ++++++++ .../_requested_session_confirm_params.py | 4 ++++ .../_confirmation_token_create_params.py | 4 ---- stripe/shared_payment/_granted_token.py | 5 +++++ stripe/shared_payment/_issued_token.py | 6 +----- 24 files changed, 75 insertions(+), 56 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 170b0bdc5..9ace149eb 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -a527d1f955ea1eab1b7ccdb63001a69d1786fc37 \ No newline at end of file +86a78c7a0fded0136c2310c717540c21ad16a310 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ccd8e578d..fce33cd07 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2240 \ No newline at end of file +v2245 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index b1c28ab70..a724aa283 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -104,7 +104,14 @@ class Features(StripeObject): class Bills(StripeObject): class Features(StripeObject): - pass + bill_management: bool + """ + Whether to enable the bill management feature that grants access to bill creation and payment. + """ + send_money: bool + """ + Whether to enable the send money feature that grants access to bill creation and payment. + """ enabled: bool """ diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index bb470e9a5..2de4b5f18 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -10,6 +10,7 @@ if TYPE_CHECKING: from stripe._charge import Charge from stripe._customer import Customer + from stripe._payment_method import PaymentMethod from stripe._setup_attempt import SetupAttempt from stripe.params._confirmation_token_create_params import ( ConfirmationTokenCreateParams, @@ -1368,6 +1369,10 @@ class GeneratedFrom(StripeObject): """ The ID of the Charge that generated this PaymentMethod, if any. """ + payment_method: Optional[ExpandableField["PaymentMethod"]] + """ + The ID of the PaymentMethod that generated this PaymentMethod, if any. + """ setup_attempt: Optional[ExpandableField["SetupAttempt"]] """ The ID of the SetupAttempt that generated this PaymentMethod, if any. diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index bc128bf7d..55def602a 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -35,6 +35,7 @@ PaymentIntentAmountDetailsLineItem, ) from stripe._payment_method import PaymentMethod + from stripe._profile import Profile from stripe._review import Review from stripe._setup_intent import SetupIntent from stripe._source import Source @@ -111,6 +112,16 @@ class PaymentIntent( OBJECT_NAME: ClassVar[Literal["payment_intent"]] = "payment_intent" + class AgentDetails(StripeObject): + name: str + """ + The name of the agent that initiated the payment. + """ + network_business_profile: ExpandableField["Profile"] + """ + The Stripe profile associated with the agent that initiated the payment. + """ + class AllocatedFunds(StripeObject): enabled: Optional[bool] """ @@ -4763,6 +4774,10 @@ class TransferData(StripeObject): The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. """ + agent_details: Optional[AgentDetails] + """ + Details about the agent that initiated the creation of this PaymentIntent. + """ allocated_funds: Optional[AllocatedFunds] """ Allocated Funds configuration for this PaymentIntent. @@ -5014,10 +5029,6 @@ class TransferData(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). """ - shared_payment_granted_token: Optional[str] - """ - ID of the shared payment token granted to be used in this PaymentIntent - """ shipping: Optional[Shipping] """ Shipping information for this PaymentIntent. @@ -7100,6 +7111,7 @@ def test_helpers(self): return self.TestHelpers(self) _inner_class_types = { + "agent_details": AgentDetails, "allocated_funds": AllocatedFunds, "amount_details": AmountDetails, "async_workflows": AsyncWorkflows, diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 75ed2bda9..fea2847a6 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -1356,6 +1356,10 @@ class GeneratedFrom(StripeObject): """ The ID of the Charge that generated this PaymentMethod, if any. """ + payment_method: Optional[ExpandableField["PaymentMethod"]] + """ + The ID of the PaymentMethod that generated this PaymentMethod, if any. + """ setup_attempt: Optional[ExpandableField["SetupAttempt"]] """ The ID of the SetupAttempt that generated this PaymentMethod, if any. @@ -1605,10 +1609,6 @@ class Zip(StripeObject): samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] sepa_debit: Optional[SepaDebit] - shared_payment_granted_token: Optional[str] - """ - ID of the shared payment granted token used in the creation of this PaymentMethod. - """ shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 88d2e9a57..f0c9780d6 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -20,6 +20,7 @@ from stripe._line_item import LineItem from stripe._payment_intent import PaymentIntent from stripe._payment_link import PaymentLink + from stripe._payment_record import PaymentRecord from stripe._promotion_code import PromotionCode from stripe._setup_intent import SetupIntent from stripe._shipping_rate import ShippingRate @@ -2860,6 +2861,11 @@ class Link(StripeObject): """ Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`. """ + custom_payment_method_types: Optional[List[str]] + """ + A list of the types of [custom payment methods](https://docs.stripe.com/payments/payment-methods/custom-payment-methods) (e.g. cpmt_123) this Checkout + Session is allowed to accept. + """ custom_text: CustomText customer: Optional[ExpandableField["Customer"]] """ @@ -3025,6 +3031,10 @@ class Link(StripeObject): A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept. """ + payment_record: Optional[ExpandableField["PaymentRecord"]] + """ + The [Payment Record](https://docs.stripe.com/api/payment-record) for this Checkout Session. + """ payment_status: Literal["no_payment_required", "paid", "unpaid"] """ The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`. diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index 53d3a7a4d..16fbf40c1 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -312,10 +312,6 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay" ] diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 71aee7924..b9d8b5688 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -3022,10 +3022,6 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataShopeepay" ] diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index c739be1d5..485d60218 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -3152,10 +3152,6 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataShopeepay" ] diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index ce7d9e73b..feac70fee 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -3005,10 +3005,6 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataShopeepay" ] diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index d54c41ab8..34e5bae3d 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -3004,10 +3004,6 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataShopeepay" ] diff --git a/stripe/params/_price_create_params.py b/stripe/params/_price_create_params.py index 873358d14..829104990 100644 --- a/stripe/params/_price_create_params.py +++ b/stripe/params/_price_create_params.py @@ -34,6 +34,10 @@ class PriceCreateParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ + external_reference: NotRequired[str] + """ + A custom identifier for this price, such as a SKU number or product code, that can be used to reference records from external systems. + """ lookup_key: NotRequired[str] """ A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters. diff --git a/stripe/params/_price_modify_params.py b/stripe/params/_price_modify_params.py index a1e0d0767..725fb12f7 100644 --- a/stripe/params/_price_modify_params.py +++ b/stripe/params/_price_modify_params.py @@ -22,6 +22,10 @@ class PriceModifyParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ + external_reference: NotRequired["Literal['']|str"] + """ + A custom identifier for this price, such as a SKU number or product code, that can be used to reference records from external systems. + """ lookup_key: NotRequired[str] """ A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters. diff --git a/stripe/params/_price_update_params.py b/stripe/params/_price_update_params.py index 2d69691f5..d52f23a72 100644 --- a/stripe/params/_price_update_params.py +++ b/stripe/params/_price_update_params.py @@ -21,6 +21,10 @@ class PriceUpdateParams(TypedDict): """ Specifies which fields in the response should be expanded. """ + external_reference: NotRequired["Literal['']|str"] + """ + A custom identifier for this price, such as a SKU number or product code, that can be used to reference records from external systems. + """ lookup_key: NotRequired[str] """ A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters. diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index bf700b4ab..47a9138af 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -351,10 +351,6 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired[ "SetupIntentConfirmParamsPaymentMethodDataShopeepay" ] diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index b0d8a6169..0e25d3d4c 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -487,10 +487,6 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired["SetupIntentCreateParamsPaymentMethodDataShopeepay"] """ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index e4218d2fa..cce5e6fbd 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -329,10 +329,6 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired["SetupIntentModifyParamsPaymentMethodDataShopeepay"] """ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index 0bd00bdbf..4529e6a52 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -328,10 +328,6 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataShopeepay"] """ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index 225722865..b45f443f0 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -66,6 +66,14 @@ class SessionCreateParams(RequestOptions): """ Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`. """ + custom_payment_method_types: NotRequired[List[str]] + """ + A list of custom payment methods (e.g., `cpmt_123`) this Checkout Session can accept. + + You can add custom payment methods to your account through the dashboard under Settings > Custom Payment Methods. + + Read more about custom payment methods in checkout in our [custom payment method types guide](https://docs.stripe.com/payments/payment-methods/custom-payment-methods). + """ custom_text: NotRequired["SessionCreateParamsCustomText"] """ Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`. diff --git a/stripe/params/delegated_checkout/_requested_session_confirm_params.py b/stripe/params/delegated_checkout/_requested_session_confirm_params.py index 013fcbec9..1cc5655ed 100644 --- a/stripe/params/delegated_checkout/_requested_session_confirm_params.py +++ b/stripe/params/delegated_checkout/_requested_session_confirm_params.py @@ -21,6 +21,10 @@ class RequestedSessionConfirmParams(RequestOptions): """ The PaymentMethod to use with the requested session. """ + return_url: NotRequired[str] + """ + The URL to redirect your customer back to after they authenticate or complete a payment action. Required for redirect-based payment methods such as Affirm or Klarna. + """ risk_details: NotRequired["RequestedSessionConfirmParamsRiskDetails"] """ Risk details/signals associated with the requested session diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 08715a764..9fd274963 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -311,10 +311,6 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ shopeepay: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay" ] diff --git a/stripe/shared_payment/_granted_token.py b/stripe/shared_payment/_granted_token.py index 6979b59ad..1204d2055 100644 --- a/stripe/shared_payment/_granted_token.py +++ b/stripe/shared_payment/_granted_token.py @@ -10,6 +10,7 @@ if TYPE_CHECKING: from stripe._charge import Charge + from stripe._payment_method import PaymentMethod from stripe._setup_attempt import SetupAttempt from stripe.params.shared_payment._granted_token_create_params import ( GrantedTokenCreateParams, @@ -1052,6 +1053,10 @@ class GeneratedFrom(StripeObject): """ The ID of the Charge that generated this PaymentMethod, if any. """ + payment_method: Optional[ExpandableField["PaymentMethod"]] + """ + The ID of the PaymentMethod that generated this PaymentMethod, if any. + """ setup_attempt: Optional[ExpandableField["SetupAttempt"]] """ The ID of the SetupAttempt that generated this PaymentMethod, if any. diff --git a/stripe/shared_payment/_issued_token.py b/stripe/shared_payment/_issued_token.py index 2d28d052c..420b80e95 100644 --- a/stripe/shared_payment/_issued_token.py +++ b/stripe/shared_payment/_issued_token.py @@ -166,10 +166,6 @@ class UsageLimits(StripeObject): """ Time at which the object was created. Measured in seconds since the Unix epoch. """ - customer: Optional[str] - """ - ID of an existing Customer. - """ deactivated_at: Optional[int] """ Time at which this SharedPaymentIssuedToken was deactivated. @@ -196,7 +192,7 @@ class UsageLimits(StripeObject): """ String representing the object's type. Objects of the same type share the same value. """ - payment_method: Optional[str] + payment_method: str """ ID of an existing PaymentMethod. """ From a5872d2ed1eb255389ce84735f93ec94db85205a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 20:02:07 +0000 Subject: [PATCH 2/6] Update generated code for v2246 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../radar/_issuing_authorization_evaluation_create_params.py | 4 ++-- stripe/radar/_issuing_authorization_evaluation.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 9ace149eb..47e005524 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -86a78c7a0fded0136c2310c717540c21ad16a310 \ No newline at end of file +c388e484153d2fd76536203397502361f574452f \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index fce33cd07..19ad39317 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2245 \ No newline at end of file +v2246 \ No newline at end of file diff --git a/stripe/params/radar/_issuing_authorization_evaluation_create_params.py b/stripe/params/radar/_issuing_authorization_evaluation_create_params.py index 54cb27b44..615b94d9d 100644 --- a/stripe/params/radar/_issuing_authorization_evaluation_create_params.py +++ b/stripe/params/radar/_issuing_authorization_evaluation_create_params.py @@ -96,7 +96,7 @@ class IssuingAuthorizationEvaluationCreateParamsAuthorizationDetails( """ initiated_at: int """ - The timestamp of the authorization initiated in seconds. + The time the authorization was initiated, as a Unix timestamp in seconds. Must not be in the future. """ point_of_sale_condition: NotRequired[ Literal[ @@ -140,7 +140,7 @@ class IssuingAuthorizationEvaluationCreateParamsCardDetails(TypedDict): """ created_at: int """ - The timestamp when the card was created. + The timestamp when the card was created, as a Unix timestamp in seconds. """ last4: NotRequired[str] """ diff --git a/stripe/radar/_issuing_authorization_evaluation.py b/stripe/radar/_issuing_authorization_evaluation.py index ce94a45bf..bf2e32e83 100644 --- a/stripe/radar/_issuing_authorization_evaluation.py +++ b/stripe/radar/_issuing_authorization_evaluation.py @@ -59,7 +59,7 @@ class AuthorizationDetails(StripeObject): """ initiated_at: int """ - The timestamp of the authorization initiated in seconds. + The time the authorization was initiated, as a Unix timestamp in seconds. """ point_of_sale_condition: Optional[ Literal[ @@ -102,7 +102,7 @@ class CardDetails(StripeObject): """ created_at: int """ - The timestamp when the card was created. + The timestamp when the card was created, as a Unix timestamp in seconds. """ last4: str """ From b65616219fb9cb90a535f373e2210ce418a4d217 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 20:47:52 +0000 Subject: [PATCH 3/6] Update generated code for v2247 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_invoice.py | 1 + stripe/_quote_preview_invoice.py | 1 + stripe/_subscription.py | 1 + stripe/params/_invoice_create_params.py | 2 +- stripe/params/_invoice_modify_params.py | 2 +- stripe/params/_invoice_update_params.py | 2 +- stripe/params/_subscription_create_params.py | 2 +- stripe/params/_subscription_modify_params.py | 2 +- stripe/params/_subscription_update_params.py | 2 +- 11 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 47e005524..6338bb673 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -c388e484153d2fd76536203397502361f574452f \ No newline at end of file +466bae2f1eda7b1adf3f4d113f40c3c3c90f91a6 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 19ad39317..027eebcfa 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2246 \ No newline at end of file +v2247 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 3d6e45817..67b91e4b7 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1136,6 +1136,7 @@ class Filters(StripeObject): "konbini", "kr_card", "link", + "momo", "multibanco", "naver_pay", "nz_bank_account", diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index 424e463d2..aeb3f8055 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -1092,6 +1092,7 @@ class Filters(StripeObject): "konbini", "kr_card", "link", + "momo", "multibanco", "naver_pay", "nz_bank_account", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 2740438f1..f25264460 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -682,6 +682,7 @@ class Filters(StripeObject): "konbini", "kr_card", "link", + "momo", "multibanco", "naver_pay", "nz_bank_account", diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index ef9062ed7..adb5a66e5 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -286,7 +286,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index 83ef38ce8..c72591d34 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -253,7 +253,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index d62f8f120..3bb2244ac 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -252,7 +252,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index 413303456..1f8064c9e 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -825,7 +825,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index 25bea5e51..c23afe7c4 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -793,7 +793,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index 41bfae2ce..64e3f9b25 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -792,7 +792,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration From a257283e0863ab564365aef55bda6b04e0a89a18 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 22:34:00 +0000 Subject: [PATCH 4/6] Update generated code for v2248 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/params/radar/__init__.py | 20 ++++++++++++++++ .../_account_evaluation_modify_params.py | 24 +++++++++++++++++++ .../_account_evaluation_update_params.py | 24 +++++++++++++++++++ stripe/radar/_account_evaluation.py | 22 +++++++++++++++++ 6 files changed, 92 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 6338bb673..29988594d 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -466bae2f1eda7b1adf3f4d113f40c3c3c90f91a6 \ No newline at end of file +974ec8723c97b7894344e941f272306197b4b23e \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 027eebcfa..fd84da124 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2247 \ No newline at end of file +v2248 \ No newline at end of file diff --git a/stripe/params/radar/__init__.py b/stripe/params/radar/__init__.py index 2556bd807..1c6e1a41a 100644 --- a/stripe/params/radar/__init__.py +++ b/stripe/params/radar/__init__.py @@ -15,7 +15,9 @@ from stripe.params.radar._account_evaluation_modify_params import ( AccountEvaluationModifyParams as AccountEvaluationModifyParams, AccountEvaluationModifyParamsLoginFailed as AccountEvaluationModifyParamsLoginFailed, + AccountEvaluationModifyParamsLoginSucceeded as AccountEvaluationModifyParamsLoginSucceeded, AccountEvaluationModifyParamsRegistrationFailed as AccountEvaluationModifyParamsRegistrationFailed, + AccountEvaluationModifyParamsRegistrationSucceeded as AccountEvaluationModifyParamsRegistrationSucceeded, ) from stripe.params.radar._account_evaluation_retrieve_params import ( AccountEvaluationRetrieveParams as AccountEvaluationRetrieveParams, @@ -23,7 +25,9 @@ from stripe.params.radar._account_evaluation_update_params import ( AccountEvaluationUpdateParams as AccountEvaluationUpdateParams, AccountEvaluationUpdateParamsLoginFailed as AccountEvaluationUpdateParamsLoginFailed, + AccountEvaluationUpdateParamsLoginSucceeded as AccountEvaluationUpdateParamsLoginSucceeded, AccountEvaluationUpdateParamsRegistrationFailed as AccountEvaluationUpdateParamsRegistrationFailed, + AccountEvaluationUpdateParamsRegistrationSucceeded as AccountEvaluationUpdateParamsRegistrationSucceeded, ) from stripe.params.radar._customer_evaluation_create_params import ( CustomerEvaluationCreateParams as CustomerEvaluationCreateParams, @@ -142,10 +146,18 @@ "stripe.params.radar._account_evaluation_modify_params", False, ), + "AccountEvaluationModifyParamsLoginSucceeded": ( + "stripe.params.radar._account_evaluation_modify_params", + False, + ), "AccountEvaluationModifyParamsRegistrationFailed": ( "stripe.params.radar._account_evaluation_modify_params", False, ), + "AccountEvaluationModifyParamsRegistrationSucceeded": ( + "stripe.params.radar._account_evaluation_modify_params", + False, + ), "AccountEvaluationRetrieveParams": ( "stripe.params.radar._account_evaluation_retrieve_params", False, @@ -158,10 +170,18 @@ "stripe.params.radar._account_evaluation_update_params", False, ), + "AccountEvaluationUpdateParamsLoginSucceeded": ( + "stripe.params.radar._account_evaluation_update_params", + False, + ), "AccountEvaluationUpdateParamsRegistrationFailed": ( "stripe.params.radar._account_evaluation_update_params", False, ), + "AccountEvaluationUpdateParamsRegistrationSucceeded": ( + "stripe.params.radar._account_evaluation_update_params", + False, + ), "CustomerEvaluationCreateParams": ( "stripe.params.radar._customer_evaluation_create_params", False, diff --git a/stripe/params/radar/_account_evaluation_modify_params.py b/stripe/params/radar/_account_evaluation_modify_params.py index 917f49c03..a7d1d24c7 100644 --- a/stripe/params/radar/_account_evaluation_modify_params.py +++ b/stripe/params/radar/_account_evaluation_modify_params.py @@ -14,12 +14,22 @@ class AccountEvaluationModifyParams(RequestOptions): """ Event payload for login_failed. """ + login_succeeded: NotRequired["AccountEvaluationModifyParamsLoginSucceeded"] + """ + Event payload for login_succeeded. + """ registration_failed: NotRequired[ "AccountEvaluationModifyParamsRegistrationFailed" ] """ Event payload for registration_failed. """ + registration_succeeded: NotRequired[ + "AccountEvaluationModifyParamsRegistrationSucceeded" + ] + """ + Event payload for registration_succeeded. + """ type: Literal[ "login_failed", "login_succeeded", @@ -38,8 +48,22 @@ class AccountEvaluationModifyParamsLoginFailed(TypedDict): """ +class AccountEvaluationModifyParamsLoginSucceeded(TypedDict): + qualification: NotRequired[Literal["suspected_account_sharing"]] + """ + An optional qualification for a login success. + """ + + class AccountEvaluationModifyParamsRegistrationFailed(TypedDict): reason: Literal["other", "suspected_multi_accounting"] """ The reason why this registration failed. """ + + +class AccountEvaluationModifyParamsRegistrationSucceeded(TypedDict): + qualification: NotRequired[Literal["suspected_multi_accounting"]] + """ + An optional qualification for a registration success. + """ diff --git a/stripe/params/radar/_account_evaluation_update_params.py b/stripe/params/radar/_account_evaluation_update_params.py index 4dc342986..93a957538 100644 --- a/stripe/params/radar/_account_evaluation_update_params.py +++ b/stripe/params/radar/_account_evaluation_update_params.py @@ -13,12 +13,22 @@ class AccountEvaluationUpdateParams(TypedDict): """ Event payload for login_failed. """ + login_succeeded: NotRequired["AccountEvaluationUpdateParamsLoginSucceeded"] + """ + Event payload for login_succeeded. + """ registration_failed: NotRequired[ "AccountEvaluationUpdateParamsRegistrationFailed" ] """ Event payload for registration_failed. """ + registration_succeeded: NotRequired[ + "AccountEvaluationUpdateParamsRegistrationSucceeded" + ] + """ + Event payload for registration_succeeded. + """ type: Literal[ "login_failed", "login_succeeded", @@ -37,8 +47,22 @@ class AccountEvaluationUpdateParamsLoginFailed(TypedDict): """ +class AccountEvaluationUpdateParamsLoginSucceeded(TypedDict): + qualification: NotRequired[Literal["suspected_account_sharing"]] + """ + An optional qualification for a login success. + """ + + class AccountEvaluationUpdateParamsRegistrationFailed(TypedDict): reason: Literal["other", "suspected_multi_accounting"] """ The reason why this registration failed. """ + + +class AccountEvaluationUpdateParamsRegistrationSucceeded(TypedDict): + qualification: NotRequired[Literal["suspected_multi_accounting"]] + """ + An optional qualification for a registration success. + """ diff --git a/stripe/radar/_account_evaluation.py b/stripe/radar/_account_evaluation.py index 4160d222d..47f075baa 100644 --- a/stripe/radar/_account_evaluation.py +++ b/stripe/radar/_account_evaluation.py @@ -38,16 +38,32 @@ class LoginFailed(StripeObject): The reason why this login failed. """ + class LoginSucceeded(StripeObject): + qualification: Optional[str] + """ + The qualification for a login success. + """ + class RegistrationFailed(StripeObject): reason: str """ The reason why this registration failed. """ + class RegistrationSucceeded(StripeObject): + qualification: Optional[str] + """ + The qualification for a registration success. + """ + login_failed: Optional[LoginFailed] """ Data about a failed login event. """ + login_succeeded: Optional[LoginSucceeded] + """ + Data about a succeeded login event. + """ occurred_at: int """ Time at which the event occurred. Measured in seconds since the Unix epoch. @@ -56,13 +72,19 @@ class RegistrationFailed(StripeObject): """ Data about a failed registration event. """ + registration_succeeded: Optional[RegistrationSucceeded] + """ + Data about a succeeded registration event. + """ type: str """ The type of event that occurred. """ _inner_class_types = { "login_failed": LoginFailed, + "login_succeeded": LoginSucceeded, "registration_failed": RegistrationFailed, + "registration_succeeded": RegistrationSucceeded, } class Signals(StripeObject): From 00311aab855bf911fc111b1fcd8faa2942d9ca9b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 00:26:01 +0000 Subject: [PATCH 5/6] Update generated code for v2251 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/delegated_checkout/_requested_session.py | 6 +++--- .../delegated_checkout/_requested_session_modify_params.py | 4 ++-- .../delegated_checkout/_requested_session_update_params.py | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 29988594d..475bde5ff 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -974ec8723c97b7894344e941f272306197b4b23e \ No newline at end of file +7b84d979a3b16eb81714d8c710b1fb3529c95d20 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index fd84da124..df7b71af1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2248 \ No newline at end of file +v2251 \ No newline at end of file diff --git a/stripe/delegated_checkout/_requested_session.py b/stripe/delegated_checkout/_requested_session.py index 0485cf372..d3b09f908 100644 --- a/stripe/delegated_checkout/_requested_session.py +++ b/stripe/delegated_checkout/_requested_session.py @@ -203,7 +203,7 @@ class ShippingOption(StripeObject): """ The shipping option. """ - type: str + type: Literal["digital", "shipping"] """ The type of the fulfillment option. """ @@ -230,7 +230,7 @@ class Shipping(StripeObject): """ The shipping option. """ - type: str + type: Literal["digital", "shipping"] """ The type of the selected fulfillment option. """ @@ -261,7 +261,7 @@ class Shipping(StripeObject): """ The shipping option. """ - type: str + type: Literal["digital", "shipping"] """ The type of the selected fulfillment option. """ diff --git a/stripe/params/delegated_checkout/_requested_session_modify_params.py b/stripe/params/delegated_checkout/_requested_session_modify_params.py index a040cc012..3fd0ee434 100644 --- a/stripe/params/delegated_checkout/_requested_session_modify_params.py +++ b/stripe/params/delegated_checkout/_requested_session_modify_params.py @@ -124,7 +124,7 @@ class RequestedSessionModifyParamsFulfillmentDetailsSelectedFulfillmentOption( """ The shipping fulfillment option. """ - type: str + type: Literal["digital", "shipping"] """ The type of fulfillment option. """ @@ -167,7 +167,7 @@ class RequestedSessionModifyParamsFulfillmentDetailsSelectedFulfillmentOptionOve """ The shipping fulfillment option. """ - type: str + type: Literal["digital", "shipping"] """ The type of fulfillment option. """ diff --git a/stripe/params/delegated_checkout/_requested_session_update_params.py b/stripe/params/delegated_checkout/_requested_session_update_params.py index d3085bb2d..ff539042d 100644 --- a/stripe/params/delegated_checkout/_requested_session_update_params.py +++ b/stripe/params/delegated_checkout/_requested_session_update_params.py @@ -123,7 +123,7 @@ class RequestedSessionUpdateParamsFulfillmentDetailsSelectedFulfillmentOption( """ The shipping fulfillment option. """ - type: str + type: Literal["digital", "shipping"] """ The type of fulfillment option. """ @@ -166,7 +166,7 @@ class RequestedSessionUpdateParamsFulfillmentDetailsSelectedFulfillmentOptionOve """ The shipping fulfillment option. """ - type: str + type: Literal["digital", "shipping"] """ The type of fulfillment option. """ From a92ab5a003fc0494f5d8cc4c9ada2cab2ffb3f7c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 00:46:43 +0000 Subject: [PATCH 6/6] Update generated code for v2252 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/terminal/_reader.py | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 475bde5ff..5cde2b10f 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -7b84d979a3b16eb81714d8c710b1fb3529c95d20 \ No newline at end of file +5bc3045398277cd3acb999fac04faae98bb39d1d \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index df7b71af1..048a4fc1a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2251 \ No newline at end of file +v2252 \ No newline at end of file diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index 5fa4ee346..5ef22edd3 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -310,6 +310,35 @@ class ConfirmConfig(StripeObject): """ _inner_class_types = {"confirm_config": ConfirmConfig} + class PrintContent(StripeObject): + class Image(StripeObject): + created_at: int + """ + Creation time of the object (in seconds since the Unix epoch). + """ + filename: str + """ + The original name of the uploaded file (e.g. `receipt.png`). + """ + size: int + """ + The size (in bytes) of the uploaded file. + """ + type: str + """ + The format of the uploaded file. + """ + + image: Optional[Image] + """ + Metadata of an uploaded file + """ + type: Literal["image"] + """ + The type of content to print. Currently supports `image`. + """ + _inner_class_types = {"image": Image} + class ProcessPaymentIntent(StripeObject): class ProcessConfig(StripeObject): class Tipping(StripeObject): @@ -486,6 +515,10 @@ class LineItem(StripeObject): """ Detailed failure message, only set if status is `failed`. """ + print_content: Optional[PrintContent] + """ + Represents a reader action to print content + """ process_payment_intent: Optional[ProcessPaymentIntent] """ Represents a reader action to process a payment intent @@ -510,6 +543,7 @@ class LineItem(StripeObject): "collect_inputs", "collect_payment_method", "confirm_payment_intent", + "print_content", "process_payment_intent", "process_setup_intent", "refund_payment", @@ -522,6 +556,7 @@ class LineItem(StripeObject): "collect_inputs": CollectInputs, "collect_payment_method": CollectPaymentMethod, "confirm_payment_intent": ConfirmPaymentIntent, + "print_content": PrintContent, "process_payment_intent": ProcessPaymentIntent, "process_setup_intent": ProcessSetupIntent, "refund_payment": RefundPayment,