Files
n8n_Demo/n8n-n8n-1.109.2/packages/nodes-base/nodes/Magento/InvoiceDescription.ts
2025-09-08 04:48:28 +08:00

44 lines
943 B
TypeScript
Executable File

import type { INodeProperties } from 'n8n-workflow';
export const invoiceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['invoice'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create an invoice',
action: 'Create an invoice',
},
],
default: 'create',
},
];
export const invoiceFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* invoice:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Order ID',
name: 'orderId',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['invoice'],
operation: ['create'],
},
},
},
];