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

278 lines 7.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.taxGroupResource = void 0; exports.taxGroupResource = [ { displayName: 'Resource', name: 'resource', type: 'options', noDataExpression: true, options: [ { name: 'Tax Group', value: 'taxGroup', }, ], default: 'taxGroup', required: true, }, { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['taxGroup'], }, }, options: [ { name: 'Create', value: 'create', description: 'Create a new tax group', action: 'Create a tax group', }, { name: 'Delete', value: 'delete', description: 'Delete a tax group', action: 'Delete a tax group', }, { name: 'Get', value: 'get', description: 'Get a tax group by ID', action: 'Get a tax group', }, { name: 'Get All', value: 'getAll', description: 'Get all tax groups', action: 'Get all tax groups', }, { name: 'Update', value: 'update', description: 'Update a tax group', action: 'Update a tax group', }, ], default: 'getAll', required: true, }, { displayName: 'Tax Group ID', name: 'taxGroupId', type: 'options', displayOptions: { show: { resource: ['taxGroup'], operation: ['get', 'update', 'delete'], }, }, typeOptions: { loadOptionsMethod: 'getTaxGroups', }, default: '', required: true, description: 'Select the tax group to operate on', }, { displayName: 'Tax Group Name', name: 'taxGroupName', type: 'string', displayOptions: { show: { resource: ['taxGroup'], operation: ['create', 'update'], }, }, default: '', required: true, description: 'The name of the tax group (e.g., "Combined Tax", "GST + PST")', placeholder: 'e.g., Combined Tax', }, { displayName: 'Taxes', name: 'taxIds', type: 'multiOptions', displayOptions: { show: { resource: ['taxGroup'], operation: ['create', 'update'], }, }, typeOptions: { loadOptionsMethod: 'getTaxes', }, default: [], required: true, description: 'Select the taxes to include in this tax group (at least 1, max 50)', placeholder: 'Select taxes...', }, { displayName: 'Return All', name: 'returnAll', type: 'boolean', displayOptions: { show: { resource: ['taxGroup'], 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: ['taxGroup'], 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: ['taxGroup'], operation: ['getAll'], returnAll: [false], }, }, typeOptions: { minValue: 1, }, default: 1, description: 'Page number for pagination', }, { displayName: 'Per Page', name: 'perPage', type: 'number', displayOptions: { show: { resource: ['taxGroup'], 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: ['taxGroup'], operation: ['create', 'update'], }, }, default: {}, options: [ { displayName: 'Tax Group Percentage', name: 'tax_group_percentage', type: 'number', default: 0, description: 'The total percentage of the tax group', typeOptions: { minValue: 0, maxValue: 100, numberPrecision: 2, }, }, { 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: ['taxGroup'], operation: ['update'], }, }, default: {}, options: [ { displayName: 'Tax Group Name', name: 'tax_group_name', type: 'string', default: '', description: 'The updated name of the tax group', }, { displayName: 'Tax IDs', name: 'tax_ids', type: 'string', default: '', description: 'Comma-separated list of tax IDs (alternative to Taxes field above)', placeholder: 'e.g., 123456789,987654321', }, { displayName: 'Tax Group Percentage', name: 'tax_group_percentage', type: 'number', default: 0, description: 'The updated total percentage of the tax group', typeOptions: { minValue: 0, maxValue: 100, numberPrecision: 2, }, }, { 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=TaxGroup.descriptions.js.map