From e265b7cce266f77eb7d95cf53b38d3d27cdda5a7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 9 Apr 2026 18:03:27 +0000 Subject: [PATCH 01/12] Update generated code for v2230 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_account_session.py | 16 ++ stripe/_charge.py | 10 ++ stripe/_invoice_item.py | 4 + stripe/_payment_attempt_record.py | 119 ++++++++++++++ stripe/_payment_attempt_record_service.py | 47 ++++++ stripe/_payment_intent.py | 146 ++++++++++++++++++ stripe/checkout/_session.py | 48 ++++++ stripe/identity/_verification_report.py | 20 ++- stripe/params/__init__.py | 22 +++ ...attempt_record_report_authorized_params.py | 51 ++++++ stripe/params/_payment_link_create_params.py | 23 +++ stripe/params/checkout/__init__.py | 5 + .../params/checkout/_session_create_params.py | 21 +++ stripe/shared_payment/_issued_token.py | 26 ++++ 16 files changed, 559 insertions(+), 3 deletions(-) create mode 100644 stripe/params/_payment_attempt_record_report_authorized_params.py diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 3ae784ff4..ea8accaf7 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -2c60f902831f969f228cecd1f52a81ca240c433c \ No newline at end of file +de792772121d2a204e748060d868f433b2507073 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ade311e7c..e33b0db86 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2229 \ No newline at end of file +v2230 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index f5e577523..b1c28ab70 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -102,6 +102,17 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class Bills(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + class CapitalFinancing(StripeObject): class Features(StripeObject): pass @@ -529,6 +540,10 @@ class Features(StripeObject): Configuration for the [agentic commerce settings](https://docs.stripe.com/connect/supported-embedded-components/agentic-commerce-settings/) embedded component. """ balances: Balances + bills: Optional[Bills] + """ + Configuration for the [Bills](https://docs.stripe.com/connect/supported-embedded-components/bills/) embedded component. + """ capital_financing: Optional[CapitalFinancing] capital_financing_application: Optional[CapitalFinancingApplication] capital_financing_promotion: Optional[CapitalFinancingPromotion] @@ -577,6 +592,7 @@ class Features(StripeObject): "account_onboarding": AccountOnboarding, "agentic_commerce_settings": AgenticCommerceSettings, "balances": Balances, + "bills": Bills, "capital_financing": CapitalFinancing, "capital_financing_application": CapitalFinancingApplication, "capital_financing_promotion": CapitalFinancingPromotion, diff --git a/stripe/_charge.py b/stripe/_charge.py index 8ce320ed8..68b41a790 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -474,6 +474,14 @@ class Boleto(StripeObject): """ class Card(StripeObject): + class AccountFunding(StripeObject): + processed_transaction_type: Optional[ + Literal["account_funding", "purchase"] + ] + """ + The transaction type of the card transaction. One of `account_funding` or `purchase`. + """ + class Benefits(StripeObject): issuer: Optional[str] """ @@ -834,6 +842,7 @@ class ShippingAddress(StripeObject): "visa_checkout": VisaCheckout, } + account_funding: Optional[AccountFunding] amount_authorized: Optional[int] """ The authorized amount. @@ -950,6 +959,7 @@ class ShippingAddress(StripeObject): If this Card is part of a card wallet, this contains the details of the card wallet. """ _inner_class_types = { + "account_funding": AccountFunding, "benefits": Benefits, "checks": Checks, "decremental_authorization": DecrementalAuthorization, diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index aec6e7235..af0f5c955 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -80,6 +80,10 @@ class ScheduleDetails(StripeObject): """ The subscription schedule that generated this invoice item """ + subscription: Optional[str] + """ + The subscription associated with this schedule + """ class SubscriptionDetails(StripeObject): subscription: str diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 8bce8ca28..32a82d8a7 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -17,6 +17,9 @@ from stripe.params._payment_attempt_record_report_authenticated_params import ( PaymentAttemptRecordReportAuthenticatedParams, ) + from stripe.params._payment_attempt_record_report_authorized_params import ( + PaymentAttemptRecordReportAuthorizedParams, + ) from stripe.params._payment_attempt_record_report_canceled_params import ( PaymentAttemptRecordReportCanceledParams, ) @@ -2430,6 +2433,122 @@ async def report_authenticated_async( # pyright: ignore[reportGeneralTypeIssues ), ) + @classmethod + def _cls_report_authorized( + cls, + payment_attempt_record: str, + **params: Unpack["PaymentAttemptRecordReportAuthorizedParams"], + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + return cast( + "PaymentAttemptRecord", + cls._static_request( + "post", + "/v1/payment_attempt_records/{payment_attempt_record}/report_authorized".format( + payment_attempt_record=sanitize_id(payment_attempt_record) + ), + params=params, + ), + ) + + @overload + @staticmethod + def report_authorized( + payment_attempt_record: str, + **params: Unpack["PaymentAttemptRecordReportAuthorizedParams"], + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + ... + + @overload + def report_authorized( + self, **params: Unpack["PaymentAttemptRecordReportAuthorizedParams"] + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + ... + + @class_method_variant("_cls_report_authorized") + def report_authorized( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["PaymentAttemptRecordReportAuthorizedParams"] + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + return cast( + "PaymentAttemptRecord", + self._request( + "post", + "/v1/payment_attempt_records/{payment_attempt_record}/report_authorized".format( + payment_attempt_record=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + @classmethod + async def _cls_report_authorized_async( + cls, + payment_attempt_record: str, + **params: Unpack["PaymentAttemptRecordReportAuthorizedParams"], + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + return cast( + "PaymentAttemptRecord", + await cls._static_request_async( + "post", + "/v1/payment_attempt_records/{payment_attempt_record}/report_authorized".format( + payment_attempt_record=sanitize_id(payment_attempt_record) + ), + params=params, + ), + ) + + @overload + @staticmethod + async def report_authorized_async( + payment_attempt_record: str, + **params: Unpack["PaymentAttemptRecordReportAuthorizedParams"], + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + ... + + @overload + async def report_authorized_async( + self, **params: Unpack["PaymentAttemptRecordReportAuthorizedParams"] + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + ... + + @class_method_variant("_cls_report_authorized_async") + async def report_authorized_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["PaymentAttemptRecordReportAuthorizedParams"] + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + return cast( + "PaymentAttemptRecord", + await self._request_async( + "post", + "/v1/payment_attempt_records/{payment_attempt_record}/report_authorized".format( + payment_attempt_record=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + @classmethod def _cls_report_canceled( cls, diff --git a/stripe/_payment_attempt_record_service.py b/stripe/_payment_attempt_record_service.py index ab5d7d40b..6017d225f 100644 --- a/stripe/_payment_attempt_record_service.py +++ b/stripe/_payment_attempt_record_service.py @@ -15,6 +15,9 @@ from stripe.params._payment_attempt_record_report_authenticated_params import ( PaymentAttemptRecordReportAuthenticatedParams, ) + from stripe.params._payment_attempt_record_report_authorized_params import ( + PaymentAttemptRecordReportAuthorizedParams, + ) from stripe.params._payment_attempt_record_report_canceled_params import ( PaymentAttemptRecordReportCanceledParams, ) @@ -162,6 +165,50 @@ async def report_authenticated_async( ), ) + def report_authorized( + self, + payment_attempt_record: str, + params: Optional["PaymentAttemptRecordReportAuthorizedParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + return cast( + "PaymentAttemptRecord", + self._request( + "post", + "/v1/payment_attempt_records/{payment_attempt_record}/report_authorized".format( + payment_attempt_record=sanitize_id(payment_attempt_record), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def report_authorized_async( + self, + payment_attempt_record: str, + params: Optional["PaymentAttemptRecordReportAuthorizedParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "PaymentAttemptRecord": + """ + Report that the specified Payment Attempt Record was authorized. + """ + return cast( + "PaymentAttemptRecord", + await self._request_async( + "post", + "/v1/payment_attempt_records/{payment_attempt_record}/report_authorized".format( + payment_attempt_record=sanitize_id(payment_attempt_record), + ), + base_address="api", + params=params, + options=options, + ), + ) + def report_canceled( self, payment_attempt_record: str, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 32ebc5bab..bc128bf7d 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2900,6 +2900,150 @@ class Tax(StripeObject): "total": Total, } + class MoneyServices(StripeObject): + class AccountFunding(StripeObject): + class BeneficiaryDetails(StripeObject): + class Address(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 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class DateOfBirth(StripeObject): + day: int + """ + Day of birth, between 1 and 31. + """ + month: int + """ + Month of birth, between 1 and 12. + """ + year: int + """ + Four-digit year of birth. + """ + + address: Optional[Address] + date_of_birth: Optional[DateOfBirth] + email: Optional[str] + """ + Email address. + """ + name: Optional[str] + """ + Full name. + """ + phone: Optional[str] + """ + Phone number. + """ + _inner_class_types = { + "address": Address, + "date_of_birth": DateOfBirth, + } + + class SenderDetails(StripeObject): + class Address(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 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class DateOfBirth(StripeObject): + day: int + """ + Day of birth, between 1 and 31. + """ + month: int + """ + Month of birth, between 1 and 12. + """ + year: int + """ + Four-digit year of birth. + """ + + address: Optional[Address] + date_of_birth: Optional[DateOfBirth] + email: Optional[str] + """ + Email address. + """ + name: Optional[str] + """ + Full name. + """ + phone: Optional[str] + """ + Phone number. + """ + _inner_class_types = { + "address": Address, + "date_of_birth": DateOfBirth, + } + + beneficiary_account: Optional[str] + """ + ID of the Account representing the beneficiary in this account funding transaction. + """ + beneficiary_details: Optional[BeneficiaryDetails] + sender_account: Optional[str] + """ + ID of the Account representing the sender in this account funding transaction. + """ + sender_details: Optional[SenderDetails] + _inner_class_types = { + "beneficiary_details": BeneficiaryDetails, + "sender_details": SenderDetails, + } + + account_funding: Optional[AccountFunding] + transaction_type: Optional[Literal["account_funding"]] + """ + The type of money services transaction. + """ + _inner_class_types = {"account_funding": AccountFunding} + class Subscription(StripeObject): class Affiliate(StripeObject): name: Optional[str] @@ -2956,6 +3100,7 @@ class BillingInterval(StripeObject): """ flight_data: Optional[List[FlightDatum]] lodging_data: Optional[List[LodgingDatum]] + money_services: Optional[MoneyServices] order_reference: Optional[str] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -2971,6 +3116,7 @@ class BillingInterval(StripeObject): "fleet_data": FleetDatum, "flight_data": FlightDatum, "lodging_data": LodgingDatum, + "money_services": MoneyServices, "subscription": Subscription, } diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 5ff47be94..a89dd1518 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -104,6 +104,32 @@ class Recovery(StripeObject): """ _inner_class_types = {"recovery": Recovery} + class AutomaticSurcharge(StripeObject): + calculation_basis: Optional[ + Literal["total_after_tax", "total_before_tax"] + ] + """ + Determines which amount is used as the basis for calculating the surcharge. + """ + enabled: bool + """ + Indicates whether automatic surcharge is enabled for the session. + """ + provider: Optional[Literal["interpayments", "yeeld"]] + """ + The surcharge provider used for this session. + """ + status: Optional[Literal["complete", "failed", "requires_input"]] + """ + The status of the most recent surcharge calculation for this session. + """ + tax_behavior: Optional[ + Literal["exclusive", "inclusive", "unspecified"] + ] + """ + Specifies whether the surcharge is considered inclusive or exclusive of taxes. + """ + class AutomaticTax(StripeObject): class Liability(StripeObject): account: Optional[ExpandableField["Account"]] @@ -2626,6 +2652,20 @@ class ShippingOption(StripeObject): The shipping rate. """ + class SurchargeCost(StripeObject): + amount_subtotal: int + """ + Total surcharge cost before taxes are applied. + """ + amount_tax: int + """ + Total tax amount applied due to surcharging. If no tax was applied, defaults to 0. + """ + amount_total: int + """ + Total surcharge cost after taxes are applied. + """ + class TaxIdCollection(StripeObject): enabled: bool """ @@ -2707,6 +2747,10 @@ class Tax(StripeObject): """ This is the sum of all the shipping amounts. """ + amount_surcharge: Optional[int] + """ + The surcharge amount that was applied to the Checkout Session. + """ amount_tax: int """ This is the sum of all the tax amounts. @@ -2752,6 +2796,7 @@ class Link(StripeObject): When set to `manual`, you must approve the customer's attempt to pay by calling [approve](api/checkout/sessions/approve) from your server. """ + automatic_surcharge: Optional[AutomaticSurcharge] automatic_tax: AutomaticTax billing_address_collection: Optional[Literal["auto", "required"]] """ @@ -3037,6 +3082,7 @@ class Link(StripeObject): The URL the customer will be directed to after the payment or subscription creation is successful. """ + surcharge_cost: Optional[SurchargeCost] tax_id_collection: Optional[TaxIdCollection] total_details: Optional[TotalDetails] """ @@ -3533,6 +3579,7 @@ async def retrieve_async( _inner_class_types = { "adaptive_pricing": AdaptivePricing, "after_expiration": AfterExpiration, + "automatic_surcharge": AutomaticSurcharge, "automatic_tax": AutomaticTax, "branding_settings": BrandingSettings, "checkout_items": CheckoutItem, @@ -3558,6 +3605,7 @@ async def retrieve_async( "shipping_address_collection": ShippingAddressCollection, "shipping_cost": ShippingCost, "shipping_options": ShippingOption, + "surcharge_cost": SurchargeCost, "tax_id_collection": TaxIdCollection, "total_details": TotalDetails, "wallet_options": WalletOptions, diff --git a/stripe/identity/_verification_report.py b/stripe/identity/_verification_report.py index 6685db58a..dfe067b79 100644 --- a/stripe/identity/_verification_report.py +++ b/stripe/identity/_verification_report.py @@ -194,6 +194,20 @@ class IssuedDate(StripeObject): } class Email(StripeObject): + class Details(StripeObject): + days_since_domain_creation: Optional[float] + """ + Number of days from the time when the email domain was first observed to the time of verification. + """ + days_since_ownership_started: Optional[float] + """ + Number of days from the time when the email address was first observed to the time of verification. + """ + domain_country: Optional[str] + """ + Two-letter ISO 3166-1 alpha-2 country code of the email domain's country. + """ + class Error(StripeObject): code: Optional[ Literal[ @@ -208,6 +222,10 @@ class Error(StripeObject): A human-readable message giving the reason for the failure. These messages can be shown to your users. """ + details: Optional[Details] + """ + Additional email verification details + """ email: Optional[str] """ Email to be verified. @@ -220,7 +238,7 @@ class Error(StripeObject): """ Status of this `email` check. """ - _inner_class_types = {"error": Error} + _inner_class_types = {"details": Details, "error": Error} class IdNumber(StripeObject): class Dob(StripeObject): diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index c12c9a1fe..fc23b98fd 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -2210,6 +2210,11 @@ from stripe.params._payment_attempt_record_report_authenticated_params import ( PaymentAttemptRecordReportAuthenticatedParams as PaymentAttemptRecordReportAuthenticatedParams, ) + from stripe.params._payment_attempt_record_report_authorized_params import ( + PaymentAttemptRecordReportAuthorizedParams as PaymentAttemptRecordReportAuthorizedParams, + PaymentAttemptRecordReportAuthorizedParamsProcessorDetails as PaymentAttemptRecordReportAuthorizedParamsProcessorDetails, + PaymentAttemptRecordReportAuthorizedParamsProcessorDetailsCustom as PaymentAttemptRecordReportAuthorizedParamsProcessorDetailsCustom, + ) from stripe.params._payment_attempt_record_report_canceled_params import ( PaymentAttemptRecordReportCanceledParams as PaymentAttemptRecordReportCanceledParams, ) @@ -3699,6 +3704,7 @@ PaymentLinkCreateParamsAfterCompletion as PaymentLinkCreateParamsAfterCompletion, PaymentLinkCreateParamsAfterCompletionHostedConfirmation as PaymentLinkCreateParamsAfterCompletionHostedConfirmation, PaymentLinkCreateParamsAfterCompletionRedirect as PaymentLinkCreateParamsAfterCompletionRedirect, + PaymentLinkCreateParamsAutomaticSurcharge as PaymentLinkCreateParamsAutomaticSurcharge, PaymentLinkCreateParamsAutomaticTax as PaymentLinkCreateParamsAutomaticTax, PaymentLinkCreateParamsAutomaticTaxLiability as PaymentLinkCreateParamsAutomaticTaxLiability, PaymentLinkCreateParamsConsentCollection as PaymentLinkCreateParamsConsentCollection, @@ -12816,6 +12822,18 @@ "stripe.params._payment_attempt_record_report_authenticated_params", False, ), + "PaymentAttemptRecordReportAuthorizedParams": ( + "stripe.params._payment_attempt_record_report_authorized_params", + False, + ), + "PaymentAttemptRecordReportAuthorizedParamsProcessorDetails": ( + "stripe.params._payment_attempt_record_report_authorized_params", + False, + ), + "PaymentAttemptRecordReportAuthorizedParamsProcessorDetailsCustom": ( + "stripe.params._payment_attempt_record_report_authorized_params", + False, + ), "PaymentAttemptRecordReportCanceledParams": ( "stripe.params._payment_attempt_record_report_canceled_params", False, @@ -18576,6 +18594,10 @@ "stripe.params._payment_link_create_params", False, ), + "PaymentLinkCreateParamsAutomaticSurcharge": ( + "stripe.params._payment_link_create_params", + False, + ), "PaymentLinkCreateParamsAutomaticTax": ( "stripe.params._payment_link_create_params", False, diff --git a/stripe/params/_payment_attempt_record_report_authorized_params.py b/stripe/params/_payment_attempt_record_report_authorized_params.py new file mode 100644 index 000000000..8b28dcc37 --- /dev/null +++ b/stripe/params/_payment_attempt_record_report_authorized_params.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from stripe._stripe_object import UntypedStripeObject +from typing import Dict, List +from typing_extensions import Literal, NotRequired, TypedDict + + +class PaymentAttemptRecordReportAuthorizedParams(RequestOptions): + authorized_at: NotRequired[int] + """ + When the reported payment was authorized. Measured in seconds since the Unix epoch. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ + processor_details: NotRequired[ + "PaymentAttemptRecordReportAuthorizedParamsProcessorDetails" + ] + """ + Processor information for this payment. + """ + + +class PaymentAttemptRecordReportAuthorizedParamsProcessorDetails(TypedDict): + custom: NotRequired[ + "PaymentAttemptRecordReportAuthorizedParamsProcessorDetailsCustom" + ] + """ + Information about the custom processor used to make this payment. + """ + type: Literal["custom"] + """ + The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor. + """ + + +class PaymentAttemptRecordReportAuthorizedParamsProcessorDetailsCustom( + TypedDict, +): + payment_reference: str + """ + An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index 870368dca..af710a916 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -200,6 +200,12 @@ class PaymentLinkCreateParams(RequestOptions): """ The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to. """ + automatic_surcharge: NotRequired[ + "PaymentLinkCreateParamsAutomaticSurcharge" + ] + """ + Configuration for automatic surcharge calculation. + """ class PaymentLinkCreateParamsAfterCompletion(TypedDict): @@ -1129,3 +1135,20 @@ class PaymentLinkCreateParamsTransferData(TypedDict): to the destination account. The ID of the resulting transfer will be returned on the successful charge's `transfer` field. """ + + +class PaymentLinkCreateParamsAutomaticSurcharge(TypedDict): + calculation_basis: NotRequired[ + Literal["total_after_tax", "total_before_tax"] + ] + """ + Determines which amount is used as the basis for calculating the surcharge. + """ + enabled: bool + """ + Set to `true` to calculate surcharge automatically using the customer's card details and location. + """ + tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] + """ + Specifies whether the surcharge is considered inclusive or exclusive of taxes. + """ diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index cba419cf7..f09eee00b 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -14,6 +14,7 @@ SessionCreateParamsAdaptivePricing as SessionCreateParamsAdaptivePricing, SessionCreateParamsAfterExpiration as SessionCreateParamsAfterExpiration, SessionCreateParamsAfterExpirationRecovery as SessionCreateParamsAfterExpirationRecovery, + SessionCreateParamsAutomaticSurcharge as SessionCreateParamsAutomaticSurcharge, SessionCreateParamsAutomaticTax as SessionCreateParamsAutomaticTax, SessionCreateParamsAutomaticTaxLiability as SessionCreateParamsAutomaticTaxLiability, SessionCreateParamsBrandingSettings as SessionCreateParamsBrandingSettings, @@ -257,6 +258,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsAutomaticSurcharge": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsAutomaticTax": ( "stripe.params.checkout._session_create_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index 488ec04e7..a5a57d3fc 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -471,6 +471,10 @@ class SessionCreateParams(RequestOptions): """ Wallet-specific configuration. """ + automatic_surcharge: NotRequired["SessionCreateParamsAutomaticSurcharge"] + """ + Settings for automatic surcharge calculation for this session. + """ checkout_items: NotRequired[List["SessionCreateParamsCheckoutItem"]] @@ -3219,6 +3223,23 @@ class SessionCreateParamsWalletOptionsLink(TypedDict): """ +class SessionCreateParamsAutomaticSurcharge(TypedDict): + calculation_basis: NotRequired[ + Literal["total_after_tax", "total_before_tax"] + ] + """ + Determines which amount is used as the basis for calculating the surcharge. + """ + enabled: bool + """ + Set to `true` to calculate surcharge automatically using the customer's card details and location. + """ + tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] + """ + Specifies whether the surcharge is considered inclusive or exclusive of taxes. + """ + + class SessionCreateParamsCheckoutItem(TypedDict): type: Literal[ "rate_card_subscription_item", "pricing_plan_subscription_item" diff --git a/stripe/shared_payment/_issued_token.py b/stripe/shared_payment/_issued_token.py index 86e319895..6259d0f9f 100644 --- a/stripe/shared_payment/_issued_token.py +++ b/stripe/shared_payment/_issued_token.py @@ -14,6 +14,23 @@ class IssuedToken(StripeObject): "shared_payment.issued_token" ) + class NextAction(StripeObject): + class UseStripeSdk(StripeObject): + value: str + """ + A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle the next action. Its content is subject to change. + """ + + type: Literal["use_stripe_sdk"] + """ + Specifies the type of next action required. Determines which child attribute contains action details. + """ + use_stripe_sdk: Optional[UseStripeSdk] + """ + Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. Present when `next_action.type` is `use_stripe_sdk`. + """ + _inner_class_types = {"use_stripe_sdk": UseStripeSdk} + class RiskDetails(StripeObject): class Insights(StripeObject): class Bot(StripeObject): @@ -175,6 +192,10 @@ class UsageLimits(StripeObject): """ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. """ + next_action: Optional[NextAction] + """ + If present, describes the action required to make this `SharedPaymentIssuedToken` usable for payments. Present when the token is in `requires_action` state. + """ object: Literal["shared_payment.issued_token"] """ String representing the object's type. Objects of the same type share the same value. @@ -203,6 +224,10 @@ class UsageLimits(StripeObject): """ Metadata about the SharedPaymentIssuedToken. """ + status: Optional[Literal["active", "deactivated", "requires_action"]] + """ + Status of this SharedPaymentIssuedToken, one of `active`, `requires_action`, or `deactivated`. + """ usage_details: Optional[UsageDetails] """ Usage details of the SharedPaymentIssuedToken @@ -212,6 +237,7 @@ class UsageLimits(StripeObject): Usage limits of the SharedPaymentIssuedToken. """ _inner_class_types = { + "next_action": NextAction, "risk_details": RiskDetails, "seller_details": SellerDetails, "usage_details": UsageDetails, From 8046003b70fa5e35977d4584fedf56a24a58461d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 9 Apr 2026 18:27:38 +0000 Subject: [PATCH 02/12] Update generated code for v2231 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/identity/_verification_report.py | 2 +- stripe/identity/_verification_session.py | 2 +- stripe/params/identity/_verification_report_list_params.py | 2 +- stripe/params/identity/_verification_session_create_params.py | 2 +- stripe/params/identity/_verification_session_modify_params.py | 2 +- stripe/params/identity/_verification_session_update_params.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index ea8accaf7..7afcc045e 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -de792772121d2a204e748060d868f433b2507073 \ No newline at end of file +5410ebd8815edcca47fb431a88e462907d39420e \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e33b0db86..f5ef453d7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2230 \ No newline at end of file +v2231 \ No newline at end of file diff --git a/stripe/identity/_verification_report.py b/stripe/identity/_verification_report.py index dfe067b79..d7be3cb42 100644 --- a/stripe/identity/_verification_report.py +++ b/stripe/identity/_verification_report.py @@ -439,7 +439,7 @@ class Error(StripeObject): """ Result from a selfie check """ - type: Literal["document", "id_number", "verification_flow"] + type: Literal["document", "email", "id_number", "verification_flow"] """ Type of report. """ diff --git a/stripe/identity/_verification_session.py b/stripe/identity/_verification_session.py index 6a3136202..b2a164e3b 100644 --- a/stripe/identity/_verification_session.py +++ b/stripe/identity/_verification_session.py @@ -320,7 +320,7 @@ class Dob(StripeObject): """ Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://docs.stripe.com/identity/how-sessions-work). """ - type: Literal["document", "id_number", "verification_flow"] + type: Literal["document", "email", "id_number", "verification_flow"] """ The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. """ diff --git a/stripe/params/identity/_verification_report_list_params.py b/stripe/params/identity/_verification_report_list_params.py index 85b908189..32aae1888 100644 --- a/stripe/params/identity/_verification_report_list_params.py +++ b/stripe/params/identity/_verification_report_list_params.py @@ -34,7 +34,7 @@ class VerificationReportListParams(RequestOptions): """ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ - type: NotRequired[Literal["document", "id_number"]] + type: NotRequired[Literal["document", "email", "id_number"]] """ Only return VerificationReports of this type """ diff --git a/stripe/params/identity/_verification_session_create_params.py b/stripe/params/identity/_verification_session_create_params.py index 94e1af613..afee27094 100644 --- a/stripe/params/identity/_verification_session_create_params.py +++ b/stripe/params/identity/_verification_session_create_params.py @@ -45,7 +45,7 @@ class VerificationSessionCreateParams(RequestOptions): """ The URL that the user will be redirected to upon completing the verification flow. """ - type: NotRequired[Literal["document", "id_number"]] + type: NotRequired[Literal["document", "email", "id_number"]] """ The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. You must provide a `type` if not passing `verification_flow`. """ diff --git a/stripe/params/identity/_verification_session_modify_params.py b/stripe/params/identity/_verification_session_modify_params.py index fe89c068d..9d9750725 100644 --- a/stripe/params/identity/_verification_session_modify_params.py +++ b/stripe/params/identity/_verification_session_modify_params.py @@ -25,7 +25,7 @@ class VerificationSessionModifyParams(RequestOptions): """ Details provided about the user being verified. These details may be shown to the user. """ - type: NotRequired[Literal["document", "id_number"]] + type: NotRequired[Literal["document", "email", "id_number"]] """ The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. """ diff --git a/stripe/params/identity/_verification_session_update_params.py b/stripe/params/identity/_verification_session_update_params.py index 3a2396162..48b90f060 100644 --- a/stripe/params/identity/_verification_session_update_params.py +++ b/stripe/params/identity/_verification_session_update_params.py @@ -24,7 +24,7 @@ class VerificationSessionUpdateParams(TypedDict): """ Details provided about the user being verified. These details may be shown to the user. """ - type: NotRequired[Literal["document", "id_number"]] + type: NotRequired[Literal["document", "email", "id_number"]] """ The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. """ From 32dcd21766293f2c0700b59597b47e9dcbb619ae Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 9 Apr 2026 21:46:38 +0000 Subject: [PATCH 03/12] Update generated code for v2232 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_balance_settings.py | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 7afcc045e..bc6ebacd8 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -5410ebd8815edcca47fb431a88e462907d39420e \ No newline at end of file +521d3cebd09b6e32f642c195ba36cc70f8a8186b \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f5ef453d7..3f670a3d1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2231 \ No newline at end of file +v2232 \ No newline at end of file diff --git a/stripe/_balance_settings.py b/stripe/_balance_settings.py index 8ea2c0a32..5f2f30f96 100644 --- a/stripe/_balance_settings.py +++ b/stripe/_balance_settings.py @@ -85,10 +85,22 @@ class SettlementTiming(StripeObject): """ A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://docs.stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`. """ + default_settlement_currency: Optional[str] + """ + The default settlement currency for the account. + """ payouts: Optional[Payouts] """ Settings specific to the account's payouts. """ + settlement_currencies: Optional[ + UntypedStripeObject[ + Literal["disabled", "enabled", "restricted_by_application"] + ] + ] + """ + A hash of settlement currencies and their states. Each key is an ISO 4217 currency code, and the value is one of `enabled`, `disabled`, or `restricted_by_application`. + """ settlement_timing: SettlementTiming _inner_class_types = { "payouts": Payouts, From 99c92e8fedd9f5a24b0fa8a63e638bf78099255a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 9 Apr 2026 23:43:35 +0000 Subject: [PATCH 04/12] Update generated code for v2233 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_payment_link.py | 24 +++++++++++++++++++ stripe/checkout/_session.py | 2 +- stripe/params/_payment_link_create_params.py | 2 +- .../params/checkout/_session_create_params.py | 2 +- 6 files changed, 29 insertions(+), 5 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index bc6ebacd8..bbc5d8b98 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -521d3cebd09b6e32f642c195ba36cc70f8a8186b \ No newline at end of file +f5c958ec092d2c4f07041bbab5d296f673fac3d2 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3f670a3d1..37e883082 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2232 \ No newline at end of file +v2233 \ No newline at end of file diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 5ec484aea..f6c044ff3 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -70,6 +70,28 @@ class Redirect(StripeObject): "redirect": Redirect, } + class AutomaticSurcharge(StripeObject): + calculation_basis: Optional[ + Literal["total_after_tax", "total_before_tax"] + ] + """ + Determines which amount serves as the basis for calculating the surcharge. + """ + enabled: bool + """ + Indicates whether automatic surcharge is enabled for the payment link. + """ + provider: Optional[Literal["interpayments", "yeeld"]] + """ + The surcharge provider used for this payment link. + """ + tax_behavior: Optional[ + Literal["exclusive", "inclusive", "unspecified"] + ] + """ + Specifies whether the surcharge is considered inclusive or exclusive of taxes. + """ + class AutomaticTax(StripeObject): class Liability(StripeObject): account: Optional[ExpandableField["Account"]] @@ -773,6 +795,7 @@ class TransferData(StripeObject): """ This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. """ + automatic_surcharge: Optional[AutomaticSurcharge] automatic_tax: AutomaticTax billing_address_collection: Literal["auto", "required"] """ @@ -1173,6 +1196,7 @@ async def retrieve_async( _inner_class_types = { "after_completion": AfterCompletion, + "automatic_surcharge": AutomaticSurcharge, "automatic_tax": AutomaticTax, "consent_collection": ConsentCollection, "custom_fields": CustomField, diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index a89dd1518..101c540b3 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -109,7 +109,7 @@ class AutomaticSurcharge(StripeObject): Literal["total_after_tax", "total_before_tax"] ] """ - Determines which amount is used as the basis for calculating the surcharge. + Determines which amount serves as the basis for calculating the surcharge. """ enabled: bool """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index af710a916..0d31bafa1 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -1142,7 +1142,7 @@ class PaymentLinkCreateParamsAutomaticSurcharge(TypedDict): Literal["total_after_tax", "total_before_tax"] ] """ - Determines which amount is used as the basis for calculating the surcharge. + Determines which amount serves as the basis for calculating the surcharge. """ enabled: bool """ diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index a5a57d3fc..e13835cf4 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -3228,7 +3228,7 @@ class SessionCreateParamsAutomaticSurcharge(TypedDict): Literal["total_after_tax", "total_before_tax"] ] """ - Determines which amount is used as the basis for calculating the surcharge. + Determines which amount serves as the basis for calculating the surcharge. """ enabled: bool """ From b72a6d9789f3a468d4aaf7f80b03a8126face4bf Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 15:30:23 +0000 Subject: [PATCH 05/12] Update generated code for v2234 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/params/_confirmation_token_create_params.py | 4 ++++ stripe/params/_payment_intent_confirm_params.py | 4 ++++ stripe/params/_payment_intent_create_params.py | 4 ++++ stripe/params/_payment_intent_modify_params.py | 4 ++++ stripe/params/_payment_intent_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/test_helpers/_confirmation_token_create_params.py | 4 ++++ stripe/shared_payment/_issued_token.py | 4 ---- 13 files changed, 42 insertions(+), 6 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index bbc5d8b98..bc00e717e 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -f5c958ec092d2c4f07041bbab5d296f673fac3d2 \ No newline at end of file +d941f7e854e161d2dd9ee87f1bd40a4766764bc0 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 37e883082..d9f1f933f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2233 \ No newline at end of file +v2234 \ No newline at end of file diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index 16fbf40c1..0f8d5b496 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -418,6 +418,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 361253437..edb339354 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -3132,6 +3132,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class PaymentIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 2b3138823..7f74074cc 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -3262,6 +3262,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class PaymentIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index 10402003e..8fda72a3e 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -3111,6 +3111,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class PaymentIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index 02468d63a..01663c8be 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -3110,6 +3110,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class PaymentIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index 47a9138af..5e2758557 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -457,6 +457,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class SetupIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index 0e25d3d4c..6e328fb12 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -591,6 +591,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class SetupIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index cce5e6fbd..5623e8ed5 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -433,6 +433,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class SetupIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index 4529e6a52..f6260a4b9 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -432,6 +432,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class SetupIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 9fd274963..c3a2b9aa6 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -417,6 +417,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ class ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/shared_payment/_issued_token.py b/stripe/shared_payment/_issued_token.py index 6259d0f9f..6aa3a22fe 100644 --- a/stripe/shared_payment/_issued_token.py +++ b/stripe/shared_payment/_issued_token.py @@ -126,10 +126,6 @@ class SellerDetails(StripeObject): """ The unique and logical string that identifies the seller platform that this SharedToken is being created for. """ - network_id: Optional[str] - """ - The unique and logical string that identifies the seller platform that this SharedToken is being created for. - """ class UsageDetails(StripeObject): class AmountCaptured(StripeObject): From 5c9a8ace466e3b6d2fe83c695ac5ecf651b6823e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 20:11:07 +0000 Subject: [PATCH 06/12] Update generated code for v2236 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/params/_payment_intent_confirm_params.py | 4 ---- stripe/params/_payment_intent_create_params.py | 4 ---- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index bc00e717e..d7a4895ea 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -d941f7e854e161d2dd9ee87f1bd40a4766764bc0 \ No newline at end of file +d5e171d00261ce3914a5ab558059e3aad0128748 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d9f1f933f..029b06da0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2234 \ No newline at end of file +v2236 \ No newline at end of file diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index edb339354..1fb3e4541 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -123,10 +123,6 @@ class PaymentIntentConfirmParams(RequestOptions): If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentToken used to confirm this PaymentIntent. - """ shipping: NotRequired["Literal['']|PaymentIntentConfirmParamsShipping"] """ Shipping information for this PaymentIntent. diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 7f74074cc..3d79ec03c 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -243,10 +243,6 @@ class PaymentIntentCreateParams(RequestOptions): 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: NotRequired[str] - """ - ID of the SharedPaymentToken used to confirm this PaymentIntent. - """ shipping: NotRequired["PaymentIntentCreateParamsShipping"] """ Shipping information for this PaymentIntent. From f3bd4a893811706f677df2ffe30af591b61d3ef4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 22:08:02 +0000 Subject: [PATCH 07/12] Update generated code for v2237 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/params/_balance_settings_modify_params.py | 6 ++++++ stripe/params/_balance_settings_update_params.py | 6 ++++++ .../params/identity/_verification_session_create_params.py | 4 ++++ .../params/identity/_verification_session_modify_params.py | 4 ++++ .../params/identity/_verification_session_update_params.py | 4 ++++ 7 files changed, 26 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index d7a4895ea..bacc9bd82 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -d5e171d00261ce3914a5ab558059e3aad0128748 \ No newline at end of file +10fde7b65f7ad304c35f3f935eb6858b0771aa3c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 029b06da0..eb3ab6cb3 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2236 \ No newline at end of file +v2237 \ No newline at end of file diff --git a/stripe/params/_balance_settings_modify_params.py b/stripe/params/_balance_settings_modify_params.py index b29845675..5c77688c3 100644 --- a/stripe/params/_balance_settings_modify_params.py +++ b/stripe/params/_balance_settings_modify_params.py @@ -32,6 +32,12 @@ class BalanceSettingsModifyParamsPayments(TypedDict): """ Settings related to the account's balance settlement timing. """ + settlement_currencies: NotRequired[ + "Dict[str, Literal['disabled', 'enabled']]|UntypedStripeObject[Literal['disabled', 'enabled']]" + ] + """ + A hash of settlement currencies to update. Each key is an ISO 4217 currency code, and the value is either `enabled` or `disabled`. + """ class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict): diff --git a/stripe/params/_balance_settings_update_params.py b/stripe/params/_balance_settings_update_params.py index af7de3215..26d2694ac 100644 --- a/stripe/params/_balance_settings_update_params.py +++ b/stripe/params/_balance_settings_update_params.py @@ -31,6 +31,12 @@ class BalanceSettingsUpdateParamsPayments(TypedDict): """ Settings related to the account's balance settlement timing. """ + settlement_currencies: NotRequired[ + "Dict[str, Literal['disabled', 'enabled']]|UntypedStripeObject[Literal['disabled', 'enabled']]" + ] + """ + A hash of settlement currencies to update. Each key is an ISO 4217 currency code, and the value is either `enabled` or `disabled`. + """ class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): diff --git a/stripe/params/identity/_verification_session_create_params.py b/stripe/params/identity/_verification_session_create_params.py index afee27094..d85109a68 100644 --- a/stripe/params/identity/_verification_session_create_params.py +++ b/stripe/params/identity/_verification_session_create_params.py @@ -53,6 +53,10 @@ class VerificationSessionCreateParams(RequestOptions): """ The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows. """ + confirm: NotRequired[bool] + """ + Confirm and submit the provided details for verification. + """ class VerificationSessionCreateParamsOptions(TypedDict): diff --git a/stripe/params/identity/_verification_session_modify_params.py b/stripe/params/identity/_verification_session_modify_params.py index 9d9750725..8a172142f 100644 --- a/stripe/params/identity/_verification_session_modify_params.py +++ b/stripe/params/identity/_verification_session_modify_params.py @@ -29,6 +29,10 @@ class VerificationSessionModifyParams(RequestOptions): """ The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. """ + confirm: NotRequired[bool] + """ + Confirm and submit the provided details for verification. + """ class VerificationSessionModifyParamsOptions(TypedDict): diff --git a/stripe/params/identity/_verification_session_update_params.py b/stripe/params/identity/_verification_session_update_params.py index 48b90f060..b220a3369 100644 --- a/stripe/params/identity/_verification_session_update_params.py +++ b/stripe/params/identity/_verification_session_update_params.py @@ -28,6 +28,10 @@ class VerificationSessionUpdateParams(TypedDict): """ The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. """ + confirm: NotRequired[bool] + """ + Confirm and submit the provided details for verification. + """ class VerificationSessionUpdateParamsOptions(TypedDict): From 79975ccd816755085aba9600e2d807f7902c1066 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 22:50:37 +0000 Subject: [PATCH 08/12] Update generated code for v2238 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/shared_payment/_granted_token.py | 20 ++++++++++---------- stripe/shared_payment/_issued_token.py | 20 ++++++++++---------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index bacc9bd82..cf033e00a 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -10fde7b65f7ad304c35f3f935eb6858b0771aa3c \ No newline at end of file +20e88b3da41e1863e57b984f1b5e3aa428aaf4e8 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index eb3ab6cb3..e345d6ae5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2237 \ No newline at end of file +v2238 \ No newline at end of file diff --git a/stripe/shared_payment/_granted_token.py b/stripe/shared_payment/_granted_token.py index 8c6e3c3f4..6979b59ad 100644 --- a/stripe/shared_payment/_granted_token.py +++ b/stripe/shared_payment/_granted_token.py @@ -1420,7 +1420,7 @@ class Bot(StripeObject): """ score: float """ - Risk score for this insight (float). + Risk score for this insight. """ class CardIssuerDecline(StripeObject): @@ -1430,7 +1430,7 @@ class CardIssuerDecline(StripeObject): """ score: float """ - Risk score for this insight (float). + Risk score for this insight. """ class CardTesting(StripeObject): @@ -1440,7 +1440,7 @@ class CardTesting(StripeObject): """ score: float """ - Risk score for this insight (float). + Risk score for this insight. """ class FraudulentDispute(StripeObject): @@ -1450,7 +1450,7 @@ class FraudulentDispute(StripeObject): """ score: int """ - Risk score for this insight (integer). + Risk score for this insight. """ class StolenCard(StripeObject): @@ -1460,28 +1460,28 @@ class StolenCard(StripeObject): """ score: int """ - Risk score for this insight (integer). + Risk score for this insight. """ bot: Optional[Bot] """ - Bot risk insight (score: Float, recommended_action). + Bot risk insight. """ card_issuer_decline: Optional[CardIssuerDecline] """ - Card issuer decline risk insight (score: Float, recommended_action). + Card issuer decline risk insight. """ card_testing: Optional[CardTesting] """ - Card testing risk insight (score: Float, recommended_action). + Card testing risk insight. """ fraudulent_dispute: Optional[FraudulentDispute] """ - Fraudulent dispute risk insight (score: Integer, recommended_action). + Fraudulent dispute risk insight. """ stolen_card: Optional[StolenCard] """ - Stolen card risk insight (score: Integer, recommended_action). + Stolen card risk insight. """ _inner_class_types = { "bot": Bot, diff --git a/stripe/shared_payment/_issued_token.py b/stripe/shared_payment/_issued_token.py index 6aa3a22fe..2d28d052c 100644 --- a/stripe/shared_payment/_issued_token.py +++ b/stripe/shared_payment/_issued_token.py @@ -40,7 +40,7 @@ class Bot(StripeObject): """ score: float """ - Risk score for this insight (float). + Risk score for this insight. """ class CardIssuerDecline(StripeObject): @@ -50,7 +50,7 @@ class CardIssuerDecline(StripeObject): """ score: float """ - Risk score for this insight (float). + Risk score for this insight. """ class CardTesting(StripeObject): @@ -60,7 +60,7 @@ class CardTesting(StripeObject): """ score: float """ - Risk score for this insight (float). + Risk score for this insight. """ class FraudulentDispute(StripeObject): @@ -70,7 +70,7 @@ class FraudulentDispute(StripeObject): """ score: int """ - Risk score for this insight (integer). + Risk score for this insight. """ class StolenCard(StripeObject): @@ -80,28 +80,28 @@ class StolenCard(StripeObject): """ score: int """ - Risk score for this insight (integer). + Risk score for this insight. """ bot: Optional[Bot] """ - Bot risk insight (score: Float, recommended_action). + Bot risk insight. """ card_issuer_decline: Optional[CardIssuerDecline] """ - Card issuer decline risk insight (score: Float, recommended_action). + Card issuer decline risk insight. """ card_testing: Optional[CardTesting] """ - Card testing risk insight (score: Float, recommended_action). + Card testing risk insight. """ fraudulent_dispute: Optional[FraudulentDispute] """ - Fraudulent dispute risk insight (score: Integer, recommended_action). + Fraudulent dispute risk insight. """ stolen_card: Optional[StolenCard] """ - Stolen card risk insight (score: Integer, recommended_action). + Stolen card risk insight. """ _inner_class_types = { "bot": Bot, From 8ac49dd4ff64f1ee41de52ab51bff4086ecfdd1e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sun, 12 Apr 2026 07:48:32 +0000 Subject: [PATCH 09/12] Update generated code for v2239 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_plan.py | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index cf033e00a..df50607b6 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -20e88b3da41e1863e57b984f1b5e3aa428aaf4e8 \ No newline at end of file +7144865eb6d660c8cc5832aabf84f296918b112d \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e345d6ae5..6d40f8eb1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2238 \ No newline at end of file +v2239 \ No newline at end of file diff --git a/stripe/_plan.py b/stripe/_plan.py index 9088e1f3c..bfd3a82de 100644 --- a/stripe/_plan.py +++ b/stripe/_plan.py @@ -104,10 +104,6 @@ class TransformUsage(StripeObject): """ Always true for a deleted object """ - external_reference: Optional[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. - """ id: str """ Unique identifier for the object. From e040dae080e292eed7b4d9a1c28a27293abf7e25 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 19:51:29 +0000 Subject: [PATCH 10/12] Update generated code for v2239 and --- CODEGEN_VERSION | 2 +- stripe/_object_classes.py | 2 + stripe/params/v2/core/__init__.py | 35 +++++ .../params/v2/core/_workflow_invoke_params.py | 12 ++ .../params/v2/core/_workflow_list_params.py | 16 ++ .../v2/core/_workflow_retrieve_params.py | 7 + .../v2/core/_workflow_run_list_params.py | 19 +++ .../v2/core/_workflow_run_retrieve_params.py | 7 + stripe/v2/_core_service.py | 9 ++ stripe/v2/core/__init__.py | 12 ++ stripe/v2/core/_workflow.py | 71 +++++++++ stripe/v2/core/_workflow_run.py | 148 ++++++++++++++++++ stripe/v2/core/_workflow_run_service.py | 97 ++++++++++++ stripe/v2/core/_workflow_service.py | 139 ++++++++++++++++ tests/test_generated_examples.py | 124 +++++++++++++++ 15 files changed, 699 insertions(+), 1 deletion(-) create mode 100644 stripe/params/v2/core/_workflow_invoke_params.py create mode 100644 stripe/params/v2/core/_workflow_list_params.py create mode 100644 stripe/params/v2/core/_workflow_retrieve_params.py create mode 100644 stripe/params/v2/core/_workflow_run_list_params.py create mode 100644 stripe/params/v2/core/_workflow_run_retrieve_params.py create mode 100644 stripe/v2/core/_workflow.py create mode 100644 stripe/v2/core/_workflow_run.py create mode 100644 stripe/v2/core/_workflow_run_service.py create mode 100644 stripe/v2/core/_workflow_service.py diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index df50607b6..7293aa2e7 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -7144865eb6d660c8cc5832aabf84f296918b112d \ No newline at end of file +29bc7cbbdd2880289828ddf29e7ab94454a3e311 \ No newline at end of file diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py index 6e12db20d..4c8ecf04a 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -581,6 +581,8 @@ "stripe.v2.core.vault._us_bank_account", "UsBankAccount", ), + "v2.core.workflow": ("stripe.v2.core._workflow", "Workflow"), + "v2.core.workflow_run": ("stripe.v2.core._workflow_run", "WorkflowRun"), "v2.data.reporting.query_run": ( "stripe.v2.data.reporting._query_run", "QueryRun", diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index f66eb017b..1d7cc5df1 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -677,6 +677,21 @@ from stripe.params.v2.core._event_retrieve_params import ( EventRetrieveParams as EventRetrieveParams, ) + from stripe.params.v2.core._workflow_invoke_params import ( + WorkflowInvokeParams as WorkflowInvokeParams, + ) + from stripe.params.v2.core._workflow_list_params import ( + WorkflowListParams as WorkflowListParams, + ) + from stripe.params.v2.core._workflow_retrieve_params import ( + WorkflowRetrieveParams as WorkflowRetrieveParams, + ) + from stripe.params.v2.core._workflow_run_list_params import ( + WorkflowRunListParams as WorkflowRunListParams, + ) + from stripe.params.v2.core._workflow_run_retrieve_params import ( + WorkflowRunRetrieveParams as WorkflowRunRetrieveParams, + ) # name -> (import_target, is_submodule) _import_map = { @@ -3156,6 +3171,26 @@ "stripe.params.v2.core._event_retrieve_params", False, ), + "WorkflowInvokeParams": ( + "stripe.params.v2.core._workflow_invoke_params", + False, + ), + "WorkflowListParams": ( + "stripe.params.v2.core._workflow_list_params", + False, + ), + "WorkflowRetrieveParams": ( + "stripe.params.v2.core._workflow_retrieve_params", + False, + ), + "WorkflowRunListParams": ( + "stripe.params.v2.core._workflow_run_list_params", + False, + ), + "WorkflowRunRetrieveParams": ( + "stripe.params.v2.core._workflow_run_retrieve_params", + False, + ), } if not TYPE_CHECKING: diff --git a/stripe/params/v2/core/_workflow_invoke_params.py b/stripe/params/v2/core/_workflow_invoke_params.py new file mode 100644 index 000000000..678dac4c1 --- /dev/null +++ b/stripe/params/v2/core/_workflow_invoke_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import UntypedStripeObject +from typing import Any, Dict +from typing_extensions import TypedDict + + +class WorkflowInvokeParams(TypedDict): + input_parameters: "Dict[str, Any]|UntypedStripeObject[Any]" + """ + Parameters used to invoke the Workflow Run. + """ diff --git a/stripe/params/v2/core/_workflow_list_params.py b/stripe/params/v2/core/_workflow_list_params.py new file mode 100644 index 000000000..14eb57bb4 --- /dev/null +++ b/stripe/params/v2/core/_workflow_list_params.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing import List +from typing_extensions import Literal, NotRequired, TypedDict + + +class WorkflowListParams(TypedDict): + limit: NotRequired[int] + """ + Restrict page size to no more than this number. + """ + status: List[Literal["active", "archived", "draft", "inactive"]] + """ + When retrieving Workflows, include only those with the specified status values. + If not specified, all Workflows in active and inactive status are returned. + """ diff --git a/stripe/params/v2/core/_workflow_retrieve_params.py b/stripe/params/v2/core/_workflow_retrieve_params.py new file mode 100644 index 000000000..0d4b7887a --- /dev/null +++ b/stripe/params/v2/core/_workflow_retrieve_params.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import TypedDict + + +class WorkflowRetrieveParams(TypedDict): + pass diff --git a/stripe/params/v2/core/_workflow_run_list_params.py b/stripe/params/v2/core/_workflow_run_list_params.py new file mode 100644 index 000000000..b4e3dc0fc --- /dev/null +++ b/stripe/params/v2/core/_workflow_run_list_params.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing import List +from typing_extensions import Literal, NotRequired, TypedDict + + +class WorkflowRunListParams(TypedDict): + limit: NotRequired[int] + """ + Restrict page size to no more than this number. + """ + status: List[Literal["failed", "started", "succeeded"]] + """ + When retrieving Workflow Runs, include only those with the specified status values. If not specified, all Runs are returned. + """ + workflow: List[str] + """ + When retrieving Workflow Runs, include only those associated with the Workflows specified. If not specified, all Runs are returned. + """ diff --git a/stripe/params/v2/core/_workflow_run_retrieve_params.py b/stripe/params/v2/core/_workflow_run_retrieve_params.py new file mode 100644 index 000000000..3d531350e --- /dev/null +++ b/stripe/params/v2/core/_workflow_run_retrieve_params.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import TypedDict + + +class WorkflowRunRetrieveParams(TypedDict): + pass diff --git a/stripe/v2/_core_service.py b/stripe/v2/_core_service.py index c4abb02a9..efdfabd16 100644 --- a/stripe/v2/_core_service.py +++ b/stripe/v2/_core_service.py @@ -23,6 +23,8 @@ ) from stripe.v2.core._event_service import EventService from stripe.v2.core._vault_service import VaultService + from stripe.v2.core._workflow_run_service import WorkflowRunService + from stripe.v2.core._workflow_service import WorkflowService _subservices = { "accounts": ["stripe.v2.core._account_service", "AccountService"], @@ -53,6 +55,11 @@ "EventDestinationService", ], "vault": ["stripe.v2.core._vault_service", "VaultService"], + "workflows": ["stripe.v2.core._workflow_service", "WorkflowService"], + "workflow_runs": [ + "stripe.v2.core._workflow_run_service", + "WorkflowRunService", + ], } @@ -67,6 +74,8 @@ class CoreService(StripeService): events: "EventService" event_destinations: "EventDestinationService" vault: "VaultService" + workflows: "WorkflowService" + workflow_runs: "WorkflowRunService" def __init__(self, requestor): super().__init__(requestor) diff --git a/stripe/v2/core/__init__.py b/stripe/v2/core/__init__.py index 74e05cfc0..b7d948242 100644 --- a/stripe/v2/core/__init__.py +++ b/stripe/v2/core/__init__.py @@ -60,6 +60,14 @@ ) from stripe.v2.core._event_service import EventService as EventService from stripe.v2.core._vault_service import VaultService as VaultService + from stripe.v2.core._workflow import Workflow as Workflow + from stripe.v2.core._workflow_run import WorkflowRun as WorkflowRun + from stripe.v2.core._workflow_run_service import ( + WorkflowRunService as WorkflowRunService, + ) + from stripe.v2.core._workflow_service import ( + WorkflowService as WorkflowService, + ) # name -> (import_target, is_submodule) _import_map = { @@ -98,6 +106,10 @@ ), "EventService": ("stripe.v2.core._event_service", False), "VaultService": ("stripe.v2.core._vault_service", False), + "Workflow": ("stripe.v2.core._workflow", False), + "WorkflowRun": ("stripe.v2.core._workflow_run", False), + "WorkflowRunService": ("stripe.v2.core._workflow_run_service", False), + "WorkflowService": ("stripe.v2.core._workflow_service", False), } if not TYPE_CHECKING: diff --git a/stripe/v2/core/_workflow.py b/stripe/v2/core/_workflow.py new file mode 100644 index 000000000..6655371ea --- /dev/null +++ b/stripe/v2/core/_workflow.py @@ -0,0 +1,71 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from typing import ClassVar, List, Optional +from typing_extensions import Literal + + +class Workflow(StripeObject): + """ + A Stripe Workflow is a sequence of actions, like Stripe API calls, that are taken in response to an initiating trigger. + A trigger can be a Stripe API event, or a manual invocation. + """ + + OBJECT_NAME: ClassVar[Literal["v2.core.workflow"]] = "v2.core.workflow" + + class Trigger(StripeObject): + class EventTrigger(StripeObject): + type: str + """ + The Stripe event type that will trigger this Workflow. + """ + + class Manual(StripeObject): + raw_schema: str + """ + An unprocessed version of the trigger's input parameter schema. + """ + + event_trigger: Optional[EventTrigger] + """ + The Workflow can be launched when Stripe emits a certain event. + """ + manual: Optional[Manual] + """ + The Workflow can be launched through a direct call, using either the Dashboard or the Stripe API. + """ + type: Literal["event_trigger", "manual"] + """ + Which type of trigger this is. + """ + _inner_class_types = {"event_trigger": EventTrigger, "manual": Manual} + + created: str + """ + When the Workflow was created. + """ + description: str + """ + Workflow description. + """ + id: str + """ + The unique ID of the Workflow. + """ + livemode: bool + """ + Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + """ + object: Literal["v2.core.workflow"] + """ + String representing the object's type. Objects of the same type share the same value of the object field. + """ + status: Literal["active", "archived", "draft", "inactive"] + """ + Whether this Workflow is active, inactive, or in some other state. Only active Workflows may be invoked. + """ + triggers: List[Trigger] + """ + Under what conditions will this Workflow launch. + """ + _inner_class_types = {"triggers": Trigger} diff --git a/stripe/v2/core/_workflow_run.py b/stripe/v2/core/_workflow_run.py new file mode 100644 index 000000000..fada61e15 --- /dev/null +++ b/stripe/v2/core/_workflow_run.py @@ -0,0 +1,148 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject, UntypedStripeObject +from typing import Any, ClassVar, Optional +from typing_extensions import Literal + + +class WorkflowRun(StripeObject): + """ + An execution of a Workflow in response to a triggering event. + """ + + OBJECT_NAME: ClassVar[Literal["v2.core.workflow_run"]] = ( + "v2.core.workflow_run" + ) + + class StatusDetails(StripeObject): + class Failed(StripeObject): + action: Optional[str] + """ + If this Workflow Run failed during the processing of an action step, the step identifier. + """ + error_code: str + """ + Category of the failure result. + """ + error_message: Optional[str] + """ + Optional details about the failure result. + """ + + class Started(StripeObject): + pass + + class Succeeded(StripeObject): + status_code: str + """ + Category of the success result. + """ + status_message: Optional[str] + """ + Optional details about the success result. + """ + + failed: Optional[Failed] + """ + Details about the Workflow Run's transition into the FAILED state. + """ + started: Optional[Started] + """ + Details about the Workflow Run's transition in to the STARTED state. + """ + succeeded: Optional[Succeeded] + """ + Details about the Workflow Run's transition into the SUCCEEDED state. + """ + _inner_class_types = { + "failed": Failed, + "started": Started, + "succeeded": Succeeded, + } + + class StatusTransitions(StripeObject): + failed_at: Optional[str] + """ + When the Workflow Run failed. + """ + started_at: Optional[str] + """ + When the Workflow Run was started. + """ + succeeded_at: Optional[str] + """ + When the Workflow Run succeeded. + """ + + class Trigger(StripeObject): + class EventTrigger(StripeObject): + id: str + """ + The Stripe event that triggered this Run. + """ + type: str + """ + The Stripe event type triggered this Run. + """ + + class Manual(StripeObject): + input_parameters: UntypedStripeObject[Any] + """ + The input parameters used when launching the Run. + """ + + event_trigger: Optional[EventTrigger] + """ + The Workflow Run was launched when Stripe emitted a certain event. + """ + manual: Optional[Manual] + """ + The Workflow Run was launched through a direct call, using either the Dashboard or the Stripe API. + """ + type: Literal["event_trigger", "manual"] + """ + Which type of trigger this is. + """ + _inner_class_types = {"event_trigger": EventTrigger, "manual": Manual} + + created: str + """ + When the Workflow Run was created. + """ + id: str + """ + The unique ID of the Workflow Run. + """ + livemode: bool + """ + Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + """ + object: Literal["v2.core.workflow_run"] + """ + String representing the object's type. Objects of the same type share the same value of the object field. + """ + status: Literal["failed", "started", "succeeded"] + """ + The current Workflow Run execution status. + """ + status_details: Optional[StatusDetails] + """ + Details about the Workflow Run's status transitions. + """ + status_transitions: StatusTransitions + """ + Summary information about the Workflow Run's status transitions. + """ + trigger: Trigger + """ + A record of the trigger that launched this Workflow Run. + """ + workflow: str + """ + The Workflow this Run belongs to. + """ + _inner_class_types = { + "status_details": StatusDetails, + "status_transitions": StatusTransitions, + "trigger": Trigger, + } diff --git a/stripe/v2/core/_workflow_run_service.py b/stripe/v2/core/_workflow_run_service.py new file mode 100644 index 000000000..4d3891b34 --- /dev/null +++ b/stripe/v2/core/_workflow_run_service.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._request_options import RequestOptions + from stripe.params.v2.core._workflow_run_list_params import ( + WorkflowRunListParams, + ) + from stripe.params.v2.core._workflow_run_retrieve_params import ( + WorkflowRunRetrieveParams, + ) + from stripe.v2._list_object import ListObject + from stripe.v2.core._workflow_run import WorkflowRun + + +class WorkflowRunService(StripeService): + def list( + self, + params: "WorkflowRunListParams", + options: Optional["RequestOptions"] = None, + ) -> "ListObject[WorkflowRun]": + """ + List all Workflow Runs. + """ + return cast( + "ListObject[WorkflowRun]", + self._request( + "get", + "/v2/core/workflow_runs", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: "WorkflowRunListParams", + options: Optional["RequestOptions"] = None, + ) -> "ListObject[WorkflowRun]": + """ + List all Workflow Runs. + """ + return cast( + "ListObject[WorkflowRun]", + await self._request_async( + "get", + "/v2/core/workflow_runs", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + id: str, + params: Optional["WorkflowRunRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "WorkflowRun": + """ + Retrieves the details of a Workflow Run by ID. + """ + return cast( + "WorkflowRun", + self._request( + "get", + "/v2/core/workflow_runs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + params: Optional["WorkflowRunRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "WorkflowRun": + """ + Retrieves the details of a Workflow Run by ID. + """ + return cast( + "WorkflowRun", + await self._request_async( + "get", + "/v2/core/workflow_runs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/v2/core/_workflow_service.py b/stripe/v2/core/_workflow_service.py new file mode 100644 index 000000000..9b50fa06c --- /dev/null +++ b/stripe/v2/core/_workflow_service.py @@ -0,0 +1,139 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._request_options import RequestOptions + from stripe.params.v2.core._workflow_invoke_params import ( + WorkflowInvokeParams, + ) + from stripe.params.v2.core._workflow_list_params import WorkflowListParams + from stripe.params.v2.core._workflow_retrieve_params import ( + WorkflowRetrieveParams, + ) + from stripe.v2._list_object import ListObject + from stripe.v2.core._workflow import Workflow + from stripe.v2.core._workflow_run import WorkflowRun + + +class WorkflowService(StripeService): + def list( + self, + params: "WorkflowListParams", + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Workflow]": + """ + List all Workflows. + """ + return cast( + "ListObject[Workflow]", + self._request( + "get", + "/v2/core/workflows", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: "WorkflowListParams", + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Workflow]": + """ + List all Workflows. + """ + return cast( + "ListObject[Workflow]", + await self._request_async( + "get", + "/v2/core/workflows", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + id: str, + params: Optional["WorkflowRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Workflow": + """ + Retrieves the details of a Workflow by ID. + """ + return cast( + "Workflow", + self._request( + "get", + "/v2/core/workflows/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + params: Optional["WorkflowRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Workflow": + """ + Retrieves the details of a Workflow by ID. + """ + return cast( + "Workflow", + await self._request_async( + "get", + "/v2/core/workflows/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + def invoke( + self, + id: str, + params: "WorkflowInvokeParams", + options: Optional["RequestOptions"] = None, + ) -> "WorkflowRun": + """ + Invokes an on-demand Workflow with parameters, to launch a new Workflow Run. + """ + return cast( + "WorkflowRun", + self._request( + "post", + "/v2/core/workflows/{id}/invoke".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def invoke_async( + self, + id: str, + params: "WorkflowInvokeParams", + options: Optional["RequestOptions"] = None, + ) -> "WorkflowRun": + """ + Invokes an on-demand Workflow with parameters, to launch a new Workflow Run. + """ + return cast( + "WorkflowRun", + await self._request_async( + "post", + "/v2/core/workflows/{id}/invoke".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 484ca1bc2..b31845daf 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -46910,6 +46910,130 @@ def test_v2_core_vault_us_bank_account_post_5_service( is_json=True, ) + def test_v2_core_workflow_get_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/core/workflows", + "status[0]=draft", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.workflows.list({"status": ["draft"]}) + http_client_mock.assert_requested( + "get", + path="/v2/core/workflows", + query_string="status[0]=draft", + api_base="https://api.stripe.com", + ) + + def test_v2_core_workflow_get_2_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/core/workflows/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.workflows.retrieve("id_123") + http_client_mock.assert_requested( + "get", + path="/v2/core/workflows/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + + def test_v2_core_workflow_post_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "post", + "/v2/core/workflows/id_123/invoke", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.workflows.invoke( + "id_123", + { + "input_parameters": { + "int_key": 123, + "string_key": "value", + "boolean_key": True, + "object_key": { + "object_int_key": 123, + "object_string_key": "value", + "object_boolean_key": True, + }, + "array_key": [1, 2, 3], + }, + }, + ) + http_client_mock.assert_requested( + "post", + path="/v2/core/workflows/id_123/invoke", + query_string="", + api_base="https://api.stripe.com", + post_data='{"input_parameters":{"int_key":123,"string_key":"value","boolean_key":true,"object_key":{"object_int_key":123,"object_string_key":"value","object_boolean_key":true},"array_key":[1,2,3]}}', + is_json=True, + ) + + def test_v2_core_workflow_run_get_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/core/workflow_runs", + "status[0]=failed&workflow[0]=workflow", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.workflow_runs.list( + { + "status": ["failed"], + "workflow": ["workflow"], + } + ) + http_client_mock.assert_requested( + "get", + path="/v2/core/workflow_runs", + query_string="status[0]=failed&workflow[0]=workflow", + api_base="https://api.stripe.com", + ) + + def test_v2_core_workflow_run_get_2_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/core/workflow_runs/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.workflow_runs.retrieve("id_123") + http_client_mock.assert_requested( + "get", + path="/v2/core/workflow_runs/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + def test_v2_data_reporting_query_run_post_service( self, http_client_mock: HTTPClientMock ) -> None: From f09d029291e565a33a319c06936682ee77f73b7e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 22:14:22 +0000 Subject: [PATCH 11/12] Update generated code for v2240 and --- OPENAPI_VERSION | 2 +- stripe/checkout/_session.py | 9 +++++++++ stripe/params/checkout/__init__.py | 10 ++++++++++ .../params/checkout/_session_create_params.py | 17 +++++++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6d40f8eb1..ccd8e578d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2239 \ No newline at end of file +v2240 \ No newline at end of file diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 101c540b3..88d2e9a57 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1401,6 +1401,13 @@ class Billie(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Bizum(StripeObject): + class MandateOptions(StripeObject): + pass + + mandate_options: Optional[MandateOptions] + _inner_class_types = {"mandate_options": MandateOptions} + class Boleto(StripeObject): expires_after_days: int """ @@ -2179,6 +2186,7 @@ class ManualEntry(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] boleto: Optional[Boleto] card: Optional[Card] cashapp: Optional[Cashapp] @@ -2223,6 +2231,7 @@ class ManualEntry(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "boleto": Boleto, "card": Card, "cashapp": Cashapp, diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index f09eee00b..49836e87a 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -76,6 +76,8 @@ SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsBancontact as SessionCreateParamsPaymentMethodOptionsBancontact, SessionCreateParamsPaymentMethodOptionsBillie as SessionCreateParamsPaymentMethodOptionsBillie, + SessionCreateParamsPaymentMethodOptionsBizum as SessionCreateParamsPaymentMethodOptionsBizum, + SessionCreateParamsPaymentMethodOptionsBizumMandateOptions as SessionCreateParamsPaymentMethodOptionsBizumMandateOptions, SessionCreateParamsPaymentMethodOptionsBoleto as SessionCreateParamsPaymentMethodOptionsBoleto, SessionCreateParamsPaymentMethodOptionsCard as SessionCreateParamsPaymentMethodOptionsCard, SessionCreateParamsPaymentMethodOptionsCardInstallments as SessionCreateParamsPaymentMethodOptionsCardInstallments, @@ -506,6 +508,14 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params.checkout._session_create_params", + False, + ), + "SessionCreateParamsPaymentMethodOptionsBizumMandateOptions": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsBoleto": ( "stripe.params.checkout._session_create_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index e13835cf4..0723f66ed 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -1480,6 +1480,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the WeChat Pay payment method options. """ + bizum: NotRequired["SessionCreateParamsPaymentMethodOptionsBizum"] + """ + contains details about the Bizum payment method options. + """ class SessionCreateParamsPaymentMethodOptionsAcssDebit(TypedDict): @@ -2592,6 +2596,19 @@ class SessionCreateParamsPaymentMethodOptionsWechatPay(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsBizum(TypedDict): + mandate_options: NotRequired[ + "SessionCreateParamsPaymentMethodOptionsBizumMandateOptions" + ] + """ + Additional fields for mandate creation. + """ + + +class SessionCreateParamsPaymentMethodOptionsBizumMandateOptions(TypedDict): + pass + + class SessionCreateParamsPermissions(TypedDict): update: NotRequired["SessionCreateParamsPermissionsUpdate"] """ From 0c60f75c06ac2bdabc6e1f782249cc4e8d724647 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 23:36:20 +0000 Subject: [PATCH 12/12] Update generated code for v2240 and --- CODEGEN_VERSION | 2 +- ..._account_create_external_account_params.py | 4 +- stripe/params/_account_create_params.py | 6 +- ..._account_external_account_create_params.py | 4 +- stripe/params/_account_update_params.py | 6 +- .../params/_balance_settings_modify_params.py | 12 +- .../params/_balance_settings_update_params.py | 12 +- stripe/params/_charge_capture_params.py | 578 ++++----- stripe/params/_charge_modify_params.py | 578 ++++----- stripe/params/_charge_update_params.py | 578 ++++----- .../_confirmation_token_create_params.py | 8 +- .../params/_external_account_create_params.py | 4 +- stripe/params/_invoice_create_params.py | 70 +- stripe/params/_invoice_modify_params.py | 70 +- stripe/params/_invoice_update_params.py | 70 +- .../params/_payment_intent_capture_params.py | 694 +++++----- .../params/_payment_intent_confirm_params.py | 1124 ++++++++--------- .../params/_payment_intent_create_params.py | 1124 ++++++++--------- ...t_intent_decrement_authorization_params.py | 8 +- ...t_intent_increment_authorization_params.py | 8 +- .../params/_payment_intent_modify_params.py | 1124 ++++++++--------- .../params/_payment_intent_update_params.py | 1124 ++++++++--------- stripe/params/_payment_link_create_params.py | 46 +- stripe/params/_setup_intent_confirm_params.py | 8 +- stripe/params/_setup_intent_create_params.py | 8 +- stripe/params/_setup_intent_modify_params.py | 8 +- stripe/params/_setup_intent_update_params.py | 8 +- stripe/params/_subscription_create_params.py | 110 +- stripe/params/_subscription_modify_params.py | 110 +- stripe/params/_subscription_update_params.py | 110 +- .../params/checkout/_session_create_params.py | 76 +- .../_requested_session_create_params.py | 26 +- .../_requested_session_modify_params.py | 12 +- .../_requested_session_update_params.py | 12 +- .../_verification_session_create_params.py | 8 +- .../_verification_session_modify_params.py | 8 +- .../_verification_session_update_params.py | 8 +- .../_payment_evaluation_create_params.py | 8 +- .../_confirmation_token_create_params.py | 8 +- .../v2/billing/_cadence_create_params.py | 16 +- .../v2/billing/_intent_create_params.py | 162 +-- .../billing/_service_action_create_params.py | 52 +- .../billing/_service_action_update_params.py | 8 +- .../pricing_plans/_component_create_params.py | 16 +- .../v2/core/_account_link_create_params.py | 18 +- .../core/_event_destination_create_params.py | 20 +- .../_outbound_payment_create_params.py | 8 +- .../_outbound_payment_quote_create_params.py | 8 +- .../_outbound_setup_intent_create_params.py | 8 +- .../_outbound_setup_intent_update_params.py | 8 +- .../_off_session_payment_create_params.py | 8 +- .../v2/tax/_manual_rule_create_params.py | 8 +- .../v2/tax/_manual_rule_update_params.py | 8 +- tests/test_generated_examples.py | 44 +- 54 files changed, 4087 insertions(+), 4087 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 7293aa2e7..10cc84107 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -29bc7cbbdd2880289828ddf29e7ab94454a3e311 \ No newline at end of file +4cd98860940da75ae8dfe7384cea405859800e9c \ No newline at end of file diff --git a/stripe/params/_account_create_external_account_params.py b/stripe/params/_account_create_external_account_params.py index 6cf38179c..f6567a2b2 100644 --- a/stripe/params/_account_create_external_account_params.py +++ b/stripe/params/_account_create_external_account_params.py @@ -42,12 +42,12 @@ class AccountCreateExternalAccountParamsCard(TypedDict): cvc: NotRequired[str] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + name: NotRequired[str] + number: str class AccountCreateExternalAccountParamsBankAccount(TypedDict): diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 0e5c8cefd..c5401fd51 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -1688,15 +1688,15 @@ class AccountCreateParamsCard(TypedDict): address_zip: NotRequired[str] currency: NotRequired[str] cvc: NotRequired[str] + default_for_currency: NotRequired[bool] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ - default_for_currency: NotRequired[bool] + name: NotRequired[str] + number: str class AccountCreateParamsCardToken(TypedDict): diff --git a/stripe/params/_account_external_account_create_params.py b/stripe/params/_account_external_account_create_params.py index b4ccf6654..480e8a222 100644 --- a/stripe/params/_account_external_account_create_params.py +++ b/stripe/params/_account_external_account_create_params.py @@ -41,12 +41,12 @@ class AccountExternalAccountCreateParamsCard(TypedDict): cvc: NotRequired[str] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + name: NotRequired[str] + number: str class AccountExternalAccountCreateParamsBankAccount(TypedDict): diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index 6ada137b6..47b3af1ed 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -1600,15 +1600,15 @@ class AccountUpdateParamsCard(TypedDict): address_zip: NotRequired[str] currency: NotRequired[str] cvc: NotRequired[str] + default_for_currency: NotRequired[bool] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ - default_for_currency: NotRequired[bool] + name: NotRequired[str] + number: str class AccountUpdateParamsCardToken(TypedDict): diff --git a/stripe/params/_balance_settings_modify_params.py b/stripe/params/_balance_settings_modify_params.py index 5c77688c3..3aa6e9582 100644 --- a/stripe/params/_balance_settings_modify_params.py +++ b/stripe/params/_balance_settings_modify_params.py @@ -26,18 +26,18 @@ class BalanceSettingsModifyParamsPayments(TypedDict): """ Settings specific to the account's payouts. """ - settlement_timing: NotRequired[ - "BalanceSettingsModifyParamsPaymentsSettlementTiming" - ] - """ - Settings related to the account's balance settlement timing. - """ settlement_currencies: NotRequired[ "Dict[str, Literal['disabled', 'enabled']]|UntypedStripeObject[Literal['disabled', 'enabled']]" ] """ A hash of settlement currencies to update. Each key is an ISO 4217 currency code, and the value is either `enabled` or `disabled`. """ + settlement_timing: NotRequired[ + "BalanceSettingsModifyParamsPaymentsSettlementTiming" + ] + """ + Settings related to the account's balance settlement timing. + """ class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict): diff --git a/stripe/params/_balance_settings_update_params.py b/stripe/params/_balance_settings_update_params.py index 26d2694ac..99c14d5bb 100644 --- a/stripe/params/_balance_settings_update_params.py +++ b/stripe/params/_balance_settings_update_params.py @@ -25,18 +25,18 @@ class BalanceSettingsUpdateParamsPayments(TypedDict): """ Settings specific to the account's payouts. """ - settlement_timing: NotRequired[ - "BalanceSettingsUpdateParamsPaymentsSettlementTiming" - ] - """ - Settings related to the account's balance settlement timing. - """ settlement_currencies: NotRequired[ "Dict[str, Literal['disabled', 'enabled']]|UntypedStripeObject[Literal['disabled', 'enabled']]" ] """ A hash of settlement currencies to update. Each key is an ISO 4217 currency code, and the value is either `enabled` or `disabled`. """ + settlement_timing: NotRequired[ + "BalanceSettingsUpdateParamsPaymentsSettlementTiming" + ] + """ + Settings related to the account's balance settlement timing. + """ class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): diff --git a/stripe/params/_charge_capture_params.py b/stripe/params/_charge_capture_params.py index c54e6100a..b8b9953d5 100644 --- a/stripe/params/_charge_capture_params.py +++ b/stripe/params/_charge_capture_params.py @@ -71,6 +71,12 @@ class ChargeCaptureParamsPaymentDetails(TypedDict): """ Event details for this PaymentIntent """ + fleet_data: NotRequired[ + "Literal['']|List[ChargeCaptureParamsPaymentDetailsFleetDatum]" + ] + """ + Fleet data for this PaymentIntent. + """ flight: NotRequired["ChargeCaptureParamsPaymentDetailsFlight"] """ Flight reservation details for this PaymentIntent @@ -91,6 +97,12 @@ class ChargeCaptureParamsPaymentDetails(TypedDict): """ Lodging data for this PaymentIntent. """ + money_services: NotRequired[ + "Literal['']|ChargeCaptureParamsPaymentDetailsMoneyServices" + ] + """ + Money services details for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -101,18 +113,6 @@ class ChargeCaptureParamsPaymentDetails(TypedDict): """ Subscription details for this PaymentIntent """ - fleet_data: NotRequired[ - "Literal['']|List[ChargeCaptureParamsPaymentDetailsFleetDatum]" - ] - """ - Fleet data for this PaymentIntent. - """ - money_services: NotRequired[ - "Literal['']|ChargeCaptureParamsPaymentDetailsMoneyServices" - ] - """ - Money services details for this PaymentIntent. - """ class ChargeCaptureParamsPaymentDetailsCarRental(TypedDict): @@ -865,6 +865,234 @@ class ChargeCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient( """ +class ChargeCaptureParamsPaymentDetailsFleetDatum(TypedDict): + primary_fuel_fields: NotRequired[ + "ChargeCaptureParamsPaymentDetailsFleetDatumPrimaryFuelFields" + ] + """ + Primary fuel fields for the transaction. + """ + station: NotRequired["ChargeCaptureParamsPaymentDetailsFleetDatumStation"] + """ + Station and acceptor location details. + """ + vat: NotRequired["ChargeCaptureParamsPaymentDetailsFleetDatumVat"] + """ + VAT and Invoice on Behalf (IOB) details. + """ + + +class ChargeCaptureParamsPaymentDetailsFleetDatumPrimaryFuelFields(TypedDict): + brand: NotRequired[ + Literal[ + "aafes", + "amerada_hess", + "amoco_canada", + "amoco_petroleum_products", + "arco_products", + "asda", + "ashland_oil", + "bfl", + "bp_mobil", + "bp_oil", + "burrnah_major", + "butler_arndale", + "canadian_tire", + "canadian_turbo", + "caseys_general_store", + "cenex", + "chevron_canada", + "chevron_usa", + "circle_k_stores", + "citgo_petroleum", + "clark_brands", + "conoco_canada", + "conoco_inc", + "crown_central_petroleum", + "diamond_shamrock_inc", + "discount_tire", + "domo_gas", + "elf", + "erickson_oil", + "esso", + "esso_canada", + "exxon", + "exxonmobil", + "family_express", + "fas_gas_oil", + "federated_coop_sonic", + "fina", + "fina_inc", + "fkg_oil", + "flare", + "flying_j_inc", + "gas_america", + "gate_petroleum", + "getty_petroleum", + "giant_eagle", + "grow_mark_inc", + "gulf", + "gulf_canada", + "gulf_chevron", + "handy_way_food", + "heron", + "holiday_stores", + "home_depot", + "husky", + "hyvees", + "irving", + "irving_oil", + "j_sainsbury", + "jet_conoco", + "krogers", + "kuwait", + "kwik_trip_inc", + "lassus", + "loves_country_stores", + "mapco_express_inc", + "marathon_oil", + "martin_bailey_inc_dba_hucks", + "maxol", + "meineke", + "mfa", + "mohawk", + "mr_gas", + "murco", + "murphy_oil_canada", + "murphy_oil_usa_inc", + "nexcom", + "nordstrom_oil", + "olco", + "pdq_store", + "pennzoil_products_inc", + "petro", + "petro_canada", + "petro_t", + "phillips", + "pilot", + "pioneer", + "pure_oil", + "quaker_state", + "quarles_oil", + "quiktrip", + "racetrac_petroleum_inc", + "raceway_petroleum", + "repsol", + "rudy", + "safeway", + "seven_eleven", + "sheetz", + "shell", + "shell_canada", + "shell_oil", + "sinclair_oil", + "southland_oil", + "spar", + "speedway", + "sun_company_inc", + "suncor_sunoco_canada", + "tempo", + "tesco", + "tesoro_alaska", + "texaco", + "the_pantry_inc", + "thornton_oil", + "tosco", + "total", + "travel_centers_of_america", + "uk", + "ultramar_canada", + "unbranded_or_unassigned", + "unbranded_unassigned", + "union_76", + "united_dairy_farmer", + "united_refining_kwikfill", + "us_oil", + "usa_petroleum", + "valvoline", + "vg", + "w_morrison", + "warren_equities", + "wawa", + "western_energetix", + "wilco", + "zions", + ] + ] + """ + The fuel brand. + """ + + +class ChargeCaptureParamsPaymentDetailsFleetDatumStation(TypedDict): + additional_contact_info: NotRequired[str] + """ + Additional contact information for the station. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the station. + """ + partner_id_code: NotRequired[str] + """ + The partner ID code of the station. + """ + phone_number: NotRequired[str] + """ + The phone number of the station. + """ + service_location: NotRequired[ + "ChargeCaptureParamsPaymentDetailsFleetDatumStationServiceLocation" + ] + """ + The physical location of the station. + """ + url: NotRequired[str] + """ + The URL of the station. + """ + + +class ChargeCaptureParamsPaymentDetailsFleetDatumStationServiceLocation( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + +class ChargeCaptureParamsPaymentDetailsFleetDatumVat(TypedDict): + iob_indicator: Literal[ + "issuer_to_iob", + "issuer_to_iob_and_incremental_certification", + "merchant_does_not_agree_to_iob", + ] + """ + Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + """ + + class ChargeCaptureParamsPaymentDetailsFlight(TypedDict): affiliate: NotRequired["ChargeCaptureParamsPaymentDetailsFlightAffiliate"] """ @@ -1735,283 +1963,6 @@ class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict): """ -class ChargeCaptureParamsPaymentDetailsSubscription(TypedDict): - affiliate: NotRequired[ - "ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate" - ] - """ - Affiliate details for this purchase. - """ - auto_renewal: NotRequired[bool] - """ - Info whether the subscription will be auto renewed upon expiry. - """ - billing_interval: NotRequired[ - "ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval" - ] - """ - Subscription billing details for this purchase. - """ - ends_at: NotRequired[int] - """ - Subscription end time. Measured in seconds since the Unix epoch. - """ - name: str - """ - Name of the product on subscription. e.g. Apple Music Subscription - """ - starts_at: NotRequired[int] - """ - Subscription start time. Measured in seconds since the Unix epoch. - """ - - -class ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate(TypedDict): - name: str - """ - The name of the affiliate that originated the purchase. - """ - - -class ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval(TypedDict): - count: int - """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. - """ - interval: Literal["day", "month", "week", "year"] - """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. - """ - - -class ChargeCaptureParamsPaymentDetailsFleetDatum(TypedDict): - primary_fuel_fields: NotRequired[ - "ChargeCaptureParamsPaymentDetailsFleetDatumPrimaryFuelFields" - ] - """ - Primary fuel fields for the transaction. - """ - station: NotRequired["ChargeCaptureParamsPaymentDetailsFleetDatumStation"] - """ - Station and acceptor location details. - """ - vat: NotRequired["ChargeCaptureParamsPaymentDetailsFleetDatumVat"] - """ - VAT and Invoice on Behalf (IOB) details. - """ - - -class ChargeCaptureParamsPaymentDetailsFleetDatumPrimaryFuelFields(TypedDict): - brand: NotRequired[ - Literal[ - "aafes", - "amerada_hess", - "amoco_canada", - "amoco_petroleum_products", - "arco_products", - "asda", - "ashland_oil", - "bfl", - "bp_mobil", - "bp_oil", - "burrnah_major", - "butler_arndale", - "canadian_tire", - "canadian_turbo", - "caseys_general_store", - "cenex", - "chevron_canada", - "chevron_usa", - "circle_k_stores", - "citgo_petroleum", - "clark_brands", - "conoco_canada", - "conoco_inc", - "crown_central_petroleum", - "diamond_shamrock_inc", - "discount_tire", - "domo_gas", - "elf", - "erickson_oil", - "esso", - "esso_canada", - "exxon", - "exxonmobil", - "family_express", - "fas_gas_oil", - "federated_coop_sonic", - "fina", - "fina_inc", - "fkg_oil", - "flare", - "flying_j_inc", - "gas_america", - "gate_petroleum", - "getty_petroleum", - "giant_eagle", - "grow_mark_inc", - "gulf", - "gulf_canada", - "gulf_chevron", - "handy_way_food", - "heron", - "holiday_stores", - "home_depot", - "husky", - "hyvees", - "irving", - "irving_oil", - "j_sainsbury", - "jet_conoco", - "krogers", - "kuwait", - "kwik_trip_inc", - "lassus", - "loves_country_stores", - "mapco_express_inc", - "marathon_oil", - "martin_bailey_inc_dba_hucks", - "maxol", - "meineke", - "mfa", - "mohawk", - "mr_gas", - "murco", - "murphy_oil_canada", - "murphy_oil_usa_inc", - "nexcom", - "nordstrom_oil", - "olco", - "pdq_store", - "pennzoil_products_inc", - "petro", - "petro_canada", - "petro_t", - "phillips", - "pilot", - "pioneer", - "pure_oil", - "quaker_state", - "quarles_oil", - "quiktrip", - "racetrac_petroleum_inc", - "raceway_petroleum", - "repsol", - "rudy", - "safeway", - "seven_eleven", - "sheetz", - "shell", - "shell_canada", - "shell_oil", - "sinclair_oil", - "southland_oil", - "spar", - "speedway", - "sun_company_inc", - "suncor_sunoco_canada", - "tempo", - "tesco", - "tesoro_alaska", - "texaco", - "the_pantry_inc", - "thornton_oil", - "tosco", - "total", - "travel_centers_of_america", - "uk", - "ultramar_canada", - "unbranded_or_unassigned", - "unbranded_unassigned", - "union_76", - "united_dairy_farmer", - "united_refining_kwikfill", - "us_oil", - "usa_petroleum", - "valvoline", - "vg", - "w_morrison", - "warren_equities", - "wawa", - "western_energetix", - "wilco", - "zions", - ] - ] - """ - The fuel brand. - """ - - -class ChargeCaptureParamsPaymentDetailsFleetDatumStation(TypedDict): - additional_contact_info: NotRequired[str] - """ - Additional contact information for the station. - """ - customer_service_phone_number: NotRequired[str] - """ - The customer service phone number of the station. - """ - partner_id_code: NotRequired[str] - """ - The partner ID code of the station. - """ - phone_number: NotRequired[str] - """ - The phone number of the station. - """ - service_location: NotRequired[ - "ChargeCaptureParamsPaymentDetailsFleetDatumStationServiceLocation" - ] - """ - The physical location of the station. - """ - url: NotRequired[str] - """ - The URL of the station. - """ - - -class ChargeCaptureParamsPaymentDetailsFleetDatumStationServiceLocation( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: str - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] - """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - """ - - -class ChargeCaptureParamsPaymentDetailsFleetDatumVat(TypedDict): - iob_indicator: Literal[ - "issuer_to_iob", - "issuer_to_iob_and_incremental_certification", - "merchant_does_not_agree_to_iob", - ] - """ - Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. - """ - - class ChargeCaptureParamsPaymentDetailsMoneyServices(TypedDict): account_funding: NotRequired[ "Literal['']|ChargeCaptureParamsPaymentDetailsMoneyServicesAccountFunding" @@ -2198,6 +2149,55 @@ class ChargeCaptureParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsD """ +class ChargeCaptureParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate" + ] + """ + Affiliate details for this purchase. + """ + auto_renewal: NotRequired[bool] + """ + Info whether the subscription will be auto renewed upon expiry. + """ + billing_interval: NotRequired[ + "ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval" + ] + """ + Subscription billing details for this purchase. + """ + ends_at: NotRequired[int] + """ + Subscription end time. Measured in seconds since the Unix epoch. + """ + name: str + """ + Name of the product on subscription. e.g. Apple Music Subscription + """ + starts_at: NotRequired[int] + """ + Subscription start time. Measured in seconds since the Unix epoch. + """ + + +class ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval(TypedDict): + count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + + class ChargeCaptureParamsTransferData(TypedDict): amount: NotRequired[int] """ diff --git a/stripe/params/_charge_modify_params.py b/stripe/params/_charge_modify_params.py index def7976c6..779a7f6db 100644 --- a/stripe/params/_charge_modify_params.py +++ b/stripe/params/_charge_modify_params.py @@ -75,6 +75,12 @@ class ChargeModifyParamsPaymentDetails(TypedDict): """ Event details for this PaymentIntent """ + fleet_data: NotRequired[ + "Literal['']|List[ChargeModifyParamsPaymentDetailsFleetDatum]" + ] + """ + Fleet data for this PaymentIntent. + """ flight: NotRequired["ChargeModifyParamsPaymentDetailsFlight"] """ Flight reservation details for this PaymentIntent @@ -95,6 +101,12 @@ class ChargeModifyParamsPaymentDetails(TypedDict): """ Lodging data for this PaymentIntent. """ + money_services: NotRequired[ + "Literal['']|ChargeModifyParamsPaymentDetailsMoneyServices" + ] + """ + Money services details for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -105,18 +117,6 @@ class ChargeModifyParamsPaymentDetails(TypedDict): """ Subscription details for this PaymentIntent """ - fleet_data: NotRequired[ - "Literal['']|List[ChargeModifyParamsPaymentDetailsFleetDatum]" - ] - """ - Fleet data for this PaymentIntent. - """ - money_services: NotRequired[ - "Literal['']|ChargeModifyParamsPaymentDetailsMoneyServices" - ] - """ - Money services details for this PaymentIntent. - """ class ChargeModifyParamsPaymentDetailsCarRental(TypedDict): @@ -865,6 +865,234 @@ class ChargeModifyParamsPaymentDetailsEventDetailsDeliveryRecipient(TypedDict): """ +class ChargeModifyParamsPaymentDetailsFleetDatum(TypedDict): + primary_fuel_fields: NotRequired[ + "ChargeModifyParamsPaymentDetailsFleetDatumPrimaryFuelFields" + ] + """ + Primary fuel fields for the transaction. + """ + station: NotRequired["ChargeModifyParamsPaymentDetailsFleetDatumStation"] + """ + Station and acceptor location details. + """ + vat: NotRequired["ChargeModifyParamsPaymentDetailsFleetDatumVat"] + """ + VAT and Invoice on Behalf (IOB) details. + """ + + +class ChargeModifyParamsPaymentDetailsFleetDatumPrimaryFuelFields(TypedDict): + brand: NotRequired[ + Literal[ + "aafes", + "amerada_hess", + "amoco_canada", + "amoco_petroleum_products", + "arco_products", + "asda", + "ashland_oil", + "bfl", + "bp_mobil", + "bp_oil", + "burrnah_major", + "butler_arndale", + "canadian_tire", + "canadian_turbo", + "caseys_general_store", + "cenex", + "chevron_canada", + "chevron_usa", + "circle_k_stores", + "citgo_petroleum", + "clark_brands", + "conoco_canada", + "conoco_inc", + "crown_central_petroleum", + "diamond_shamrock_inc", + "discount_tire", + "domo_gas", + "elf", + "erickson_oil", + "esso", + "esso_canada", + "exxon", + "exxonmobil", + "family_express", + "fas_gas_oil", + "federated_coop_sonic", + "fina", + "fina_inc", + "fkg_oil", + "flare", + "flying_j_inc", + "gas_america", + "gate_petroleum", + "getty_petroleum", + "giant_eagle", + "grow_mark_inc", + "gulf", + "gulf_canada", + "gulf_chevron", + "handy_way_food", + "heron", + "holiday_stores", + "home_depot", + "husky", + "hyvees", + "irving", + "irving_oil", + "j_sainsbury", + "jet_conoco", + "krogers", + "kuwait", + "kwik_trip_inc", + "lassus", + "loves_country_stores", + "mapco_express_inc", + "marathon_oil", + "martin_bailey_inc_dba_hucks", + "maxol", + "meineke", + "mfa", + "mohawk", + "mr_gas", + "murco", + "murphy_oil_canada", + "murphy_oil_usa_inc", + "nexcom", + "nordstrom_oil", + "olco", + "pdq_store", + "pennzoil_products_inc", + "petro", + "petro_canada", + "petro_t", + "phillips", + "pilot", + "pioneer", + "pure_oil", + "quaker_state", + "quarles_oil", + "quiktrip", + "racetrac_petroleum_inc", + "raceway_petroleum", + "repsol", + "rudy", + "safeway", + "seven_eleven", + "sheetz", + "shell", + "shell_canada", + "shell_oil", + "sinclair_oil", + "southland_oil", + "spar", + "speedway", + "sun_company_inc", + "suncor_sunoco_canada", + "tempo", + "tesco", + "tesoro_alaska", + "texaco", + "the_pantry_inc", + "thornton_oil", + "tosco", + "total", + "travel_centers_of_america", + "uk", + "ultramar_canada", + "unbranded_or_unassigned", + "unbranded_unassigned", + "union_76", + "united_dairy_farmer", + "united_refining_kwikfill", + "us_oil", + "usa_petroleum", + "valvoline", + "vg", + "w_morrison", + "warren_equities", + "wawa", + "western_energetix", + "wilco", + "zions", + ] + ] + """ + The fuel brand. + """ + + +class ChargeModifyParamsPaymentDetailsFleetDatumStation(TypedDict): + additional_contact_info: NotRequired[str] + """ + Additional contact information for the station. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the station. + """ + partner_id_code: NotRequired[str] + """ + The partner ID code of the station. + """ + phone_number: NotRequired[str] + """ + The phone number of the station. + """ + service_location: NotRequired[ + "ChargeModifyParamsPaymentDetailsFleetDatumStationServiceLocation" + ] + """ + The physical location of the station. + """ + url: NotRequired[str] + """ + The URL of the station. + """ + + +class ChargeModifyParamsPaymentDetailsFleetDatumStationServiceLocation( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + +class ChargeModifyParamsPaymentDetailsFleetDatumVat(TypedDict): + iob_indicator: Literal[ + "issuer_to_iob", + "issuer_to_iob_and_incremental_certification", + "merchant_does_not_agree_to_iob", + ] + """ + Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + """ + + class ChargeModifyParamsPaymentDetailsFlight(TypedDict): affiliate: NotRequired["ChargeModifyParamsPaymentDetailsFlightAffiliate"] """ @@ -1735,283 +1963,6 @@ class ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict): """ -class ChargeModifyParamsPaymentDetailsSubscription(TypedDict): - affiliate: NotRequired[ - "ChargeModifyParamsPaymentDetailsSubscriptionAffiliate" - ] - """ - Affiliate details for this purchase. - """ - auto_renewal: NotRequired[bool] - """ - Info whether the subscription will be auto renewed upon expiry. - """ - billing_interval: NotRequired[ - "ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval" - ] - """ - Subscription billing details for this purchase. - """ - ends_at: NotRequired[int] - """ - Subscription end time. Measured in seconds since the Unix epoch. - """ - name: str - """ - Name of the product on subscription. e.g. Apple Music Subscription - """ - starts_at: NotRequired[int] - """ - Subscription start time. Measured in seconds since the Unix epoch. - """ - - -class ChargeModifyParamsPaymentDetailsSubscriptionAffiliate(TypedDict): - name: str - """ - The name of the affiliate that originated the purchase. - """ - - -class ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval(TypedDict): - count: int - """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. - """ - interval: Literal["day", "month", "week", "year"] - """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. - """ - - -class ChargeModifyParamsPaymentDetailsFleetDatum(TypedDict): - primary_fuel_fields: NotRequired[ - "ChargeModifyParamsPaymentDetailsFleetDatumPrimaryFuelFields" - ] - """ - Primary fuel fields for the transaction. - """ - station: NotRequired["ChargeModifyParamsPaymentDetailsFleetDatumStation"] - """ - Station and acceptor location details. - """ - vat: NotRequired["ChargeModifyParamsPaymentDetailsFleetDatumVat"] - """ - VAT and Invoice on Behalf (IOB) details. - """ - - -class ChargeModifyParamsPaymentDetailsFleetDatumPrimaryFuelFields(TypedDict): - brand: NotRequired[ - Literal[ - "aafes", - "amerada_hess", - "amoco_canada", - "amoco_petroleum_products", - "arco_products", - "asda", - "ashland_oil", - "bfl", - "bp_mobil", - "bp_oil", - "burrnah_major", - "butler_arndale", - "canadian_tire", - "canadian_turbo", - "caseys_general_store", - "cenex", - "chevron_canada", - "chevron_usa", - "circle_k_stores", - "citgo_petroleum", - "clark_brands", - "conoco_canada", - "conoco_inc", - "crown_central_petroleum", - "diamond_shamrock_inc", - "discount_tire", - "domo_gas", - "elf", - "erickson_oil", - "esso", - "esso_canada", - "exxon", - "exxonmobil", - "family_express", - "fas_gas_oil", - "federated_coop_sonic", - "fina", - "fina_inc", - "fkg_oil", - "flare", - "flying_j_inc", - "gas_america", - "gate_petroleum", - "getty_petroleum", - "giant_eagle", - "grow_mark_inc", - "gulf", - "gulf_canada", - "gulf_chevron", - "handy_way_food", - "heron", - "holiday_stores", - "home_depot", - "husky", - "hyvees", - "irving", - "irving_oil", - "j_sainsbury", - "jet_conoco", - "krogers", - "kuwait", - "kwik_trip_inc", - "lassus", - "loves_country_stores", - "mapco_express_inc", - "marathon_oil", - "martin_bailey_inc_dba_hucks", - "maxol", - "meineke", - "mfa", - "mohawk", - "mr_gas", - "murco", - "murphy_oil_canada", - "murphy_oil_usa_inc", - "nexcom", - "nordstrom_oil", - "olco", - "pdq_store", - "pennzoil_products_inc", - "petro", - "petro_canada", - "petro_t", - "phillips", - "pilot", - "pioneer", - "pure_oil", - "quaker_state", - "quarles_oil", - "quiktrip", - "racetrac_petroleum_inc", - "raceway_petroleum", - "repsol", - "rudy", - "safeway", - "seven_eleven", - "sheetz", - "shell", - "shell_canada", - "shell_oil", - "sinclair_oil", - "southland_oil", - "spar", - "speedway", - "sun_company_inc", - "suncor_sunoco_canada", - "tempo", - "tesco", - "tesoro_alaska", - "texaco", - "the_pantry_inc", - "thornton_oil", - "tosco", - "total", - "travel_centers_of_america", - "uk", - "ultramar_canada", - "unbranded_or_unassigned", - "unbranded_unassigned", - "union_76", - "united_dairy_farmer", - "united_refining_kwikfill", - "us_oil", - "usa_petroleum", - "valvoline", - "vg", - "w_morrison", - "warren_equities", - "wawa", - "western_energetix", - "wilco", - "zions", - ] - ] - """ - The fuel brand. - """ - - -class ChargeModifyParamsPaymentDetailsFleetDatumStation(TypedDict): - additional_contact_info: NotRequired[str] - """ - Additional contact information for the station. - """ - customer_service_phone_number: NotRequired[str] - """ - The customer service phone number of the station. - """ - partner_id_code: NotRequired[str] - """ - The partner ID code of the station. - """ - phone_number: NotRequired[str] - """ - The phone number of the station. - """ - service_location: NotRequired[ - "ChargeModifyParamsPaymentDetailsFleetDatumStationServiceLocation" - ] - """ - The physical location of the station. - """ - url: NotRequired[str] - """ - The URL of the station. - """ - - -class ChargeModifyParamsPaymentDetailsFleetDatumStationServiceLocation( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: str - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] - """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - """ - - -class ChargeModifyParamsPaymentDetailsFleetDatumVat(TypedDict): - iob_indicator: Literal[ - "issuer_to_iob", - "issuer_to_iob_and_incremental_certification", - "merchant_does_not_agree_to_iob", - ] - """ - Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. - """ - - class ChargeModifyParamsPaymentDetailsMoneyServices(TypedDict): account_funding: NotRequired[ "Literal['']|ChargeModifyParamsPaymentDetailsMoneyServicesAccountFunding" @@ -2198,6 +2149,55 @@ class ChargeModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDa """ +class ChargeModifyParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "ChargeModifyParamsPaymentDetailsSubscriptionAffiliate" + ] + """ + Affiliate details for this purchase. + """ + auto_renewal: NotRequired[bool] + """ + Info whether the subscription will be auto renewed upon expiry. + """ + billing_interval: NotRequired[ + "ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval" + ] + """ + Subscription billing details for this purchase. + """ + ends_at: NotRequired[int] + """ + Subscription end time. Measured in seconds since the Unix epoch. + """ + name: str + """ + Name of the product on subscription. e.g. Apple Music Subscription + """ + starts_at: NotRequired[int] + """ + Subscription start time. Measured in seconds since the Unix epoch. + """ + + +class ChargeModifyParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval(TypedDict): + count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + + class ChargeModifyParamsShipping(TypedDict): address: "ChargeModifyParamsShippingAddress" """ diff --git a/stripe/params/_charge_update_params.py b/stripe/params/_charge_update_params.py index 0437c62d9..ae7243afe 100644 --- a/stripe/params/_charge_update_params.py +++ b/stripe/params/_charge_update_params.py @@ -74,6 +74,12 @@ class ChargeUpdateParamsPaymentDetails(TypedDict): """ Event details for this PaymentIntent """ + fleet_data: NotRequired[ + "Literal['']|List[ChargeUpdateParamsPaymentDetailsFleetDatum]" + ] + """ + Fleet data for this PaymentIntent. + """ flight: NotRequired["ChargeUpdateParamsPaymentDetailsFlight"] """ Flight reservation details for this PaymentIntent @@ -94,6 +100,12 @@ class ChargeUpdateParamsPaymentDetails(TypedDict): """ Lodging data for this PaymentIntent. """ + money_services: NotRequired[ + "Literal['']|ChargeUpdateParamsPaymentDetailsMoneyServices" + ] + """ + Money services details for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -104,18 +116,6 @@ class ChargeUpdateParamsPaymentDetails(TypedDict): """ Subscription details for this PaymentIntent """ - fleet_data: NotRequired[ - "Literal['']|List[ChargeUpdateParamsPaymentDetailsFleetDatum]" - ] - """ - Fleet data for this PaymentIntent. - """ - money_services: NotRequired[ - "Literal['']|ChargeUpdateParamsPaymentDetailsMoneyServices" - ] - """ - Money services details for this PaymentIntent. - """ class ChargeUpdateParamsPaymentDetailsCarRental(TypedDict): @@ -864,6 +864,234 @@ class ChargeUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient(TypedDict): """ +class ChargeUpdateParamsPaymentDetailsFleetDatum(TypedDict): + primary_fuel_fields: NotRequired[ + "ChargeUpdateParamsPaymentDetailsFleetDatumPrimaryFuelFields" + ] + """ + Primary fuel fields for the transaction. + """ + station: NotRequired["ChargeUpdateParamsPaymentDetailsFleetDatumStation"] + """ + Station and acceptor location details. + """ + vat: NotRequired["ChargeUpdateParamsPaymentDetailsFleetDatumVat"] + """ + VAT and Invoice on Behalf (IOB) details. + """ + + +class ChargeUpdateParamsPaymentDetailsFleetDatumPrimaryFuelFields(TypedDict): + brand: NotRequired[ + Literal[ + "aafes", + "amerada_hess", + "amoco_canada", + "amoco_petroleum_products", + "arco_products", + "asda", + "ashland_oil", + "bfl", + "bp_mobil", + "bp_oil", + "burrnah_major", + "butler_arndale", + "canadian_tire", + "canadian_turbo", + "caseys_general_store", + "cenex", + "chevron_canada", + "chevron_usa", + "circle_k_stores", + "citgo_petroleum", + "clark_brands", + "conoco_canada", + "conoco_inc", + "crown_central_petroleum", + "diamond_shamrock_inc", + "discount_tire", + "domo_gas", + "elf", + "erickson_oil", + "esso", + "esso_canada", + "exxon", + "exxonmobil", + "family_express", + "fas_gas_oil", + "federated_coop_sonic", + "fina", + "fina_inc", + "fkg_oil", + "flare", + "flying_j_inc", + "gas_america", + "gate_petroleum", + "getty_petroleum", + "giant_eagle", + "grow_mark_inc", + "gulf", + "gulf_canada", + "gulf_chevron", + "handy_way_food", + "heron", + "holiday_stores", + "home_depot", + "husky", + "hyvees", + "irving", + "irving_oil", + "j_sainsbury", + "jet_conoco", + "krogers", + "kuwait", + "kwik_trip_inc", + "lassus", + "loves_country_stores", + "mapco_express_inc", + "marathon_oil", + "martin_bailey_inc_dba_hucks", + "maxol", + "meineke", + "mfa", + "mohawk", + "mr_gas", + "murco", + "murphy_oil_canada", + "murphy_oil_usa_inc", + "nexcom", + "nordstrom_oil", + "olco", + "pdq_store", + "pennzoil_products_inc", + "petro", + "petro_canada", + "petro_t", + "phillips", + "pilot", + "pioneer", + "pure_oil", + "quaker_state", + "quarles_oil", + "quiktrip", + "racetrac_petroleum_inc", + "raceway_petroleum", + "repsol", + "rudy", + "safeway", + "seven_eleven", + "sheetz", + "shell", + "shell_canada", + "shell_oil", + "sinclair_oil", + "southland_oil", + "spar", + "speedway", + "sun_company_inc", + "suncor_sunoco_canada", + "tempo", + "tesco", + "tesoro_alaska", + "texaco", + "the_pantry_inc", + "thornton_oil", + "tosco", + "total", + "travel_centers_of_america", + "uk", + "ultramar_canada", + "unbranded_or_unassigned", + "unbranded_unassigned", + "union_76", + "united_dairy_farmer", + "united_refining_kwikfill", + "us_oil", + "usa_petroleum", + "valvoline", + "vg", + "w_morrison", + "warren_equities", + "wawa", + "western_energetix", + "wilco", + "zions", + ] + ] + """ + The fuel brand. + """ + + +class ChargeUpdateParamsPaymentDetailsFleetDatumStation(TypedDict): + additional_contact_info: NotRequired[str] + """ + Additional contact information for the station. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the station. + """ + partner_id_code: NotRequired[str] + """ + The partner ID code of the station. + """ + phone_number: NotRequired[str] + """ + The phone number of the station. + """ + service_location: NotRequired[ + "ChargeUpdateParamsPaymentDetailsFleetDatumStationServiceLocation" + ] + """ + The physical location of the station. + """ + url: NotRequired[str] + """ + The URL of the station. + """ + + +class ChargeUpdateParamsPaymentDetailsFleetDatumStationServiceLocation( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + +class ChargeUpdateParamsPaymentDetailsFleetDatumVat(TypedDict): + iob_indicator: Literal[ + "issuer_to_iob", + "issuer_to_iob_and_incremental_certification", + "merchant_does_not_agree_to_iob", + ] + """ + Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + """ + + class ChargeUpdateParamsPaymentDetailsFlight(TypedDict): affiliate: NotRequired["ChargeUpdateParamsPaymentDetailsFlightAffiliate"] """ @@ -1734,283 +1962,6 @@ class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict): """ -class ChargeUpdateParamsPaymentDetailsSubscription(TypedDict): - affiliate: NotRequired[ - "ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate" - ] - """ - Affiliate details for this purchase. - """ - auto_renewal: NotRequired[bool] - """ - Info whether the subscription will be auto renewed upon expiry. - """ - billing_interval: NotRequired[ - "ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval" - ] - """ - Subscription billing details for this purchase. - """ - ends_at: NotRequired[int] - """ - Subscription end time. Measured in seconds since the Unix epoch. - """ - name: str - """ - Name of the product on subscription. e.g. Apple Music Subscription - """ - starts_at: NotRequired[int] - """ - Subscription start time. Measured in seconds since the Unix epoch. - """ - - -class ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): - name: str - """ - The name of the affiliate that originated the purchase. - """ - - -class ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval(TypedDict): - count: int - """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. - """ - interval: Literal["day", "month", "week", "year"] - """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. - """ - - -class ChargeUpdateParamsPaymentDetailsFleetDatum(TypedDict): - primary_fuel_fields: NotRequired[ - "ChargeUpdateParamsPaymentDetailsFleetDatumPrimaryFuelFields" - ] - """ - Primary fuel fields for the transaction. - """ - station: NotRequired["ChargeUpdateParamsPaymentDetailsFleetDatumStation"] - """ - Station and acceptor location details. - """ - vat: NotRequired["ChargeUpdateParamsPaymentDetailsFleetDatumVat"] - """ - VAT and Invoice on Behalf (IOB) details. - """ - - -class ChargeUpdateParamsPaymentDetailsFleetDatumPrimaryFuelFields(TypedDict): - brand: NotRequired[ - Literal[ - "aafes", - "amerada_hess", - "amoco_canada", - "amoco_petroleum_products", - "arco_products", - "asda", - "ashland_oil", - "bfl", - "bp_mobil", - "bp_oil", - "burrnah_major", - "butler_arndale", - "canadian_tire", - "canadian_turbo", - "caseys_general_store", - "cenex", - "chevron_canada", - "chevron_usa", - "circle_k_stores", - "citgo_petroleum", - "clark_brands", - "conoco_canada", - "conoco_inc", - "crown_central_petroleum", - "diamond_shamrock_inc", - "discount_tire", - "domo_gas", - "elf", - "erickson_oil", - "esso", - "esso_canada", - "exxon", - "exxonmobil", - "family_express", - "fas_gas_oil", - "federated_coop_sonic", - "fina", - "fina_inc", - "fkg_oil", - "flare", - "flying_j_inc", - "gas_america", - "gate_petroleum", - "getty_petroleum", - "giant_eagle", - "grow_mark_inc", - "gulf", - "gulf_canada", - "gulf_chevron", - "handy_way_food", - "heron", - "holiday_stores", - "home_depot", - "husky", - "hyvees", - "irving", - "irving_oil", - "j_sainsbury", - "jet_conoco", - "krogers", - "kuwait", - "kwik_trip_inc", - "lassus", - "loves_country_stores", - "mapco_express_inc", - "marathon_oil", - "martin_bailey_inc_dba_hucks", - "maxol", - "meineke", - "mfa", - "mohawk", - "mr_gas", - "murco", - "murphy_oil_canada", - "murphy_oil_usa_inc", - "nexcom", - "nordstrom_oil", - "olco", - "pdq_store", - "pennzoil_products_inc", - "petro", - "petro_canada", - "petro_t", - "phillips", - "pilot", - "pioneer", - "pure_oil", - "quaker_state", - "quarles_oil", - "quiktrip", - "racetrac_petroleum_inc", - "raceway_petroleum", - "repsol", - "rudy", - "safeway", - "seven_eleven", - "sheetz", - "shell", - "shell_canada", - "shell_oil", - "sinclair_oil", - "southland_oil", - "spar", - "speedway", - "sun_company_inc", - "suncor_sunoco_canada", - "tempo", - "tesco", - "tesoro_alaska", - "texaco", - "the_pantry_inc", - "thornton_oil", - "tosco", - "total", - "travel_centers_of_america", - "uk", - "ultramar_canada", - "unbranded_or_unassigned", - "unbranded_unassigned", - "union_76", - "united_dairy_farmer", - "united_refining_kwikfill", - "us_oil", - "usa_petroleum", - "valvoline", - "vg", - "w_morrison", - "warren_equities", - "wawa", - "western_energetix", - "wilco", - "zions", - ] - ] - """ - The fuel brand. - """ - - -class ChargeUpdateParamsPaymentDetailsFleetDatumStation(TypedDict): - additional_contact_info: NotRequired[str] - """ - Additional contact information for the station. - """ - customer_service_phone_number: NotRequired[str] - """ - The customer service phone number of the station. - """ - partner_id_code: NotRequired[str] - """ - The partner ID code of the station. - """ - phone_number: NotRequired[str] - """ - The phone number of the station. - """ - service_location: NotRequired[ - "ChargeUpdateParamsPaymentDetailsFleetDatumStationServiceLocation" - ] - """ - The physical location of the station. - """ - url: NotRequired[str] - """ - The URL of the station. - """ - - -class ChargeUpdateParamsPaymentDetailsFleetDatumStationServiceLocation( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: str - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] - """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - """ - - -class ChargeUpdateParamsPaymentDetailsFleetDatumVat(TypedDict): - iob_indicator: Literal[ - "issuer_to_iob", - "issuer_to_iob_and_incremental_certification", - "merchant_does_not_agree_to_iob", - ] - """ - Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. - """ - - class ChargeUpdateParamsPaymentDetailsMoneyServices(TypedDict): account_funding: NotRequired[ "Literal['']|ChargeUpdateParamsPaymentDetailsMoneyServicesAccountFunding" @@ -2197,6 +2148,55 @@ class ChargeUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDa """ +class ChargeUpdateParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate" + ] + """ + Affiliate details for this purchase. + """ + auto_renewal: NotRequired[bool] + """ + Info whether the subscription will be auto renewed upon expiry. + """ + billing_interval: NotRequired[ + "ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval" + ] + """ + Subscription billing details for this purchase. + """ + ends_at: NotRequired[int] + """ + Subscription end time. Measured in seconds since the Unix epoch. + """ + name: str + """ + Name of the product on subscription. e.g. Apple Music Subscription + """ + starts_at: NotRequired[int] + """ + Subscription start time. Measured in seconds since the Unix epoch. + """ + + +class ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval(TypedDict): + count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + + class ChargeUpdateParamsShipping(TypedDict): address: "ChargeUpdateParamsShippingAddress" """ diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index 0f8d5b496..53d3a7a4d 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -312,6 +312,10 @@ 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" ] @@ -418,10 +422,6 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_external_account_create_params.py b/stripe/params/_external_account_create_params.py index 44a37ef07..e4f2ddf1d 100644 --- a/stripe/params/_external_account_create_params.py +++ b/stripe/params/_external_account_create_params.py @@ -41,12 +41,12 @@ class ExternalAccountCreateParamsCard(TypedDict): cvc: NotRequired[str] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + name: NotRequired[str] + number: str class ExternalAccountCreateParamsBankAccount(TypedDict): diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index 492df73b5..ef9062ed7 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -306,12 +306,24 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + bizum: NotRequired[ + "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBizum" + ] + """ + If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard" ] """ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. """ + check_scan: NotRequired[ + "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCheckScan" + ] + """ + If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. + """ customer_balance: NotRequired[ "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance" ] @@ -360,18 +372,6 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ - bizum: NotRequired[ - "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBizum" - ] - """ - If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. - """ - check_scan: NotRequired[ - "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCheckScan" - ] - """ - If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. - """ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -409,6 +409,10 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBizum(TypedDict): + pass + + class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): installments: NotRequired[ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments" @@ -460,6 +464,25 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan """ +class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCheckScan( + TypedDict, +): + check_deposit_address: NotRequired[ + "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" + ] + + +class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( + TypedDict, +): + city: NotRequired[str] + country: NotRequired[str] + line1: NotRequired[str] + line2: NotRequired[str] + postal_code: NotRequired[str] + state: NotRequired[str] + + class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance( TypedDict, ): @@ -651,29 +674,6 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ -class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBizum(TypedDict): - pass - - -class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCheckScan( - TypedDict, -): - check_deposit_address: NotRequired[ - "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" - ] - - -class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( - TypedDict, -): - city: NotRequired[str] - country: NotRequired[str] - line1: NotRequired[str] - line2: NotRequired[str] - postal_code: NotRequired[str] - state: NotRequired[str] - - class InvoiceCreateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index 617f460d6..83ef38ce8 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -273,12 +273,24 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + bizum: NotRequired[ + "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBizum" + ] + """ + If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard" ] """ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. """ + check_scan: NotRequired[ + "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCheckScan" + ] + """ + If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. + """ customer_balance: NotRequired[ "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance" ] @@ -327,18 +339,6 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ - bizum: NotRequired[ - "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBizum" - ] - """ - If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. - """ - check_scan: NotRequired[ - "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCheckScan" - ] - """ - If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. - """ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -376,6 +376,10 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBizum(TypedDict): + pass + + class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): installments: NotRequired[ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments" @@ -427,6 +431,25 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan """ +class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCheckScan( + TypedDict, +): + check_deposit_address: NotRequired[ + "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" + ] + + +class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( + TypedDict, +): + city: NotRequired[str] + country: NotRequired[str] + line1: NotRequired[str] + line2: NotRequired[str] + postal_code: NotRequired[str] + state: NotRequired[str] + + class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance( TypedDict, ): @@ -618,29 +641,6 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ -class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBizum(TypedDict): - pass - - -class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCheckScan( - TypedDict, -): - check_deposit_address: NotRequired[ - "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" - ] - - -class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( - TypedDict, -): - city: NotRequired[str] - country: NotRequired[str] - line1: NotRequired[str] - line2: NotRequired[str] - postal_code: NotRequired[str] - state: NotRequired[str] - - class InvoiceModifyParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index f8da9065c..d62f8f120 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -272,12 +272,24 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + bizum: NotRequired[ + "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBizum" + ] + """ + If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard" ] """ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. """ + check_scan: NotRequired[ + "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScan" + ] + """ + If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. + """ customer_balance: NotRequired[ "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance" ] @@ -326,18 +338,6 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ - bizum: NotRequired[ - "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBizum" - ] - """ - If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. - """ - check_scan: NotRequired[ - "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScan" - ] - """ - If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. - """ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -375,6 +375,10 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBizum(TypedDict): + pass + + class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): installments: NotRequired[ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments" @@ -426,6 +430,25 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan """ +class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScan( + TypedDict, +): + check_deposit_address: NotRequired[ + "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" + ] + + +class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( + TypedDict, +): + city: NotRequired[str] + country: NotRequired[str] + line1: NotRequired[str] + line2: NotRequired[str] + postal_code: NotRequired[str] + state: NotRequired[str] + + class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance( TypedDict, ): @@ -617,29 +640,6 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ -class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBizum(TypedDict): - pass - - -class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScan( - TypedDict, -): - check_deposit_address: NotRequired[ - "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" - ] - - -class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( - TypedDict, -): - city: NotRequired[str] - country: NotRequired[str] - line1: NotRequired[str] - line2: NotRequired[str] - postal_code: NotRequired[str] - state: NotRequired[str] - - class InvoiceUpdateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/params/_payment_intent_capture_params.py b/stripe/params/_payment_intent_capture_params.py index 7d48b578b..3f68db2cc 100644 --- a/stripe/params/_payment_intent_capture_params.py +++ b/stripe/params/_payment_intent_capture_params.py @@ -126,6 +126,10 @@ class PaymentIntentCaptureParamsAmountDetailsLineItem(TypedDict): """ The quantity of items. Required for L3 rates. An integer greater than 0. """ + quantity_precision: NotRequired[int] + """ + The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. + """ tax: NotRequired["PaymentIntentCaptureParamsAmountDetailsLineItemTax"] """ Contains information about the tax on the item. @@ -138,10 +142,6 @@ class PaymentIntentCaptureParamsAmountDetailsLineItem(TypedDict): """ A unit of measure for the line item, such as gallons, feet, meters, etc. """ - quantity_precision: NotRequired[int] - """ - The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. - """ class PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptions( @@ -391,6 +391,12 @@ class PaymentIntentCaptureParamsPaymentDetails(TypedDict): """ Event details for this PaymentIntent """ + fleet_data: NotRequired[ + "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsFleetDatum]" + ] + """ + Fleet data for this PaymentIntent. + """ flight: NotRequired["PaymentIntentCaptureParamsPaymentDetailsFlight"] """ Flight reservation details for this PaymentIntent @@ -411,6 +417,12 @@ class PaymentIntentCaptureParamsPaymentDetails(TypedDict): """ Lodging data for this PaymentIntent. """ + money_services: NotRequired[ + "Literal['']|PaymentIntentCaptureParamsPaymentDetailsMoneyServices" + ] + """ + Money services details for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -423,18 +435,6 @@ class PaymentIntentCaptureParamsPaymentDetails(TypedDict): """ Subscription details for this PaymentIntent """ - fleet_data: NotRequired[ - "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsFleetDatum]" - ] - """ - Fleet data for this PaymentIntent. - """ - money_services: NotRequired[ - "Literal['']|PaymentIntentCaptureParamsPaymentDetailsMoneyServices" - ] - """ - Money services details for this PaymentIntent. - """ class PaymentIntentCaptureParamsPaymentDetailsCarRental(TypedDict): @@ -1223,86 +1223,318 @@ class PaymentIntentCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient( """ -class PaymentIntentCaptureParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate" +class PaymentIntentCaptureParamsPaymentDetailsFleetDatum(TypedDict): + primary_fuel_fields: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFleetDatumPrimaryFuelFields" ] """ - Affiliate details for this purchase. - """ - agency_number: NotRequired[str] - """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. - """ - carrier: NotRequired[str] - """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Primary fuel fields for the transaction. """ - delivery: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsFlightDelivery" + station: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFleetDatumStation" ] """ - Delivery details for this purchase. + Station and acceptor location details. """ - passenger_name: NotRequired[str] + vat: NotRequired["PaymentIntentCaptureParamsPaymentDetailsFleetDatumVat"] """ - The name of the person or entity on the reservation. + VAT and Invoice on Behalf (IOB) details. """ - passengers: NotRequired[ - List["PaymentIntentCaptureParamsPaymentDetailsFlightPassenger"] + + +class PaymentIntentCaptureParamsPaymentDetailsFleetDatumPrimaryFuelFields( + TypedDict, +): + brand: NotRequired[ + Literal[ + "aafes", + "amerada_hess", + "amoco_canada", + "amoco_petroleum_products", + "arco_products", + "asda", + "ashland_oil", + "bfl", + "bp_mobil", + "bp_oil", + "burrnah_major", + "butler_arndale", + "canadian_tire", + "canadian_turbo", + "caseys_general_store", + "cenex", + "chevron_canada", + "chevron_usa", + "circle_k_stores", + "citgo_petroleum", + "clark_brands", + "conoco_canada", + "conoco_inc", + "crown_central_petroleum", + "diamond_shamrock_inc", + "discount_tire", + "domo_gas", + "elf", + "erickson_oil", + "esso", + "esso_canada", + "exxon", + "exxonmobil", + "family_express", + "fas_gas_oil", + "federated_coop_sonic", + "fina", + "fina_inc", + "fkg_oil", + "flare", + "flying_j_inc", + "gas_america", + "gate_petroleum", + "getty_petroleum", + "giant_eagle", + "grow_mark_inc", + "gulf", + "gulf_canada", + "gulf_chevron", + "handy_way_food", + "heron", + "holiday_stores", + "home_depot", + "husky", + "hyvees", + "irving", + "irving_oil", + "j_sainsbury", + "jet_conoco", + "krogers", + "kuwait", + "kwik_trip_inc", + "lassus", + "loves_country_stores", + "mapco_express_inc", + "marathon_oil", + "martin_bailey_inc_dba_hucks", + "maxol", + "meineke", + "mfa", + "mohawk", + "mr_gas", + "murco", + "murphy_oil_canada", + "murphy_oil_usa_inc", + "nexcom", + "nordstrom_oil", + "olco", + "pdq_store", + "pennzoil_products_inc", + "petro", + "petro_canada", + "petro_t", + "phillips", + "pilot", + "pioneer", + "pure_oil", + "quaker_state", + "quarles_oil", + "quiktrip", + "racetrac_petroleum_inc", + "raceway_petroleum", + "repsol", + "rudy", + "safeway", + "seven_eleven", + "sheetz", + "shell", + "shell_canada", + "shell_oil", + "sinclair_oil", + "southland_oil", + "spar", + "speedway", + "sun_company_inc", + "suncor_sunoco_canada", + "tempo", + "tesco", + "tesoro_alaska", + "texaco", + "the_pantry_inc", + "thornton_oil", + "tosco", + "total", + "travel_centers_of_america", + "uk", + "ultramar_canada", + "unbranded_or_unassigned", + "unbranded_unassigned", + "union_76", + "united_dairy_farmer", + "united_refining_kwikfill", + "us_oil", + "usa_petroleum", + "valvoline", + "vg", + "w_morrison", + "warren_equities", + "wawa", + "western_energetix", + "wilco", + "zions", + ] ] """ - The details of the passengers in the travel reservation. + The fuel brand. """ - segments: List["PaymentIntentCaptureParamsPaymentDetailsFlightSegment"] + + +class PaymentIntentCaptureParamsPaymentDetailsFleetDatumStation(TypedDict): + additional_contact_info: NotRequired[str] """ - The individual flight segments associated with the trip. + Additional contact information for the station. """ - ticket_number: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The ticket number associated with the travel reservation. + The customer service phone number of the station. """ - - -class PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + partner_id_code: NotRequired[str] """ - The name of the affiliate that originated the purchase. + The partner ID code of the station. """ - - -class PaymentIntentCaptureParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + phone_number: NotRequired[str] """ - The delivery method for the payment + The phone number of the station. """ - recipient: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient" + service_location: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFleetDatumStationServiceLocation" ] """ - Details of the recipient. + The physical location of the station. + """ + url: NotRequired[str] + """ + The URL of the station. """ -class PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient( +class PaymentIntentCaptureParamsPaymentDetailsFleetDatumStationServiceLocation( TypedDict, ): - email: NotRequired[str] + city: NotRequired[str] """ - The email of the recipient the ticket is delivered to. + City, district, suburb, town, or village. """ - name: NotRequired[str] + country: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - phone: NotRequired[str] + line1: str """ - The phone number of the recipient the ticket is delivered to. + Address line 1, such as the street, PO Box, or company name. """ - - -class PaymentIntentCaptureParamsPaymentDetailsFlightPassenger(TypedDict): - name: str + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFleetDatumVat(TypedDict): + iob_indicator: Literal[ + "issuer_to_iob", + "issuer_to_iob_and_incremental_certification", + "merchant_does_not_agree_to_iob", + ] + """ + Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlight(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate" + ] + """ + Affiliate details for this purchase. + """ + agency_number: NotRequired[str] + """ + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + """ + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFlightDelivery" + ] + """ + Delivery details for this purchase. + """ + passenger_name: NotRequired[str] + """ + The name of the person or entity on the reservation. + """ + passengers: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsFlightPassenger"] + ] + """ + The details of the passengers in the travel reservation. + """ + segments: List["PaymentIntentCaptureParamsPaymentDetailsFlightSegment"] + """ + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + """ + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient" + ] + """ + Details of the recipient. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict, +): + email: NotRequired[str] + """ + The email of the recipient the ticket is delivered to. + """ + name: NotRequired[str] + """ + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightPassenger(TypedDict): + name: str """ Full name of the person or entity on the flight reservation. """ @@ -2143,289 +2375,6 @@ class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax( """ -class PaymentIntentCaptureParamsPaymentDetailsSubscription(TypedDict): - affiliate: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate" - ] - """ - Affiliate details for this purchase. - """ - auto_renewal: NotRequired[bool] - """ - Info whether the subscription will be auto renewed upon expiry. - """ - billing_interval: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval" - ] - """ - Subscription billing details for this purchase. - """ - ends_at: NotRequired[int] - """ - Subscription end time. Measured in seconds since the Unix epoch. - """ - name: str - """ - Name of the product on subscription. e.g. Apple Music Subscription - """ - starts_at: NotRequired[int] - """ - Subscription start time. Measured in seconds since the Unix epoch. - """ - - -class PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate(TypedDict): - name: str - """ - The name of the affiliate that originated the purchase. - """ - - -class PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval( - TypedDict, -): - count: int - """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. - """ - interval: Literal["day", "month", "week", "year"] - """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. - """ - - -class PaymentIntentCaptureParamsPaymentDetailsFleetDatum(TypedDict): - primary_fuel_fields: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsFleetDatumPrimaryFuelFields" - ] - """ - Primary fuel fields for the transaction. - """ - station: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsFleetDatumStation" - ] - """ - Station and acceptor location details. - """ - vat: NotRequired["PaymentIntentCaptureParamsPaymentDetailsFleetDatumVat"] - """ - VAT and Invoice on Behalf (IOB) details. - """ - - -class PaymentIntentCaptureParamsPaymentDetailsFleetDatumPrimaryFuelFields( - TypedDict, -): - brand: NotRequired[ - Literal[ - "aafes", - "amerada_hess", - "amoco_canada", - "amoco_petroleum_products", - "arco_products", - "asda", - "ashland_oil", - "bfl", - "bp_mobil", - "bp_oil", - "burrnah_major", - "butler_arndale", - "canadian_tire", - "canadian_turbo", - "caseys_general_store", - "cenex", - "chevron_canada", - "chevron_usa", - "circle_k_stores", - "citgo_petroleum", - "clark_brands", - "conoco_canada", - "conoco_inc", - "crown_central_petroleum", - "diamond_shamrock_inc", - "discount_tire", - "domo_gas", - "elf", - "erickson_oil", - "esso", - "esso_canada", - "exxon", - "exxonmobil", - "family_express", - "fas_gas_oil", - "federated_coop_sonic", - "fina", - "fina_inc", - "fkg_oil", - "flare", - "flying_j_inc", - "gas_america", - "gate_petroleum", - "getty_petroleum", - "giant_eagle", - "grow_mark_inc", - "gulf", - "gulf_canada", - "gulf_chevron", - "handy_way_food", - "heron", - "holiday_stores", - "home_depot", - "husky", - "hyvees", - "irving", - "irving_oil", - "j_sainsbury", - "jet_conoco", - "krogers", - "kuwait", - "kwik_trip_inc", - "lassus", - "loves_country_stores", - "mapco_express_inc", - "marathon_oil", - "martin_bailey_inc_dba_hucks", - "maxol", - "meineke", - "mfa", - "mohawk", - "mr_gas", - "murco", - "murphy_oil_canada", - "murphy_oil_usa_inc", - "nexcom", - "nordstrom_oil", - "olco", - "pdq_store", - "pennzoil_products_inc", - "petro", - "petro_canada", - "petro_t", - "phillips", - "pilot", - "pioneer", - "pure_oil", - "quaker_state", - "quarles_oil", - "quiktrip", - "racetrac_petroleum_inc", - "raceway_petroleum", - "repsol", - "rudy", - "safeway", - "seven_eleven", - "sheetz", - "shell", - "shell_canada", - "shell_oil", - "sinclair_oil", - "southland_oil", - "spar", - "speedway", - "sun_company_inc", - "suncor_sunoco_canada", - "tempo", - "tesco", - "tesoro_alaska", - "texaco", - "the_pantry_inc", - "thornton_oil", - "tosco", - "total", - "travel_centers_of_america", - "uk", - "ultramar_canada", - "unbranded_or_unassigned", - "unbranded_unassigned", - "union_76", - "united_dairy_farmer", - "united_refining_kwikfill", - "us_oil", - "usa_petroleum", - "valvoline", - "vg", - "w_morrison", - "warren_equities", - "wawa", - "western_energetix", - "wilco", - "zions", - ] - ] - """ - The fuel brand. - """ - - -class PaymentIntentCaptureParamsPaymentDetailsFleetDatumStation(TypedDict): - additional_contact_info: NotRequired[str] - """ - Additional contact information for the station. - """ - customer_service_phone_number: NotRequired[str] - """ - The customer service phone number of the station. - """ - partner_id_code: NotRequired[str] - """ - The partner ID code of the station. - """ - phone_number: NotRequired[str] - """ - The phone number of the station. - """ - service_location: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsFleetDatumStationServiceLocation" - ] - """ - The physical location of the station. - """ - url: NotRequired[str] - """ - The URL of the station. - """ - - -class PaymentIntentCaptureParamsPaymentDetailsFleetDatumStationServiceLocation( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: str - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] - """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - """ - - -class PaymentIntentCaptureParamsPaymentDetailsFleetDatumVat(TypedDict): - iob_indicator: Literal[ - "issuer_to_iob", - "issuer_to_iob_and_incremental_certification", - "merchant_does_not_agree_to_iob", - ] - """ - Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. - """ - - class PaymentIntentCaptureParamsPaymentDetailsMoneyServices(TypedDict): account_funding: NotRequired[ "Literal['']|PaymentIntentCaptureParamsPaymentDetailsMoneyServicesAccountFunding" @@ -2614,6 +2563,57 @@ class PaymentIntentCaptureParamsPaymentDetailsMoneyServicesAccountFundingSenderD """ +class PaymentIntentCaptureParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate" + ] + """ + Affiliate details for this purchase. + """ + auto_renewal: NotRequired[bool] + """ + Info whether the subscription will be auto renewed upon expiry. + """ + billing_interval: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval" + ] + """ + Subscription billing details for this purchase. + """ + ends_at: NotRequired[int] + """ + Subscription end time. Measured in seconds since the Unix epoch. + """ + name: str + """ + Name of the product on subscription. e.g. Apple Music Subscription + """ + starts_at: NotRequired[int] + """ + Subscription start time. Measured in seconds since the Unix epoch. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval( + TypedDict, +): + count: int + """ + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + """ + interval: Literal["day", "month", "week", "year"] + """ + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + """ + + class PaymentIntentCaptureParamsTransferData(TypedDict): amount: NotRequired[int] """ diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 1fb3e4541..71aee7924 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -206,6 +206,10 @@ class PaymentIntentConfirmParamsAmountDetailsLineItem(TypedDict): """ The quantity of items. Required for L3 rates. An integer greater than 0. """ + quantity_precision: NotRequired[int] + """ + The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. + """ tax: NotRequired["PaymentIntentConfirmParamsAmountDetailsLineItemTax"] """ Contains information about the tax on the item. @@ -218,10 +222,6 @@ class PaymentIntentConfirmParamsAmountDetailsLineItem(TypedDict): """ A unit of measure for the line item, such as gallons, feet, meters, etc. """ - quantity_precision: NotRequired[int] - """ - The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. - """ class PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptions( @@ -524,6 +524,12 @@ class PaymentIntentConfirmParamsPaymentDetails(TypedDict): """ Event details for this PaymentIntent """ + fleet_data: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsFleetDatum]" + ] + """ + Fleet data for this PaymentIntent. + """ flight: NotRequired["PaymentIntentConfirmParamsPaymentDetailsFlight"] """ Flight reservation details for this PaymentIntent @@ -544,6 +550,12 @@ class PaymentIntentConfirmParamsPaymentDetails(TypedDict): """ Lodging data for this PaymentIntent. """ + money_services: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentDetailsMoneyServices" + ] + """ + Money services details for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -556,18 +568,6 @@ class PaymentIntentConfirmParamsPaymentDetails(TypedDict): """ Subscription details for this PaymentIntent """ - fleet_data: NotRequired[ - "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsFleetDatum]" - ] - """ - Fleet data for this PaymentIntent. - """ - money_services: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentDetailsMoneyServices" - ] - """ - Money services details for this PaymentIntent. - """ class PaymentIntentConfirmParamsPaymentDetailsBenefit(TypedDict): @@ -1372,86 +1372,318 @@ class PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient( """ -class PaymentIntentConfirmParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate" +class PaymentIntentConfirmParamsPaymentDetailsFleetDatum(TypedDict): + primary_fuel_fields: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFleetDatumPrimaryFuelFields" ] """ - Affiliate details for this purchase. - """ - agency_number: NotRequired[str] - """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. - """ - carrier: NotRequired[str] - """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Primary fuel fields for the transaction. """ - delivery: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFlightDelivery" + station: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFleetDatumStation" ] """ - Delivery details for this purchase. + Station and acceptor location details. """ - passenger_name: NotRequired[str] + vat: NotRequired["PaymentIntentConfirmParamsPaymentDetailsFleetDatumVat"] """ - The name of the person or entity on the reservation. + VAT and Invoice on Behalf (IOB) details. """ - passengers: NotRequired[ - List["PaymentIntentConfirmParamsPaymentDetailsFlightPassenger"] + + +class PaymentIntentConfirmParamsPaymentDetailsFleetDatumPrimaryFuelFields( + TypedDict, +): + brand: NotRequired[ + Literal[ + "aafes", + "amerada_hess", + "amoco_canada", + "amoco_petroleum_products", + "arco_products", + "asda", + "ashland_oil", + "bfl", + "bp_mobil", + "bp_oil", + "burrnah_major", + "butler_arndale", + "canadian_tire", + "canadian_turbo", + "caseys_general_store", + "cenex", + "chevron_canada", + "chevron_usa", + "circle_k_stores", + "citgo_petroleum", + "clark_brands", + "conoco_canada", + "conoco_inc", + "crown_central_petroleum", + "diamond_shamrock_inc", + "discount_tire", + "domo_gas", + "elf", + "erickson_oil", + "esso", + "esso_canada", + "exxon", + "exxonmobil", + "family_express", + "fas_gas_oil", + "federated_coop_sonic", + "fina", + "fina_inc", + "fkg_oil", + "flare", + "flying_j_inc", + "gas_america", + "gate_petroleum", + "getty_petroleum", + "giant_eagle", + "grow_mark_inc", + "gulf", + "gulf_canada", + "gulf_chevron", + "handy_way_food", + "heron", + "holiday_stores", + "home_depot", + "husky", + "hyvees", + "irving", + "irving_oil", + "j_sainsbury", + "jet_conoco", + "krogers", + "kuwait", + "kwik_trip_inc", + "lassus", + "loves_country_stores", + "mapco_express_inc", + "marathon_oil", + "martin_bailey_inc_dba_hucks", + "maxol", + "meineke", + "mfa", + "mohawk", + "mr_gas", + "murco", + "murphy_oil_canada", + "murphy_oil_usa_inc", + "nexcom", + "nordstrom_oil", + "olco", + "pdq_store", + "pennzoil_products_inc", + "petro", + "petro_canada", + "petro_t", + "phillips", + "pilot", + "pioneer", + "pure_oil", + "quaker_state", + "quarles_oil", + "quiktrip", + "racetrac_petroleum_inc", + "raceway_petroleum", + "repsol", + "rudy", + "safeway", + "seven_eleven", + "sheetz", + "shell", + "shell_canada", + "shell_oil", + "sinclair_oil", + "southland_oil", + "spar", + "speedway", + "sun_company_inc", + "suncor_sunoco_canada", + "tempo", + "tesco", + "tesoro_alaska", + "texaco", + "the_pantry_inc", + "thornton_oil", + "tosco", + "total", + "travel_centers_of_america", + "uk", + "ultramar_canada", + "unbranded_or_unassigned", + "unbranded_unassigned", + "union_76", + "united_dairy_farmer", + "united_refining_kwikfill", + "us_oil", + "usa_petroleum", + "valvoline", + "vg", + "w_morrison", + "warren_equities", + "wawa", + "western_energetix", + "wilco", + "zions", + ] ] """ - The details of the passengers in the travel reservation. + The fuel brand. """ - segments: List["PaymentIntentConfirmParamsPaymentDetailsFlightSegment"] + + +class PaymentIntentConfirmParamsPaymentDetailsFleetDatumStation(TypedDict): + additional_contact_info: NotRequired[str] """ - The individual flight segments associated with the trip. + Additional contact information for the station. """ - ticket_number: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The ticket number associated with the travel reservation. + The customer service phone number of the station. """ - - -class PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + partner_id_code: NotRequired[str] """ - The name of the affiliate that originated the purchase. + The partner ID code of the station. """ - - -class PaymentIntentConfirmParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + phone_number: NotRequired[str] """ - The delivery method for the payment + The phone number of the station. """ - recipient: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient" + service_location: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFleetDatumStationServiceLocation" ] """ - Details of the recipient. + The physical location of the station. + """ + url: NotRequired[str] + """ + The URL of the station. """ -class PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient( +class PaymentIntentConfirmParamsPaymentDetailsFleetDatumStationServiceLocation( TypedDict, ): - email: NotRequired[str] + city: NotRequired[str] """ - The email of the recipient the ticket is delivered to. + City, district, suburb, town, or village. """ - name: NotRequired[str] + country: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - phone: NotRequired[str] + line1: str """ - The phone number of the recipient the ticket is delivered to. + Address line 1, such as the street, PO Box, or company name. """ - - -class PaymentIntentConfirmParamsPaymentDetailsFlightPassenger(TypedDict): - name: str + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + +class PaymentIntentConfirmParamsPaymentDetailsFleetDatumVat(TypedDict): + iob_indicator: Literal[ + "issuer_to_iob", + "issuer_to_iob_and_incremental_certification", + "merchant_does_not_agree_to_iob", + ] + """ + Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + """ + + +class PaymentIntentConfirmParamsPaymentDetailsFlight(TypedDict): + affiliate: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate" + ] + """ + Affiliate details for this purchase. + """ + agency_number: NotRequired[str] + """ + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + """ + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDelivery" + ] + """ + Delivery details for this purchase. + """ + passenger_name: NotRequired[str] + """ + The name of the person or entity on the reservation. + """ + passengers: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsFlightPassenger"] + ] + """ + The details of the passengers in the travel reservation. + """ + segments: List["PaymentIntentConfirmParamsPaymentDetailsFlightSegment"] + """ + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. + """ + + +class PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + """ + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient" + ] + """ + Details of the recipient. + """ + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict, +): + email: NotRequired[str] + """ + The email of the recipient the ticket is delivered to. + """ + name: NotRequired[str] + """ + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. + """ + + +class PaymentIntentConfirmParamsPaymentDetailsFlightPassenger(TypedDict): + name: str """ Full name of the person or entity on the flight reservation. """ @@ -2292,357 +2524,149 @@ class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax( """ -class PaymentIntentConfirmParamsPaymentDetailsSubscription(TypedDict): - affiliate: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate" +class PaymentIntentConfirmParamsPaymentDetailsMoneyServices(TypedDict): + account_funding: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFunding" ] """ - Affiliate details for this purchase. + Account funding transaction details including sender and beneficiary information. """ - auto_renewal: NotRequired[bool] + transaction_type: NotRequired["Literal['']|Literal['account_funding']"] """ - Info whether the subscription will be auto renewed upon expiry. + The type of money services transaction. """ - billing_interval: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval" + + +class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFunding( + TypedDict, +): + beneficiary_account: NotRequired[str] + """ + ID of the Account representing the beneficiary in this account funding transaction. + """ + beneficiary_details: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails" ] """ - Subscription billing details for this purchase. + Inline identity details for the beneficiary of this account funding transaction. """ - ends_at: NotRequired[int] + sender_account: NotRequired[str] """ - Subscription end time. Measured in seconds since the Unix epoch. + ID of the Account representing the sender in this account funding transaction. """ - name: str + sender_details: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails" + ] """ - Name of the product on subscription. e.g. Apple Music Subscription + Inline identity details for the sender of this account funding transaction. """ - starts_at: NotRequired[int] + + +class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress" + ] """ - Subscription start time. Measured in seconds since the Unix epoch. + Address. + """ + date_of_birth: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth" + ] + """ + Date of birth. + """ + email: NotRequired[str] + """ + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Phone number. """ -class PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate(TypedDict): - name: str +class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress( + TypedDict, +): + city: NotRequired[str] """ - The name of the affiliate that originated the purchase. + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). """ -class PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval( +class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth( TypedDict, ): - count: int + day: int """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + Day of birth, between 1 and 31. """ - interval: Literal["day", "month", "week", "year"] + month: int """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + Month of birth, between 1 and 12. + """ + year: int + """ + Four-digit year of birth. """ -class PaymentIntentConfirmParamsPaymentDetailsFleetDatum(TypedDict): - primary_fuel_fields: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFleetDatumPrimaryFuelFields" +class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress" ] """ - Primary fuel fields for the transaction. + Address. """ - station: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFleetDatumStation" + date_of_birth: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth" ] """ - Station and acceptor location details. + Date of birth. """ - vat: NotRequired["PaymentIntentConfirmParamsPaymentDetailsFleetDatumVat"] + email: NotRequired[str] """ - VAT and Invoice on Behalf (IOB) details. + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Phone number. """ -class PaymentIntentConfirmParamsPaymentDetailsFleetDatumPrimaryFuelFields( - TypedDict, -): - brand: NotRequired[ - Literal[ - "aafes", - "amerada_hess", - "amoco_canada", - "amoco_petroleum_products", - "arco_products", - "asda", - "ashland_oil", - "bfl", - "bp_mobil", - "bp_oil", - "burrnah_major", - "butler_arndale", - "canadian_tire", - "canadian_turbo", - "caseys_general_store", - "cenex", - "chevron_canada", - "chevron_usa", - "circle_k_stores", - "citgo_petroleum", - "clark_brands", - "conoco_canada", - "conoco_inc", - "crown_central_petroleum", - "diamond_shamrock_inc", - "discount_tire", - "domo_gas", - "elf", - "erickson_oil", - "esso", - "esso_canada", - "exxon", - "exxonmobil", - "family_express", - "fas_gas_oil", - "federated_coop_sonic", - "fina", - "fina_inc", - "fkg_oil", - "flare", - "flying_j_inc", - "gas_america", - "gate_petroleum", - "getty_petroleum", - "giant_eagle", - "grow_mark_inc", - "gulf", - "gulf_canada", - "gulf_chevron", - "handy_way_food", - "heron", - "holiday_stores", - "home_depot", - "husky", - "hyvees", - "irving", - "irving_oil", - "j_sainsbury", - "jet_conoco", - "krogers", - "kuwait", - "kwik_trip_inc", - "lassus", - "loves_country_stores", - "mapco_express_inc", - "marathon_oil", - "martin_bailey_inc_dba_hucks", - "maxol", - "meineke", - "mfa", - "mohawk", - "mr_gas", - "murco", - "murphy_oil_canada", - "murphy_oil_usa_inc", - "nexcom", - "nordstrom_oil", - "olco", - "pdq_store", - "pennzoil_products_inc", - "petro", - "petro_canada", - "petro_t", - "phillips", - "pilot", - "pioneer", - "pure_oil", - "quaker_state", - "quarles_oil", - "quiktrip", - "racetrac_petroleum_inc", - "raceway_petroleum", - "repsol", - "rudy", - "safeway", - "seven_eleven", - "sheetz", - "shell", - "shell_canada", - "shell_oil", - "sinclair_oil", - "southland_oil", - "spar", - "speedway", - "sun_company_inc", - "suncor_sunoco_canada", - "tempo", - "tesco", - "tesoro_alaska", - "texaco", - "the_pantry_inc", - "thornton_oil", - "tosco", - "total", - "travel_centers_of_america", - "uk", - "ultramar_canada", - "unbranded_or_unassigned", - "unbranded_unassigned", - "union_76", - "united_dairy_farmer", - "united_refining_kwikfill", - "us_oil", - "usa_petroleum", - "valvoline", - "vg", - "w_morrison", - "warren_equities", - "wawa", - "western_energetix", - "wilco", - "zions", - ] - ] - """ - The fuel brand. - """ - - -class PaymentIntentConfirmParamsPaymentDetailsFleetDatumStation(TypedDict): - additional_contact_info: NotRequired[str] - """ - Additional contact information for the station. - """ - customer_service_phone_number: NotRequired[str] - """ - The customer service phone number of the station. - """ - partner_id_code: NotRequired[str] - """ - The partner ID code of the station. - """ - phone_number: NotRequired[str] - """ - The phone number of the station. - """ - service_location: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFleetDatumStationServiceLocation" - ] - """ - The physical location of the station. - """ - url: NotRequired[str] - """ - The URL of the station. - """ - - -class PaymentIntentConfirmParamsPaymentDetailsFleetDatumStationServiceLocation( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: str - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] - """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - """ - - -class PaymentIntentConfirmParamsPaymentDetailsFleetDatumVat(TypedDict): - iob_indicator: Literal[ - "issuer_to_iob", - "issuer_to_iob_and_incremental_certification", - "merchant_does_not_agree_to_iob", - ] - """ - Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. - """ - - -class PaymentIntentConfirmParamsPaymentDetailsMoneyServices(TypedDict): - account_funding: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFunding" - ] - """ - Account funding transaction details including sender and beneficiary information. - """ - transaction_type: NotRequired["Literal['']|Literal['account_funding']"] - """ - The type of money services transaction. - """ - - -class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFunding( - TypedDict, -): - beneficiary_account: NotRequired[str] - """ - ID of the Account representing the beneficiary in this account funding transaction. - """ - beneficiary_details: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails" - ] - """ - Inline identity details for the beneficiary of this account funding transaction. - """ - sender_account: NotRequired[str] - """ - ID of the Account representing the sender in this account funding transaction. - """ - sender_details: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails" - ] - """ - Inline identity details for the sender of this account funding transaction. - """ - - -class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails( - TypedDict, -): - address: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress" - ] - """ - Address. - """ - date_of_birth: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth" - ] - """ - Date of birth. - """ - email: NotRequired[str] - """ - Email address. - """ - name: NotRequired[str] - """ - Full name. - """ - phone: NotRequired[str] - """ - Phone number. - """ - - -class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress( +class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress( TypedDict, ): city: NotRequired[str] @@ -2671,7 +2695,7 @@ class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBenefic """ -class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth( +class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth( TypedDict, ): day: int @@ -2688,78 +2712,54 @@ class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingBenefic """ -class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails( - TypedDict, -): - address: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress" +class PaymentIntentConfirmParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate" ] """ - Address. + Affiliate details for this purchase. """ - date_of_birth: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth" + auto_renewal: NotRequired[bool] + """ + Info whether the subscription will be auto renewed upon expiry. + """ + billing_interval: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval" ] """ - Date of birth. + Subscription billing details for this purchase. """ - email: NotRequired[str] + ends_at: NotRequired[int] """ - Email address. + Subscription end time. Measured in seconds since the Unix epoch. """ - name: NotRequired[str] + name: str """ - Full name. + Name of the product on subscription. e.g. Apple Music Subscription """ - phone: NotRequired[str] + starts_at: NotRequired[int] """ - Phone number. + Subscription start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: NotRequired[str] - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] +class PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + The name of the affiliate that originated the purchase. """ -class PaymentIntentConfirmParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth( +class PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval( TypedDict, ): - day: int - """ - Day of birth, between 1 and 31. - """ - month: int + count: int """ - Month of birth, between 1 and 12. + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. """ - year: int + interval: Literal["day", "month", "week", "year"] """ - Four-digit year of birth. + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. """ @@ -3022,6 +3022,10 @@ 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" ] @@ -3128,10 +3132,6 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class PaymentIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict): @@ -4409,7 +4409,13 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCard(TypedDict): ] ] """ - Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + """ + payment_details: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetails" + ] + """ + Payment details for payment method specific funding fields. """ request_decremental_authorization: NotRequired[ Literal["if_available", "never"] @@ -4492,12 +4498,6 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCard(TypedDict): If 3D Secure authentication was performed with a third-party provider, the authentication details to use for this payment. """ - payment_details: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetails" - ] - """ - Payment details for payment method specific funding fields. - """ class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments( @@ -4577,6 +4577,115 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions( """ +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetails( + TypedDict, +): + money_services: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices" + ] + """ + Money services details for payment method specific funding fields. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices( + TypedDict, +): + account_funding: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding" + ] + """ + Payment method specific account funding transaction details. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding( + TypedDict, +): + liquid_asset: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset" + ] + """ + Details for a liquid asset (crypto or security) funding transaction. + """ + wallet: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet" + ] + """ + Details for a wallet funding transaction. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset( + TypedDict, +): + crypto: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto" + ] + """ + Details for a cryptocurrency liquid asset funding transaction. + """ + security: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity" + ] + """ + Details for a security liquid asset funding transaction. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto( + TypedDict, +): + currency_code: NotRequired[str] + """ + The cryptocurrency currency code (e.g. BTC, ETH). + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity( + TypedDict, +): + ticker_symbol: NotRequired[str] + """ + The security's ticker symbol (e.g. AAPL). + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet( + TypedDict, +): + staged_purchase: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase" + ] + """ + Details for a staged purchase. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase( + TypedDict, +): + merchant: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant" + ] + """ + The merchant where the staged wallet purchase is made. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant( + TypedDict, +): + mcc: NotRequired[str] + """ + The merchant category code of the merchant. + """ + name: NotRequired[str] + """ + The merchant's name. + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails( TypedDict, ): @@ -4704,115 +4813,6 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptio """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetails( - TypedDict, -): - money_services: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices" - ] - """ - Money services details for payment method specific funding fields. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices( - TypedDict, -): - account_funding: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding" - ] - """ - Payment method specific account funding transaction details. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding( - TypedDict, -): - liquid_asset: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset" - ] - """ - Details for a liquid asset (crypto or security) funding transaction. - """ - wallet: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet" - ] - """ - Details for a wallet funding transaction. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset( - TypedDict, -): - crypto: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto" - ] - """ - Details for a cryptocurrency liquid asset funding transaction. - """ - security: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity" - ] - """ - Details for a security liquid asset funding transaction. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto( - TypedDict, -): - currency_code: NotRequired[str] - """ - The cryptocurrency currency code (e.g. BTC, ETH). - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity( - TypedDict, -): - ticker_symbol: NotRequired[str] - """ - The security's ticker symbol (e.g. AAPL). - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet( - TypedDict, -): - staged_purchase: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase" - ] - """ - Details for a staged purchase. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase( - TypedDict, -): - merchant: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant" - ] - """ - The merchant where the staged wallet purchase is made. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant( - TypedDict, -): - mcc: NotRequired[str] - """ - The merchant category code of the merchant. - """ - name: NotRequired[str] - """ - The merchant's name. - """ - - class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): capture_method: NotRequired[Literal["manual", "manual_preferred"]] """ @@ -4822,6 +4822,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. """ + payment_details: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentPaymentDetails" + ] + """ + Payment details for payment method specific funding transaction fields. + """ request_extended_authorization: NotRequired[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity) @@ -4840,21 +4846,6 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): """ Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. """ - payment_details: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentPaymentDetails" - ] - """ - Payment details for payment method specific funding transaction fields. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting( - TypedDict, -): - requested_priority: NotRequired[Literal["domestic", "international"]] - """ - Routing requested priority - """ class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentPaymentDetails( @@ -4966,6 +4957,15 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentPaymentDetailsMon """ +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting( + TypedDict, +): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 3d79ec03c..c739be1d5 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -345,6 +345,10 @@ class PaymentIntentCreateParamsAmountDetailsLineItem(TypedDict): """ The quantity of items. Required for L3 rates. An integer greater than 0. """ + quantity_precision: NotRequired[int] + """ + The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. + """ tax: NotRequired["PaymentIntentCreateParamsAmountDetailsLineItemTax"] """ Contains information about the tax on the item. @@ -357,10 +361,6 @@ class PaymentIntentCreateParamsAmountDetailsLineItem(TypedDict): """ A unit of measure for the line item, such as gallons, feet, meters, etc. """ - quantity_precision: NotRequired[int] - """ - The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. - """ class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptions( @@ -672,6 +672,12 @@ class PaymentIntentCreateParamsPaymentDetails(TypedDict): """ Event details for this PaymentIntent """ + fleet_data: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsFleetDatum]" + ] + """ + Fleet data for this PaymentIntent. + """ flight: NotRequired["PaymentIntentCreateParamsPaymentDetailsFlight"] """ Flight reservation details for this PaymentIntent @@ -692,6 +698,12 @@ class PaymentIntentCreateParamsPaymentDetails(TypedDict): """ Lodging data for this PaymentIntent. """ + money_services: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentDetailsMoneyServices" + ] + """ + Money services details for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -704,18 +716,6 @@ class PaymentIntentCreateParamsPaymentDetails(TypedDict): """ Subscription details for this PaymentIntent """ - fleet_data: NotRequired[ - "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsFleetDatum]" - ] - """ - Fleet data for this PaymentIntent. - """ - money_services: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentDetailsMoneyServices" - ] - """ - Money services details for this PaymentIntent. - """ class PaymentIntentCreateParamsPaymentDetailsBenefit(TypedDict): @@ -1512,85 +1512,317 @@ class PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient( """ -class PaymentIntentCreateParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFlightAffiliate" +class PaymentIntentCreateParamsPaymentDetailsFleetDatum(TypedDict): + primary_fuel_fields: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFleetDatumPrimaryFuelFields" ] """ - Affiliate details for this purchase. - """ - agency_number: NotRequired[str] - """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. - """ - carrier: NotRequired[str] - """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Primary fuel fields for the transaction. """ - delivery: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFlightDelivery" + station: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFleetDatumStation" ] """ - Delivery details for this purchase. + Station and acceptor location details. """ - passenger_name: NotRequired[str] + vat: NotRequired["PaymentIntentCreateParamsPaymentDetailsFleetDatumVat"] """ - The name of the person or entity on the reservation. + VAT and Invoice on Behalf (IOB) details. """ - passengers: NotRequired[ - List["PaymentIntentCreateParamsPaymentDetailsFlightPassenger"] + + +class PaymentIntentCreateParamsPaymentDetailsFleetDatumPrimaryFuelFields( + TypedDict, +): + brand: NotRequired[ + Literal[ + "aafes", + "amerada_hess", + "amoco_canada", + "amoco_petroleum_products", + "arco_products", + "asda", + "ashland_oil", + "bfl", + "bp_mobil", + "bp_oil", + "burrnah_major", + "butler_arndale", + "canadian_tire", + "canadian_turbo", + "caseys_general_store", + "cenex", + "chevron_canada", + "chevron_usa", + "circle_k_stores", + "citgo_petroleum", + "clark_brands", + "conoco_canada", + "conoco_inc", + "crown_central_petroleum", + "diamond_shamrock_inc", + "discount_tire", + "domo_gas", + "elf", + "erickson_oil", + "esso", + "esso_canada", + "exxon", + "exxonmobil", + "family_express", + "fas_gas_oil", + "federated_coop_sonic", + "fina", + "fina_inc", + "fkg_oil", + "flare", + "flying_j_inc", + "gas_america", + "gate_petroleum", + "getty_petroleum", + "giant_eagle", + "grow_mark_inc", + "gulf", + "gulf_canada", + "gulf_chevron", + "handy_way_food", + "heron", + "holiday_stores", + "home_depot", + "husky", + "hyvees", + "irving", + "irving_oil", + "j_sainsbury", + "jet_conoco", + "krogers", + "kuwait", + "kwik_trip_inc", + "lassus", + "loves_country_stores", + "mapco_express_inc", + "marathon_oil", + "martin_bailey_inc_dba_hucks", + "maxol", + "meineke", + "mfa", + "mohawk", + "mr_gas", + "murco", + "murphy_oil_canada", + "murphy_oil_usa_inc", + "nexcom", + "nordstrom_oil", + "olco", + "pdq_store", + "pennzoil_products_inc", + "petro", + "petro_canada", + "petro_t", + "phillips", + "pilot", + "pioneer", + "pure_oil", + "quaker_state", + "quarles_oil", + "quiktrip", + "racetrac_petroleum_inc", + "raceway_petroleum", + "repsol", + "rudy", + "safeway", + "seven_eleven", + "sheetz", + "shell", + "shell_canada", + "shell_oil", + "sinclair_oil", + "southland_oil", + "spar", + "speedway", + "sun_company_inc", + "suncor_sunoco_canada", + "tempo", + "tesco", + "tesoro_alaska", + "texaco", + "the_pantry_inc", + "thornton_oil", + "tosco", + "total", + "travel_centers_of_america", + "uk", + "ultramar_canada", + "unbranded_or_unassigned", + "unbranded_unassigned", + "union_76", + "united_dairy_farmer", + "united_refining_kwikfill", + "us_oil", + "usa_petroleum", + "valvoline", + "vg", + "w_morrison", + "warren_equities", + "wawa", + "western_energetix", + "wilco", + "zions", + ] ] """ - The details of the passengers in the travel reservation. + The fuel brand. """ - segments: List["PaymentIntentCreateParamsPaymentDetailsFlightSegment"] + + +class PaymentIntentCreateParamsPaymentDetailsFleetDatumStation(TypedDict): + additional_contact_info: NotRequired[str] """ - The individual flight segments associated with the trip. + Additional contact information for the station. """ - ticket_number: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The ticket number associated with the travel reservation. + The customer service phone number of the station. """ - - -class PaymentIntentCreateParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + partner_id_code: NotRequired[str] """ - The name of the affiliate that originated the purchase. + The partner ID code of the station. """ - - -class PaymentIntentCreateParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + phone_number: NotRequired[str] """ - The delivery method for the payment + The phone number of the station. """ - recipient: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient" + service_location: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFleetDatumStationServiceLocation" ] """ - Details of the recipient. + The physical location of the station. + """ + url: NotRequired[str] + """ + The URL of the station. """ -class PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient( - TypedDict +class PaymentIntentCreateParamsPaymentDetailsFleetDatumStationServiceLocation( + TypedDict, ): - email: NotRequired[str] + city: NotRequired[str] """ - The email of the recipient the ticket is delivered to. + City, district, suburb, town, or village. """ - name: NotRequired[str] + country: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - phone: NotRequired[str] + line1: str """ - The phone number of the recipient the ticket is delivered to. + Address line 1, such as the street, PO Box, or company name. """ - - -class PaymentIntentCreateParamsPaymentDetailsFlightPassenger(TypedDict): + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + +class PaymentIntentCreateParamsPaymentDetailsFleetDatumVat(TypedDict): + iob_indicator: Literal[ + "issuer_to_iob", + "issuer_to_iob_and_incremental_certification", + "merchant_does_not_agree_to_iob", + ] + """ + Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + """ + + +class PaymentIntentCreateParamsPaymentDetailsFlight(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFlightAffiliate" + ] + """ + Affiliate details for this purchase. + """ + agency_number: NotRequired[str] + """ + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + """ + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFlightDelivery" + ] + """ + Delivery details for this purchase. + """ + passenger_name: NotRequired[str] + """ + The name of the person or entity on the reservation. + """ + passengers: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsFlightPassenger"] + ] + """ + The details of the passengers in the travel reservation. + """ + segments: List["PaymentIntentCreateParamsPaymentDetailsFlightSegment"] + """ + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. + """ + + +class PaymentIntentCreateParamsPaymentDetailsFlightAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class PaymentIntentCreateParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + """ + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient" + ] + """ + Details of the recipient. + """ + + +class PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict +): + email: NotRequired[str] + """ + The email of the recipient the ticket is delivered to. + """ + name: NotRequired[str] + """ + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. + """ + + +class PaymentIntentCreateParamsPaymentDetailsFlightPassenger(TypedDict): name: str """ Full name of the person or entity on the flight reservation. @@ -2426,357 +2658,149 @@ class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax( """ -class PaymentIntentCreateParamsPaymentDetailsSubscription(TypedDict): - affiliate: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate" +class PaymentIntentCreateParamsPaymentDetailsMoneyServices(TypedDict): + account_funding: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFunding" ] """ - Affiliate details for this purchase. + Account funding transaction details including sender and beneficiary information. """ - auto_renewal: NotRequired[bool] + transaction_type: NotRequired["Literal['']|Literal['account_funding']"] """ - Info whether the subscription will be auto renewed upon expiry. + The type of money services transaction. """ - billing_interval: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval" + + +class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFunding( + TypedDict, +): + beneficiary_account: NotRequired[str] + """ + ID of the Account representing the beneficiary in this account funding transaction. + """ + beneficiary_details: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails" ] """ - Subscription billing details for this purchase. + Inline identity details for the beneficiary of this account funding transaction. """ - ends_at: NotRequired[int] + sender_account: NotRequired[str] """ - Subscription end time. Measured in seconds since the Unix epoch. + ID of the Account representing the sender in this account funding transaction. """ - name: str + sender_details: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails" + ] """ - Name of the product on subscription. e.g. Apple Music Subscription + Inline identity details for the sender of this account funding transaction. """ - starts_at: NotRequired[int] + + +class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress" + ] """ - Subscription start time. Measured in seconds since the Unix epoch. + Address. + """ + date_of_birth: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth" + ] + """ + Date of birth. + """ + email: NotRequired[str] + """ + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Phone number. """ -class PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): - name: str +class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress( + TypedDict, +): + city: NotRequired[str] """ - The name of the affiliate that originated the purchase. + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). """ -class PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval( +class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth( TypedDict, ): - count: int + day: int """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + Day of birth, between 1 and 31. """ - interval: Literal["day", "month", "week", "year"] + month: int """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + Month of birth, between 1 and 12. + """ + year: int + """ + Four-digit year of birth. """ -class PaymentIntentCreateParamsPaymentDetailsFleetDatum(TypedDict): - primary_fuel_fields: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFleetDatumPrimaryFuelFields" +class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress" ] """ - Primary fuel fields for the transaction. + Address. """ - station: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFleetDatumStation" + date_of_birth: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth" ] """ - Station and acceptor location details. + Date of birth. """ - vat: NotRequired["PaymentIntentCreateParamsPaymentDetailsFleetDatumVat"] + email: NotRequired[str] """ - VAT and Invoice on Behalf (IOB) details. + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Phone number. """ -class PaymentIntentCreateParamsPaymentDetailsFleetDatumPrimaryFuelFields( - TypedDict, -): - brand: NotRequired[ - Literal[ - "aafes", - "amerada_hess", - "amoco_canada", - "amoco_petroleum_products", - "arco_products", - "asda", - "ashland_oil", - "bfl", - "bp_mobil", - "bp_oil", - "burrnah_major", - "butler_arndale", - "canadian_tire", - "canadian_turbo", - "caseys_general_store", - "cenex", - "chevron_canada", - "chevron_usa", - "circle_k_stores", - "citgo_petroleum", - "clark_brands", - "conoco_canada", - "conoco_inc", - "crown_central_petroleum", - "diamond_shamrock_inc", - "discount_tire", - "domo_gas", - "elf", - "erickson_oil", - "esso", - "esso_canada", - "exxon", - "exxonmobil", - "family_express", - "fas_gas_oil", - "federated_coop_sonic", - "fina", - "fina_inc", - "fkg_oil", - "flare", - "flying_j_inc", - "gas_america", - "gate_petroleum", - "getty_petroleum", - "giant_eagle", - "grow_mark_inc", - "gulf", - "gulf_canada", - "gulf_chevron", - "handy_way_food", - "heron", - "holiday_stores", - "home_depot", - "husky", - "hyvees", - "irving", - "irving_oil", - "j_sainsbury", - "jet_conoco", - "krogers", - "kuwait", - "kwik_trip_inc", - "lassus", - "loves_country_stores", - "mapco_express_inc", - "marathon_oil", - "martin_bailey_inc_dba_hucks", - "maxol", - "meineke", - "mfa", - "mohawk", - "mr_gas", - "murco", - "murphy_oil_canada", - "murphy_oil_usa_inc", - "nexcom", - "nordstrom_oil", - "olco", - "pdq_store", - "pennzoil_products_inc", - "petro", - "petro_canada", - "petro_t", - "phillips", - "pilot", - "pioneer", - "pure_oil", - "quaker_state", - "quarles_oil", - "quiktrip", - "racetrac_petroleum_inc", - "raceway_petroleum", - "repsol", - "rudy", - "safeway", - "seven_eleven", - "sheetz", - "shell", - "shell_canada", - "shell_oil", - "sinclair_oil", - "southland_oil", - "spar", - "speedway", - "sun_company_inc", - "suncor_sunoco_canada", - "tempo", - "tesco", - "tesoro_alaska", - "texaco", - "the_pantry_inc", - "thornton_oil", - "tosco", - "total", - "travel_centers_of_america", - "uk", - "ultramar_canada", - "unbranded_or_unassigned", - "unbranded_unassigned", - "union_76", - "united_dairy_farmer", - "united_refining_kwikfill", - "us_oil", - "usa_petroleum", - "valvoline", - "vg", - "w_morrison", - "warren_equities", - "wawa", - "western_energetix", - "wilco", - "zions", - ] - ] - """ - The fuel brand. - """ - - -class PaymentIntentCreateParamsPaymentDetailsFleetDatumStation(TypedDict): - additional_contact_info: NotRequired[str] - """ - Additional contact information for the station. - """ - customer_service_phone_number: NotRequired[str] - """ - The customer service phone number of the station. - """ - partner_id_code: NotRequired[str] - """ - The partner ID code of the station. - """ - phone_number: NotRequired[str] - """ - The phone number of the station. - """ - service_location: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFleetDatumStationServiceLocation" - ] - """ - The physical location of the station. - """ - url: NotRequired[str] - """ - The URL of the station. - """ - - -class PaymentIntentCreateParamsPaymentDetailsFleetDatumStationServiceLocation( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: str - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] - """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - """ - - -class PaymentIntentCreateParamsPaymentDetailsFleetDatumVat(TypedDict): - iob_indicator: Literal[ - "issuer_to_iob", - "issuer_to_iob_and_incremental_certification", - "merchant_does_not_agree_to_iob", - ] - """ - Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. - """ - - -class PaymentIntentCreateParamsPaymentDetailsMoneyServices(TypedDict): - account_funding: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFunding" - ] - """ - Account funding transaction details including sender and beneficiary information. - """ - transaction_type: NotRequired["Literal['']|Literal['account_funding']"] - """ - The type of money services transaction. - """ - - -class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFunding( - TypedDict, -): - beneficiary_account: NotRequired[str] - """ - ID of the Account representing the beneficiary in this account funding transaction. - """ - beneficiary_details: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails" - ] - """ - Inline identity details for the beneficiary of this account funding transaction. - """ - sender_account: NotRequired[str] - """ - ID of the Account representing the sender in this account funding transaction. - """ - sender_details: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails" - ] - """ - Inline identity details for the sender of this account funding transaction. - """ - - -class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails( - TypedDict, -): - address: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress" - ] - """ - Address. - """ - date_of_birth: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth" - ] - """ - Date of birth. - """ - email: NotRequired[str] - """ - Email address. - """ - name: NotRequired[str] - """ - Full name. - """ - phone: NotRequired[str] - """ - Phone number. - """ - - -class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress( +class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress( TypedDict, ): city: NotRequired[str] @@ -2805,7 +2829,7 @@ class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBenefici """ -class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth( +class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth( TypedDict, ): day: int @@ -2822,78 +2846,54 @@ class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingBenefici """ -class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails( - TypedDict, -): - address: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress" +class PaymentIntentCreateParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate" ] """ - Address. + Affiliate details for this purchase. """ - date_of_birth: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth" + auto_renewal: NotRequired[bool] + """ + Info whether the subscription will be auto renewed upon expiry. + """ + billing_interval: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval" ] """ - Date of birth. + Subscription billing details for this purchase. """ - email: NotRequired[str] + ends_at: NotRequired[int] """ - Email address. + Subscription end time. Measured in seconds since the Unix epoch. """ - name: NotRequired[str] + name: str """ - Full name. + Name of the product on subscription. e.g. Apple Music Subscription """ - phone: NotRequired[str] + starts_at: NotRequired[int] """ - Phone number. + Subscription start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: NotRequired[str] - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] +class PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + The name of the affiliate that originated the purchase. """ -class PaymentIntentCreateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth( +class PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval( TypedDict, ): - day: int - """ - Day of birth, between 1 and 31. - """ - month: int + count: int """ - Month of birth, between 1 and 12. + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. """ - year: int + interval: Literal["day", "month", "week", "year"] """ - Four-digit year of birth. + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. """ @@ -3152,6 +3152,10 @@ 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" ] @@ -3258,10 +3262,6 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class PaymentIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict): @@ -4537,7 +4537,13 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict): ] ] """ - Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + """ + payment_details: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetails" + ] + """ + Payment details for payment method specific funding fields. """ request_decremental_authorization: NotRequired[ Literal["if_available", "never"] @@ -4620,12 +4626,6 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict): If 3D Secure authentication was performed with a third-party provider, the authentication details to use for this payment. """ - payment_details: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetails" - ] - """ - Payment details for payment method specific funding fields. - """ class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments(TypedDict): @@ -4703,6 +4703,115 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions( """ +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetails( + TypedDict, +): + money_services: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices" + ] + """ + Money services details for payment method specific funding fields. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices( + TypedDict, +): + account_funding: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding" + ] + """ + Payment method specific account funding transaction details. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding( + TypedDict, +): + liquid_asset: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset" + ] + """ + Details for a liquid asset (crypto or security) funding transaction. + """ + wallet: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet" + ] + """ + Details for a wallet funding transaction. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset( + TypedDict, +): + crypto: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto" + ] + """ + Details for a cryptocurrency liquid asset funding transaction. + """ + security: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity" + ] + """ + Details for a security liquid asset funding transaction. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto( + TypedDict, +): + currency_code: NotRequired[str] + """ + The cryptocurrency currency code (e.g. BTC, ETH). + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity( + TypedDict, +): + ticker_symbol: NotRequired[str] + """ + The security's ticker symbol (e.g. AAPL). + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet( + TypedDict, +): + staged_purchase: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase" + ] + """ + Details for a staged purchase. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase( + TypedDict, +): + merchant: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant" + ] + """ + The merchant where the staged wallet purchase is made. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant( + TypedDict, +): + mcc: NotRequired[str] + """ + The merchant category code of the merchant. + """ + name: NotRequired[str] + """ + The merchant's name. + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails( TypedDict, ): @@ -4828,115 +4937,6 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOption """ -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetails( - TypedDict, -): - money_services: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices" - ] - """ - Money services details for payment method specific funding fields. - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices( - TypedDict, -): - account_funding: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding" - ] - """ - Payment method specific account funding transaction details. - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding( - TypedDict, -): - liquid_asset: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset" - ] - """ - Details for a liquid asset (crypto or security) funding transaction. - """ - wallet: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet" - ] - """ - Details for a wallet funding transaction. - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset( - TypedDict, -): - crypto: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto" - ] - """ - Details for a cryptocurrency liquid asset funding transaction. - """ - security: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity" - ] - """ - Details for a security liquid asset funding transaction. - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto( - TypedDict, -): - currency_code: NotRequired[str] - """ - The cryptocurrency currency code (e.g. BTC, ETH). - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity( - TypedDict, -): - ticker_symbol: NotRequired[str] - """ - The security's ticker symbol (e.g. AAPL). - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet( - TypedDict, -): - staged_purchase: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase" - ] - """ - Details for a staged purchase. - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase( - TypedDict, -): - merchant: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant" - ] - """ - The merchant where the staged wallet purchase is made. - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant( - TypedDict, -): - mcc: NotRequired[str] - """ - The merchant category code of the merchant. - """ - name: NotRequired[str] - """ - The merchant's name. - """ - - class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict): capture_method: NotRequired[Literal["manual", "manual_preferred"]] """ @@ -4946,6 +4946,12 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict): If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. """ + payment_details: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentPaymentDetails" + ] + """ + Payment details for payment method specific funding transaction fields. + """ request_extended_authorization: NotRequired[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity) @@ -4964,21 +4970,6 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict): """ Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. """ - payment_details: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentPaymentDetails" - ] - """ - Payment details for payment method specific funding transaction fields. - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting( - TypedDict, -): - requested_priority: NotRequired[Literal["domestic", "international"]] - """ - Routing requested priority - """ class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentPaymentDetails( @@ -5090,6 +5081,15 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentPaymentDetailsMone """ +class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting( + TypedDict, +): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ diff --git a/stripe/params/_payment_intent_decrement_authorization_params.py b/stripe/params/_payment_intent_decrement_authorization_params.py index b74fa756a..0b036e8f3 100644 --- a/stripe/params/_payment_intent_decrement_authorization_params.py +++ b/stripe/params/_payment_intent_decrement_authorization_params.py @@ -122,6 +122,10 @@ class PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItem( """ The quantity of items. Required for L3 rates. An integer greater than 0. """ + quantity_precision: NotRequired[int] + """ + The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. + """ tax: NotRequired[ "PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemTax" ] @@ -136,10 +140,6 @@ class PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItem( """ A unit of measure for the line item, such as gallons, feet, meters, etc. """ - quantity_precision: NotRequired[int] - """ - The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. - """ class PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptions( diff --git a/stripe/params/_payment_intent_increment_authorization_params.py b/stripe/params/_payment_intent_increment_authorization_params.py index 2a83200f3..016a53197 100644 --- a/stripe/params/_payment_intent_increment_authorization_params.py +++ b/stripe/params/_payment_intent_increment_authorization_params.py @@ -132,6 +132,10 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItem( """ The quantity of items. Required for L3 rates. An integer greater than 0. """ + quantity_precision: NotRequired[int] + """ + The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. + """ tax: NotRequired[ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemTax" ] @@ -146,10 +150,6 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItem( """ A unit of measure for the line item, such as gallons, feet, meters, etc. """ - quantity_precision: NotRequired[int] - """ - The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. - """ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptions( diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index 8fda72a3e..ce7d9e73b 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -227,6 +227,10 @@ class PaymentIntentModifyParamsAmountDetailsLineItem(TypedDict): """ The quantity of items. Required for L3 rates. An integer greater than 0. """ + quantity_precision: NotRequired[int] + """ + The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. + """ tax: NotRequired["PaymentIntentModifyParamsAmountDetailsLineItemTax"] """ Contains information about the tax on the item. @@ -239,10 +243,6 @@ class PaymentIntentModifyParamsAmountDetailsLineItem(TypedDict): """ A unit of measure for the line item, such as gallons, feet, meters, etc. """ - quantity_precision: NotRequired[int] - """ - The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. - """ class PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptions( @@ -525,6 +525,12 @@ class PaymentIntentModifyParamsPaymentDetails(TypedDict): """ Event details for this PaymentIntent """ + fleet_data: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsFleetDatum]" + ] + """ + Fleet data for this PaymentIntent. + """ flight: NotRequired["PaymentIntentModifyParamsPaymentDetailsFlight"] """ Flight reservation details for this PaymentIntent @@ -545,6 +551,12 @@ class PaymentIntentModifyParamsPaymentDetails(TypedDict): """ Lodging data for this PaymentIntent. """ + money_services: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentDetailsMoneyServices" + ] + """ + Money services details for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -557,18 +569,6 @@ class PaymentIntentModifyParamsPaymentDetails(TypedDict): """ Subscription details for this PaymentIntent """ - fleet_data: NotRequired[ - "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsFleetDatum]" - ] - """ - Fleet data for this PaymentIntent. - """ - money_services: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentDetailsMoneyServices" - ] - """ - Money services details for this PaymentIntent. - """ class PaymentIntentModifyParamsPaymentDetailsBenefit(TypedDict): @@ -1365,85 +1365,317 @@ class PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient( """ -class PaymentIntentModifyParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFlightAffiliate" +class PaymentIntentModifyParamsPaymentDetailsFleetDatum(TypedDict): + primary_fuel_fields: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFleetDatumPrimaryFuelFields" ] """ - Affiliate details for this purchase. - """ - agency_number: NotRequired[str] - """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. - """ - carrier: NotRequired[str] - """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Primary fuel fields for the transaction. """ - delivery: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFlightDelivery" + station: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFleetDatumStation" ] """ - Delivery details for this purchase. + Station and acceptor location details. """ - passenger_name: NotRequired[str] + vat: NotRequired["PaymentIntentModifyParamsPaymentDetailsFleetDatumVat"] """ - The name of the person or entity on the reservation. + VAT and Invoice on Behalf (IOB) details. """ - passengers: NotRequired[ - List["PaymentIntentModifyParamsPaymentDetailsFlightPassenger"] + + +class PaymentIntentModifyParamsPaymentDetailsFleetDatumPrimaryFuelFields( + TypedDict, +): + brand: NotRequired[ + Literal[ + "aafes", + "amerada_hess", + "amoco_canada", + "amoco_petroleum_products", + "arco_products", + "asda", + "ashland_oil", + "bfl", + "bp_mobil", + "bp_oil", + "burrnah_major", + "butler_arndale", + "canadian_tire", + "canadian_turbo", + "caseys_general_store", + "cenex", + "chevron_canada", + "chevron_usa", + "circle_k_stores", + "citgo_petroleum", + "clark_brands", + "conoco_canada", + "conoco_inc", + "crown_central_petroleum", + "diamond_shamrock_inc", + "discount_tire", + "domo_gas", + "elf", + "erickson_oil", + "esso", + "esso_canada", + "exxon", + "exxonmobil", + "family_express", + "fas_gas_oil", + "federated_coop_sonic", + "fina", + "fina_inc", + "fkg_oil", + "flare", + "flying_j_inc", + "gas_america", + "gate_petroleum", + "getty_petroleum", + "giant_eagle", + "grow_mark_inc", + "gulf", + "gulf_canada", + "gulf_chevron", + "handy_way_food", + "heron", + "holiday_stores", + "home_depot", + "husky", + "hyvees", + "irving", + "irving_oil", + "j_sainsbury", + "jet_conoco", + "krogers", + "kuwait", + "kwik_trip_inc", + "lassus", + "loves_country_stores", + "mapco_express_inc", + "marathon_oil", + "martin_bailey_inc_dba_hucks", + "maxol", + "meineke", + "mfa", + "mohawk", + "mr_gas", + "murco", + "murphy_oil_canada", + "murphy_oil_usa_inc", + "nexcom", + "nordstrom_oil", + "olco", + "pdq_store", + "pennzoil_products_inc", + "petro", + "petro_canada", + "petro_t", + "phillips", + "pilot", + "pioneer", + "pure_oil", + "quaker_state", + "quarles_oil", + "quiktrip", + "racetrac_petroleum_inc", + "raceway_petroleum", + "repsol", + "rudy", + "safeway", + "seven_eleven", + "sheetz", + "shell", + "shell_canada", + "shell_oil", + "sinclair_oil", + "southland_oil", + "spar", + "speedway", + "sun_company_inc", + "suncor_sunoco_canada", + "tempo", + "tesco", + "tesoro_alaska", + "texaco", + "the_pantry_inc", + "thornton_oil", + "tosco", + "total", + "travel_centers_of_america", + "uk", + "ultramar_canada", + "unbranded_or_unassigned", + "unbranded_unassigned", + "union_76", + "united_dairy_farmer", + "united_refining_kwikfill", + "us_oil", + "usa_petroleum", + "valvoline", + "vg", + "w_morrison", + "warren_equities", + "wawa", + "western_energetix", + "wilco", + "zions", + ] ] """ - The details of the passengers in the travel reservation. + The fuel brand. """ - segments: List["PaymentIntentModifyParamsPaymentDetailsFlightSegment"] + + +class PaymentIntentModifyParamsPaymentDetailsFleetDatumStation(TypedDict): + additional_contact_info: NotRequired[str] """ - The individual flight segments associated with the trip. + Additional contact information for the station. """ - ticket_number: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The ticket number associated with the travel reservation. + The customer service phone number of the station. """ - - -class PaymentIntentModifyParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + partner_id_code: NotRequired[str] """ - The name of the affiliate that originated the purchase. + The partner ID code of the station. """ - - -class PaymentIntentModifyParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + phone_number: NotRequired[str] """ - The delivery method for the payment + The phone number of the station. """ - recipient: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient" + service_location: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFleetDatumStationServiceLocation" ] """ - Details of the recipient. + The physical location of the station. + """ + url: NotRequired[str] + """ + The URL of the station. """ -class PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient( - TypedDict +class PaymentIntentModifyParamsPaymentDetailsFleetDatumStationServiceLocation( + TypedDict, ): - email: NotRequired[str] + city: NotRequired[str] """ - The email of the recipient the ticket is delivered to. + City, district, suburb, town, or village. """ - name: NotRequired[str] + country: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - phone: NotRequired[str] + line1: str """ - The phone number of the recipient the ticket is delivered to. + Address line 1, such as the street, PO Box, or company name. """ - - -class PaymentIntentModifyParamsPaymentDetailsFlightPassenger(TypedDict): + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + +class PaymentIntentModifyParamsPaymentDetailsFleetDatumVat(TypedDict): + iob_indicator: Literal[ + "issuer_to_iob", + "issuer_to_iob_and_incremental_certification", + "merchant_does_not_agree_to_iob", + ] + """ + Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + """ + + +class PaymentIntentModifyParamsPaymentDetailsFlight(TypedDict): + affiliate: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFlightAffiliate" + ] + """ + Affiliate details for this purchase. + """ + agency_number: NotRequired[str] + """ + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + """ + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFlightDelivery" + ] + """ + Delivery details for this purchase. + """ + passenger_name: NotRequired[str] + """ + The name of the person or entity on the reservation. + """ + passengers: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsFlightPassenger"] + ] + """ + The details of the passengers in the travel reservation. + """ + segments: List["PaymentIntentModifyParamsPaymentDetailsFlightSegment"] + """ + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. + """ + + +class PaymentIntentModifyParamsPaymentDetailsFlightAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class PaymentIntentModifyParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + """ + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient" + ] + """ + Details of the recipient. + """ + + +class PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict +): + email: NotRequired[str] + """ + The email of the recipient the ticket is delivered to. + """ + name: NotRequired[str] + """ + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. + """ + + +class PaymentIntentModifyParamsPaymentDetailsFlightPassenger(TypedDict): name: str """ Full name of the person or entity on the flight reservation. @@ -2279,357 +2511,149 @@ class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax( """ -class PaymentIntentModifyParamsPaymentDetailsSubscription(TypedDict): - affiliate: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate" +class PaymentIntentModifyParamsPaymentDetailsMoneyServices(TypedDict): + account_funding: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFunding" ] """ - Affiliate details for this purchase. + Account funding transaction details including sender and beneficiary information. """ - auto_renewal: NotRequired[bool] + transaction_type: NotRequired["Literal['']|Literal['account_funding']"] """ - Info whether the subscription will be auto renewed upon expiry. + The type of money services transaction. """ - billing_interval: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval" + + +class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFunding( + TypedDict, +): + beneficiary_account: NotRequired[str] + """ + ID of the Account representing the beneficiary in this account funding transaction. + """ + beneficiary_details: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails" ] """ - Subscription billing details for this purchase. + Inline identity details for the beneficiary of this account funding transaction. """ - ends_at: NotRequired[int] + sender_account: NotRequired[str] """ - Subscription end time. Measured in seconds since the Unix epoch. + ID of the Account representing the sender in this account funding transaction. """ - name: str + sender_details: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails" + ] """ - Name of the product on subscription. e.g. Apple Music Subscription + Inline identity details for the sender of this account funding transaction. """ - starts_at: NotRequired[int] + + +class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress" + ] """ - Subscription start time. Measured in seconds since the Unix epoch. + Address. + """ + date_of_birth: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth" + ] + """ + Date of birth. + """ + email: NotRequired[str] + """ + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Phone number. """ -class PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate(TypedDict): - name: str +class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress( + TypedDict, +): + city: NotRequired[str] """ - The name of the affiliate that originated the purchase. + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). """ -class PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval( +class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth( TypedDict, ): - count: int + day: int """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + Day of birth, between 1 and 31. """ - interval: Literal["day", "month", "week", "year"] + month: int """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + Month of birth, between 1 and 12. + """ + year: int + """ + Four-digit year of birth. """ -class PaymentIntentModifyParamsPaymentDetailsFleetDatum(TypedDict): - primary_fuel_fields: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFleetDatumPrimaryFuelFields" +class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress" ] """ - Primary fuel fields for the transaction. + Address. """ - station: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFleetDatumStation" + date_of_birth: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth" ] """ - Station and acceptor location details. + Date of birth. """ - vat: NotRequired["PaymentIntentModifyParamsPaymentDetailsFleetDatumVat"] + email: NotRequired[str] """ - VAT and Invoice on Behalf (IOB) details. + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Phone number. """ -class PaymentIntentModifyParamsPaymentDetailsFleetDatumPrimaryFuelFields( - TypedDict, -): - brand: NotRequired[ - Literal[ - "aafes", - "amerada_hess", - "amoco_canada", - "amoco_petroleum_products", - "arco_products", - "asda", - "ashland_oil", - "bfl", - "bp_mobil", - "bp_oil", - "burrnah_major", - "butler_arndale", - "canadian_tire", - "canadian_turbo", - "caseys_general_store", - "cenex", - "chevron_canada", - "chevron_usa", - "circle_k_stores", - "citgo_petroleum", - "clark_brands", - "conoco_canada", - "conoco_inc", - "crown_central_petroleum", - "diamond_shamrock_inc", - "discount_tire", - "domo_gas", - "elf", - "erickson_oil", - "esso", - "esso_canada", - "exxon", - "exxonmobil", - "family_express", - "fas_gas_oil", - "federated_coop_sonic", - "fina", - "fina_inc", - "fkg_oil", - "flare", - "flying_j_inc", - "gas_america", - "gate_petroleum", - "getty_petroleum", - "giant_eagle", - "grow_mark_inc", - "gulf", - "gulf_canada", - "gulf_chevron", - "handy_way_food", - "heron", - "holiday_stores", - "home_depot", - "husky", - "hyvees", - "irving", - "irving_oil", - "j_sainsbury", - "jet_conoco", - "krogers", - "kuwait", - "kwik_trip_inc", - "lassus", - "loves_country_stores", - "mapco_express_inc", - "marathon_oil", - "martin_bailey_inc_dba_hucks", - "maxol", - "meineke", - "mfa", - "mohawk", - "mr_gas", - "murco", - "murphy_oil_canada", - "murphy_oil_usa_inc", - "nexcom", - "nordstrom_oil", - "olco", - "pdq_store", - "pennzoil_products_inc", - "petro", - "petro_canada", - "petro_t", - "phillips", - "pilot", - "pioneer", - "pure_oil", - "quaker_state", - "quarles_oil", - "quiktrip", - "racetrac_petroleum_inc", - "raceway_petroleum", - "repsol", - "rudy", - "safeway", - "seven_eleven", - "sheetz", - "shell", - "shell_canada", - "shell_oil", - "sinclair_oil", - "southland_oil", - "spar", - "speedway", - "sun_company_inc", - "suncor_sunoco_canada", - "tempo", - "tesco", - "tesoro_alaska", - "texaco", - "the_pantry_inc", - "thornton_oil", - "tosco", - "total", - "travel_centers_of_america", - "uk", - "ultramar_canada", - "unbranded_or_unassigned", - "unbranded_unassigned", - "union_76", - "united_dairy_farmer", - "united_refining_kwikfill", - "us_oil", - "usa_petroleum", - "valvoline", - "vg", - "w_morrison", - "warren_equities", - "wawa", - "western_energetix", - "wilco", - "zions", - ] - ] - """ - The fuel brand. - """ - - -class PaymentIntentModifyParamsPaymentDetailsFleetDatumStation(TypedDict): - additional_contact_info: NotRequired[str] - """ - Additional contact information for the station. - """ - customer_service_phone_number: NotRequired[str] - """ - The customer service phone number of the station. - """ - partner_id_code: NotRequired[str] - """ - The partner ID code of the station. - """ - phone_number: NotRequired[str] - """ - The phone number of the station. - """ - service_location: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFleetDatumStationServiceLocation" - ] - """ - The physical location of the station. - """ - url: NotRequired[str] - """ - The URL of the station. - """ - - -class PaymentIntentModifyParamsPaymentDetailsFleetDatumStationServiceLocation( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: str - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] - """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - """ - - -class PaymentIntentModifyParamsPaymentDetailsFleetDatumVat(TypedDict): - iob_indicator: Literal[ - "issuer_to_iob", - "issuer_to_iob_and_incremental_certification", - "merchant_does_not_agree_to_iob", - ] - """ - Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. - """ - - -class PaymentIntentModifyParamsPaymentDetailsMoneyServices(TypedDict): - account_funding: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFunding" - ] - """ - Account funding transaction details including sender and beneficiary information. - """ - transaction_type: NotRequired["Literal['']|Literal['account_funding']"] - """ - The type of money services transaction. - """ - - -class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFunding( - TypedDict, -): - beneficiary_account: NotRequired[str] - """ - ID of the Account representing the beneficiary in this account funding transaction. - """ - beneficiary_details: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails" - ] - """ - Inline identity details for the beneficiary of this account funding transaction. - """ - sender_account: NotRequired[str] - """ - ID of the Account representing the sender in this account funding transaction. - """ - sender_details: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails" - ] - """ - Inline identity details for the sender of this account funding transaction. - """ - - -class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails( - TypedDict, -): - address: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress" - ] - """ - Address. - """ - date_of_birth: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth" - ] - """ - Date of birth. - """ - email: NotRequired[str] - """ - Email address. - """ - name: NotRequired[str] - """ - Full name. - """ - phone: NotRequired[str] - """ - Phone number. - """ - - -class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress( +class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress( TypedDict, ): city: NotRequired[str] @@ -2658,7 +2682,7 @@ class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBenefici """ -class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth( +class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth( TypedDict, ): day: int @@ -2675,78 +2699,54 @@ class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingBenefici """ -class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails( - TypedDict, -): - address: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress" +class PaymentIntentModifyParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate" ] """ - Address. + Affiliate details for this purchase. """ - date_of_birth: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth" + auto_renewal: NotRequired[bool] + """ + Info whether the subscription will be auto renewed upon expiry. + """ + billing_interval: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval" ] """ - Date of birth. + Subscription billing details for this purchase. """ - email: NotRequired[str] + ends_at: NotRequired[int] """ - Email address. + Subscription end time. Measured in seconds since the Unix epoch. """ - name: NotRequired[str] + name: str """ - Full name. + Name of the product on subscription. e.g. Apple Music Subscription """ - phone: NotRequired[str] + starts_at: NotRequired[int] """ - Phone number. + Subscription start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: NotRequired[str] - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] +class PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + The name of the affiliate that originated the purchase. """ -class PaymentIntentModifyParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth( +class PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval( TypedDict, ): - day: int - """ - Day of birth, between 1 and 31. - """ - month: int + count: int """ - Month of birth, between 1 and 12. + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. """ - year: int + interval: Literal["day", "month", "week", "year"] """ - Four-digit year of birth. + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. """ @@ -3005,6 +3005,10 @@ 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" ] @@ -3111,10 +3115,6 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class PaymentIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict): @@ -4390,7 +4390,13 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCard(TypedDict): ] ] """ - Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + """ + payment_details: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetails" + ] + """ + Payment details for payment method specific funding fields. """ request_decremental_authorization: NotRequired[ Literal["if_available", "never"] @@ -4473,12 +4479,6 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCard(TypedDict): If 3D Secure authentication was performed with a third-party provider, the authentication details to use for this payment. """ - payment_details: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetails" - ] - """ - Payment details for payment method specific funding fields. - """ class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments(TypedDict): @@ -4556,6 +4556,115 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions( """ +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetails( + TypedDict, +): + money_services: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices" + ] + """ + Money services details for payment method specific funding fields. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices( + TypedDict, +): + account_funding: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding" + ] + """ + Payment method specific account funding transaction details. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding( + TypedDict, +): + liquid_asset: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset" + ] + """ + Details for a liquid asset (crypto or security) funding transaction. + """ + wallet: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet" + ] + """ + Details for a wallet funding transaction. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset( + TypedDict, +): + crypto: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto" + ] + """ + Details for a cryptocurrency liquid asset funding transaction. + """ + security: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity" + ] + """ + Details for a security liquid asset funding transaction. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto( + TypedDict, +): + currency_code: NotRequired[str] + """ + The cryptocurrency currency code (e.g. BTC, ETH). + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity( + TypedDict, +): + ticker_symbol: NotRequired[str] + """ + The security's ticker symbol (e.g. AAPL). + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet( + TypedDict, +): + staged_purchase: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase" + ] + """ + Details for a staged purchase. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase( + TypedDict, +): + merchant: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant" + ] + """ + The merchant where the staged wallet purchase is made. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant( + TypedDict, +): + mcc: NotRequired[str] + """ + The merchant category code of the merchant. + """ + name: NotRequired[str] + """ + The merchant's name. + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails( TypedDict, ): @@ -4681,115 +4790,6 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOption """ -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetails( - TypedDict, -): - money_services: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices" - ] - """ - Money services details for payment method specific funding fields. - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices( - TypedDict, -): - account_funding: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding" - ] - """ - Payment method specific account funding transaction details. - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding( - TypedDict, -): - liquid_asset: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset" - ] - """ - Details for a liquid asset (crypto or security) funding transaction. - """ - wallet: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet" - ] - """ - Details for a wallet funding transaction. - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset( - TypedDict, -): - crypto: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto" - ] - """ - Details for a cryptocurrency liquid asset funding transaction. - """ - security: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity" - ] - """ - Details for a security liquid asset funding transaction. - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto( - TypedDict, -): - currency_code: NotRequired[str] - """ - The cryptocurrency currency code (e.g. BTC, ETH). - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity( - TypedDict, -): - ticker_symbol: NotRequired[str] - """ - The security's ticker symbol (e.g. AAPL). - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet( - TypedDict, -): - staged_purchase: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase" - ] - """ - Details for a staged purchase. - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase( - TypedDict, -): - merchant: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant" - ] - """ - The merchant where the staged wallet purchase is made. - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant( - TypedDict, -): - mcc: NotRequired[str] - """ - The merchant category code of the merchant. - """ - name: NotRequired[str] - """ - The merchant's name. - """ - - class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict): capture_method: NotRequired[Literal["manual", "manual_preferred"]] """ @@ -4799,6 +4799,12 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict): If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. """ + payment_details: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentPaymentDetails" + ] + """ + Payment details for payment method specific funding transaction fields. + """ request_extended_authorization: NotRequired[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity) @@ -4817,21 +4823,6 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict): """ Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. """ - payment_details: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentPaymentDetails" - ] - """ - Payment details for payment method specific funding transaction fields. - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting( - TypedDict, -): - requested_priority: NotRequired[Literal["domestic", "international"]] - """ - Routing requested priority - """ class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentPaymentDetails( @@ -4943,6 +4934,15 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentPaymentDetailsMone """ +class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting( + TypedDict, +): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index 01663c8be..d54c41ab8 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -226,6 +226,10 @@ class PaymentIntentUpdateParamsAmountDetailsLineItem(TypedDict): """ The quantity of items. Required for L3 rates. An integer greater than 0. """ + quantity_precision: NotRequired[int] + """ + The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. + """ tax: NotRequired["PaymentIntentUpdateParamsAmountDetailsLineItemTax"] """ Contains information about the tax on the item. @@ -238,10 +242,6 @@ class PaymentIntentUpdateParamsAmountDetailsLineItem(TypedDict): """ A unit of measure for the line item, such as gallons, feet, meters, etc. """ - quantity_precision: NotRequired[int] - """ - The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided. - """ class PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptions( @@ -524,6 +524,12 @@ class PaymentIntentUpdateParamsPaymentDetails(TypedDict): """ Event details for this PaymentIntent """ + fleet_data: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsFleetDatum]" + ] + """ + Fleet data for this PaymentIntent. + """ flight: NotRequired["PaymentIntentUpdateParamsPaymentDetailsFlight"] """ Flight reservation details for this PaymentIntent @@ -544,6 +550,12 @@ class PaymentIntentUpdateParamsPaymentDetails(TypedDict): """ Lodging data for this PaymentIntent. """ + money_services: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentDetailsMoneyServices" + ] + """ + Money services details for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -556,18 +568,6 @@ class PaymentIntentUpdateParamsPaymentDetails(TypedDict): """ Subscription details for this PaymentIntent """ - fleet_data: NotRequired[ - "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsFleetDatum]" - ] - """ - Fleet data for this PaymentIntent. - """ - money_services: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentDetailsMoneyServices" - ] - """ - Money services details for this PaymentIntent. - """ class PaymentIntentUpdateParamsPaymentDetailsBenefit(TypedDict): @@ -1364,85 +1364,317 @@ class PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient( """ -class PaymentIntentUpdateParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate" +class PaymentIntentUpdateParamsPaymentDetailsFleetDatum(TypedDict): + primary_fuel_fields: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFleetDatumPrimaryFuelFields" ] """ - Affiliate details for this purchase. - """ - agency_number: NotRequired[str] - """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. - """ - carrier: NotRequired[str] - """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Primary fuel fields for the transaction. """ - delivery: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFlightDelivery" + station: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFleetDatumStation" ] """ - Delivery details for this purchase. + Station and acceptor location details. """ - passenger_name: NotRequired[str] + vat: NotRequired["PaymentIntentUpdateParamsPaymentDetailsFleetDatumVat"] """ - The name of the person or entity on the reservation. + VAT and Invoice on Behalf (IOB) details. """ - passengers: NotRequired[ - List["PaymentIntentUpdateParamsPaymentDetailsFlightPassenger"] + + +class PaymentIntentUpdateParamsPaymentDetailsFleetDatumPrimaryFuelFields( + TypedDict, +): + brand: NotRequired[ + Literal[ + "aafes", + "amerada_hess", + "amoco_canada", + "amoco_petroleum_products", + "arco_products", + "asda", + "ashland_oil", + "bfl", + "bp_mobil", + "bp_oil", + "burrnah_major", + "butler_arndale", + "canadian_tire", + "canadian_turbo", + "caseys_general_store", + "cenex", + "chevron_canada", + "chevron_usa", + "circle_k_stores", + "citgo_petroleum", + "clark_brands", + "conoco_canada", + "conoco_inc", + "crown_central_petroleum", + "diamond_shamrock_inc", + "discount_tire", + "domo_gas", + "elf", + "erickson_oil", + "esso", + "esso_canada", + "exxon", + "exxonmobil", + "family_express", + "fas_gas_oil", + "federated_coop_sonic", + "fina", + "fina_inc", + "fkg_oil", + "flare", + "flying_j_inc", + "gas_america", + "gate_petroleum", + "getty_petroleum", + "giant_eagle", + "grow_mark_inc", + "gulf", + "gulf_canada", + "gulf_chevron", + "handy_way_food", + "heron", + "holiday_stores", + "home_depot", + "husky", + "hyvees", + "irving", + "irving_oil", + "j_sainsbury", + "jet_conoco", + "krogers", + "kuwait", + "kwik_trip_inc", + "lassus", + "loves_country_stores", + "mapco_express_inc", + "marathon_oil", + "martin_bailey_inc_dba_hucks", + "maxol", + "meineke", + "mfa", + "mohawk", + "mr_gas", + "murco", + "murphy_oil_canada", + "murphy_oil_usa_inc", + "nexcom", + "nordstrom_oil", + "olco", + "pdq_store", + "pennzoil_products_inc", + "petro", + "petro_canada", + "petro_t", + "phillips", + "pilot", + "pioneer", + "pure_oil", + "quaker_state", + "quarles_oil", + "quiktrip", + "racetrac_petroleum_inc", + "raceway_petroleum", + "repsol", + "rudy", + "safeway", + "seven_eleven", + "sheetz", + "shell", + "shell_canada", + "shell_oil", + "sinclair_oil", + "southland_oil", + "spar", + "speedway", + "sun_company_inc", + "suncor_sunoco_canada", + "tempo", + "tesco", + "tesoro_alaska", + "texaco", + "the_pantry_inc", + "thornton_oil", + "tosco", + "total", + "travel_centers_of_america", + "uk", + "ultramar_canada", + "unbranded_or_unassigned", + "unbranded_unassigned", + "union_76", + "united_dairy_farmer", + "united_refining_kwikfill", + "us_oil", + "usa_petroleum", + "valvoline", + "vg", + "w_morrison", + "warren_equities", + "wawa", + "western_energetix", + "wilco", + "zions", + ] ] """ - The details of the passengers in the travel reservation. + The fuel brand. """ - segments: List["PaymentIntentUpdateParamsPaymentDetailsFlightSegment"] + + +class PaymentIntentUpdateParamsPaymentDetailsFleetDatumStation(TypedDict): + additional_contact_info: NotRequired[str] """ - The individual flight segments associated with the trip. + Additional contact information for the station. """ - ticket_number: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The ticket number associated with the travel reservation. + The customer service phone number of the station. """ - - -class PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + partner_id_code: NotRequired[str] """ - The name of the affiliate that originated the purchase. + The partner ID code of the station. """ - - -class PaymentIntentUpdateParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + phone_number: NotRequired[str] """ - The delivery method for the payment + The phone number of the station. """ - recipient: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient" + service_location: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFleetDatumStationServiceLocation" ] """ - Details of the recipient. + The physical location of the station. + """ + url: NotRequired[str] + """ + The URL of the station. """ -class PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient( - TypedDict +class PaymentIntentUpdateParamsPaymentDetailsFleetDatumStationServiceLocation( + TypedDict, ): - email: NotRequired[str] + city: NotRequired[str] """ - The email of the recipient the ticket is delivered to. + City, district, suburb, town, or village. """ - name: NotRequired[str] + country: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - phone: NotRequired[str] + line1: str """ - The phone number of the recipient the ticket is delivered to. + Address line 1, such as the street, PO Box, or company name. """ - - -class PaymentIntentUpdateParamsPaymentDetailsFlightPassenger(TypedDict): + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + +class PaymentIntentUpdateParamsPaymentDetailsFleetDatumVat(TypedDict): + iob_indicator: Literal[ + "issuer_to_iob", + "issuer_to_iob_and_incremental_certification", + "merchant_does_not_agree_to_iob", + ] + """ + Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + """ + + +class PaymentIntentUpdateParamsPaymentDetailsFlight(TypedDict): + affiliate: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate" + ] + """ + Affiliate details for this purchase. + """ + agency_number: NotRequired[str] + """ + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + """ + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFlightDelivery" + ] + """ + Delivery details for this purchase. + """ + passenger_name: NotRequired[str] + """ + The name of the person or entity on the reservation. + """ + passengers: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsFlightPassenger"] + ] + """ + The details of the passengers in the travel reservation. + """ + segments: List["PaymentIntentUpdateParamsPaymentDetailsFlightSegment"] + """ + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. + """ + + +class PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + """ + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient" + ] + """ + Details of the recipient. + """ + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict +): + email: NotRequired[str] + """ + The email of the recipient the ticket is delivered to. + """ + name: NotRequired[str] + """ + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. + """ + + +class PaymentIntentUpdateParamsPaymentDetailsFlightPassenger(TypedDict): name: str """ Full name of the person or entity on the flight reservation. @@ -2278,357 +2510,149 @@ class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax( """ -class PaymentIntentUpdateParamsPaymentDetailsSubscription(TypedDict): - affiliate: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate" +class PaymentIntentUpdateParamsPaymentDetailsMoneyServices(TypedDict): + account_funding: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFunding" ] """ - Affiliate details for this purchase. + Account funding transaction details including sender and beneficiary information. """ - auto_renewal: NotRequired[bool] + transaction_type: NotRequired["Literal['']|Literal['account_funding']"] """ - Info whether the subscription will be auto renewed upon expiry. + The type of money services transaction. """ - billing_interval: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval" + + +class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFunding( + TypedDict, +): + beneficiary_account: NotRequired[str] + """ + ID of the Account representing the beneficiary in this account funding transaction. + """ + beneficiary_details: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails" ] """ - Subscription billing details for this purchase. + Inline identity details for the beneficiary of this account funding transaction. """ - ends_at: NotRequired[int] + sender_account: NotRequired[str] """ - Subscription end time. Measured in seconds since the Unix epoch. + ID of the Account representing the sender in this account funding transaction. """ - name: str + sender_details: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails" + ] """ - Name of the product on subscription. e.g. Apple Music Subscription + Inline identity details for the sender of this account funding transaction. """ - starts_at: NotRequired[int] + + +class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress" + ] """ - Subscription start time. Measured in seconds since the Unix epoch. + Address. + """ + date_of_birth: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth" + ] + """ + Date of birth. + """ + email: NotRequired[str] + """ + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Phone number. """ -class PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): - name: str +class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress( + TypedDict, +): + city: NotRequired[str] """ - The name of the affiliate that originated the purchase. + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). """ -class PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval( +class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth( TypedDict, ): - count: int + day: int """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + Day of birth, between 1 and 31. """ - interval: Literal["day", "month", "week", "year"] + month: int """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + Month of birth, between 1 and 12. + """ + year: int + """ + Four-digit year of birth. """ -class PaymentIntentUpdateParamsPaymentDetailsFleetDatum(TypedDict): - primary_fuel_fields: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFleetDatumPrimaryFuelFields" +class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress" ] """ - Primary fuel fields for the transaction. + Address. """ - station: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFleetDatumStation" + date_of_birth: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth" ] """ - Station and acceptor location details. + Date of birth. """ - vat: NotRequired["PaymentIntentUpdateParamsPaymentDetailsFleetDatumVat"] + email: NotRequired[str] """ - VAT and Invoice on Behalf (IOB) details. + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Phone number. """ -class PaymentIntentUpdateParamsPaymentDetailsFleetDatumPrimaryFuelFields( - TypedDict, -): - brand: NotRequired[ - Literal[ - "aafes", - "amerada_hess", - "amoco_canada", - "amoco_petroleum_products", - "arco_products", - "asda", - "ashland_oil", - "bfl", - "bp_mobil", - "bp_oil", - "burrnah_major", - "butler_arndale", - "canadian_tire", - "canadian_turbo", - "caseys_general_store", - "cenex", - "chevron_canada", - "chevron_usa", - "circle_k_stores", - "citgo_petroleum", - "clark_brands", - "conoco_canada", - "conoco_inc", - "crown_central_petroleum", - "diamond_shamrock_inc", - "discount_tire", - "domo_gas", - "elf", - "erickson_oil", - "esso", - "esso_canada", - "exxon", - "exxonmobil", - "family_express", - "fas_gas_oil", - "federated_coop_sonic", - "fina", - "fina_inc", - "fkg_oil", - "flare", - "flying_j_inc", - "gas_america", - "gate_petroleum", - "getty_petroleum", - "giant_eagle", - "grow_mark_inc", - "gulf", - "gulf_canada", - "gulf_chevron", - "handy_way_food", - "heron", - "holiday_stores", - "home_depot", - "husky", - "hyvees", - "irving", - "irving_oil", - "j_sainsbury", - "jet_conoco", - "krogers", - "kuwait", - "kwik_trip_inc", - "lassus", - "loves_country_stores", - "mapco_express_inc", - "marathon_oil", - "martin_bailey_inc_dba_hucks", - "maxol", - "meineke", - "mfa", - "mohawk", - "mr_gas", - "murco", - "murphy_oil_canada", - "murphy_oil_usa_inc", - "nexcom", - "nordstrom_oil", - "olco", - "pdq_store", - "pennzoil_products_inc", - "petro", - "petro_canada", - "petro_t", - "phillips", - "pilot", - "pioneer", - "pure_oil", - "quaker_state", - "quarles_oil", - "quiktrip", - "racetrac_petroleum_inc", - "raceway_petroleum", - "repsol", - "rudy", - "safeway", - "seven_eleven", - "sheetz", - "shell", - "shell_canada", - "shell_oil", - "sinclair_oil", - "southland_oil", - "spar", - "speedway", - "sun_company_inc", - "suncor_sunoco_canada", - "tempo", - "tesco", - "tesoro_alaska", - "texaco", - "the_pantry_inc", - "thornton_oil", - "tosco", - "total", - "travel_centers_of_america", - "uk", - "ultramar_canada", - "unbranded_or_unassigned", - "unbranded_unassigned", - "union_76", - "united_dairy_farmer", - "united_refining_kwikfill", - "us_oil", - "usa_petroleum", - "valvoline", - "vg", - "w_morrison", - "warren_equities", - "wawa", - "western_energetix", - "wilco", - "zions", - ] - ] - """ - The fuel brand. - """ - - -class PaymentIntentUpdateParamsPaymentDetailsFleetDatumStation(TypedDict): - additional_contact_info: NotRequired[str] - """ - Additional contact information for the station. - """ - customer_service_phone_number: NotRequired[str] - """ - The customer service phone number of the station. - """ - partner_id_code: NotRequired[str] - """ - The partner ID code of the station. - """ - phone_number: NotRequired[str] - """ - The phone number of the station. - """ - service_location: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFleetDatumStationServiceLocation" - ] - """ - The physical location of the station. - """ - url: NotRequired[str] - """ - The URL of the station. - """ - - -class PaymentIntentUpdateParamsPaymentDetailsFleetDatumStationServiceLocation( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: str - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] - """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - """ - - -class PaymentIntentUpdateParamsPaymentDetailsFleetDatumVat(TypedDict): - iob_indicator: Literal[ - "issuer_to_iob", - "issuer_to_iob_and_incremental_certification", - "merchant_does_not_agree_to_iob", - ] - """ - Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. - """ - - -class PaymentIntentUpdateParamsPaymentDetailsMoneyServices(TypedDict): - account_funding: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFunding" - ] - """ - Account funding transaction details including sender and beneficiary information. - """ - transaction_type: NotRequired["Literal['']|Literal['account_funding']"] - """ - The type of money services transaction. - """ - - -class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFunding( - TypedDict, -): - beneficiary_account: NotRequired[str] - """ - ID of the Account representing the beneficiary in this account funding transaction. - """ - beneficiary_details: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails" - ] - """ - Inline identity details for the beneficiary of this account funding transaction. - """ - sender_account: NotRequired[str] - """ - ID of the Account representing the sender in this account funding transaction. - """ - sender_details: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails" - ] - """ - Inline identity details for the sender of this account funding transaction. - """ - - -class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails( - TypedDict, -): - address: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress" - ] - """ - Address. - """ - date_of_birth: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth" - ] - """ - Date of birth. - """ - email: NotRequired[str] - """ - Email address. - """ - name: NotRequired[str] - """ - Full name. - """ - phone: NotRequired[str] - """ - Phone number. - """ - - -class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress( +class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress( TypedDict, ): city: NotRequired[str] @@ -2657,7 +2681,7 @@ class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBenefici """ -class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth( +class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth( TypedDict, ): day: int @@ -2674,78 +2698,54 @@ class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingBenefici """ -class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetails( - TypedDict, -): - address: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress" +class PaymentIntentUpdateParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate" ] """ - Address. + Affiliate details for this purchase. """ - date_of_birth: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth" + auto_renewal: NotRequired[bool] + """ + Info whether the subscription will be auto renewed upon expiry. + """ + billing_interval: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval" ] """ - Date of birth. + Subscription billing details for this purchase. """ - email: NotRequired[str] + ends_at: NotRequired[int] """ - Email address. + Subscription end time. Measured in seconds since the Unix epoch. """ - name: NotRequired[str] + name: str """ - Full name. + Name of the product on subscription. e.g. Apple Music Subscription """ - phone: NotRequired[str] + starts_at: NotRequired[int] """ - Phone number. + Subscription start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress( - TypedDict, -): - city: NotRequired[str] - """ - City, district, suburb, town, or village. - """ - country: NotRequired[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: NotRequired[str] - """ - Address line 1, such as the street, PO Box, or company name. - """ - line2: NotRequired[str] - """ - Address line 2, such as the apartment, suite, unit, or building. - """ - postal_code: NotRequired[str] - """ - ZIP or postal code. - """ - state: NotRequired[str] +class PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str """ - State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + The name of the affiliate that originated the purchase. """ -class PaymentIntentUpdateParamsPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth( +class PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval( TypedDict, ): - day: int - """ - Day of birth, between 1 and 31. - """ - month: int + count: int """ - Month of birth, between 1 and 12. + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. """ - year: int + interval: Literal["day", "month", "week", "year"] """ - Four-digit year of birth. + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. """ @@ -3004,6 +3004,10 @@ 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" ] @@ -3110,10 +3114,6 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class PaymentIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict): @@ -4389,7 +4389,13 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): ] ] """ - Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + """ + payment_details: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetails" + ] + """ + Payment details for payment method specific funding fields. """ request_decremental_authorization: NotRequired[ Literal["if_available", "never"] @@ -4472,12 +4478,6 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): If 3D Secure authentication was performed with a third-party provider, the authentication details to use for this payment. """ - payment_details: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetails" - ] - """ - Payment details for payment method specific funding fields. - """ class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments(TypedDict): @@ -4555,6 +4555,115 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions( """ +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetails( + TypedDict, +): + money_services: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices" + ] + """ + Money services details for payment method specific funding fields. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices( + TypedDict, +): + account_funding: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding" + ] + """ + Payment method specific account funding transaction details. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding( + TypedDict, +): + liquid_asset: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset" + ] + """ + Details for a liquid asset (crypto or security) funding transaction. + """ + wallet: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet" + ] + """ + Details for a wallet funding transaction. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset( + TypedDict, +): + crypto: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto" + ] + """ + Details for a cryptocurrency liquid asset funding transaction. + """ + security: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity" + ] + """ + Details for a security liquid asset funding transaction. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto( + TypedDict, +): + currency_code: NotRequired[str] + """ + The cryptocurrency currency code (e.g. BTC, ETH). + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity( + TypedDict, +): + ticker_symbol: NotRequired[str] + """ + The security's ticker symbol (e.g. AAPL). + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet( + TypedDict, +): + staged_purchase: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase" + ] + """ + Details for a staged purchase. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase( + TypedDict, +): + merchant: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant" + ] + """ + The merchant where the staged wallet purchase is made. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant( + TypedDict, +): + mcc: NotRequired[str] + """ + The merchant category code of the merchant. + """ + name: NotRequired[str] + """ + The merchant's name. + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails( TypedDict, ): @@ -4680,115 +4789,6 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOption """ -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetails( - TypedDict, -): - money_services: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices" - ] - """ - Money services details for payment method specific funding fields. - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServices( - TypedDict, -): - account_funding: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding" - ] - """ - Payment method specific account funding transaction details. - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFunding( - TypedDict, -): - liquid_asset: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset" - ] - """ - Details for a liquid asset (crypto or security) funding transaction. - """ - wallet: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet" - ] - """ - Details for a wallet funding transaction. - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAsset( - TypedDict, -): - crypto: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto" - ] - """ - Details for a cryptocurrency liquid asset funding transaction. - """ - security: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity" - ] - """ - Details for a security liquid asset funding transaction. - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCrypto( - TypedDict, -): - currency_code: NotRequired[str] - """ - The cryptocurrency currency code (e.g. BTC, ETH). - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurity( - TypedDict, -): - ticker_symbol: NotRequired[str] - """ - The security's ticker symbol (e.g. AAPL). - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWallet( - TypedDict, -): - staged_purchase: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase" - ] - """ - Details for a staged purchase. - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchase( - TypedDict, -): - merchant: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant" - ] - """ - The merchant where the staged wallet purchase is made. - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchant( - TypedDict, -): - mcc: NotRequired[str] - """ - The merchant category code of the merchant. - """ - name: NotRequired[str] - """ - The merchant's name. - """ - - class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict): capture_method: NotRequired[Literal["manual", "manual_preferred"]] """ @@ -4798,6 +4798,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict): If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. """ + payment_details: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentPaymentDetails" + ] + """ + Payment details for payment method specific funding transaction fields. + """ request_extended_authorization: NotRequired[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity) @@ -4816,21 +4822,6 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict): """ Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. """ - payment_details: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentPaymentDetails" - ] - """ - Payment details for payment method specific funding transaction fields. - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting( - TypedDict, -): - requested_priority: NotRequired[Literal["domestic", "international"]] - """ - Routing requested priority - """ class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentPaymentDetails( @@ -4942,6 +4933,15 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentPaymentDetailsMone """ +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting( + TypedDict, +): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index 0d31bafa1..2a5429bb4 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -24,6 +24,12 @@ class PaymentLinkCreateParams(RequestOptions): """ A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field. """ + automatic_surcharge: NotRequired[ + "PaymentLinkCreateParamsAutomaticSurcharge" + ] + """ + Configuration for automatic surcharge calculation. + """ automatic_tax: NotRequired["PaymentLinkCreateParamsAutomaticTax"] """ Configuration for automatic tax collection. @@ -200,12 +206,6 @@ class PaymentLinkCreateParams(RequestOptions): """ The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to. """ - automatic_surcharge: NotRequired[ - "PaymentLinkCreateParamsAutomaticSurcharge" - ] - """ - Configuration for automatic surcharge calculation. - """ class PaymentLinkCreateParamsAfterCompletion(TypedDict): @@ -239,6 +239,23 @@ class PaymentLinkCreateParamsAfterCompletionRedirect(TypedDict): """ +class PaymentLinkCreateParamsAutomaticSurcharge(TypedDict): + calculation_basis: NotRequired[ + Literal["total_after_tax", "total_before_tax"] + ] + """ + Determines which amount serves as the basis for calculating the surcharge. + """ + enabled: bool + """ + Set to `true` to calculate surcharge automatically using the customer's card details and location. + """ + tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] + """ + Specifies whether the surcharge is considered inclusive or exclusive of taxes. + """ + + class PaymentLinkCreateParamsAutomaticTax(TypedDict): enabled: bool """ @@ -1135,20 +1152,3 @@ class PaymentLinkCreateParamsTransferData(TypedDict): to the destination account. The ID of the resulting transfer will be returned on the successful charge's `transfer` field. """ - - -class PaymentLinkCreateParamsAutomaticSurcharge(TypedDict): - calculation_basis: NotRequired[ - Literal["total_after_tax", "total_before_tax"] - ] - """ - Determines which amount serves as the basis for calculating the surcharge. - """ - enabled: bool - """ - Set to `true` to calculate surcharge automatically using the customer's card details and location. - """ - tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] - """ - Specifies whether the surcharge is considered inclusive or exclusive of taxes. - """ diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index 5e2758557..bf700b4ab 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -351,6 +351,10 @@ 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" ] @@ -457,10 +461,6 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class SetupIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index 6e328fb12..b0d8a6169 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -487,6 +487,10 @@ 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. @@ -591,10 +595,6 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class SetupIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index 5623e8ed5..e4218d2fa 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -329,6 +329,10 @@ 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. @@ -433,10 +437,6 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class SetupIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index f6260a4b9..0bd00bdbf 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -328,6 +328,10 @@ 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. @@ -432,10 +436,6 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class SetupIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index c04eaff18..413303456 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -849,12 +849,24 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + bizum: NotRequired[ + "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBizum" + ] + """ + This sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard" ] """ This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. """ + check_scan: NotRequired[ + "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCheckScan" + ] + """ + This sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. + """ customer_balance: NotRequired[ "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance" ] @@ -903,18 +915,6 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ - bizum: NotRequired[ - "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBizum" - ] - """ - This sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. - """ - check_scan: NotRequired[ - "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCheckScan" - ] - """ - This sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. - """ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -952,6 +952,30 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBizum( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions( + TypedDict, +): + amount: int + """ + Amount to be charged for future payments. Required when `amount_type=fixed`. + """ + amount_type: Literal["fixed"] + """ + Indicates the mandate amount type. + """ + + class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard( TypedDict, ): @@ -1006,6 +1030,25 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOpti """ +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCheckScan( + TypedDict, +): + check_deposit_address: NotRequired[ + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" + ] + + +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( + TypedDict, +): + city: NotRequired[str] + country: NotRequired[str] + line1: NotRequired[str] + line2: NotRequired[str] + postal_code: NotRequired[str] + state: NotRequired[str] + + class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance( TypedDict, ): @@ -1230,49 +1273,6 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ -class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBizum( - TypedDict, -): - mandate_options: NotRequired[ - "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions" - ] - """ - Configuration options for setting up a mandate - """ - - -class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions( - TypedDict, -): - amount: int - """ - Amount to be charged for future payments. Required when `amount_type=fixed`. - """ - amount_type: Literal["fixed"] - """ - Indicates the mandate amount type. - """ - - -class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCheckScan( - TypedDict, -): - check_deposit_address: NotRequired[ - "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" - ] - - -class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( - TypedDict, -): - city: NotRequired[str] - country: NotRequired[str] - line1: NotRequired[str] - line2: NotRequired[str] - postal_code: NotRequired[str] - state: NotRequired[str] - - class SubscriptionCreateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index 068eacd4e..25bea5e51 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -817,12 +817,24 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + bizum: NotRequired[ + "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBizum" + ] + """ + This sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard" ] """ This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. """ + check_scan: NotRequired[ + "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCheckScan" + ] + """ + This sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. + """ customer_balance: NotRequired[ "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance" ] @@ -871,18 +883,6 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ - bizum: NotRequired[ - "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBizum" - ] - """ - This sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. - """ - check_scan: NotRequired[ - "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCheckScan" - ] - """ - This sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. - """ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -920,6 +920,30 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBizum( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions( + TypedDict, +): + amount: int + """ + Amount to be charged for future payments. Required when `amount_type=fixed`. + """ + amount_type: Literal["fixed"] + """ + Indicates the mandate amount type. + """ + + class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard( TypedDict, ): @@ -974,6 +998,25 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOpti """ +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCheckScan( + TypedDict, +): + check_deposit_address: NotRequired[ + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" + ] + + +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( + TypedDict, +): + city: NotRequired[str] + country: NotRequired[str] + line1: NotRequired[str] + line2: NotRequired[str] + postal_code: NotRequired[str] + state: NotRequired[str] + + class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance( TypedDict, ): @@ -1198,49 +1241,6 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ -class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBizum( - TypedDict, -): - mandate_options: NotRequired[ - "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions" - ] - """ - Configuration options for setting up a mandate - """ - - -class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions( - TypedDict, -): - amount: int - """ - Amount to be charged for future payments. Required when `amount_type=fixed`. - """ - amount_type: Literal["fixed"] - """ - Indicates the mandate amount type. - """ - - -class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCheckScan( - TypedDict, -): - check_deposit_address: NotRequired[ - "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" - ] - - -class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( - TypedDict, -): - city: NotRequired[str] - country: NotRequired[str] - line1: NotRequired[str] - line2: NotRequired[str] - postal_code: NotRequired[str] - state: NotRequired[str] - - class SubscriptionModifyParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index b18cabc23..41bfae2ce 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -816,12 +816,24 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + bizum: NotRequired[ + "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBizum" + ] + """ + This sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard" ] """ This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. """ + check_scan: NotRequired[ + "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScan" + ] + """ + This sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. + """ customer_balance: NotRequired[ "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance" ] @@ -870,18 +882,6 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. """ - bizum: NotRequired[ - "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBizum" - ] - """ - This sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent. - """ - check_scan: NotRequired[ - "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScan" - ] - """ - This sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent. - """ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit( @@ -919,6 +919,30 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBizum( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions( + TypedDict, +): + amount: int + """ + Amount to be charged for future payments. Required when `amount_type=fixed`. + """ + amount_type: Literal["fixed"] + """ + Indicates the mandate amount type. + """ + + class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard( TypedDict, ): @@ -973,6 +997,25 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCardMandateOpti """ +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScan( + TypedDict, +): + check_deposit_address: NotRequired[ + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" + ] + + +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( + TypedDict, +): + city: NotRequired[str] + country: NotRequired[str] + line1: NotRequired[str] + line2: NotRequired[str] + postal_code: NotRequired[str] + state: NotRequired[str] + + class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance( TypedDict, ): @@ -1197,49 +1240,6 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ -class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBizum( - TypedDict, -): - mandate_options: NotRequired[ - "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions" - ] - """ - Configuration options for setting up a mandate - """ - - -class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBizumMandateOptions( - TypedDict, -): - amount: int - """ - Amount to be charged for future payments. Required when `amount_type=fixed`. - """ - amount_type: Literal["fixed"] - """ - Indicates the mandate amount type. - """ - - -class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScan( - TypedDict, -): - check_deposit_address: NotRequired[ - "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress" - ] - - -class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCheckScanCheckDepositAddress( - TypedDict, -): - city: NotRequired[str] - country: NotRequired[str] - line1: NotRequired[str] - line2: NotRequired[str] - postal_code: NotRequired[str] - state: NotRequired[str] - - class SubscriptionUpdateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index 0723f66ed..225722865 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -28,6 +28,10 @@ class SessionCreateParams(RequestOptions): When set to `manual`, you must approve the customer's attempt to pay by calling [approve](api/checkout/sessions/approve) from your server. """ + automatic_surcharge: NotRequired["SessionCreateParamsAutomaticSurcharge"] + """ + Settings for automatic surcharge calculation for this session. + """ automatic_tax: NotRequired["SessionCreateParamsAutomaticTax"] """ Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions. @@ -471,10 +475,6 @@ class SessionCreateParams(RequestOptions): """ Wallet-specific configuration. """ - automatic_surcharge: NotRequired["SessionCreateParamsAutomaticSurcharge"] - """ - Settings for automatic surcharge calculation for this session. - """ checkout_items: NotRequired[List["SessionCreateParamsCheckoutItem"]] @@ -505,6 +505,23 @@ class SessionCreateParamsAfterExpirationRecovery(TypedDict): """ +class SessionCreateParamsAutomaticSurcharge(TypedDict): + calculation_basis: NotRequired[ + Literal["total_after_tax", "total_before_tax"] + ] + """ + Determines which amount serves as the basis for calculating the surcharge. + """ + enabled: bool + """ + Set to `true` to calculate surcharge automatically using the customer's card details and location. + """ + tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] + """ + Specifies whether the surcharge is considered inclusive or exclusive of taxes. + """ + + class SessionCreateParamsAutomaticTax(TypedDict): enabled: bool """ @@ -1320,6 +1337,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Billie payment method options. """ + bizum: NotRequired["SessionCreateParamsPaymentMethodOptionsBizum"] + """ + contains details about the Bizum payment method options. + """ boleto: NotRequired["SessionCreateParamsPaymentMethodOptionsBoleto"] """ contains details about the Boleto payment method options. @@ -1480,10 +1501,6 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the WeChat Pay payment method options. """ - bizum: NotRequired["SessionCreateParamsPaymentMethodOptionsBizum"] - """ - contains details about the Bizum payment method options. - """ class SessionCreateParamsPaymentMethodOptionsAcssDebit(TypedDict): @@ -1690,6 +1707,19 @@ class SessionCreateParamsPaymentMethodOptionsBillie(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsBizum(TypedDict): + mandate_options: NotRequired[ + "SessionCreateParamsPaymentMethodOptionsBizumMandateOptions" + ] + """ + Additional fields for mandate creation. + """ + + +class SessionCreateParamsPaymentMethodOptionsBizumMandateOptions(TypedDict): + pass + + class SessionCreateParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired[int] """ @@ -2596,19 +2626,6 @@ class SessionCreateParamsPaymentMethodOptionsWechatPay(TypedDict): """ -class SessionCreateParamsPaymentMethodOptionsBizum(TypedDict): - mandate_options: NotRequired[ - "SessionCreateParamsPaymentMethodOptionsBizumMandateOptions" - ] - """ - Additional fields for mandate creation. - """ - - -class SessionCreateParamsPaymentMethodOptionsBizumMandateOptions(TypedDict): - pass - - class SessionCreateParamsPermissions(TypedDict): update: NotRequired["SessionCreateParamsPermissionsUpdate"] """ @@ -3240,23 +3257,6 @@ class SessionCreateParamsWalletOptionsLink(TypedDict): """ -class SessionCreateParamsAutomaticSurcharge(TypedDict): - calculation_basis: NotRequired[ - Literal["total_after_tax", "total_before_tax"] - ] - """ - Determines which amount serves as the basis for calculating the surcharge. - """ - enabled: bool - """ - Set to `true` to calculate surcharge automatically using the customer's card details and location. - """ - tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] - """ - Specifies whether the surcharge is considered inclusive or exclusive of taxes. - """ - - class SessionCreateParamsCheckoutItem(TypedDict): type: Literal[ "rate_card_subscription_item", "pricing_plan_subscription_item" diff --git a/stripe/params/delegated_checkout/_requested_session_create_params.py b/stripe/params/delegated_checkout/_requested_session_create_params.py index 8de114782..5f8789ad7 100644 --- a/stripe/params/delegated_checkout/_requested_session_create_params.py +++ b/stripe/params/delegated_checkout/_requested_session_create_params.py @@ -43,6 +43,12 @@ class RequestedSessionCreateParams(RequestOptions): """ The payment method for this requested session. """ + payment_method_options: NotRequired[ + "RequestedSessionCreateParamsPaymentMethodOptions" + ] + """ + The payment method options for this requested session. + """ seller_details: "RequestedSessionCreateParamsSellerDetails" """ The details of the seller. @@ -55,12 +61,6 @@ class RequestedSessionCreateParams(RequestOptions): """ The shared metadata for this requested session. """ - payment_method_options: NotRequired[ - "RequestedSessionCreateParamsPaymentMethodOptions" - ] - """ - The payment method options for this requested session. - """ class RequestedSessionCreateParamsAffiliateAttribution(TypedDict): @@ -186,13 +186,6 @@ class RequestedSessionCreateParamsLineItemDetail(TypedDict): """ -class RequestedSessionCreateParamsSellerDetails(TypedDict): - network_profile: str - """ - The network profile for the seller. - """ - - class RequestedSessionCreateParamsPaymentMethodOptions(TypedDict): card: NotRequired["RequestedSessionCreateParamsPaymentMethodOptionsCard"] """ @@ -213,3 +206,10 @@ class RequestedSessionCreateParamsPaymentMethodOptionsCard(TypedDict): """ The card brands to exclude from the session. """ + + +class RequestedSessionCreateParamsSellerDetails(TypedDict): + network_profile: str + """ + The network profile for the seller. + """ diff --git a/stripe/params/delegated_checkout/_requested_session_modify_params.py b/stripe/params/delegated_checkout/_requested_session_modify_params.py index fc2ba63b2..a040cc012 100644 --- a/stripe/params/delegated_checkout/_requested_session_modify_params.py +++ b/stripe/params/delegated_checkout/_requested_session_modify_params.py @@ -33,18 +33,18 @@ class RequestedSessionModifyParams(RequestOptions): """ The payment method for this requested session. """ - shared_metadata: NotRequired[ - "Literal['']|Dict[str, str]|UntypedStripeObject[str]" - ] - """ - The shared metadata for this requested session. - """ payment_method_options: NotRequired[ "RequestedSessionModifyParamsPaymentMethodOptions" ] """ The payment method options for this requested session. """ + shared_metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + The shared metadata for this requested session. + """ class RequestedSessionModifyParamsFulfillmentDetails(TypedDict): diff --git a/stripe/params/delegated_checkout/_requested_session_update_params.py b/stripe/params/delegated_checkout/_requested_session_update_params.py index b372fea7b..d3085bb2d 100644 --- a/stripe/params/delegated_checkout/_requested_session_update_params.py +++ b/stripe/params/delegated_checkout/_requested_session_update_params.py @@ -32,18 +32,18 @@ class RequestedSessionUpdateParams(TypedDict): """ The payment method for this requested session. """ - shared_metadata: NotRequired[ - "Literal['']|Dict[str, str]|UntypedStripeObject[str]" - ] - """ - The shared metadata for this requested session. - """ payment_method_options: NotRequired[ "RequestedSessionUpdateParamsPaymentMethodOptions" ] """ The payment method options for this requested session. """ + shared_metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + The shared metadata for this requested session. + """ class RequestedSessionUpdateParamsFulfillmentDetails(TypedDict): diff --git a/stripe/params/identity/_verification_session_create_params.py b/stripe/params/identity/_verification_session_create_params.py index d85109a68..19c94d39e 100644 --- a/stripe/params/identity/_verification_session_create_params.py +++ b/stripe/params/identity/_verification_session_create_params.py @@ -11,6 +11,10 @@ class VerificationSessionCreateParams(RequestOptions): """ A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems. """ + confirm: NotRequired[bool] + """ + Confirm and submit the provided details for verification. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. @@ -53,10 +57,6 @@ class VerificationSessionCreateParams(RequestOptions): """ The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows. """ - confirm: NotRequired[bool] - """ - Confirm and submit the provided details for verification. - """ class VerificationSessionCreateParamsOptions(TypedDict): diff --git a/stripe/params/identity/_verification_session_modify_params.py b/stripe/params/identity/_verification_session_modify_params.py index 8a172142f..ff0fc1f7e 100644 --- a/stripe/params/identity/_verification_session_modify_params.py +++ b/stripe/params/identity/_verification_session_modify_params.py @@ -7,6 +7,10 @@ class VerificationSessionModifyParams(RequestOptions): + confirm: NotRequired[bool] + """ + Confirm and submit the provided details for verification. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. @@ -29,10 +33,6 @@ class VerificationSessionModifyParams(RequestOptions): """ The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. """ - confirm: NotRequired[bool] - """ - Confirm and submit the provided details for verification. - """ class VerificationSessionModifyParamsOptions(TypedDict): diff --git a/stripe/params/identity/_verification_session_update_params.py b/stripe/params/identity/_verification_session_update_params.py index b220a3369..875a43b7c 100644 --- a/stripe/params/identity/_verification_session_update_params.py +++ b/stripe/params/identity/_verification_session_update_params.py @@ -6,6 +6,10 @@ class VerificationSessionUpdateParams(TypedDict): + confirm: NotRequired[bool] + """ + Confirm and submit the provided details for verification. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. @@ -28,10 +32,6 @@ class VerificationSessionUpdateParams(TypedDict): """ The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. """ - confirm: NotRequired[bool] - """ - Confirm and submit the provided details for verification. - """ class VerificationSessionUpdateParamsOptions(TypedDict): diff --git a/stripe/params/radar/_payment_evaluation_create_params.py b/stripe/params/radar/_payment_evaluation_create_params.py index 473a5ffc6..75a7efe68 100644 --- a/stripe/params/radar/_payment_evaluation_create_params.py +++ b/stripe/params/radar/_payment_evaluation_create_params.py @@ -32,16 +32,16 @@ class PaymentEvaluationCreateParams(RequestOptions): class PaymentEvaluationCreateParamsClientDeviceMetadataDetails(TypedDict): - radar_session: str - """ - ID for the Radar Session to associate with the payment evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. - """ data: NotRequired[ "PaymentEvaluationCreateParamsClientDeviceMetadataDetailsData" ] """ Direct client device attributes such as IP address and user agent. Use this as an alternative to radar_session when a Radar Session isn't available. """ + radar_session: str + """ + ID for the Radar Session to associate with the payment evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + """ class PaymentEvaluationCreateParamsClientDeviceMetadataDetailsData(TypedDict): diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index c3a2b9aa6..08715a764 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -311,6 +311,10 @@ 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" ] @@ -417,10 +421,6 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. """ - shared_payment_granted_token: NotRequired[str] - """ - ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - """ class ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit(TypedDict): diff --git a/stripe/params/v2/billing/_cadence_create_params.py b/stripe/params/v2/billing/_cadence_create_params.py index 201bbd516..a4e4799a2 100644 --- a/stripe/params/v2/billing/_cadence_create_params.py +++ b/stripe/params/v2/billing/_cadence_create_params.py @@ -35,24 +35,24 @@ class CadenceCreateParams(TypedDict): class CadenceCreateParamsBillingCycle(TypedDict): + day: NotRequired["CadenceCreateParamsBillingCycleDay"] + """ + Specific configuration for determining billing dates when type=day. + """ interval_count: NotRequired[int] """ The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months. If this is not provided, it will default to 1. """ - type: Literal["day", "month", "week", "year"] - """ - The frequency at which a cadence bills. - """ - day: NotRequired["CadenceCreateParamsBillingCycleDay"] - """ - Specific configuration for determining billing dates when type=day. - """ month: NotRequired["CadenceCreateParamsBillingCycleMonth"] """ Specific configuration for determining billing dates when type=month. """ + type: Literal["day", "month", "week", "year"] + """ + The frequency at which a cadence bills. + """ week: NotRequired["CadenceCreateParamsBillingCycleWeek"] """ Specific configuration for determining billing dates when type=week. diff --git a/stripe/params/v2/billing/_intent_create_params.py b/stripe/params/v2/billing/_intent_create_params.py index 08eb4fe56..51502faec 100644 --- a/stripe/params/v2/billing/_intent_create_params.py +++ b/stripe/params/v2/billing/_intent_create_params.py @@ -11,10 +11,6 @@ class IntentCreateParams(TypedDict): """ Actions to be performed by this Billing Intent. """ - currency: str - """ - Three-letter ISO currency code, in lowercase. Must be a supported currency. - """ cadence: NotRequired[str] """ ID of an existing Cadence to use. @@ -23,13 +19,13 @@ class IntentCreateParams(TypedDict): """ Data for creating a new Cadence. """ + currency: str + """ + Three-letter ISO currency code, in lowercase. Must be a supported currency. + """ class IntentCreateParamsAction(TypedDict): - type: Literal["apply", "deactivate", "modify", "remove", "subscribe"] - """ - Type of the Billing Intent action. - """ apply: NotRequired["IntentCreateParamsActionApply"] """ Details for an apply action. @@ -50,21 +46,21 @@ class IntentCreateParamsAction(TypedDict): """ Details for a subscribe action. """ + type: Literal["apply", "deactivate", "modify", "remove", "subscribe"] + """ + Type of the Billing Intent action. + """ class IntentCreateParamsActionApply(TypedDict): - effective_at: NotRequired["IntentCreateParamsActionApplyEffectiveAt"] - """ - When the apply action will take effect. If not specified, defaults to on_reserve. - """ - type: Literal["discount", "invoice_discount_rule", "spend_modifier_rule"] - """ - Type of the apply action details. - """ discount: NotRequired["IntentCreateParamsActionApplyDiscount"] """ Details for applying a discount. """ + effective_at: NotRequired["IntentCreateParamsActionApplyEffectiveAt"] + """ + When the apply action will take effect. If not specified, defaults to on_reserve. + """ invoice_discount_rule: NotRequired[ "IntentCreateParamsActionApplyInvoiceDiscountRule" ] @@ -77,22 +73,9 @@ class IntentCreateParamsActionApply(TypedDict): """ Details for applying a spend modifier rule. Only present if type is spend_modifier_rule. """ - - -class IntentCreateParamsActionApplyEffectiveAt(TypedDict): - timestamp: NotRequired[str] - """ - The timestamp at which the apply action will take effect. Only present if type is timestamp. Only allowed for discount actions. - """ - type: Literal[ - "current_billing_period_end", - "current_billing_period_start", - "next_billing_period_start", - "on_reserve", - "timestamp", - ] + type: Literal["discount", "invoice_discount_rule", "spend_modifier_rule"] """ - When the apply action will take effect. + Type of the apply action details. """ @@ -111,21 +94,38 @@ class IntentCreateParamsActionApplyDiscount(TypedDict): """ +class IntentCreateParamsActionApplyEffectiveAt(TypedDict): + timestamp: NotRequired[str] + """ + The timestamp at which the apply action will take effect. Only present if type is timestamp. Only allowed for discount actions. + """ + type: Literal[ + "current_billing_period_end", + "current_billing_period_start", + "next_billing_period_start", + "on_reserve", + "timestamp", + ] + """ + When the apply action will take effect. + """ + + class IntentCreateParamsActionApplyInvoiceDiscountRule(TypedDict): applies_to: Literal["cadence"] """ The entity that the discount rule applies to, for example, the cadence. """ - type: Literal["percent_off"] - """ - Type of the discount rule. - """ percent_off: NotRequired[ "IntentCreateParamsActionApplyInvoiceDiscountRulePercentOff" ] """ Configuration for percentage off discount. """ + type: Literal["percent_off"] + """ + Type of the discount rule. + """ class IntentCreateParamsActionApplyInvoiceDiscountRulePercentOff(TypedDict): @@ -153,16 +153,16 @@ class IntentCreateParamsActionApplySpendModifierRule(TypedDict): """ What the spend modifier applies to. """ - type: Literal["max_billing_period_spend"] - """ - Type of the spend modifier. - """ max_billing_period_spend: NotRequired[ "IntentCreateParamsActionApplySpendModifierRuleMaxBillingPeriodSpend" ] """ Details for max billing period spend modifier. Only present if type is max_billing_period_spend. """ + type: Literal["max_billing_period_spend"] + """ + Type of the spend modifier. + """ class IntentCreateParamsActionApplySpendModifierRuleMaxBillingPeriodSpend( @@ -181,16 +181,16 @@ class IntentCreateParamsActionApplySpendModifierRuleMaxBillingPeriodSpend( class IntentCreateParamsActionApplySpendModifierRuleMaxBillingPeriodSpendAmount( TypedDict, ): - type: Literal["custom_pricing_unit"] - """ - The type of the amount. - """ custom_pricing_unit: NotRequired[ "IntentCreateParamsActionApplySpendModifierRuleMaxBillingPeriodSpendAmountCustomPricingUnit" ] """ The custom pricing unit amount. """ + type: Literal["custom_pricing_unit"] + """ + The type of the amount. + """ class IntentCreateParamsActionApplySpendModifierRuleMaxBillingPeriodSpendAmountCustomPricingUnit( @@ -311,16 +311,16 @@ class IntentCreateParamsActionDeactivatePricingPlanSubscriptionDetailsOverrides( class IntentCreateParamsActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior( TypedDict, ): - type: Literal["license_fee", "recurring_credit_grant"] - """ - The type of behavior to override. - """ license_fee: NotRequired[ "IntentCreateParamsActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee" ] """ Overrides the behavior for license fee components when the action takes effect during the service period. """ + type: Literal["license_fee", "recurring_credit_grant"] + """ + The type of behavior to override. + """ class IntentCreateParamsActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee( @@ -398,10 +398,6 @@ class IntentCreateParamsActionModifyPricingPlanSubscriptionDetails(TypedDict): class IntentCreateParamsActionModifyPricingPlanSubscriptionDetailsComponentConfiguration( TypedDict, ): - quantity: NotRequired[int] - """ - Quantity of the component to be used. - """ lookup_key: NotRequired[str] """ Lookup key for the pricing plan component. @@ -410,6 +406,10 @@ class IntentCreateParamsActionModifyPricingPlanSubscriptionDetailsComponentConfi """ ID of the pricing plan component. """ + quantity: NotRequired[int] + """ + Quantity of the component to be used. + """ class IntentCreateParamsActionModifyPricingPlanSubscriptionDetailsOverrides( @@ -426,10 +426,6 @@ class IntentCreateParamsActionModifyPricingPlanSubscriptionDetailsOverrides( class IntentCreateParamsActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior( TypedDict, ): - type: Literal["license_fee", "recurring_credit_grant"] - """ - The type of behavior to override. - """ license_fee: NotRequired[ "IntentCreateParamsActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee" ] @@ -442,6 +438,10 @@ class IntentCreateParamsActionModifyPricingPlanSubscriptionDetailsOverridesParti """ Overrides the behavior for recurring credit grant components when the action takes effect during the service period. """ + type: Literal["license_fee", "recurring_credit_grant"] + """ + The type of behavior to override. + """ class IntentCreateParamsActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee( @@ -471,10 +471,6 @@ class IntentCreateParamsActionRemove(TypedDict): """ When the remove action will take effect. If not specified, defaults to on_reserve. """ - type: Literal["invoice_discount_rule", "spend_modifier_rule"] - """ - Type of the remove action. - """ invoice_discount_rule: NotRequired[str] """ The ID of the discount rule to remove for future invoices. @@ -483,6 +479,10 @@ class IntentCreateParamsActionRemove(TypedDict): """ The ID of the spend modifier rule to remove. """ + type: Literal["invoice_discount_rule", "spend_modifier_rule"] + """ + Type of the remove action. + """ class IntentCreateParamsActionRemoveEffectiveAt(TypedDict): @@ -501,18 +501,18 @@ class IntentCreateParamsActionSubscribe(TypedDict): """ When the subscribe action will take effect. If not specified, the default behavior is on_reserve. """ - type: Literal[ - "pricing_plan_subscription_details", "v1_subscription_details" - ] - """ - Type of the action details. - """ pricing_plan_subscription_details: NotRequired[ "IntentCreateParamsActionSubscribePricingPlanSubscriptionDetails" ] """ Details for subscribing to a pricing plan. """ + type: Literal[ + "pricing_plan_subscription_details", "v1_subscription_details" + ] + """ + Type of the action details. + """ v1_subscription_details: NotRequired[ "IntentCreateParamsActionSubscribeV1SubscriptionDetails" ] @@ -566,10 +566,6 @@ class IntentCreateParamsActionSubscribePricingPlanSubscriptionDetails( class IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration( TypedDict, ): - quantity: NotRequired[int] - """ - Quantity of the component to be used. - """ lookup_key: NotRequired[str] """ Lookup key for the pricing plan component. @@ -578,6 +574,10 @@ class IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailsComponentCo """ ID of the pricing plan component. """ + quantity: NotRequired[int] + """ + Quantity of the component to be used. + """ class IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailsOverrides( @@ -594,10 +594,6 @@ class IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailsOverrides( class IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior( TypedDict, ): - type: Literal["license_fee", "recurring_credit_grant"] - """ - The type of behavior to override. - """ license_fee: NotRequired[ "IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee" ] @@ -610,6 +606,10 @@ class IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailsOverridesPa """ Overrides the behavior for recurring credit grant components when the action takes effect during the service period. """ + type: Literal["license_fee", "recurring_credit_grant"] + """ + The type of behavior to override. + """ class IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee( @@ -677,24 +677,24 @@ class IntentCreateParamsCadenceData(TypedDict): class IntentCreateParamsCadenceDataBillingCycle(TypedDict): + day: NotRequired["IntentCreateParamsCadenceDataBillingCycleDay"] + """ + Specific configuration for determining billing dates when type=day. + """ interval_count: NotRequired[int] """ The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months. If this is not provided, it will default to 1. """ - type: Literal["day", "month", "week", "year"] - """ - The frequency at which a cadence bills. - """ - day: NotRequired["IntentCreateParamsCadenceDataBillingCycleDay"] - """ - Specific configuration for determining billing dates when type=day. - """ month: NotRequired["IntentCreateParamsCadenceDataBillingCycleMonth"] """ Specific configuration for determining billing dates when type=month. """ + type: Literal["day", "month", "week", "year"] + """ + The frequency at which a cadence bills. + """ week: NotRequired["IntentCreateParamsCadenceDataBillingCycleWeek"] """ Specific configuration for determining billing dates when type=week. diff --git a/stripe/params/v2/billing/_service_action_create_params.py b/stripe/params/v2/billing/_service_action_create_params.py index 61e7941a5..318d38af3 100644 --- a/stripe/params/v2/billing/_service_action_create_params.py +++ b/stripe/params/v2/billing/_service_action_create_params.py @@ -7,6 +7,16 @@ class ServiceActionCreateParams(TypedDict): + credit_grant: NotRequired["ServiceActionCreateParamsCreditGrant"] + """ + Details for the credit grant. Required if `type` is `credit_grant`. + """ + credit_grant_per_tenant: NotRequired[ + "ServiceActionCreateParamsCreditGrantPerTenant" + ] + """ + Details for the credit grant per tenant. Required if `type` is `credit_grant_per_tenant`. + """ lookup_key: NotRequired[str] """ An internal key you can use to search for this service action. Maximum length of 200 characters. @@ -23,16 +33,6 @@ class ServiceActionCreateParams(TypedDict): """ The type of the service action. """ - credit_grant: NotRequired["ServiceActionCreateParamsCreditGrant"] - """ - Details for the credit grant. Required if `type` is `credit_grant`. - """ - credit_grant_per_tenant: NotRequired[ - "ServiceActionCreateParamsCreditGrantPerTenant" - ] - """ - Details for the credit grant per tenant. Required if `type` is `credit_grant_per_tenant`. - """ class ServiceActionCreateParamsCreditGrant(TypedDict): @@ -65,10 +65,6 @@ class ServiceActionCreateParamsCreditGrant(TypedDict): class ServiceActionCreateParamsCreditGrantAmount(TypedDict): - type: Literal["custom_pricing_unit", "monetary"] - """ - The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. - """ custom_pricing_unit: NotRequired[ "ServiceActionCreateParamsCreditGrantAmountCustomPricingUnit" ] @@ -79,6 +75,10 @@ class ServiceActionCreateParamsCreditGrantAmount(TypedDict): """ The monetary amount of the credit grant. Required if `type` is `monetary`. """ + type: Literal["custom_pricing_unit", "monetary"] + """ + The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. + """ class ServiceActionCreateParamsCreditGrantAmountCustomPricingUnit(TypedDict): @@ -153,10 +153,6 @@ class ServiceActionCreateParamsCreditGrantPerTenant(TypedDict): class ServiceActionCreateParamsCreditGrantPerTenantAmount(TypedDict): - type: Literal["custom_pricing_unit", "monetary"] - """ - The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. - """ custom_pricing_unit: NotRequired[ "ServiceActionCreateParamsCreditGrantPerTenantAmountCustomPricingUnit" ] @@ -167,6 +163,10 @@ class ServiceActionCreateParamsCreditGrantPerTenantAmount(TypedDict): """ The monetary amount of the credit grant. Required if `type` is `monetary`. """ + type: Literal["custom_pricing_unit", "monetary"] + """ + The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits. + """ class ServiceActionCreateParamsCreditGrantPerTenantAmountCustomPricingUnit( @@ -214,16 +214,16 @@ class ServiceActionCreateParamsCreditGrantPerTenantExpiryConfig(TypedDict): class ServiceActionCreateParamsCreditGrantPerTenantGrantCondition(TypedDict): - type: Literal["meter_event_first_per_period"] - """ - The type of the grant condition. We currently support `meter_event_first_per_period`. - """ meter_event_first_per_period: NotRequired[ "ServiceActionCreateParamsCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriod" ] """ The grant condition for the meter event first per period. """ + type: Literal["meter_event_first_per_period"] + """ + The type of the grant condition. We currently support `meter_event_first_per_period`. + """ class ServiceActionCreateParamsCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriod( @@ -240,16 +240,16 @@ class ServiceActionCreateParamsCreditGrantPerTenantGrantConditionMeterEventFirst class ServiceActionCreateParamsCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentCondition( TypedDict, ): - type: Literal["dimension"] - """ - The type of the meter segment condition. We currently support `dimension`. - """ dimension: NotRequired[ "ServiceActionCreateParamsCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentConditionDimension" ] """ Dimension-based meter segment condition. """ + type: Literal["dimension"] + """ + The type of the meter segment condition. We currently support `dimension`. + """ class ServiceActionCreateParamsCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentConditionDimension( diff --git a/stripe/params/v2/billing/_service_action_update_params.py b/stripe/params/v2/billing/_service_action_update_params.py index 76a2695b7..29c297c92 100644 --- a/stripe/params/v2/billing/_service_action_update_params.py +++ b/stripe/params/v2/billing/_service_action_update_params.py @@ -4,10 +4,6 @@ class ServiceActionUpdateParams(TypedDict): - lookup_key: NotRequired[str] - """ - An internal key you can use to search for this service action. Maximum length of 200 characters. - """ credit_grant: NotRequired["ServiceActionUpdateParamsCreditGrant"] """ Details for the credit grant. Can only be set if the service action's `type` is `credit_grant`. @@ -18,6 +14,10 @@ class ServiceActionUpdateParams(TypedDict): """ Details for the credit grant per tenant. Can only be set if the service action's `type` is `credit_grant_per_tenant`. """ + lookup_key: NotRequired[str] + """ + An internal key you can use to search for this service action. Maximum length of 200 characters. + """ class ServiceActionUpdateParamsCreditGrant(TypedDict): diff --git a/stripe/params/v2/billing/pricing_plans/_component_create_params.py b/stripe/params/v2/billing/pricing_plans/_component_create_params.py index 5d2a536ee..1f1417e1c 100644 --- a/stripe/params/v2/billing/pricing_plans/_component_create_params.py +++ b/stripe/params/v2/billing/pricing_plans/_component_create_params.py @@ -6,6 +6,10 @@ class ComponentCreateParams(TypedDict): + license_fee: NotRequired["ComponentCreateParamsLicenseFee"] + """ + Details if this component is a License Fee. + """ lookup_key: NotRequired[str] """ An identifier that can be used to find this component. @@ -14,14 +18,6 @@ class ComponentCreateParams(TypedDict): """ Set of [key-value pairs](https://docs.stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ - type: Literal["license_fee", "rate_card", "service_action"] - """ - The type of the PricingPlanComponent. - """ - license_fee: NotRequired["ComponentCreateParamsLicenseFee"] - """ - Details if this component is a License Fee. - """ rate_card: NotRequired["ComponentCreateParamsRateCard"] """ Details if this component is a Rate Card. @@ -30,6 +26,10 @@ class ComponentCreateParams(TypedDict): """ Details if this component is a Service Action. """ + type: Literal["license_fee", "rate_card", "service_action"] + """ + The type of the PricingPlanComponent. + """ class ComponentCreateParamsLicenseFee(TypedDict): diff --git a/stripe/params/v2/core/_account_link_create_params.py b/stripe/params/v2/core/_account_link_create_params.py index 1d40fd21c..8fc96d362 100644 --- a/stripe/params/v2/core/_account_link_create_params.py +++ b/stripe/params/v2/core/_account_link_create_params.py @@ -16,15 +16,6 @@ class AccountLinkCreateParams(TypedDict): class AccountLinkCreateParamsUseCase(TypedDict): - type: Literal[ - "account_onboarding", - "account_update", - "recipient_onboarding", - "recipient_update", - ] - """ - Open Enum. The type of Account Link the user is requesting. - """ account_onboarding: NotRequired[ "AccountLinkCreateParamsUseCaseAccountOnboarding" ] @@ -47,6 +38,15 @@ class AccountLinkCreateParamsUseCase(TypedDict): """ Hash containing configuration options for an Account Link that updates an existing recipient. """ + type: Literal[ + "account_onboarding", + "account_update", + "recipient_onboarding", + "recipient_update", + ] + """ + Open Enum. The type of Account Link the user is requesting. + """ class AccountLinkCreateParamsUseCaseAccountOnboarding(TypedDict): diff --git a/stripe/params/v2/core/_event_destination_create_params.py b/stripe/params/v2/core/_event_destination_create_params.py index eaceb2f4d..6ac47e438 100644 --- a/stripe/params/v2/core/_event_destination_create_params.py +++ b/stripe/params/v2/core/_event_destination_create_params.py @@ -6,6 +6,16 @@ class EventDestinationCreateParams(TypedDict): + amazon_eventbridge: NotRequired[ + "EventDestinationCreateParamsAmazonEventbridge" + ] + """ + Amazon EventBridge configuration. + """ + azure_event_grid: NotRequired["EventDestinationCreateParamsAzureEventGrid"] + """ + Azure Event Grid configuration. + """ description: NotRequired[str] """ An optional description of what the event destination is used for. @@ -50,16 +60,6 @@ class EventDestinationCreateParams(TypedDict): """ Event destination type. """ - amazon_eventbridge: NotRequired[ - "EventDestinationCreateParamsAmazonEventbridge" - ] - """ - Amazon EventBridge configuration. - """ - azure_event_grid: NotRequired["EventDestinationCreateParamsAzureEventGrid"] - """ - Azure Event Grid configuration. - """ webhook_endpoint: NotRequired[ "EventDestinationCreateParamsWebhookEndpoint" ] diff --git a/stripe/params/v2/money_management/_outbound_payment_create_params.py b/stripe/params/v2/money_management/_outbound_payment_create_params.py index 04df237c0..776a66052 100644 --- a/stripe/params/v2/money_management/_outbound_payment_create_params.py +++ b/stripe/params/v2/money_management/_outbound_payment_create_params.py @@ -57,10 +57,6 @@ class OutboundPaymentCreateParams(_OutboundPaymentCreateParamsBase): class OutboundPaymentCreateParamsDeliveryOptions(TypedDict): - speed: NotRequired[Literal["instant", "next_business_day", "standard"]] - """ - Open Enum. Speed of the payout. - """ bank_account: NotRequired[Literal["automatic", "local", "wire"]] """ Open Enum. Method for bank account. @@ -71,6 +67,10 @@ class OutboundPaymentCreateParamsDeliveryOptions(TypedDict): """ Delivery options for paper check. """ + speed: NotRequired[Literal["instant", "next_business_day", "standard"]] + """ + Open Enum. Speed of the payout. + """ class OutboundPaymentCreateParamsDeliveryOptionsPaperCheck(TypedDict): diff --git a/stripe/params/v2/money_management/_outbound_payment_quote_create_params.py b/stripe/params/v2/money_management/_outbound_payment_quote_create_params.py index ec40e4404..ca920f463 100644 --- a/stripe/params/v2/money_management/_outbound_payment_quote_create_params.py +++ b/stripe/params/v2/money_management/_outbound_payment_quote_create_params.py @@ -27,14 +27,14 @@ class OutboundPaymentQuoteCreateParams(_OutboundPaymentQuoteCreateParamsBase): class OutboundPaymentQuoteCreateParamsDeliveryOptions(TypedDict): - speed: NotRequired[Literal["instant", "next_business_day", "standard"]] - """ - Open Enum. Speed of the payout. - """ bank_account: NotRequired[Literal["automatic", "local", "wire"]] """ Open Enum. Method for bank account. """ + speed: NotRequired[Literal["instant", "next_business_day", "standard"]] + """ + Open Enum. Speed of the payout. + """ class OutboundPaymentQuoteCreateParamsFrom(TypedDict): diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py index 1286d4b36..a575c45dc 100644 --- a/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py +++ b/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py @@ -24,10 +24,6 @@ class OutboundSetupIntentCreateParams(TypedDict): class OutboundSetupIntentCreateParamsPayoutMethodData(TypedDict): - type: Literal["bank_account", "card", "crypto_wallet"] - """ - Closed Enum. The type of payout method to be created. - """ bank_account: NotRequired[ "OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount" ] @@ -44,6 +40,10 @@ class OutboundSetupIntentCreateParamsPayoutMethodData(TypedDict): """ The type specific details of the crypto wallet payout method. """ + type: Literal["bank_account", "card", "crypto_wallet"] + """ + Closed Enum. The type of payout method to be created. + """ class OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount(TypedDict): diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py index 395351972..860c21abf 100644 --- a/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py +++ b/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py @@ -18,10 +18,6 @@ class OutboundSetupIntentUpdateParams(TypedDict): class OutboundSetupIntentUpdateParamsPayoutMethodData(TypedDict): - type: Literal["bank_account", "card", "crypto_wallet"] - """ - Closed Enum. The type of payout method to be created/updated. - """ bank_account: NotRequired[ "OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount" ] @@ -32,6 +28,10 @@ class OutboundSetupIntentUpdateParamsPayoutMethodData(TypedDict): """ The type specific details of the card payout method. """ + type: Literal["bank_account", "card", "crypto_wallet"] + """ + Closed Enum. The type of payout method to be created/updated. + """ class OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount(TypedDict): diff --git a/stripe/params/v2/payments/_off_session_payment_create_params.py b/stripe/params/v2/payments/_off_session_payment_create_params.py index 557b27cde..802b16e4c 100644 --- a/stripe/params/v2/payments/_off_session_payment_create_params.py +++ b/stripe/params/v2/payments/_off_session_payment_create_params.py @@ -102,14 +102,14 @@ class OffSessionPaymentCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the payment method. """ - type: Literal["card"] - """ - The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. - """ card: NotRequired["OffSessionPaymentCreateParamsPaymentMethodDataCard"] """ Contains card details that can be used to create a card PaymentMethod for PCI compliant users. """ + type: Literal["card"] + """ + The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. + """ class OffSessionPaymentCreateParamsPaymentMethodDataBillingDetails(TypedDict): diff --git a/stripe/params/v2/tax/_manual_rule_create_params.py b/stripe/params/v2/tax/_manual_rule_create_params.py index 0ce906eb0..0b9f4bbfb 100644 --- a/stripe/params/v2/tax/_manual_rule_create_params.py +++ b/stripe/params/v2/tax/_manual_rule_create_params.py @@ -32,10 +32,6 @@ class ManualRuleCreateParamsLocation(TypedDict): class ManualRuleCreateParamsProduct(TypedDict): - type: Literal["licensed_item", "metered_item", "tax_code"] - """ - The type of the product. - """ licensed_item: NotRequired[str] """ The licensed item identifier. @@ -48,6 +44,10 @@ class ManualRuleCreateParamsProduct(TypedDict): """ The tax code for the product. """ + type: Literal["licensed_item", "metered_item", "tax_code"] + """ + The type of the product. + """ class ManualRuleCreateParamsScheduledTaxRate(TypedDict): diff --git a/stripe/params/v2/tax/_manual_rule_update_params.py b/stripe/params/v2/tax/_manual_rule_update_params.py index 65fb7cb62..6da172b4d 100644 --- a/stripe/params/v2/tax/_manual_rule_update_params.py +++ b/stripe/params/v2/tax/_manual_rule_update_params.py @@ -32,10 +32,6 @@ class ManualRuleUpdateParamsLocation(TypedDict): class ManualRuleUpdateParamsProduct(TypedDict): - type: Literal["licensed_item", "metered_item", "tax_code"] - """ - The type of the product. - """ licensed_item: NotRequired[str] """ The licensed item identifier. @@ -48,6 +44,10 @@ class ManualRuleUpdateParamsProduct(TypedDict): """ The tax code for the product. """ + type: Literal["licensed_item", "metered_item", "tax_code"] + """ + The type of the product. + """ class ManualRuleUpdateParamsScheduledTaxRate(TypedDict): diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index b31845daf..a89c27419 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -43628,8 +43628,6 @@ def test_v2_billing_cadence_post_service( client.v2.billing.cadences.create( { "billing_cycle": { - "interval_count": 797691627, - "type": "week", "day": { "time": { "hour": 3208676, @@ -43637,6 +43635,7 @@ def test_v2_billing_cadence_post_service( "second": 906279820, }, }, + "interval_count": 797691627, "month": { "day_of_month": 1361669285, "month_of_year": 82933018, @@ -43646,6 +43645,7 @@ def test_v2_billing_cadence_post_service( "second": 906279820, }, }, + "type": "week", "week": { "day_of_week": 43636807, "time": { @@ -43672,7 +43672,7 @@ def test_v2_billing_cadence_post_service( path="/v2/billing/cadences", query_string="", api_base="https://api.stripe.com", - post_data='{"billing_cycle":{"interval_count":797691627,"type":"week","day":{"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"month":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"week":{"day_of_week":43636807,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"year":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}}},"payer":{"billing_profile":"billing_profile"}}', + post_data='{"billing_cycle":{"day":{"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"interval_count":797691627,"month":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"type":"week","week":{"day_of_week":43636807,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"year":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}}},"payer":{"billing_profile":"billing_profile"}}', is_json=True, ) @@ -44036,21 +44036,18 @@ def test_v2_billing_intent_post_service( { "actions": [ { - "type": "apply", "apply": { - "effective_at": { - "timestamp": "1970-01-01T15:18:46.294Z", - "type": "current_billing_period_end", - }, - "type": "discount", "discount": { "coupon": "coupon", "promotion_code": "promotion_code", "type": "coupon", }, + "effective_at": { + "timestamp": "1970-01-01T15:18:46.294Z", + "type": "current_billing_period_end", + }, "invoice_discount_rule": { "applies_to": "cadence", - "type": "percent_off", "percent_off": { "maximum_applications": { "type": "indefinite" @@ -44059,23 +44056,25 @@ def test_v2_billing_intent_post_service( "991934883.3333334" ), }, + "type": "percent_off", }, "spend_modifier_rule": { "applies_to": "cadence", - "type": "max_billing_period_spend", "max_billing_period_spend": { "amount": { - "type": "custom_pricing_unit", "custom_pricing_unit": { "id": "obj_123", "value": "value", }, + "type": "custom_pricing_unit", }, "custom_pricing_unit_overage_rate": { "id": "obj_123", }, }, + "type": "max_billing_period_spend", }, + "type": "discount", }, "deactivate": { "cancellation_details": { @@ -44091,10 +44090,10 @@ def test_v2_billing_intent_post_service( "overrides": { "partial_period_behaviors": [ { - "type": "license_fee", "license_fee": { "credit_proration_behavior": "prorated", }, + "type": "license_fee", }, ], }, @@ -44111,9 +44110,9 @@ def test_v2_billing_intent_post_service( "pricing_plan_subscription_details": { "component_configurations": [ { - "quantity": 1285004149, "lookup_key": "lookup_key", "pricing_plan_component": "pricing_plan_component", + "quantity": 1285004149, }, ], "new_pricing_plan": "new_pricing_plan", @@ -44121,7 +44120,6 @@ def test_v2_billing_intent_post_service( "overrides": { "partial_period_behaviors": [ { - "type": "license_fee", "license_fee": { "credit_proration_behavior": "prorated", "debit_proration_behavior": "none", @@ -44129,6 +44127,7 @@ def test_v2_billing_intent_post_service( "recurring_credit_grant": { "create_behavior": "none", }, + "type": "license_fee", }, ], }, @@ -44140,9 +44139,9 @@ def test_v2_billing_intent_post_service( "effective_at": { "type": "current_billing_period_end" }, - "type": "invoice_discount_rule", "invoice_discount_rule": "invoice_discount_rule", "spend_modifier_rule": "spend_modifier_rule", + "type": "invoice_discount_rule", }, "subscribe": { "collect_at": "next_billing_date", @@ -44150,32 +44149,32 @@ def test_v2_billing_intent_post_service( "timestamp": "1970-01-01T15:18:46.294Z", "type": "current_billing_period_start", }, - "type": "pricing_plan_subscription_details", "pricing_plan_subscription_details": { "component_configurations": [ { - "quantity": 1285004149, "lookup_key": "lookup_key", "pricing_plan_component": "pricing_plan_component", + "quantity": 1285004149, }, ], "metadata": {"key": "metadata"}, "overrides": { "partial_period_behaviors": [ { - "type": "license_fee", "license_fee": { "debit_proration_behavior": "none", }, "recurring_credit_grant": { "create_behavior": "none", }, + "type": "license_fee", }, ], }, "pricing_plan": "pricing_plan", "pricing_plan_version": "pricing_plan_version", }, + "type": "pricing_plan_subscription_details", "v1_subscription_details": { "description": "description", "items": [ @@ -44188,6 +44187,7 @@ def test_v2_billing_intent_post_service( "metadata": {"key": "metadata"}, }, }, + "type": "apply", }, ], "currency": "usd", @@ -44198,7 +44198,7 @@ def test_v2_billing_intent_post_service( path="/v2/billing/intents", query_string="", api_base="https://api.stripe.com", - post_data='{"actions":[{"type":"apply","apply":{"effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"current_billing_period_end"},"type":"discount","discount":{"coupon":"coupon","promotion_code":"promotion_code","type":"coupon"},"invoice_discount_rule":{"applies_to":"cadence","type":"percent_off","percent_off":{"maximum_applications":{"type":"indefinite"},"percent_off":"991934883.3333334"}},"spend_modifier_rule":{"applies_to":"cadence","type":"max_billing_period_spend","max_billing_period_spend":{"amount":{"type":"custom_pricing_unit","custom_pricing_unit":{"id":"obj_123","value":"value"}},"custom_pricing_unit_overage_rate":{"id":"obj_123"}}}},"deactivate":{"cancellation_details":{"comment":"comment","feedback":"other"},"collect_at":"next_billing_date","effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"on_reserve"},"pricing_plan_subscription_details":{"overrides":{"partial_period_behaviors":[{"type":"license_fee","license_fee":{"credit_proration_behavior":"prorated"}}]},"pricing_plan_subscription":"pricing_plan_subscription"},"type":"pricing_plan_subscription_details"},"modify":{"collect_at":"next_billing_date","effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"current_billing_period_start"},"pricing_plan_subscription_details":{"component_configurations":[{"quantity":1285004149,"lookup_key":"lookup_key","pricing_plan_component":"pricing_plan_component"}],"new_pricing_plan":"new_pricing_plan","new_pricing_plan_version":"new_pricing_plan_version","overrides":{"partial_period_behaviors":[{"type":"license_fee","license_fee":{"credit_proration_behavior":"prorated","debit_proration_behavior":"none"},"recurring_credit_grant":{"create_behavior":"none"}}]},"pricing_plan_subscription":"pricing_plan_subscription"},"type":"pricing_plan_subscription_details"},"remove":{"effective_at":{"type":"current_billing_period_end"},"type":"invoice_discount_rule","invoice_discount_rule":"invoice_discount_rule","spend_modifier_rule":"spend_modifier_rule"},"subscribe":{"collect_at":"next_billing_date","effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"current_billing_period_start"},"type":"pricing_plan_subscription_details","pricing_plan_subscription_details":{"component_configurations":[{"quantity":1285004149,"lookup_key":"lookup_key","pricing_plan_component":"pricing_plan_component"}],"metadata":{"key":"metadata"},"overrides":{"partial_period_behaviors":[{"type":"license_fee","license_fee":{"debit_proration_behavior":"none"},"recurring_credit_grant":{"create_behavior":"none"}}]},"pricing_plan":"pricing_plan","pricing_plan_version":"pricing_plan_version"},"v1_subscription_details":{"description":"description","items":[{"metadata":{"key":"metadata"},"price":"price","quantity":1285004149}],"metadata":{"key":"metadata"}}}}],"currency":"usd"}', + post_data='{"actions":[{"apply":{"discount":{"coupon":"coupon","promotion_code":"promotion_code","type":"coupon"},"effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"current_billing_period_end"},"invoice_discount_rule":{"applies_to":"cadence","percent_off":{"maximum_applications":{"type":"indefinite"},"percent_off":"991934883.3333334"},"type":"percent_off"},"spend_modifier_rule":{"applies_to":"cadence","max_billing_period_spend":{"amount":{"custom_pricing_unit":{"id":"obj_123","value":"value"},"type":"custom_pricing_unit"},"custom_pricing_unit_overage_rate":{"id":"obj_123"}},"type":"max_billing_period_spend"},"type":"discount"},"deactivate":{"cancellation_details":{"comment":"comment","feedback":"other"},"collect_at":"next_billing_date","effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"on_reserve"},"pricing_plan_subscription_details":{"overrides":{"partial_period_behaviors":[{"license_fee":{"credit_proration_behavior":"prorated"},"type":"license_fee"}]},"pricing_plan_subscription":"pricing_plan_subscription"},"type":"pricing_plan_subscription_details"},"modify":{"collect_at":"next_billing_date","effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"current_billing_period_start"},"pricing_plan_subscription_details":{"component_configurations":[{"lookup_key":"lookup_key","pricing_plan_component":"pricing_plan_component","quantity":1285004149}],"new_pricing_plan":"new_pricing_plan","new_pricing_plan_version":"new_pricing_plan_version","overrides":{"partial_period_behaviors":[{"license_fee":{"credit_proration_behavior":"prorated","debit_proration_behavior":"none"},"recurring_credit_grant":{"create_behavior":"none"},"type":"license_fee"}]},"pricing_plan_subscription":"pricing_plan_subscription"},"type":"pricing_plan_subscription_details"},"remove":{"effective_at":{"type":"current_billing_period_end"},"invoice_discount_rule":"invoice_discount_rule","spend_modifier_rule":"spend_modifier_rule","type":"invoice_discount_rule"},"subscribe":{"collect_at":"next_billing_date","effective_at":{"timestamp":"1970-01-01T15:18:46.294Z","type":"current_billing_period_start"},"pricing_plan_subscription_details":{"component_configurations":[{"lookup_key":"lookup_key","pricing_plan_component":"pricing_plan_component","quantity":1285004149}],"metadata":{"key":"metadata"},"overrides":{"partial_period_behaviors":[{"license_fee":{"debit_proration_behavior":"none"},"recurring_credit_grant":{"create_behavior":"none"},"type":"license_fee"}]},"pricing_plan":"pricing_plan","pricing_plan_version":"pricing_plan_version"},"type":"pricing_plan_subscription_details","v1_subscription_details":{"description":"description","items":[{"metadata":{"key":"metadata"},"price":"price","quantity":1285004149}],"metadata":{"key":"metadata"}}},"type":"apply"}],"currency":"usd"}', is_json=True, ) @@ -46149,7 +46149,6 @@ def test_v2_core_account_link_post_service( { "account": "account", "use_case": { - "type": "recipient_onboarding", "account_onboarding": { "collection_options": { "fields": "eventually_due", @@ -46186,6 +46185,7 @@ def test_v2_core_account_link_post_service( "refresh_url": "refresh_url", "return_url": "return_url", }, + "type": "recipient_onboarding", }, } ) @@ -46194,7 +46194,7 @@ def test_v2_core_account_link_post_service( path="/v2/core/account_links", query_string="", api_base="https://api.stripe.com", - post_data='{"account":"account","use_case":{"type":"recipient_onboarding","account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"recipient_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["recipient"],"refresh_url":"refresh_url","return_url":"return_url"},"recipient_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["recipient"],"refresh_url":"refresh_url","return_url":"return_url"}}}', + post_data='{"account":"account","use_case":{"account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"recipient_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["recipient"],"refresh_url":"refresh_url","return_url":"return_url"},"recipient_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["recipient"],"refresh_url":"refresh_url","return_url":"return_url"},"type":"recipient_onboarding"}}', is_json=True, )