Skip to content

Commit

Permalink
Update generated code for v434
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jul 28, 2023
1 parent f646c9d commit 2121149
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v433
v434
12 changes: 12 additions & 0 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2121149

Please sign in to comment.