/** * Invoice Ninja Node - Version 2 * Discriminator: resource=expense, operation=create */ interface Credentials { invoiceNinjaApi: CredentialReference; } /** Create a new client */ export type InvoiceNinjaV2ExpenseCreateParams = { resource: 'expense'; operation: 'create'; /** * API Version * @default v5 */ apiVersion?: 'v4' | 'v5' | Expression; /** * Additional Fields * @displayOptions.show { apiVersion: ["v4", "v5"] } * @default {} */ additionalFields?: { /** Amount * @default 0 */ amount?: number | Expression; /** Billable * @default false */ billable?: boolean | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ client?: string | Expression; /** Custom Value 1 */ customValue1?: string | Expression | PlaceholderValue; /** Custom Value 2 */ customValue2?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ category?: string | Expression; /** Expense Date */ expenseDate?: string | Expression; /** Payment Date */ paymentDate?: string | Expression; /** Payment Type * @default 1 */ paymentType?: 5 | 28 | 8 | 1 | 2 | 32 | 17 | 3 | 16 | 13 | 4 | 10 | 9 | 11 | 31 | 15 | 24 | 19 | 20 | 21 | 7 | 27 | 12 | 14 | 30 | 29 | 22 | 23 | 25 | 18 | 26 | 6 | Expression; /** 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; /** Transaction Reference */ transactionReference?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ vendor?: string | Expression; }; }; export type InvoiceNinjaV2ExpenseCreateNode = { type: 'n8n-nodes-base.invoiceNinja'; version: 2; credentials?: Credentials; config: NodeConfig; };