n8n/packages/nodes-base/nodes/InvoiceNinja/QuoteInterface.ts
Jon 3b6ae2d0a5
fix(Invoice Ninja Node): Fix issue with custom invoice numbers not working with v5 (#8200)
## Summary
The v5 API expects the invoice number to under the `number` property
rather than `invoice_number`, At some point this month I am going to
bring in the big PR that fixes all of the v5 issues.

## Related tickets and issues
https://github.com/n8n-io/n8n/issues/8191
2024-01-03 09:02:19 +00:00

42 lines
863 B
TypeScript

export interface IItem {
cost?: number;
notes?: string;
product_key?: string;
qty?: number;
quantity?: number;
tax_rate1?: number;
tax_rate2?: number;
tax_name1?: string;
tax_name2?: string;
}
export interface IQuote {
auto_bill?: boolean;
client_id?: number;
custom_value1?: number;
custom_value2?: number;
email_invoice?: boolean;
discount?: number;
due_date?: string;
email?: string;
invoice_date?: string;
invoice_items?: IItem[];
line_items?: IItem[];
invoice_number?: string;
// eslint-disable-next-line id-denylist
number?: string;
invoice_status_id?: number;
is_amount_discount?: boolean;
is_quote?: boolean;
paid?: number;
partial?: number;
partial_due_date?: string;
po_number?: string;
private_notes?: string;
public_notes?: string;
tax_name1?: string;
tax_name2?: string;
tax_rate1?: number;
tax_rate2?: number;
}