add rest of ecommerce description

This commit is contained in:
quansenB 2019-11-02 21:49:45 +01:00
parent 925586e543
commit a69426d6ba

View file

@ -1166,7 +1166,7 @@ export class ActiveCampaign implements INodeType {
{
displayName: 'Creation Date',
name: 'externalCreatedDate',
type: 'string',
type: 'dateTime',
default: '',
required: true,
displayOptions: {
@ -1183,8 +1183,8 @@ export class ActiveCampaign implements INodeType {
},
{
displayName: 'Abandoning Date',
name: 'externalCreatedDate',
type: 'string',
name: 'abandonedDate',
type: 'dateTime',
default: '',
displayOptions: {
show: {
@ -1218,15 +1218,12 @@ export class ActiveCampaign implements INodeType {
},
default: {},
description: 'All ordered products',
placeholder: 'Add product',
placeholder: 'Add product field',
options: [
{
displayName: 'Name',
name: 'name',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'The name of the product',
},
@ -1234,9 +1231,6 @@ export class ActiveCampaign implements INodeType {
displayName: 'Price',
name: 'price',
type: 'number',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: 0,
description: 'The price of the product, in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero.',
},
@ -1244,9 +1238,6 @@ export class ActiveCampaign implements INodeType {
displayName: 'Product Quantity',
name: 'quantity',
type: 'number',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: 0,
description: 'The quantity ordered.',
},
@ -1254,9 +1245,6 @@ export class ActiveCampaign implements INodeType {
displayName: 'Product external ID',
name: 'externalid',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'The id of the product in the external service.',
},
@ -1346,7 +1334,7 @@ export class ActiveCampaign implements INodeType {
{
displayName: 'External updated date',
name: 'externalUpdatedDate',
type: 'string',
type: 'dateTime',
default: '',
description: 'The date the order was updated.',
},
@ -1372,9 +1360,10 @@ export class ActiveCampaign implements INodeType {
// ecommerceOrder:update
// ----------------------------------
{
displayName: 'ecommerceOrder ID',
name: 'ecommerceOrderId',
displayName: 'Order ID',
name: 'orderId',
type: 'number',
default: 0,
displayOptions: {
show: {
operation: [
@ -1385,15 +1374,13 @@ export class ActiveCampaign implements INodeType {
],
},
},
default: 0,
required: true,
description: 'ID of the ecommerceOrder to update.',
description: 'The id of the e-commerce order.',
},
{
displayName: 'Update Fields',
name: 'updateFields',
displayName: 'Add Field',
name: 'additionalFields',
type: 'collection',
description: 'The fields to update.',
placeholder: 'Add Field',
displayOptions: {
show: {
@ -1408,76 +1395,205 @@ export class ActiveCampaign implements INodeType {
default: {},
options: [
{
displayName: 'Title',
name: 'title',
displayName: 'External ID',
name: 'externalid',
type: 'string',
default: '',
description: 'The title of the ecommerceOrder',
description: 'The id of the order in the external service. ONLY REQUIRED IF EXTERNALCHECKOUTID NOT INCLUDED',
},
{
displayName: 'ecommerceOrder\'s contact ID',
name: 'contact',
displayName: 'External checkout ID',
name: 'externalcheckoutid',
type: 'string',
default: '',
description: 'The id of the cart in the external service. ONLY REQUIRED IF EXTERNALID IS NOT INCLUDED.',
},
{
displayName: 'Order source',
name: 'source',
type: 'number',
default: 0,
description: 'The ID of the ecommerceOrder\'s contact',
description: 'The order source code (0 - will not trigger automations, 1 - will trigger automations).',
},
{
displayName: 'ecommerceOrder value',
name: 'value',
displayName: 'Customer Email',
name: 'email',
type: 'string',
default: '',
description: 'The email address of the customer who placed the order.',
},
{
displayName: 'Total price',
name: 'totalPrice',
type: 'number',
default: 0,
description: 'The value of the ecommerceOrder in cents',
description: 'The total price of the order in cents, including tax and shipping charges. (i.e. $456.78 => 45678). Must be greater than or equal to zero.',
},
{
displayName: 'Currency',
displayName: 'Order currency',
name: 'currency',
type: 'options',
options: returnAllCurrencyOptions(),
default: 'eur',
description: 'The currency of the ecommerceOrder in 3-character ISO format',
options: returnAllCurrencyOptions(),
description: 'The currency of the order (3-digit ISO code, e.g., "USD").',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'The description of the ecommerceOrder',
},
{
displayName: 'ecommerceOrder pipeline ID',
name: 'owner',
type: 'string',
default: '',
description: 'The pipeline ID of the ecommerceOrder',
},
{
displayName: 'ecommerceOrder stage ID',
name: 'stage',
type: 'string',
default: '',
description: 'The stage ID of the ecommerceOrder',
},
{
displayName: 'ecommerceOrder owner ID',
name: 'owner',
type: 'string',
default: '',
description: 'The owner ID of the ecommerceOrder',
},
{
displayName: 'ecommerceOrder percentage',
name: 'percent',
displayName: 'Connection ID',
name: 'connectionid',
type: 'number',
default: 0,
description: 'The percentage of the ecommerceOrder',
description: 'The id of the connection from which this order originated.',
},
{
displayName: 'ecommerceOrder status',
name: 'status',
displayName: 'Customer ID',
name: 'customerid',
type: 'number',
default: 0,
description: 'The status of the ecommerceOrder',
description: 'The id of the customer associated with this order.',
},
{
displayName: 'Creation Date',
name: 'externalupdatedDate',
type: 'dateTime',
default: '',
description: 'The date the order was placed.',
},
{
displayName: 'Abandoning Date',
name: 'abandonedDate',
type: 'dateTime',
default: '',
description: 'The date the cart was abandoned. REQUIRED ONLY IF INCLUDING EXTERNALCHECKOUTID.',
},
{
displayName: 'Shipping Amount',
name: 'shippingAmount',
type: 'number',
default: 0,
description: 'The total shipping amount for the order in cents .',
},
{
displayName: 'Tax Amount',
name: 'taxAmount',
type: 'number',
default: 0,
description: 'The total tax amount for the order in cents.',
},
{
displayName: 'Discount Amount',
name: 'discountAmount',
type: 'number',
default: 0,
description: 'The total discount amount for the order in cents.',
},
{
displayName: 'Order URL',
name: 'orderUrl',
type: 'string',
default: '',
description: 'The URL for the order in the external service.',
},
{
displayName: 'External updated date',
name: 'externalUpdatedDate',
type: 'dateTime',
default: '',
description: 'The date the order was updated.',
},
{
displayName: 'Shipping Method',
name: 'shippingMethod',
type: 'string',
default: '',
description: 'The shipping method of the order.',
},
{
displayName: 'Order Number',
name: 'orderNumber',
type: 'string',
default: '',
description: 'The order number. This can be different than the externalid.',
},
{
displayName: 'Products',
name: 'orderProducts',
type: 'collection',
typeOptions: {
multipleValues: true,
multipleValueButtonText: 'Add product',
},
default: {},
description: 'All ordered products',
placeholder: 'Add product field',
options: [
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'The name of the product',
},
{
displayName: 'Price',
name: 'price',
type: 'number',
default: 0,
description: 'The price of the product, in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero.',
},
{
displayName: 'Product Quantity',
name: 'quantity',
type: 'number',
default: 0,
description: 'The quantity ordered.',
},
{
displayName: 'Product external ID',
name: 'externalid',
type: 'string',
default: '',
description: 'The id of the product in the external service.',
},
{
displayName: 'Product Category',
name: 'category',
type: 'string',
default: '',
description: 'The category of the product.',
},
{
displayName: 'SKU',
name: 'sku',
type: 'string',
default: '',
description: 'The SKU for the product.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'The description of the product.',
},
{
displayName: 'Image URL',
name: 'imageUrl',
type: 'string',
default: '',
description: 'An Image URL that displays an image of the product.',
},
{
displayName: 'Product URL',
name: 'productUrl',
type: 'string',
default: '',
description: 'A URL linking to the product in your store.',
},
],
},
]
},
@ -1485,11 +1601,10 @@ export class ActiveCampaign implements INodeType {
// ecommerceOrder:delete
// ----------------------------------
{
displayName: 'ecommerceOrder ID',
name: 'ecommerceOrderId',
displayName: 'Order ID',
name: 'orderId',
type: 'number',
default: 0,
required: true,
displayOptions: {
show: {
operation: [
@ -1500,18 +1615,17 @@ export class ActiveCampaign implements INodeType {
],
},
},
description: 'The ID of the ecommerceOrder',
description: 'The id of the e-commerce order.',
},
// ----------------------------------
// ecommerceOrder:get
// ----------------------------------
{
displayName: 'ecommerceOrder ID',
name: 'ecommerceOrderId',
displayName: 'Order ID',
name: 'orderId',
type: 'number',
default: 0,
required: true,
displayOptions: {
show: {
operation: [
@ -1522,7 +1636,7 @@ export class ActiveCampaign implements INodeType {
],
},
},
description: 'The ID of the ecommerceOrder',
description: 'The id of the e-commerce order.',
},
// ----------------------------------