2022-08-17 08:50:24 -07:00
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
2021-09-15 01:07:02 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const invoiceOperations: INodeProperties[] = [
|
2021-09-15 01:07:02 -07:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2021-09-15 01:07:02 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['invoice'],
|
2021-09-15 01:07:02 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Create',
|
|
|
|
value: 'create',
|
|
|
|
description: 'Create an invoice',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Create an invoice',
|
2021-09-15 01:07:02 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'create',
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2021-09-15 01:07:02 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const invoiceFields: INodeProperties[] = [
|
2021-09-15 01:07:02 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* invoice:create */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
|
|
|
displayName: 'Order ID',
|
|
|
|
name: 'orderId',
|
|
|
|
type: 'string',
|
|
|
|
required: true,
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['invoice'],
|
|
|
|
operation: ['create'],
|
2021-09-15 01:07:02 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|