/** * QuickBooks Online Node - Version 1 * Discriminator: resource=estimate, operation=create */ interface Credentials { quickBooksOAuth2Api: CredentialReference; } export type QuickbooksV1EstimateCreateParams = { resource: 'estimate'; operation: 'create'; /** * The ID of the customer who the estimate is for. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ CustomerRef?: string | Expression; /** * Individual line item of a transaction * @default {} */ Line?: { /** Monetary amount of the line item * @default 0 */ Amount?: number | Expression; /** Textual description of the line item */ Description?: string | Expression | PlaceholderValue; /** Detail Type * @default SalesItemLineDetail */ DetailType?: 'SalesItemLineDetail' | 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; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ TaxCodeRef?: string | Expression; }; /** * Additional Fields * @default {} */ additionalFields?: { /** Apply Tax After Discount * @default false */ ApplyTaxAfterDiscount?: boolean | Expression; /** Billing Address * @default {} */ BillAddr?: { /** Details */ details?: { /** City */ City?: string | Expression | PlaceholderValue; /** Line 1 */ Line1?: string | Expression | PlaceholderValue; /** Postal Code */ PostalCode?: string | Expression | PlaceholderValue; /** Latitude */ Lat?: string | Expression | PlaceholderValue; /** Longitude */ Long?: string | Expression | PlaceholderValue; /** Country Subdivision Code */ CountrySubDivisionCode?: string | Expression | PlaceholderValue; }; }; /** E-mail address to which the estimate will be sent */ BillEmail?: string | Expression | PlaceholderValue; /** Custom Fields * @default {} */ CustomFields?: { /** Field */ Field?: Array<{ /** ID of the field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ DefinitionId?: string | Expression; /** Value of the field to set */ StringValue?: string | Expression | PlaceholderValue; }>; }; /** User-entered message to the customer. This message is visible to end user on their transactions. */ CustomerMemo?: string | Expression | PlaceholderValue; /** Reference number for the transaction */ DocNumber?: string | Expression | PlaceholderValue; /** Email Status * @default NotSet */ EmailStatus?: 'NotSet' | 'NeedToSend' | 'EmailSent' | Expression; /** Print Status * @default NotSet */ PrintStatus?: 'NotSet' | 'NeedToPrint' | 'PrintComplete' | Expression; /** Shipping Address * @default {} */ ShipAddr?: { /** Details */ details?: { /** City */ City?: string | Expression | PlaceholderValue; /** Line 1 */ Line1?: string | Expression | PlaceholderValue; /** Postal Code */ PostalCode?: string | Expression | PlaceholderValue; /** Latitude */ Lat?: string | Expression | PlaceholderValue; /** Longitude */ Long?: string | Expression | PlaceholderValue; /** Country Subdivision Code */ CountrySubDivisionCode?: string | Expression | PlaceholderValue; }; }; /** Total amount of the transaction * @default 0 */ TotalAmt?: number | Expression; /** Date when the transaction occurred */ TxnDate?: string | Expression; /** Total amount of tax incurred * @default 0 */ TotalTax?: number | Expression; }; }; export type QuickbooksV1EstimateCreateNode = { type: 'n8n-nodes-base.quickbooks'; version: 1; credentials?: Credentials; config: NodeConfig; };