120 lines
2.6 KiB
TypeScript
120 lines
2.6 KiB
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const deliveryNoteDescription: INodeProperties[] = [
|
|
{
|
|
"displayName": "Operation",
|
|
"name": "operation",
|
|
"type": "options",
|
|
"noDataExpression": true,
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Delivery Note"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"name": "Order API Create Delivery Note",
|
|
"value": "Order API Create Delivery Note",
|
|
"action": "Create an delivery note for an existing order. This request is extra throttled by order and api key to a maximum of 1 per 5 minutes.",
|
|
"description": "Create an delivery note for an existing order. This request is extra throttled by order and api key to a maximum of 1 per 5 minutes.",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/api/v1/orders/CreateDeliveryNote/{{$parameter[\"id\"]}}"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"default": ""
|
|
},
|
|
{
|
|
"displayName": "POST /api/v1/orders/CreateDeliveryNote/{id}",
|
|
"name": "operation",
|
|
"type": "notice",
|
|
"typeOptions": {
|
|
"theme": "info"
|
|
},
|
|
"default": "",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Delivery Note"
|
|
],
|
|
"operation": [
|
|
"Order API Create Delivery Note"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"required": true,
|
|
"description": "The internal billbee id of the order",
|
|
"default": 0,
|
|
"type": "number",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Delivery Note"
|
|
],
|
|
"operation": [
|
|
"Order API Create Delivery Note"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Include PDF",
|
|
"name": "includePdf",
|
|
"description": "If true, the PDF is included in the response as base64 encoded string",
|
|
"default": true,
|
|
"type": "boolean",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "includePdf",
|
|
"value": "={{ $value }}",
|
|
"propertyInDotNotation": false
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Delivery Note"
|
|
],
|
|
"operation": [
|
|
"Order API Create Delivery Note"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Send To Cloud ID",
|
|
"name": "sendToCloudId",
|
|
"description": "Optionally specify the id of a billbee connected cloud device to send the pdf to",
|
|
"default": 0,
|
|
"type": "number",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "sendToCloudId",
|
|
"value": "={{ $value }}",
|
|
"propertyInDotNotation": false
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Delivery Note"
|
|
],
|
|
"operation": [
|
|
"Order API Create Delivery Note"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
];
|