/** * QuickBooks Online Node - Version 1 * Discriminator: resource=bill, operation=create */ interface Credentials { quickBooksOAuth2Api: CredentialReference; } export type QuickbooksV1BillCreateParams = { resource: 'bill'; operation: 'create'; /** * The ID of the vendor who the bill is for. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ VendorRef?: string | Expression; /** * Individual line item of a transaction * @default {} */ Line?: { /** Account ID */ accountId?: string | Expression | PlaceholderValue; /** Monetary amount of the line item * @default 0 */ Amount?: number | Expression; /** Textual description of the line item */ Description?: string | Expression | PlaceholderValue; /** Detail Type * @default ItemBasedExpenseLineDetail */ DetailType?: 'AccountBasedExpenseLineDetail' | 'ItemBasedExpenseLineDetail' | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ itemId?: string | Expression; /** Position of the line item relative to others * @default 1 */ LineNum?: number | Expression; }; /** * Additional Fields * @default {} */ additionalFields?: { /** Accounts Payable account to which the bill will be credited * @default {} */ APAccountRef?: { /** Details */ details?: { /** Name */ name?: string | Expression | PlaceholderValue; /** ID */ value?: string | Expression | PlaceholderValue; }; }; /** The balance reflecting any payments made against the transaction */ Balance?: string | Expression | PlaceholderValue; /** Date when the payment of the transaction is due */ DueDate?: string | Expression; /** Sales term associated with the transaction * @default {} */ SalesTermRef?: { /** Details */ details?: { /** Name */ name?: string | Expression | PlaceholderValue; /** ID */ value?: string | Expression | PlaceholderValue; }; }; /** Total amount of the transaction * @default 0 */ TotalAmt?: number | Expression; /** Date when the transaction occurred */ TxnDate?: string | Expression; }; }; export type QuickbooksV1BillCreateNode = { type: 'n8n-nodes-base.quickbooks'; version: 1; credentials?: Credentials; config: NodeConfig; };