/** * Invoice Ninja Node - Version 2 * Discriminator: resource=invoice, operation=create */ interface Credentials { invoiceNinjaApi: CredentialReference; } /** Create a new client */ export type InvoiceNinjaV2InvoiceCreateParams = { resource: 'invoice'; operation: 'create'; /** * API Version * @default v5 */ apiVersion?: 'v4' | 'v5' | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ client?: string | Expression; /** Auto Bill * @default false */ autoBill?: boolean | Expression; /** Custom Value 1 * @default 0 */ customValue1?: number | Expression; /** Custom Value 2 * @default 0 */ customValue2?: number | Expression; /** Discount */ discount?: string | Expression | PlaceholderValue; /** Due Date */ dueDate?: string | Expression; /** Email */ email?: string | Expression | PlaceholderValue; /** Email Invoice * @default false */ emailInvoice?: boolean | Expression; /** Invoice Date */ invoiceDate?: string | Expression; /** Invoice Number */ invoiceNumber?: string | Expression | PlaceholderValue; /** Invoice Status * @default 1 */ invoiceStatus?: 1 | 2 | Expression; /** Is Amount Discount * @default false */ isAmountDiscount?: boolean | Expression; /** Mark Sent * @default false */ markSent?: boolean | Expression; /** Paid * @default 0 */ paid?: number | Expression; /** Partial * @default 0 */ partial?: number | Expression; /** Partial Due Date */ partialDueDate?: string | Expression; /** PO Number */ poNumber?: string | Expression | PlaceholderValue; /** Private Notes */ privateNotes?: string | Expression | PlaceholderValue; /** Public Notes */ publicNotes?: string | Expression | PlaceholderValue; /** Tax Name 1 */ taxName1?: string | Expression | PlaceholderValue; /** Tax Name 2 */ taxName2?: string | Expression | PlaceholderValue; /** Tax Rate 1 * @default 0 */ taxRate1?: number | Expression; /** Tax Rate 2 * @default 0 */ taxRate2?: number | Expression; }; /** * Invoice Items * @default {} */ invoiceItemsUi?: { /** Invoice Item */ invoiceItemsValues?: Array<{ /** Cost * @default 0 */ cost?: number | Expression; /** Description */ description?: string | Expression | PlaceholderValue; /** Service */ service?: string | Expression | PlaceholderValue; /** Hours * @default 0 */ hours?: number | Expression; /** Tax Name 1 */ taxName1?: string | Expression | PlaceholderValue; /** Tax Name 2 */ taxName2?: string | Expression | PlaceholderValue; /** Tax Rate 1 * @default 0 */ taxRate1?: number | Expression; /** Tax Rate 2 * @default 0 */ taxRate2?: number | Expression; }>; }; }; export type InvoiceNinjaV2InvoiceCreateNode = { type: 'n8n-nodes-base.invoiceNinja'; version: 2; credentials?: Credentials; config: NodeConfig; };