This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
data.js
88 lines (85 loc) · 1.48 KB
/
data.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
accounts = [{
nickname: 'Personal Checking',
number: '1337',
balance: 1240.36,
},
{
nickname: 'Standard Credit Card',
number: '2579',
balance: 2025.25,
},
{
nickname: 'High-Interest Savings',
number: '2580',
balance: 3250.36,
},
{
nickname: 'Fixed-Rate 5 Year Term CD',
number: '9704',
balance: 5000.00,
}]
transactions = [{
description: 'APL*ITUNES.COM/BILL',
amount: -50,
date: new Date(2019, 10, 7),
account: 0
},
{
description: 'Dunkin\' Donuts',
amount: -25,
date: new Date(2019, 10, 4),
account: 0
},
{
description: 'Candy Crush',
amount: -13.37,
date: new Date(),
account: 0
},
{
description: `XFER FROM ACCT x${accounts[2].number}`,
amount: 250,
date: new Date(2019, 10, 1),
account: 0
},
{
description: 'Check Deposit',
amount: 33.10,
date: new Date(2019, 9, 20),
account: 2
},
{
description: 'Check #103 Withdrawal',
amount: -1392.19,
date: new Date(2019, 9, 16),
account: 0
},
{
description: 'QVC*SHOPPING/BILL',
amount: -140.50,
date: new Date(2019, 9, 10),
account: 0
},
{
description: 'Netflix',
amount: -12.99,
date: new Date(2019, 8, 25),
account: 0
}]
transfers = [{
origin: 2,
destination: 0,
amount: 250,
date: new Date(2019, 10, 1)
},
{
origin: 0,
destination: 3,
amount: 5000,
date: new Date(2019, 7, 22)
}]
module.exports = (() => ({
accounts,
transactions,
transfers
}))()