/** * Harvest Node - Version 1 * Discriminator: resource=invoice, operation=update */ interface Credentials { harvestApi: CredentialReference; harvestOAuth2Api: CredentialReference; } /** Update a client */ export type HarvestV1InvoiceUpdateParams = { resource: 'invoice'; operation: 'update'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ accountId?: string | Expression; /** * The ID of the invoice want to update */ id?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** The ID of the retainer associated with this invoice */ client_id?: string | Expression | PlaceholderValue; /** The currency used by the invoice. If not provided, the client’s currency will be used. See a list of supported currencies */ currency?: string | Expression | PlaceholderValue; /** This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%. */ over_budget_notification_percentage?: string | Expression | PlaceholderValue; /** Date the invoice is due. Defaults to the issue_date if no payment_term is specified. */ ends_on?: string | Expression; /** The ID of the estimate associated with this invoice */ estimate_id?: string | Expression | PlaceholderValue; /** Date the invoice was issued. Defaults to today’s date. */ issue_date?: string | Expression; /** Notes about the project */ notes?: string | Expression | PlaceholderValue; /** If no value is set, the number will be automatically generated */ number?: string | Expression | PlaceholderValue; /** The timeframe in which the invoice should be paid. Defaults to custom. Options: upon receipt, net 15, net 30, net 45, or net 60. */ payment_term?: string | Expression | PlaceholderValue; /** The purchase order number */ purchase_order?: string | Expression | PlaceholderValue; /** The ID of the retainer associated with this invoice * @default true */ retainer_id?: boolean | Expression; /** The invoice subject */ subject?: string | Expression | PlaceholderValue; /** This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%. */ tax?: string | Expression | PlaceholderValue; /** This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%. */ tax2?: string | Expression | PlaceholderValue; }; }; export type HarvestV1InvoiceUpdateNode = { type: 'n8n-nodes-base.harvest'; version: 1; credentials?: Credentials; config: NodeConfig; };