Skip to content

Commit ea549a8

Browse files
committed
feat(api): updates (#45)
1 parent a0f6167 commit ea549a8

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/resources/invoices.ts

+46
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,12 @@ export interface Invoice {
329329
*/
330330
payment_started_at: string | null;
331331

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+
332338
/**
333339
* If the invoice is in draft, this timestamp will reflect when the invoice is
334340
* scheduled to be issued.
@@ -1171,6 +1177,23 @@ export namespace Invoice {
11711177
minimum_amount: string;
11721178
}
11731179

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+
11741197
export interface ShippingAddress {
11751198
city: string | null;
11761199

@@ -1400,6 +1423,12 @@ export interface InvoiceFetchUpcomingResponse {
14001423
*/
14011424
payment_started_at: string | null;
14021425

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+
14031432
/**
14041433
* If the invoice is in draft, this timestamp will reflect when the invoice is
14051434
* scheduled to be issued.
@@ -2247,6 +2276,23 @@ export namespace InvoiceFetchUpcomingResponse {
22472276
minimum_amount: string;
22482277
}
22492278

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+
22502296
export interface ShippingAddress {
22512297
city: string | null;
22522298

0 commit comments

Comments
 (0)