mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
91d7e16c81
* 🔨 formatting nodes with prettier
45 lines
964 B
TypeScript
45 lines
964 B
TypeScript
import { INodeProperties } from 'n8n-workflow';
|
||
|
||
export const orderOperations: INodeProperties[] = [
|
||
{
|
||
displayName: 'Operation',
|
||
name: 'operation',
|
||
type: 'options',
|
||
noDataExpression: true,
|
||
displayOptions: {
|
||
show: {
|
||
resource: ['order'],
|
||
},
|
||
},
|
||
options: [
|
||
{
|
||
name: 'Get',
|
||
value: 'get',
|
||
description: 'Get an order',
|
||
action: 'Get an order',
|
||
},
|
||
],
|
||
default: 'get',
|
||
},
|
||
];
|
||
|
||
export const orderFields: INodeProperties[] = [
|
||
/* -------------------------------------------------------------------------- */
|
||
/* order:get */
|
||
/* -------------------------------------------------------------------------- */
|
||
{
|
||
displayName: 'Checkout ID',
|
||
name: 'checkoutId',
|
||
type: 'string',
|
||
default: '',
|
||
required: true,
|
||
displayOptions: {
|
||
show: {
|
||
resource: ['order'],
|
||
operation: ['get'],
|
||
},
|
||
},
|
||
description: 'The identifier of the buyer’s checkout',
|
||
},
|
||
];
|