mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Mindee Node): Add support for v4 API (#5559)
This commit is contained in:
@@ -101,6 +101,20 @@ export function cleanData(document: IDataObject) {
|
||||
newData.currency = data.currency;
|
||||
//@ts-ignore
|
||||
newData.locale = data.value;
|
||||
} else if (key === 'line_items') {
|
||||
const lineItems: IDataObject[] = [];
|
||||
for (const lineItem of data as IDataObject[]) {
|
||||
lineItems.push({
|
||||
description: lineItem.description,
|
||||
product_code: lineItem.product_code,
|
||||
quantity: lineItem.quantity,
|
||||
tax_amount: lineItem.tax_amount,
|
||||
tax_rate: lineItem.tax_rate,
|
||||
total_amount: lineItem.total_amount,
|
||||
unit_price: lineItem.unit_price,
|
||||
});
|
||||
}
|
||||
newData[key] = lineItems;
|
||||
} else {
|
||||
newData[key] =
|
||||
//@ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user