Parse CSV numbers (#248)

This commit is contained in:
Rinat Arsaev 2023-08-23 20:57:13 +04:00 committed by GitHub
parent 54dde15d6c
commit 86c6588775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,14 +15,14 @@ export function csvChargebacksToInvoicePaymentChargebackParams(
category: { [c['reason.category']]: {} },
},
levy: {
amount: c['levy.amount'],
amount: Number(c['levy.amount']),
currency: {
symbolic_code: c['levy.currency.symbolic_code'],
},
},
body: clean(
{
amount: c['body.amount'],
amount: Number(c['body.amount']),
currency: {
symbolic_code: c['body.currency.symbolic_code'],
},