n8n/packages/nodes-base/nodes/Paddle/OrderDescription.ts

53 lines
993 B
TypeScript
Raw Normal View History

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',
2020-10-22 06:46:03 -07:00
},
],
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 buyers checkout',
},
];