forked from eriknakata/advcash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistory.js
19 lines (19 loc) · 794 Bytes
/
history.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export default transactions => (transactions) ? transactions.map(transaction => {
return {
id: transaction.id,
comment: transaction.comment || '',
startTime: transaction.startTime,
status: transaction.status,
transactionName: transaction.transactionName,
sci: transaction.sci,
walletSrcId: transaction.walletSrcId || '',
walletDestId: transaction.walletDestId || '',
senderEmail: transaction.senderEmail || '',
receiverEmail: transaction.receiverEmail || '',
amount: parseFloat(transaction.amount),
currency: transaction.currency,
fullCommission: parseFloat(transaction.fullCommission),
direction: transaction.direction,
orderId: transaction.orderId || ''
}
}) : []