mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ 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:
51
packages/nodes-base/nodes/Magento/InvoiceDescription.ts
Normal file
51
packages/nodes-base/nodes/Magento/InvoiceDescription.ts
Normal 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[];
|
||||
Reference in New Issue
Block a user