2020-08-25 01:50:39 -07:00
|
|
|
|
import {
|
|
|
|
|
INodeProperties,
|
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
|
export const orderOperations: INodeProperties[] = [
|
2020-08-25 01:50:39 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Operation',
|
|
|
|
|
name: 'operation',
|
|
|
|
|
type: 'options',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'order',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
name: 'Get',
|
|
|
|
|
value: 'get',
|
|
|
|
|
description: 'Get an order',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
},
|
2020-08-25 01:50:39 -07:00
|
|
|
|
],
|
|
|
|
|
default: 'get',
|
|
|
|
|
description: 'The operation to perform.',
|
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
|
];
|
2020-08-25 01:50:39 -07:00
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
|
export const orderFields: INodeProperties[] = [
|
2020-08-25 01:50:39 -07:00
|
|
|
|
|
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',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'The identifier of the buyer’s checkout',
|
2020-08-25 01:50:39 -07:00
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
|
];
|