Files
n8n-nodes-billbee-fork/nodes/Billbee/resources/provisioning/index.ts
T

359 lines
7.1 KiB
TypeScript

import type { INodeProperties } from 'n8n-workflow';
export const provisioningDescription: INodeProperties[] = [
{
"displayName": "Operation",
"name": "operation",
"type": "options",
"noDataExpression": true,
"displayOptions": {
"show": {
"resource": [
"Provisioning"
]
}
},
"options": [
{
"name": "Automatic Provisioning Create Account",
"value": "Automatic Provisioning Create Account",
"action": "Creates a new Billbee user account with the data passed",
"description": "Creates a new Billbee user account with the data passed",
"routing": {
"request": {
"method": "POST",
"url": "=/api/v1/automaticprovision/createaccount"
}
}
},
{
"name": "Automatic Provisioning Terms Info",
"value": "Automatic Provisioning Terms Info",
"action": "Returns infos about Billbee terms and conditions",
"description": "Returns infos about Billbee terms and conditions",
"routing": {
"request": {
"method": "GET",
"url": "=/api/v1/automaticprovision/termsinfo"
}
}
}
],
"default": ""
},
{
"displayName": "POST /api/v1/automaticprovision/createaccount",
"name": "operation",
"type": "notice",
"typeOptions": {
"theme": "info"
},
"default": "",
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Accept Terms",
"name": "AcceptTerms",
"type": "boolean",
"default": true,
"description": "Set to true, if the user has accepted the Billbee terms & conditions",
"routing": {
"send": {
"property": "AcceptTerms",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Address",
"name": "Address",
"type": "json",
"default": "{}",
"description": "Represents the invoice address of a Billbee user",
"routing": {
"send": {
"property": "Address",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ JSON.parse($value) }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Affiliate Coupon Code",
"name": "AffiliateCouponCode",
"type": "string",
"default": "",
"description": "Specifies an billbee affiliate code to attach to the user",
"routing": {
"send": {
"property": "AffiliateCouponCode",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Default Currrency",
"name": "DefaultCurrrency",
"type": "string",
"default": "",
"description": "Optionally specify the default currency of the user",
"routing": {
"send": {
"property": "DefaultCurrrency",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Default Vat Index",
"name": "DefaultVatIndex",
"type": "number",
"default": 0,
"description": "Optionally specify the default vat index of the user",
"routing": {
"send": {
"property": "DefaultVatIndex",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Default Vat Mode",
"name": "DefaultVatMode",
"type": "options",
"default": 0,
"description": "Optionally specify the default vat mode of the user",
"options": [
{
"name": "0",
"value": 0
},
{
"name": "1",
"value": 1
},
{
"name": "2",
"value": 2
},
{
"name": "3",
"value": 3
},
{
"name": "4",
"value": 4
},
{
"name": "5",
"value": 5
}
],
"routing": {
"send": {
"property": "DefaultVatMode",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"required": true,
"displayName": "E Mail",
"name": "EMail",
"type": "string",
"default": "",
"description": "The Email address of the user to create",
"routing": {
"send": {
"property": "EMail",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Password",
"name": "Password",
"type": "string",
"default": "",
"routing": {
"send": {
"property": "Password",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Vat 1 Rate",
"name": "Vat1Rate",
"type": "number",
"default": 0,
"description": "Optionally specify the vat1 (normal) rate of the user",
"routing": {
"send": {
"property": "Vat1Rate",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "Vat 2 Rate",
"name": "Vat2Rate",
"type": "number",
"default": 0,
"description": "Optionally specify the vat2 (reduced) rate of the user",
"routing": {
"send": {
"property": "Vat2Rate",
"propertyInDotNotation": false,
"type": "body",
"value": "={{ $value }}"
}
},
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Create Account"
]
}
}
},
{
"displayName": "GET /api/v1/automaticprovision/termsinfo",
"name": "operation",
"type": "notice",
"typeOptions": {
"theme": "info"
},
"default": "",
"displayOptions": {
"show": {
"resource": [
"Provisioning"
],
"operation": [
"Automatic Provisioning Terms Info"
]
}
}
},
];