Add DELETE for Harvest APIs

This commit is contained in:
trojanh
2020-01-31 18:17:20 +05:30
parent 481d6d2bc1
commit 8374a23389
9 changed files with 311 additions and 6 deletions

View File

@@ -23,6 +23,11 @@ export const invoiceOperations = [
value: 'getAll',
description: 'Get data of all invoices',
},
{
name: 'Delete',
value: 'delete',
description: `Delete a invoice`,
},
],
default: 'getAll',
description: 'The operation to perform.',
@@ -187,6 +192,28 @@ export const invoiceFields = [
},
},
description: 'The ID of the invoice you are retrieving.',
},
/* -------------------------------------------------------------------------- */
/* invoice:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Invoice Id',
name: 'id',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: [
'delete',
],
resource: [
'invoice',
],
},
},
description: 'The ID of the invoice want to delete.',
}
] as INodeProperties[];