From 46b59e03843c23c13d34c01d2166ac252a13843a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 01:17:13 +0000 Subject: [PATCH] Update generated code for v2358 and a3131fc4a4603898f1c99ff3f4e8809dd98f05c2 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_account.py | 4 ++ stripe/_quote_line.py | 2 +- stripe/_subscription.py | 4 +- stripe/_subscription_service.py | 4 +- stripe/capital/_financing_summary.py | 2 +- .../params/_invoice_create_preview_params.py | 2 +- ...attempt_record_report_guaranteed_params.py | 4 ++ stripe/params/_quote_create_params.py | 2 +- stripe/params/_quote_modify_params.py | 2 +- stripe/params/_quote_update_params.py | 2 +- .../_subscription_schedule_amend_params.py | 2 +- .../params/checkout/_session_create_params.py | 8 ++- .../params/checkout/_session_modify_params.py | 4 ++ .../params/checkout/_session_update_params.py | 4 ++ stripe/params/issuing/__init__.py | 20 ++++++++ .../issuing/_authorization_capture_params.py | 48 ++++++++++++++++++ .../issuing/_authorization_create_params.py | 46 +++++++++++++++++ ...transaction_create_force_capture_params.py | 48 ++++++++++++++++++ ...ansaction_create_unlinked_refund_params.py | 50 +++++++++++++++++++ .../params/test_helpers/issuing/__init__.py | 20 ++++++++ .../issuing/_authorization_capture_params.py | 48 ++++++++++++++++++ .../issuing/_authorization_create_params.py | 46 +++++++++++++++++ ...transaction_create_force_capture_params.py | 48 ++++++++++++++++++ ...ansaction_create_unlinked_refund_params.py | 50 +++++++++++++++++++ .../_statement_list_params.py | 4 ++ stripe/radar/_payment_evaluation.py | 4 +- 28 files changed, 465 insertions(+), 17 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index fb2246f92..4d2d4b535 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -6fc967cafa78afc6c6adb86802a26217fa770522 \ No newline at end of file +a3131fc4a4603898f1c99ff3f4e8809dd98f05c2 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5928ed650..af3cf4829 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2350 \ No newline at end of file +v2358 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index bb238583d..0ee92707f 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -505,6 +505,10 @@ class Capabilities(StripeObject): """ The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges. """ + sequra_payments: Optional[Literal["active", "inactive", "pending"]] + """ + The status of the Sequra capability of the account, or whether the account can directly process Sequra payments. + """ shopeepay_payments: Optional[Literal["active", "inactive", "pending"]] """ The status of the ShopeePay capability of the account, or whether the account can directly process ShopeePay payments. diff --git a/stripe/_quote_line.py b/stripe/_quote_line.py index 086b77696..be059f1cc 100644 --- a/stripe/_quote_line.py +++ b/stripe/_quote_line.py @@ -696,7 +696,7 @@ class EndBehavior(StripeObject): Union[Literal["automatic", "line_starts_at"], str] ] """ - For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. + For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. """ cancel_subscription_schedule: Optional[CancelSubscriptionSchedule] """ diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 9311db7ca..cc5342be5 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -1752,7 +1752,7 @@ def modify( When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes. To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint. - By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. + By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration). Switching prices does not normally change the billing date or generate an immediate charge unless: @@ -1789,7 +1789,7 @@ async def modify_async( When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes. To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint. - By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. + By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration). Switching prices does not normally change the billing date or generate an immediate charge unless: diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 2edf059e6..097b85e15 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -163,7 +163,7 @@ def update( When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes. To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint. - By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. + By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration). Switching prices does not normally change the billing date or generate an immediate charge unless: @@ -207,7 +207,7 @@ async def update_async( When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes. To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint. - By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. + By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration). Switching prices does not normally change the billing date or generate an immediate charge unless: diff --git a/stripe/capital/_financing_summary.py b/stripe/capital/_financing_summary.py index 8c38156a4..9f6ac1bb4 100644 --- a/stripe/capital/_financing_summary.py +++ b/stripe/capital/_financing_summary.py @@ -97,7 +97,7 @@ class CurrentRepaymentInterval(StripeObject): fee amount, withhold rate, remaining amount, paid amount, current repayment interval, repayment start date, and advance payout date. - Only present for financing offers with the `paid_out` status. + Only present for financing offers with a `status` other than `none`. """ financing_offer: Optional[str] """ diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index 3fc72df42..ce1a5ce82 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -683,7 +683,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsAmendment(TypedDict): "Literal['amendment_start', 'automatic']|str" ] """ - For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment. + For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp. For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment. """ billing_schedules_actions: NotRequired[ List[ diff --git a/stripe/params/_payment_attempt_record_report_guaranteed_params.py b/stripe/params/_payment_attempt_record_report_guaranteed_params.py index e997fbd5e..45e74af62 100644 --- a/stripe/params/_payment_attempt_record_report_guaranteed_params.py +++ b/stripe/params/_payment_attempt_record_report_guaranteed_params.py @@ -15,6 +15,10 @@ class PaymentAttemptRecordReportGuaranteedParams(RequestOptions): """ When the reported payment was guaranteed. Measured in seconds since the Unix epoch. """ + is_anomalous: NotRequired[bool] + """ + Set to `true` to enable writing an anomalous guaranteed payment to an outdated PaymentAttemptRecord. This parameter defaults to `false`. + """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" ] diff --git a/stripe/params/_quote_create_params.py b/stripe/params/_quote_create_params.py index 26fcf09a1..662e81dea 100644 --- a/stripe/params/_quote_create_params.py +++ b/stripe/params/_quote_create_params.py @@ -358,7 +358,7 @@ class QuoteCreateParamsLine(TypedDict): "Literal['automatic', 'line_starts_at']|str" ] """ - For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. + For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. """ cancel_subscription_schedule: NotRequired[ "QuoteCreateParamsLineCancelSubscriptionSchedule" diff --git a/stripe/params/_quote_modify_params.py b/stripe/params/_quote_modify_params.py index 7218d3893..ffc12ea35 100644 --- a/stripe/params/_quote_modify_params.py +++ b/stripe/params/_quote_modify_params.py @@ -343,7 +343,7 @@ class QuoteModifyParamsLine(TypedDict): "Literal['automatic', 'line_starts_at']|str" ] """ - For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. + For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. """ cancel_subscription_schedule: NotRequired[ "QuoteModifyParamsLineCancelSubscriptionSchedule" diff --git a/stripe/params/_quote_update_params.py b/stripe/params/_quote_update_params.py index c99b3bbf1..fce92ab84 100644 --- a/stripe/params/_quote_update_params.py +++ b/stripe/params/_quote_update_params.py @@ -342,7 +342,7 @@ class QuoteUpdateParamsLine(TypedDict): "Literal['automatic', 'line_starts_at']|str" ] """ - For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. + For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. """ cancel_subscription_schedule: NotRequired[ "QuoteUpdateParamsLineCancelSubscriptionSchedule" diff --git a/stripe/params/_subscription_schedule_amend_params.py b/stripe/params/_subscription_schedule_amend_params.py index 31849bff5..8f021012d 100644 --- a/stripe/params/_subscription_schedule_amend_params.py +++ b/stripe/params/_subscription_schedule_amend_params.py @@ -51,7 +51,7 @@ class SubscriptionScheduleAmendParamsAmendment(TypedDict): "Literal['amendment_start', 'automatic']|str" ] """ - For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment. + For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp. For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment. """ billing_schedules_actions: NotRequired[ List["SubscriptionScheduleAmendParamsAmendmentBillingSchedulesAction"] diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index bf15b88cb..60e640113 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -1028,11 +1028,11 @@ class SessionCreateParamsItemSubscriptionBillingModeFlexible(TypedDict): class SessionCreateParamsItemSubscriptionItem(TypedDict): price: NotRequired[str] """ - The ID of the price for this subscription item. + The ID of the [Price](https://docs.stripe.com/api/prices). One of `price` or `price_data` is required. """ price_data: NotRequired["SessionCreateParamsItemSubscriptionItemPriceData"] """ - Data used to generate a new Price object inline. + Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required. """ quantity: NotRequired[int] """ @@ -3283,6 +3283,10 @@ class SessionCreateParamsShippingOption(TypedDict): """ Parameters to be passed to Shipping Rate creation for this shipping option. """ + tax_rates: NotRequired[List[str]] + """ + The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`. + """ class SessionCreateParamsShippingOptionShippingRateData(TypedDict): diff --git a/stripe/params/checkout/_session_modify_params.py b/stripe/params/checkout/_session_modify_params.py index 7e5935c2c..c8cd12d93 100644 --- a/stripe/params/checkout/_session_modify_params.py +++ b/stripe/params/checkout/_session_modify_params.py @@ -345,6 +345,10 @@ class SessionModifyParamsShippingOption(TypedDict): """ Parameters to be passed to Shipping Rate creation for this shipping option. """ + tax_rates: NotRequired["Literal['']|List[str]"] + """ + The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`. + """ class SessionModifyParamsShippingOptionShippingRateData(TypedDict): diff --git a/stripe/params/checkout/_session_update_params.py b/stripe/params/checkout/_session_update_params.py index 43d5944ec..7b14816f4 100644 --- a/stripe/params/checkout/_session_update_params.py +++ b/stripe/params/checkout/_session_update_params.py @@ -344,6 +344,10 @@ class SessionUpdateParamsShippingOption(TypedDict): """ Parameters to be passed to Shipping Rate creation for this shipping option. """ + tax_rates: NotRequired["Literal['']|List[str]"] + """ + The tax rates that will be applied to this shipping option. This parameter is only supported for Checkout Sessions with `ui_mode` set to `form` or `elements`. + """ class SessionUpdateParamsShippingOptionShippingRateData(TypedDict): diff --git a/stripe/params/issuing/__init__.py b/stripe/params/issuing/__init__.py index 7d92f7358..b688620ec 100644 --- a/stripe/params/issuing/__init__.py +++ b/stripe/params/issuing/__init__.py @@ -20,6 +20,7 @@ AuthorizationCaptureParamsPurchaseDetailsFlight as AuthorizationCaptureParamsPurchaseDetailsFlight, AuthorizationCaptureParamsPurchaseDetailsFlightSegment as AuthorizationCaptureParamsPurchaseDetailsFlightSegment, AuthorizationCaptureParamsPurchaseDetailsFuel as AuthorizationCaptureParamsPurchaseDetailsFuel, + AuthorizationCaptureParamsPurchaseDetailsHealthcare as AuthorizationCaptureParamsPurchaseDetailsHealthcare, AuthorizationCaptureParamsPurchaseDetailsLodging as AuthorizationCaptureParamsPurchaseDetailsLodging, AuthorizationCaptureParamsPurchaseDetailsReceipt as AuthorizationCaptureParamsPurchaseDetailsReceipt, ) @@ -33,6 +34,7 @@ AuthorizationCreateParamsFleetReportedBreakdownNonFuel as AuthorizationCreateParamsFleetReportedBreakdownNonFuel, AuthorizationCreateParamsFleetReportedBreakdownTax as AuthorizationCreateParamsFleetReportedBreakdownTax, AuthorizationCreateParamsFuel as AuthorizationCreateParamsFuel, + AuthorizationCreateParamsHealthcare as AuthorizationCreateParamsHealthcare, AuthorizationCreateParamsMerchantData as AuthorizationCreateParamsMerchantData, AuthorizationCreateParamsNetworkData as AuthorizationCreateParamsNetworkData, AuthorizationCreateParamsRiskAssessment as AuthorizationCreateParamsRiskAssessment, @@ -388,6 +390,7 @@ TransactionCreateForceCaptureParamsPurchaseDetailsFlight as TransactionCreateForceCaptureParamsPurchaseDetailsFlight, TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment as TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment, TransactionCreateForceCaptureParamsPurchaseDetailsFuel as TransactionCreateForceCaptureParamsPurchaseDetailsFuel, + TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare as TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare, TransactionCreateForceCaptureParamsPurchaseDetailsLodging as TransactionCreateForceCaptureParamsPurchaseDetailsLodging, TransactionCreateForceCaptureParamsPurchaseDetailsReceipt as TransactionCreateForceCaptureParamsPurchaseDetailsReceipt, ) @@ -404,6 +407,7 @@ TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight, TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment, TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel, + TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare as TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare, TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging as TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging, TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt as TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt, ) @@ -478,6 +482,10 @@ "stripe.params.issuing._authorization_capture_params", False, ), + "AuthorizationCaptureParamsPurchaseDetailsHealthcare": ( + "stripe.params.issuing._authorization_capture_params", + False, + ), "AuthorizationCaptureParamsPurchaseDetailsLodging": ( "stripe.params.issuing._authorization_capture_params", False, @@ -522,6 +530,10 @@ "stripe.params.issuing._authorization_create_params", False, ), + "AuthorizationCreateParamsHealthcare": ( + "stripe.params.issuing._authorization_create_params", + False, + ), "AuthorizationCreateParamsMerchantData": ( "stripe.params.issuing._authorization_create_params", False, @@ -1379,6 +1391,10 @@ "stripe.params.issuing._transaction_create_force_capture_params", False, ), + "TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare": ( + "stripe.params.issuing._transaction_create_force_capture_params", + False, + ), "TransactionCreateForceCaptureParamsPurchaseDetailsLodging": ( "stripe.params.issuing._transaction_create_force_capture_params", False, @@ -1435,6 +1451,10 @@ "stripe.params.issuing._transaction_create_unlinked_refund_params", False, ), + "TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare": ( + "stripe.params.issuing._transaction_create_unlinked_refund_params", + False, + ), "TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging": ( "stripe.params.issuing._transaction_create_unlinked_refund_params", False, diff --git a/stripe/params/issuing/_authorization_capture_params.py b/stripe/params/issuing/_authorization_capture_params.py index e82727958..bda859124 100644 --- a/stripe/params/issuing/_authorization_capture_params.py +++ b/stripe/params/issuing/_authorization_capture_params.py @@ -49,6 +49,12 @@ class AuthorizationCaptureParamsPurchaseDetails(TypedDict): """ Information about fuel that was purchased with this transaction. """ + healthcare: NotRequired[ + "AuthorizationCaptureParamsPurchaseDetailsHealthcare" + ] + """ + Healthcare sub-amounts for IIAS-eligible transactions. + """ lodging: NotRequired["AuthorizationCaptureParamsPurchaseDetailsLodging"] """ Information about lodging that was purchased with this transaction. @@ -267,6 +273,48 @@ class AuthorizationCaptureParamsPurchaseDetailsFuel(TypedDict): """ +class AuthorizationCaptureParamsPurchaseDetailsHealthcare(TypedDict): + clinic_amount: NotRequired[int] + """ + Clinic and urgent care sub-amount for Visa only. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + dental_amount: NotRequired[int] + """ + Dental care sub-amount for Visa only. + """ + prescription_amount: NotRequired[int] + """ + Prescription drug sub-amount. Null if the merchant did not send this amount. + """ + purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]] + """ + The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases. + """ + total_qualified_amount: int + """ + Total FSA/HSA-eligible amount in the smallest currency unit. + """ + verification_status: NotRequired[ + Literal[ + "iias_merchant_exempt", + "iias_merchant_not_certified", + "iias_verified", + "not_verified", + ] + ] + """ + IIAS verification status from the merchant terminal. For Visa, this is always iias_verified. + """ + vision_amount: NotRequired[int] + """ + Vision/optical sub-amount. Null if the merchant did not send this amount. + """ + + class AuthorizationCaptureParamsPurchaseDetailsLodging(TypedDict): check_in_at: NotRequired[int] """ diff --git a/stripe/params/issuing/_authorization_create_params.py b/stripe/params/issuing/_authorization_create_params.py index c4c77585a..5a640d02e 100644 --- a/stripe/params/issuing/_authorization_create_params.py +++ b/stripe/params/issuing/_authorization_create_params.py @@ -47,6 +47,10 @@ class AuthorizationCreateParams(RequestOptions): """ Information about fuel that was purchased with this transaction. """ + healthcare: NotRequired["AuthorizationCreateParamsHealthcare"] + """ + Healthcare-specific information for IIAS-eligible authorizations. + """ is_amount_controllable: NotRequired[bool] """ If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization. @@ -230,6 +234,48 @@ class AuthorizationCreateParamsFuel(TypedDict): """ +class AuthorizationCreateParamsHealthcare(TypedDict): + clinic_amount: NotRequired[int] + """ + Clinic and urgent care sub-amount for Visa only. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + dental_amount: NotRequired[int] + """ + Dental care sub-amount for Visa only. + """ + prescription_amount: NotRequired[int] + """ + Prescription drug sub-amount. Null if the merchant did not send this amount. + """ + purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]] + """ + The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases. + """ + total_qualified_amount: int + """ + Total FSA/HSA-eligible amount in the smallest currency unit. + """ + verification_status: NotRequired[ + Literal[ + "iias_merchant_exempt", + "iias_merchant_not_certified", + "iias_verified", + "not_verified", + ] + ] + """ + IIAS verification status from the merchant terminal. For Visa, this is always iias_verified. + """ + vision_amount: NotRequired[int] + """ + Vision/optical sub-amount. Null if the merchant did not send this amount. + """ + + class AuthorizationCreateParamsMerchantData(TypedDict): category: NotRequired[ Literal[ diff --git a/stripe/params/issuing/_transaction_create_force_capture_params.py b/stripe/params/issuing/_transaction_create_force_capture_params.py index 2b33360d8..01e51c643 100644 --- a/stripe/params/issuing/_transaction_create_force_capture_params.py +++ b/stripe/params/issuing/_transaction_create_force_capture_params.py @@ -409,6 +409,12 @@ class TransactionCreateForceCaptureParamsPurchaseDetails(TypedDict): """ Information about fuel that was purchased with this transaction. """ + healthcare: NotRequired[ + "TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare" + ] + """ + Healthcare sub-amounts for IIAS-eligible transactions. + """ lodging: NotRequired[ "TransactionCreateForceCaptureParamsPurchaseDetailsLodging" ] @@ -631,6 +637,48 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFuel(TypedDict): """ +class TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare(TypedDict): + clinic_amount: NotRequired[int] + """ + Clinic and urgent care sub-amount for Visa only. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + dental_amount: NotRequired[int] + """ + Dental care sub-amount for Visa only. + """ + prescription_amount: NotRequired[int] + """ + Prescription drug sub-amount. Null if the merchant did not send this amount. + """ + purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]] + """ + The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases. + """ + total_qualified_amount: int + """ + Total FSA/HSA-eligible amount in the smallest currency unit. + """ + verification_status: NotRequired[ + Literal[ + "iias_merchant_exempt", + "iias_merchant_not_certified", + "iias_verified", + "not_verified", + ] + ] + """ + IIAS verification status from the merchant terminal. For Visa, this is always iias_verified. + """ + vision_amount: NotRequired[int] + """ + Vision/optical sub-amount. Null if the merchant did not send this amount. + """ + + class TransactionCreateForceCaptureParamsPurchaseDetailsLodging(TypedDict): check_in_at: NotRequired[int] """ diff --git a/stripe/params/issuing/_transaction_create_unlinked_refund_params.py b/stripe/params/issuing/_transaction_create_unlinked_refund_params.py index d49ef8cfa..4023bbe29 100644 --- a/stripe/params/issuing/_transaction_create_unlinked_refund_params.py +++ b/stripe/params/issuing/_transaction_create_unlinked_refund_params.py @@ -400,6 +400,12 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetails(TypedDict): """ Information about fuel that was purchased with this transaction. """ + healthcare: NotRequired[ + "TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare" + ] + """ + Healthcare sub-amounts for IIAS-eligible transactions. + """ lodging: NotRequired[ "TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging" ] @@ -624,6 +630,50 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict): """ +class TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare( + TypedDict +): + clinic_amount: NotRequired[int] + """ + Clinic and urgent care sub-amount for Visa only. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + dental_amount: NotRequired[int] + """ + Dental care sub-amount for Visa only. + """ + prescription_amount: NotRequired[int] + """ + Prescription drug sub-amount. Null if the merchant did not send this amount. + """ + purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]] + """ + The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases. + """ + total_qualified_amount: int + """ + Total FSA/HSA-eligible amount in the smallest currency unit. + """ + verification_status: NotRequired[ + Literal[ + "iias_merchant_exempt", + "iias_merchant_not_certified", + "iias_verified", + "not_verified", + ] + ] + """ + IIAS verification status from the merchant terminal. For Visa, this is always iias_verified. + """ + vision_amount: NotRequired[int] + """ + Vision/optical sub-amount. Null if the merchant did not send this amount. + """ + + class TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging(TypedDict): check_in_at: NotRequired[int] """ diff --git a/stripe/params/test_helpers/issuing/__init__.py b/stripe/params/test_helpers/issuing/__init__.py index 9efb47a67..1035e88a3 100644 --- a/stripe/params/test_helpers/issuing/__init__.py +++ b/stripe/params/test_helpers/issuing/__init__.py @@ -17,6 +17,7 @@ AuthorizationCaptureParamsPurchaseDetailsFlight as AuthorizationCaptureParamsPurchaseDetailsFlight, AuthorizationCaptureParamsPurchaseDetailsFlightSegment as AuthorizationCaptureParamsPurchaseDetailsFlightSegment, AuthorizationCaptureParamsPurchaseDetailsFuel as AuthorizationCaptureParamsPurchaseDetailsFuel, + AuthorizationCaptureParamsPurchaseDetailsHealthcare as AuthorizationCaptureParamsPurchaseDetailsHealthcare, AuthorizationCaptureParamsPurchaseDetailsLodging as AuthorizationCaptureParamsPurchaseDetailsLodging, AuthorizationCaptureParamsPurchaseDetailsReceipt as AuthorizationCaptureParamsPurchaseDetailsReceipt, ) @@ -30,6 +31,7 @@ AuthorizationCreateParamsFleetReportedBreakdownNonFuel as AuthorizationCreateParamsFleetReportedBreakdownNonFuel, AuthorizationCreateParamsFleetReportedBreakdownTax as AuthorizationCreateParamsFleetReportedBreakdownTax, AuthorizationCreateParamsFuel as AuthorizationCreateParamsFuel, + AuthorizationCreateParamsHealthcare as AuthorizationCreateParamsHealthcare, AuthorizationCreateParamsMerchantData as AuthorizationCreateParamsMerchantData, AuthorizationCreateParamsNetworkData as AuthorizationCreateParamsNetworkData, AuthorizationCreateParamsRiskAssessment as AuthorizationCreateParamsRiskAssessment, @@ -119,6 +121,7 @@ TransactionCreateForceCaptureParamsPurchaseDetailsFlight as TransactionCreateForceCaptureParamsPurchaseDetailsFlight, TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment as TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment, TransactionCreateForceCaptureParamsPurchaseDetailsFuel as TransactionCreateForceCaptureParamsPurchaseDetailsFuel, + TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare as TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare, TransactionCreateForceCaptureParamsPurchaseDetailsLodging as TransactionCreateForceCaptureParamsPurchaseDetailsLodging, TransactionCreateForceCaptureParamsPurchaseDetailsReceipt as TransactionCreateForceCaptureParamsPurchaseDetailsReceipt, ) @@ -135,6 +138,7 @@ TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight, TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment, TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel as TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel, + TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare as TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare, TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging as TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging, TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt as TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt, ) @@ -192,6 +196,10 @@ "stripe.params.test_helpers.issuing._authorization_capture_params", False, ), + "AuthorizationCaptureParamsPurchaseDetailsHealthcare": ( + "stripe.params.test_helpers.issuing._authorization_capture_params", + False, + ), "AuthorizationCaptureParamsPurchaseDetailsLodging": ( "stripe.params.test_helpers.issuing._authorization_capture_params", False, @@ -236,6 +244,10 @@ "stripe.params.test_helpers.issuing._authorization_create_params", False, ), + "AuthorizationCreateParamsHealthcare": ( + "stripe.params.test_helpers.issuing._authorization_create_params", + False, + ), "AuthorizationCreateParamsMerchantData": ( "stripe.params.test_helpers.issuing._authorization_create_params", False, @@ -440,6 +452,10 @@ "stripe.params.test_helpers.issuing._transaction_create_force_capture_params", False, ), + "TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare": ( + "stripe.params.test_helpers.issuing._transaction_create_force_capture_params", + False, + ), "TransactionCreateForceCaptureParamsPurchaseDetailsLodging": ( "stripe.params.test_helpers.issuing._transaction_create_force_capture_params", False, @@ -496,6 +512,10 @@ "stripe.params.test_helpers.issuing._transaction_create_unlinked_refund_params", False, ), + "TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare": ( + "stripe.params.test_helpers.issuing._transaction_create_unlinked_refund_params", + False, + ), "TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging": ( "stripe.params.test_helpers.issuing._transaction_create_unlinked_refund_params", False, diff --git a/stripe/params/test_helpers/issuing/_authorization_capture_params.py b/stripe/params/test_helpers/issuing/_authorization_capture_params.py index 88ace1e6f..20926fa7d 100644 --- a/stripe/params/test_helpers/issuing/_authorization_capture_params.py +++ b/stripe/params/test_helpers/issuing/_authorization_capture_params.py @@ -48,6 +48,12 @@ class AuthorizationCaptureParamsPurchaseDetails(TypedDict): """ Information about fuel that was purchased with this transaction. """ + healthcare: NotRequired[ + "AuthorizationCaptureParamsPurchaseDetailsHealthcare" + ] + """ + Healthcare sub-amounts for IIAS-eligible transactions. + """ lodging: NotRequired["AuthorizationCaptureParamsPurchaseDetailsLodging"] """ Information about lodging that was purchased with this transaction. @@ -266,6 +272,48 @@ class AuthorizationCaptureParamsPurchaseDetailsFuel(TypedDict): """ +class AuthorizationCaptureParamsPurchaseDetailsHealthcare(TypedDict): + clinic_amount: NotRequired[int] + """ + Clinic and urgent care sub-amount for Visa only. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + dental_amount: NotRequired[int] + """ + Dental care sub-amount for Visa only. + """ + prescription_amount: NotRequired[int] + """ + Prescription drug sub-amount. Null if the merchant did not send this amount. + """ + purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]] + """ + The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases. + """ + total_qualified_amount: int + """ + Total FSA/HSA-eligible amount in the smallest currency unit. + """ + verification_status: NotRequired[ + Literal[ + "iias_merchant_exempt", + "iias_merchant_not_certified", + "iias_verified", + "not_verified", + ] + ] + """ + IIAS verification status from the merchant terminal. For Visa, this is always iias_verified. + """ + vision_amount: NotRequired[int] + """ + Vision/optical sub-amount. Null if the merchant did not send this amount. + """ + + class AuthorizationCaptureParamsPurchaseDetailsLodging(TypedDict): check_in_at: NotRequired[int] """ diff --git a/stripe/params/test_helpers/issuing/_authorization_create_params.py b/stripe/params/test_helpers/issuing/_authorization_create_params.py index 718442b25..f3896c484 100644 --- a/stripe/params/test_helpers/issuing/_authorization_create_params.py +++ b/stripe/params/test_helpers/issuing/_authorization_create_params.py @@ -46,6 +46,10 @@ class AuthorizationCreateParams(TypedDict): """ Information about fuel that was purchased with this transaction. """ + healthcare: NotRequired["AuthorizationCreateParamsHealthcare"] + """ + Healthcare-specific information for IIAS-eligible authorizations. + """ is_amount_controllable: NotRequired[bool] """ If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization. @@ -229,6 +233,48 @@ class AuthorizationCreateParamsFuel(TypedDict): """ +class AuthorizationCreateParamsHealthcare(TypedDict): + clinic_amount: NotRequired[int] + """ + Clinic and urgent care sub-amount for Visa only. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + dental_amount: NotRequired[int] + """ + Dental care sub-amount for Visa only. + """ + prescription_amount: NotRequired[int] + """ + Prescription drug sub-amount. Null if the merchant did not send this amount. + """ + purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]] + """ + The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases. + """ + total_qualified_amount: int + """ + Total FSA/HSA-eligible amount in the smallest currency unit. + """ + verification_status: NotRequired[ + Literal[ + "iias_merchant_exempt", + "iias_merchant_not_certified", + "iias_verified", + "not_verified", + ] + ] + """ + IIAS verification status from the merchant terminal. For Visa, this is always iias_verified. + """ + vision_amount: NotRequired[int] + """ + Vision/optical sub-amount. Null if the merchant did not send this amount. + """ + + class AuthorizationCreateParamsMerchantData(TypedDict): category: NotRequired[ Literal[ diff --git a/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py b/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py index 2c34dc945..acdfc0747 100644 --- a/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py +++ b/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py @@ -408,6 +408,12 @@ class TransactionCreateForceCaptureParamsPurchaseDetails(TypedDict): """ Information about fuel that was purchased with this transaction. """ + healthcare: NotRequired[ + "TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare" + ] + """ + Healthcare sub-amounts for IIAS-eligible transactions. + """ lodging: NotRequired[ "TransactionCreateForceCaptureParamsPurchaseDetailsLodging" ] @@ -630,6 +636,48 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFuel(TypedDict): """ +class TransactionCreateForceCaptureParamsPurchaseDetailsHealthcare(TypedDict): + clinic_amount: NotRequired[int] + """ + Clinic and urgent care sub-amount for Visa only. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + dental_amount: NotRequired[int] + """ + Dental care sub-amount for Visa only. + """ + prescription_amount: NotRequired[int] + """ + Prescription drug sub-amount. Null if the merchant did not send this amount. + """ + purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]] + """ + The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases. + """ + total_qualified_amount: int + """ + Total FSA/HSA-eligible amount in the smallest currency unit. + """ + verification_status: NotRequired[ + Literal[ + "iias_merchant_exempt", + "iias_merchant_not_certified", + "iias_verified", + "not_verified", + ] + ] + """ + IIAS verification status from the merchant terminal. For Visa, this is always iias_verified. + """ + vision_amount: NotRequired[int] + """ + Vision/optical sub-amount. Null if the merchant did not send this amount. + """ + + class TransactionCreateForceCaptureParamsPurchaseDetailsLodging(TypedDict): check_in_at: NotRequired[int] """ diff --git a/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py b/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py index 52c1cb8ce..f7d7aa367 100644 --- a/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py +++ b/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py @@ -399,6 +399,12 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetails(TypedDict): """ Information about fuel that was purchased with this transaction. """ + healthcare: NotRequired[ + "TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare" + ] + """ + Healthcare sub-amounts for IIAS-eligible transactions. + """ lodging: NotRequired[ "TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging" ] @@ -623,6 +629,50 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict): """ +class TransactionCreateUnlinkedRefundParamsPurchaseDetailsHealthcare( + TypedDict +): + clinic_amount: NotRequired[int] + """ + Clinic and urgent care sub-amount for Visa only. + """ + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + dental_amount: NotRequired[int] + """ + Dental care sub-amount for Visa only. + """ + prescription_amount: NotRequired[int] + """ + Prescription drug sub-amount. Null if the merchant did not send this amount. + """ + purchase_type: NotRequired[Literal["medical", "transit_for_healthcare"]] + """ + The type of healthcare transaction. `medical` for FSA/HSA-eligible healthcare purchases; `transit_for_healthcare` for FSA/HSA-eligible transit for healthcare purchases. + """ + total_qualified_amount: int + """ + Total FSA/HSA-eligible amount in the smallest currency unit. + """ + verification_status: NotRequired[ + Literal[ + "iias_merchant_exempt", + "iias_merchant_not_certified", + "iias_verified", + "not_verified", + ] + ] + """ + IIAS verification status from the merchant terminal. For Visa, this is always iias_verified. + """ + vision_amount: NotRequired[int] + """ + Vision/optical sub-amount. Null if the merchant did not send this amount. + """ + + class TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging(TypedDict): check_in_at: NotRequired[int] """ diff --git a/stripe/params/v2/money_management/financial_accounts/_statement_list_params.py b/stripe/params/v2/money_management/financial_accounts/_statement_list_params.py index 868e4de8e..5a26484ff 100644 --- a/stripe/params/v2/money_management/financial_accounts/_statement_list_params.py +++ b/stripe/params/v2/money_management/financial_accounts/_statement_list_params.py @@ -12,3 +12,7 @@ class StatementListParams(TypedDict): """ The field by which to sort results. Defaults to "created". """ + status: NotRequired[Literal["active", "restated"]] + """ + Filter results by status. If omitted, statements of all statuses are returned. + """ diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index 2c9a4c310..0e3dc3910 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -429,11 +429,11 @@ class Card(StripeObject): """ Four-digit number representing the card's expiration year. """ - first6: Optional[str] + first6: str """ First six digits of the card number. """ - last4: Optional[str] + last4: str """ Last four digits of the card number. """