@leancodepl/kratos
Version:
Headless React components library for building Ory Kratos authentication flows
91 lines • 2.66 kB
TypeScript
import { TaxLineItem } from './TaxLineItem';
import { TimeInterval } from './TimeInterval';
import { LineItemV1 } from './LineItemV1';
/**
*
* @export
* @interface InvoiceDataV1
*/
export interface InvoiceDataV1 {
/**
*
* @type {TimeInterval}
* @memberof InvoiceDataV1
*/
billing_period: TimeInterval;
/**
* The currency of the invoice.
* @type {string}
* @memberof InvoiceDataV1
*/
readonly currency: string;
/**
* Deleted is true if the invoice has been soft-deleted.
* @type {boolean}
* @memberof InvoiceDataV1
*/
readonly deleted?: boolean;
/**
* The items that are part of this invoice.
* @type {Array<LineItemV1>}
* @memberof InvoiceDataV1
*/
readonly items: Array<LineItemV1>;
/**
* The plan that this invoice is based on, in the format "Name@version".
* @type {string}
* @memberof InvoiceDataV1
*/
readonly plan?: string;
/**
*
* @type {string}
* @memberof InvoiceDataV1
*/
stripe_invoice_item?: string;
/**
* The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://stripe.com/docs/billing/invoices/workflow#workflow-overview)
* @type {string}
* @memberof InvoiceDataV1
*/
stripe_invoice_status?: string;
/**
* An optional link to the invoice on Stripe.
* @type {string}
* @memberof InvoiceDataV1
*/
readonly stripe_link?: string;
/**
* The subtitle of the invoice.
* @type {string}
* @memberof InvoiceDataV1
*/
readonly subtitle?: string;
/**
*
* @type {TaxLineItem}
* @memberof InvoiceDataV1
*/
tax?: TaxLineItem;
/**
* The title of the invoice.
* @type {string}
* @memberof InvoiceDataV1
*/
readonly title: string;
/**
*
* @type {number}
* @memberof InvoiceDataV1
*/
total_in_cent: number;
}
/**
* Check if a given object implements the InvoiceDataV1 interface.
*/
export declare function instanceOfInvoiceDataV1(value: object): value is InvoiceDataV1;
export declare function InvoiceDataV1FromJSON(json: any): InvoiceDataV1;
export declare function InvoiceDataV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceDataV1;
export declare function InvoiceDataV1ToJSON(json: any): InvoiceDataV1;
export declare function InvoiceDataV1ToJSONTyped(value?: Omit<InvoiceDataV1, 'currency' | 'deleted' | 'items' | 'plan' | 'stripe_link' | 'subtitle' | 'title'> | null, ignoreDiscriminator?: boolean): any;
//# sourceMappingURL=InvoiceDataV1.d.ts.map