From 0e99968bdf1e84e902863837067e95554d043ba9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 00:11:14 +0000 Subject: [PATCH] Update generated code for v2125 and --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/params/__init__.py | 20 ++++++++++ .../params/_invoice_create_preview_params.py | 38 +++++++++++++++++++ .../_subscription_schedule_amend_params.py | 36 ++++++++++++++++++ 5 files changed, 96 insertions(+), 2 deletions(-) diff --git a/API_VERSION b/API_VERSION index 24e270edd..649e240d3 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -c0dacb8d26f5b7c5d68ef88b3f51d40c1eafeab7 \ No newline at end of file +81705b6e2e2e36de0b5623b221a049819f52a023 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ea1ecdee1..927a37ae7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2124 \ No newline at end of file +v2125 \ No newline at end of file diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index dc8415854..020dcfb88 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -1485,6 +1485,8 @@ InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStart as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStart, InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartAmendmentEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartAmendmentEnd, InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartDiscountEnd, + InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesAction as InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesAction, + InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesActionAppliesTo as InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesActionAppliesTo, InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountAction as InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountAction, InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAdd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAdd, InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAddDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAddDiscountEnd, @@ -5212,6 +5214,8 @@ SubscriptionScheduleAmendParamsAmendmentAmendmentStart as SubscriptionScheduleAmendParamsAmendmentAmendmentStart, SubscriptionScheduleAmendParamsAmendmentAmendmentStartAmendmentEnd as SubscriptionScheduleAmendParamsAmendmentAmendmentStartAmendmentEnd, SubscriptionScheduleAmendParamsAmendmentAmendmentStartDiscountEnd as SubscriptionScheduleAmendParamsAmendmentAmendmentStartDiscountEnd, + SubscriptionScheduleAmendParamsAmendmentBillingSchedulesAction as SubscriptionScheduleAmendParamsAmendmentBillingSchedulesAction, + SubscriptionScheduleAmendParamsAmendmentBillingSchedulesActionAppliesTo as SubscriptionScheduleAmendParamsAmendmentBillingSchedulesActionAppliesTo, SubscriptionScheduleAmendParamsAmendmentDiscountAction as SubscriptionScheduleAmendParamsAmendmentDiscountAction, SubscriptionScheduleAmendParamsAmendmentDiscountActionAdd as SubscriptionScheduleAmendParamsAmendmentDiscountActionAdd, SubscriptionScheduleAmendParamsAmendmentDiscountActionAddDiscountEnd as SubscriptionScheduleAmendParamsAmendmentDiscountActionAddDiscountEnd, @@ -9898,6 +9902,14 @@ "stripe.params._invoice_create_preview_params", False, ), + "InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesAction": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesActionAppliesTo": ( + "stripe.params._invoice_create_preview_params", + False, + ), "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountAction": ( "stripe.params._invoice_create_preview_params", False, @@ -22820,6 +22832,14 @@ "stripe.params._subscription_schedule_amend_params", False, ), + "SubscriptionScheduleAmendParamsAmendmentBillingSchedulesAction": ( + "stripe.params._subscription_schedule_amend_params", + False, + ), + "SubscriptionScheduleAmendParamsAmendmentBillingSchedulesActionAppliesTo": ( + "stripe.params._subscription_schedule_amend_params", + False, + ), "SubscriptionScheduleAmendParamsAmendmentDiscountAction": ( "stripe.params._subscription_schedule_amend_params", False, diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index 70fd956da..5fc585dc2 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -645,6 +645,14 @@ class InvoiceCreatePreviewParamsScheduleDetailsAmendment(TypedDict): """ Settings related to subscription trials. """ + billing_schedules_actions: NotRequired[ + List[ + "InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesAction" + ] + ] + """ + Actions to apply to the billing schedules. + """ class InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEnd( @@ -1156,6 +1164,36 @@ class InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettingsEndBehavior """ +class InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesAction( + TypedDict, +): + applies_to: NotRequired[ + List[ + "InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesActionAppliesTo" + ] + ] + """ + Specify which subscription items the billing schedule applies to. + """ + type: Literal["remove", "set"] + """ + Select the action. + """ + + +class InvoiceCreatePreviewParamsScheduleDetailsAmendmentBillingSchedulesActionAppliesTo( + TypedDict, +): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + class InvoiceCreatePreviewParamsScheduleDetailsBillingMode(TypedDict): flexible: NotRequired[ "InvoiceCreatePreviewParamsScheduleDetailsBillingModeFlexible" diff --git a/stripe/params/_subscription_schedule_amend_params.py b/stripe/params/_subscription_schedule_amend_params.py index c64458290..96d7b4d4f 100644 --- a/stripe/params/_subscription_schedule_amend_params.py +++ b/stripe/params/_subscription_schedule_amend_params.py @@ -90,6 +90,12 @@ class SubscriptionScheduleAmendParamsAmendment(TypedDict): """ Settings related to subscription trials. """ + billing_schedules_actions: NotRequired[ + List["SubscriptionScheduleAmendParamsAmendmentBillingSchedulesAction"] + ] + """ + Actions to apply to the billing schedules. + """ class SubscriptionScheduleAmendParamsAmendmentAmendmentEnd(TypedDict): @@ -557,6 +563,36 @@ class SubscriptionScheduleAmendParamsAmendmentTrialSettingsEndBehavior( """ +class SubscriptionScheduleAmendParamsAmendmentBillingSchedulesAction( + TypedDict +): + applies_to: NotRequired[ + List[ + "SubscriptionScheduleAmendParamsAmendmentBillingSchedulesActionAppliesTo" + ] + ] + """ + Specify which subscription items the billing schedule applies to. + """ + type: Literal["remove", "set"] + """ + Select the action. + """ + + +class SubscriptionScheduleAmendParamsAmendmentBillingSchedulesActionAppliesTo( + TypedDict, +): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + class SubscriptionScheduleAmendParamsPrebilling(TypedDict): bill_from: NotRequired["SubscriptionScheduleAmendParamsPrebillingBillFrom"] """