diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e881245dd5..e3059d5b46 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v433 \ No newline at end of file +v434 \ No newline at end of file diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 2a28a3e4cf..4c44d5e497 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -378,6 +378,11 @@ declare module 'stripe' { */ subscription: string | Stripe.Subscription | null; + /** + * Details about the subscription that created this invoice. + */ + subscription_details?: Invoice.SubscriptionDetails | null; + /** * Only set for upcoming invoices that preview prorations. The time used to calculate prorations. */ @@ -1187,6 +1192,13 @@ declare module 'stripe' { voided_at: number | null; } + interface SubscriptionDetails { + /** + * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will reflect the metadata of the subscription at the time of invoice creation. *Note: This attribute is populated only for invoices created on or after June 29, 2023.* + */ + metadata?: Stripe.Metadata | null; + } + interface ThresholdReason { /** * The total invoice amount threshold boundary if it triggered the threshold invoice.