mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
53 lines
994 B
TypeScript
53 lines
994 B
TypeScript
import {
|
||
INodeProperties,
|
||
} from 'n8n-workflow';
|
||
|
||
export const orderOperations: INodeProperties[] = [
|
||
{
|
||
displayName: 'Operation',
|
||
name: 'operation',
|
||
type: 'options',
|
||
displayOptions: {
|
||
show: {
|
||
resource: [
|
||
'order',
|
||
],
|
||
},
|
||
},
|
||
options: [
|
||
{
|
||
name: 'Get',
|
||
value: 'get',
|
||
description: 'Get an order',
|
||
},
|
||
],
|
||
default: 'get',
|
||
description: 'The operation to perform.',
|
||
},
|
||
];
|
||
|
||
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.',
|
||
},
|
||
];
|