@@ -329,6 +329,12 @@ export interface Invoice {
329
329
*/
330
330
payment_started_at : string | null ;
331
331
332
+ /**
333
+ * The active plan for this invoice's subscription on its invoice date. This field
334
+ * is only populated for invoices generated by subscriptions.
335
+ */
336
+ plan : Invoice . Plan | null ;
337
+
332
338
/**
333
339
* If the invoice is in draft, this timestamp will reflect when the invoice is
334
340
* scheduled to be issued.
@@ -1171,6 +1177,23 @@ export namespace Invoice {
1171
1177
minimum_amount : string ;
1172
1178
}
1173
1179
1180
+ /**
1181
+ * The active plan for this invoice's subscription on its invoice date. This field
1182
+ * is only populated for invoices generated by subscriptions.
1183
+ */
1184
+ export interface Plan {
1185
+ id : string | null ;
1186
+
1187
+ /**
1188
+ * An optional user-defined ID for this plan resource, used throughout the system
1189
+ * as an alias for this Plan. Use this field to identify a plan by an existing
1190
+ * identifier in your system.
1191
+ */
1192
+ external_plan_id : string | null ;
1193
+
1194
+ name : string | null ;
1195
+ }
1196
+
1174
1197
export interface ShippingAddress {
1175
1198
city : string | null ;
1176
1199
@@ -1400,6 +1423,12 @@ export interface InvoiceFetchUpcomingResponse {
1400
1423
*/
1401
1424
payment_started_at : string | null ;
1402
1425
1426
+ /**
1427
+ * The active plan for this invoice's subscription on its invoice date. This field
1428
+ * is only populated for invoices generated by subscriptions.
1429
+ */
1430
+ plan : InvoiceFetchUpcomingResponse . Plan | null ;
1431
+
1403
1432
/**
1404
1433
* If the invoice is in draft, this timestamp will reflect when the invoice is
1405
1434
* scheduled to be issued.
@@ -2247,6 +2276,23 @@ export namespace InvoiceFetchUpcomingResponse {
2247
2276
minimum_amount : string ;
2248
2277
}
2249
2278
2279
+ /**
2280
+ * The active plan for this invoice's subscription on its invoice date. This field
2281
+ * is only populated for invoices generated by subscriptions.
2282
+ */
2283
+ export interface Plan {
2284
+ id : string | null ;
2285
+
2286
+ /**
2287
+ * An optional user-defined ID for this plan resource, used throughout the system
2288
+ * as an alias for this Plan. Use this field to identify a plan by an existing
2289
+ * identifier in your system.
2290
+ */
2291
+ external_plan_id : string | null ;
2292
+
2293
+ name : string | null ;
2294
+ }
2295
+
2250
2296
export interface ShippingAddress {
2251
2297
city : string | null ;
2252
2298
0 commit comments