/** * Invoice Ninja Node - Version 2 * Discriminator: resource=payment, operation=create */ interface Credentials { invoiceNinjaApi: CredentialReference; } /** Create a new client */ export type InvoiceNinjaV2PaymentCreateParams = { resource: 'payment'; operation: 'create'; /** * API Version * @default v5 */ apiVersion?: 'v4' | 'v5' | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ invoice?: string | Expression; /** * Amount * @default 0 */ amount?: number | Expression; /** * Additional Fields * @displayOptions.show { apiVersion: ["v4", "v5"] } * @default {} */ additionalFields?: { /** 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; /** Transfer Reference */ transferReference?: string | Expression | PlaceholderValue; /** Private Notes */ privateNotes?: string | Expression | PlaceholderValue; }; }; export type InvoiceNinjaV2PaymentCreateNode = { type: 'n8n-nodes-base.invoiceNinja'; version: 2; credentials?: Credentials; config: NodeConfig; };