-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathutils.js
More file actions
42 lines (40 loc) · 1.03 KB
/
utils.js
File metadata and controls
42 lines (40 loc) · 1.03 KB
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
exports.getCountryData = function getCountryData(country) {
let countryData
if (country == "CO") {
countryData = {
documentType: "CC",
documentNumber: "1032765432",
currency: "COP",
amount: 2000,
};
} else if (country == "BR") {
countryData = {
documentType: "CPF",
documentNumber: "351.040.753-97",
currency: "BRL",
amount: Math.floor(Math.random() * (1000 + 1) + 10),
};
} else if (country == "AR") {
countryData = {
documentType: "PASS",
documentNumber: "123554332",
currency: "ARS",
amount: Math.floor(Math.random() * (1000 + 1) + 10),
};
} else if (country == "CL") {
countryData = {
documentType: "CI",
documentNumber: "80209924",
currency: "CLP",
amount: Math.floor(Math.random() * (1000 + 1) + 10),
};
} else {
countryData = {
documentType: "PASS",
documentNumber: "T12345",
currency: "USD",
amount: Math.floor(Math.random() * (1000 + 1) + 10),
};
}
return countryData;
}