UNPKG

@progtechbr/n8n-nodes-rdsme

Version:

Send events through API to RD Station Marketing para Ecommerce

92 lines (86 loc) 1.81 kB
import type { INodeProperties } from 'n8n-workflow'; const shippingPriceField: INodeProperties[] = [ { displayName: 'Shipping Price', name: 'shippingPrice', type: 'number', displayOptions: { show: { operation: ['newEcommerceEvent'], resource: ['ecommerceEvents'], eventType: [ 'ecommerceOrderPlaced', 'ecommerceOrderPaid', ], }, }, default: 0, typeOptions: { minValue: 0, }, description: 'Shipping price of the order', } ]; const shippingCityField: INodeProperties[] = [ { displayName: 'Shipping City', name: 'shippingCity', type: 'string', displayOptions: { show: { operation: ['newEcommerceEvent'], resource: ['ecommerceEvents'], eventType: [ 'ecommerceOrderPlaced', 'ecommerceOrderPaid', ], }, }, default: '', description: 'Shipping city of the order', } ]; const shippingStateField: INodeProperties[] = [ { displayName: 'Shipping State', name: 'shippingState', type: 'string', displayOptions: { show: { operation: ['newEcommerceEvent'], resource: ['ecommerceEvents'], eventType: [ 'ecommerceOrderPlaced', 'ecommerceOrderPaid', ], }, }, default: '', description: 'Shipping state of the order', } ]; const shippingCountryField: INodeProperties[] = [ { displayName: 'Shipping Country', name: 'shippingCountry', type: 'string', displayOptions: { show: { operation: ['newEcommerceEvent'], resource: ['ecommerceEvents'], eventType: [ 'ecommerceOrderPlaced', 'ecommerceOrderPaid', ], }, }, default: '', description: 'Shipping country of the order', } ]; export const ecommerceShippingFields: INodeProperties[] = [ ...shippingPriceField, ...shippingCityField, ...shippingStateField, ...shippingCountryField, ];