2020-08-25 01:50:39 -07:00
|
|
|
|
import {
|
|
|
|
|
INodeProperties,
|
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
export const orderOperations = [
|
|
|
|
|
{
|
|
|
|
|
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.',
|
|
|
|
|
},
|
|
|
|
|
] as INodeProperties[];
|
|
|
|
|
|
|
|
|
|
export const orderFields = [
|
|
|
|
|
|
2020-08-25 01:51:16 -07:00
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
/* order:get */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-08-25 01:50:39 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Checkout ID',
|
|
|
|
|
name: 'checkoutId',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
required: true,
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'order',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'get',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
description: 'The identifier of the buyer’s checkout.',
|
|
|
|
|
},
|
|
|
|
|
] as INodeProperties[];
|