UNPKG

@arathron/n8n-nodes-zoho-books

Version:

n8n community nodes for Zoho Books and Zoho Inventory API integration - Complete CRUD operations for Sales Orders, Invoices, Items, Vendors, Credit Notes, Payments, Purchase Orders, Bills, Composite Items, Tax Management, Tax Groups, and Tax Exemptions

288 lines 8.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.taxResource = void 0; exports.taxResource = [ { displayName: 'Resource', name: 'resource', type: 'options', noDataExpression: true, options: [ { name: 'Tax', value: 'tax', }, ], default: 'tax', required: true, }, { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['tax'], }, }, options: [ { name: 'Create', value: 'create', description: 'Create a new tax', action: 'Create a tax', }, { name: 'Delete', value: 'delete', description: 'Delete a tax', action: 'Delete a tax', }, { name: 'Get', value: 'get', description: 'Get a tax by ID', action: 'Get a tax', }, { name: 'Get All', value: 'getAll', description: 'Get all taxes', action: 'Get all taxes', }, { name: 'Update', value: 'update', description: 'Update a tax', action: 'Update a tax', }, ], default: 'getAll', required: true, }, { displayName: 'Tax ID', name: 'taxId', type: 'options', displayOptions: { show: { resource: ['tax'], operation: ['get', 'update', 'delete'], }, }, typeOptions: { loadOptionsMethod: 'getTaxes', }, default: '', required: true, description: 'Select the tax to operate on', }, { displayName: 'Tax Name', name: 'taxName', type: 'string', displayOptions: { show: { resource: ['tax'], operation: ['create', 'update'], }, }, default: '', required: true, description: 'The name of the tax (e.g., "Sales Tax", "GST")', placeholder: 'e.g., Sales Tax', }, { displayName: 'Tax Percentage', name: 'taxPercentage', type: 'number', displayOptions: { show: { resource: ['tax'], operation: ['create', 'update'], }, }, default: 0, required: true, description: 'The tax percentage rate (0-100%, up to 2 decimal places)', placeholder: 'e.g., 8.25', typeOptions: { minValue: 0, maxValue: 100, numberPrecision: 2, }, }, { displayName: 'Return All', name: 'returnAll', type: 'boolean', displayOptions: { show: { resource: ['tax'], operation: ['getAll'], }, }, default: false, description: 'Whether to return all results or only up to a given limit', }, { displayName: 'Limit', name: 'limit', type: 'number', displayOptions: { show: { resource: ['tax'], operation: ['getAll'], returnAll: [false], }, }, typeOptions: { minValue: 1, maxValue: 200, }, default: 50, description: 'Max number of results to return (max 200)', }, { displayName: 'Page', name: 'page', type: 'number', displayOptions: { show: { resource: ['tax'], operation: ['getAll'], returnAll: [false], }, }, typeOptions: { minValue: 1, }, default: 1, description: 'Page number for pagination', }, { displayName: 'Per Page', name: 'perPage', type: 'number', displayOptions: { show: { resource: ['tax'], operation: ['getAll'], returnAll: [false], }, }, typeOptions: { minValue: 1, maxValue: 200, }, default: 50, description: 'Number of results per page (max 200)', }, { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', displayOptions: { show: { resource: ['tax'], operation: ['create', 'update'], }, }, default: {}, options: [ { displayName: 'Is Compound', name: 'is_compound', type: 'boolean', default: false, description: 'Whether this tax is compound (tax on tax)', }, { displayName: 'Is Non-Recoverable', name: 'is_non_recoverable', type: 'boolean', default: false, description: 'Whether this tax is non-recoverable', }, { displayName: 'Tax Authority ID', name: 'tax_authority_id', type: 'string', default: '', description: 'The ID of the tax authority', }, { displayName: 'Tax Authority Name', name: 'tax_authority_name', type: 'string', default: '', description: 'The name of the tax authority', }, ], }, { displayName: 'Update Fields', name: 'updateFields', type: 'collection', placeholder: 'Add Field', displayOptions: { show: { resource: ['tax'], operation: ['update'], }, }, default: {}, options: [ { displayName: 'Tax Name', name: 'tax_name', type: 'string', default: '', description: 'The updated name of the tax', }, { displayName: 'Tax Percentage', name: 'tax_percentage', type: 'number', default: 0, description: 'The updated tax percentage rate', typeOptions: { minValue: 0, maxValue: 100, numberPrecision: 2, }, }, { displayName: 'Is Compound', name: 'is_compound', type: 'boolean', default: false, description: 'Whether this tax is compound (tax on tax)', }, { displayName: 'Is Non-Recoverable', name: 'is_non_recoverable', type: 'boolean', default: false, description: 'Whether this tax is non-recoverable', }, { displayName: 'Tax Authority ID', name: 'tax_authority_id', type: 'string', default: '', description: 'The ID of the tax authority', }, { displayName: 'Tax Authority Name', name: 'tax_authority_name', type: 'string', default: '', description: 'The name of the tax authority', }, ], }, ]; //# sourceMappingURL=Tax.descriptions.js.map