diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8ac6a0165..5fdc88f95 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1015 \ No newline at end of file +v1016 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index e7878e018..752322abd 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1640,6 +1640,10 @@ class CreatePreviewParams(RequestOptions): """ The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. """ + preview_mode: NotRequired[Literal["next", "recurring"]] + """ + Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + """ schedule: NotRequired[str] """ The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. @@ -3355,6 +3359,10 @@ class UpcomingLinesParams(RequestOptions): """ The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. """ + preview_mode: NotRequired[Literal["next", "recurring"]] + """ + Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + """ schedule: NotRequired[str] """ The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. @@ -4489,6 +4497,10 @@ class UpcomingParams(RequestOptions): """ The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. """ + preview_mode: NotRequired[Literal["next", "recurring"]] + """ + Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + """ schedule: NotRequired[str] """ The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index ad307742d..592abf248 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -676,6 +676,10 @@ class CreatePreviewParams(TypedDict): """ The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. """ + preview_mode: NotRequired[Literal["next", "recurring"]] + """ + Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + """ schedule: NotRequired[str] """ The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. @@ -1812,6 +1816,10 @@ class UpcomingParams(TypedDict): """ The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. """ + preview_mode: NotRequired[Literal["next", "recurring"]] + """ + Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + """ schedule: NotRequired[str] """ The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index bd9ef2048..ca4b3665d 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -66,6 +66,10 @@ class ListParams(TypedDict): """ The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. """ + preview_mode: NotRequired[Literal["next", "recurring"]] + """ + Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + """ schedule: NotRequired[str] """ The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.