Skip to content

Commit

Permalink
API Updates (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe committed Mar 2, 2022
1 parent 02c1fd8 commit 19f7500
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions types/2020-08-27/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ declare module 'stripe' {
*/
proration: boolean;

/**
* Additional details for proration line items
*/
proration_details: InvoiceLineItem.ProrationDetails | null;

/**
* The quantity of the subscription, if the line item is a subscription or a proration.
*/
Expand Down Expand Up @@ -134,6 +139,27 @@ declare module 'stripe' {
start: number;
}

interface ProrationDetails {
/**
* For a credit proration `line_item`, the original debit line_items to which the credit proration applies.
*/
credited_items: ProrationDetails.CreditedItems | null;
}

namespace ProrationDetails {
interface CreditedItems {
/**
* Invoice containing the credited invoice line items
*/
invoice: string;

/**
* Credited invoice line items
*/
invoice_line_items: Array<string>;
}
}

interface TaxAmount {
/**
* The amount, in %s, of the tax.
Expand Down

0 comments on commit 19f7500

Please sign in to comment.