Add Magento 2 node (#2048)

*  Magento 2 node

*  Improvements

*  Small improvement

*  Improvements

* a

*  Improvements

*  Improvements

*  Minor improvements

*  Improvements

* 🐛 Fix issue when parsing extension attributes with operation customer:update

*  Improvements

*  Improvements

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Ricardo Espinoza
2021-09-15 04:07:02 -04:00
committed by GitHub
parent eb89b219f3
commit ef14b41a16
10 changed files with 2666 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
import {
INodeProperties,
} from 'n8n-workflow';
export const invoiceOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'invoice',
],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create an invoice',
},
],
default: 'create',
description: 'The operation to perform',
},
] as INodeProperties[];
export const invoiceFields = [
/* -------------------------------------------------------------------------- */
/* invoice:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Order ID',
name: 'orderId',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: [
'invoice',
],
operation: [
'create',
],
},
},
},
] as INodeProperties[];