/** * Invoice Ninja Node - Version 2 * Discriminator: resource=client, operation=create */ interface Credentials { invoiceNinjaApi: CredentialReference; } /** Create a new client */ export type InvoiceNinjaV2ClientCreateParams = { resource: 'client'; operation: 'create'; /** * API Version * @default v5 */ apiVersion?: 'v4' | 'v5' | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Client Name */ clientName?: string | Expression | PlaceholderValue; /** ID Number */ idNumber?: string | Expression | PlaceholderValue; /** Private Notes */ privateNotes?: string | Expression | PlaceholderValue; /** VAT Number */ vatNumber?: string | Expression | PlaceholderValue; /** Work Phone */ workPhone?: string | Expression | PlaceholderValue; /** Website */ website?: string | Expression | PlaceholderValue; }; /** * Billing Address * @default {} */ billingAddressUi?: { /** Billing Address */ billingAddressValue?: { /** Street Address */ streetAddress?: string | Expression | PlaceholderValue; /** Apt/Suite */ aptSuite?: string | Expression | PlaceholderValue; /** City */ city?: string | Expression | PlaceholderValue; /** State */ state?: string | Expression | PlaceholderValue; /** Postal Code */ postalCode?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ countryCode?: string | Expression; }; }; /** * Contacts * @default {} */ contactsUi?: { /** Contact */ contacstValues?: Array<{ /** First Name */ firstName?: string | Expression | PlaceholderValue; /** Last Name */ lastName?: string | Expression | PlaceholderValue; /** Email */ email?: string | Expression | PlaceholderValue; /** Phone */ phone?: string | Expression | PlaceholderValue; }>; }; /** * Shipping Address * @default {} */ shippingAddressUi?: { /** Shipping Address */ shippingAddressValue?: { /** Street Address */ streetAddress?: string | Expression | PlaceholderValue; /** Apt/Suite */ aptSuite?: string | Expression | PlaceholderValue; /** City */ city?: string | Expression | PlaceholderValue; /** State */ state?: string | Expression | PlaceholderValue; /** Postal Code */ postalCode?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ countryCode?: string | Expression; }; }; }; export type InvoiceNinjaV2ClientCreateNode = { type: 'n8n-nodes-base.invoiceNinja'; version: 2; credentials?: Credentials; config: NodeConfig; };