Skip to content

Commit

Permalink
improved readability of JSONs
Browse files Browse the repository at this point in the history
  • Loading branch information
linda-rian committed Apr 12, 2016
1 parent 45e0174 commit 29d97a4
Show file tree
Hide file tree
Showing 96 changed files with 525 additions and 527 deletions.
19 changes: 9 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@
4. Create new JSON file in `banks/%country%` folder and call it same as your bank `name` (lowercase). In case your country folder isn't exist yet, just add it. Make sure that your bank `country` matches with name of folder where you put it.
5. Fill your JSON with this guide:

* Required:
* `name`: bank codename in lowercase (same as your file name)
* `prefixes`: array of bank prefixes (each prefix must contain 5 or 6 digits)
* `country`: two letters code of bank country ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))
* `localTitle`: bank title in local language
* `engTitle`: bank title in English
* `url`: link to official bank website
* `color`: bank brand color from official logo or website (HEX, lowercase)
* `name`: bank codename in lowercase (same as your file name)
* `country`: two letters code of bank country ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))
* `localTitle`: bank title in local language
* `engTitle`: bank title in English
* `url`: link to official bank website
* `color`: bank brand color from official logo or website (HEX, lowercase)
* `defunct` : set `true` for banks with revoked license (optional)
* `prefixes`: array of bank prefixes (each prefix must contain 5 or 6 digits)

* Optional
* `defunct` : set `true` for banks with revoked license
All attributes except `defunct` are REQUIRED.

Here's an example:

Expand Down
8 changes: 4 additions & 4 deletions banks/ar/galicia.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "galicia",
"prefixes": [
402918
],
"country": "ar",
"localTitle": "Banco Galicia/Naranja",
"engTitle": "Galicia Bank / Naranja",
"url": "http://www.bancogalicia.com/",
"color": "#ff6319"
"color": "#ff6319",
"prefixes": [
402918
]
}
8 changes: 4 additions & 4 deletions banks/ar/macro.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "macro",
"prefixes": [
451764
],
"country": "ar",
"localTitle": "Banco Macro",
"engTitle": "Macro Bank",
"url": "https://www.macro.com.ar",
"color": "#0c75a5"
"color": "#0c75a5",
"prefixes": [
451764
]
}
10 changes: 5 additions & 5 deletions banks/au/suncorp.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "suncorp",
"prefixes": [
439239,
456432
],
"country": "au",
"localTitle": "Suncorp",
"engTitle": "Suncorp",
"url": "http://www.suncorp.com.au",
"color": "#006f66"
"color": "#006f66",
"prefixes": [
439239,
456432
]
}
8 changes: 4 additions & 4 deletions banks/be/amexbelgiumcorporate.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "amexbelgiumcorporate",
"prefixes": [
374190
],
"country": "be",
"localTitle": "American Express",
"engTitle": "American Express",
"url": "https://network.americanexpress.com/be/fr/homepage/landing.aspx",
"color": "#67b198"
"color": "#67b198",
"prefixes": [
374190
]
}
8 changes: 4 additions & 4 deletions banks/be/ingbelgium.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ingbelgium",
"prefixes": [
42360
],
"country": "be",
"localTitle": "ING Belgium",
"engTitle": "ING Belgium",
"url": "https://www.ing.be/",
"color": "#ff6600"
"color": "#ff6600",
"prefixes": [
42360
]
}
8 changes: 4 additions & 4 deletions banks/by/absolutbank.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "absolutbank",
"prefixes": [
458563
],
"country": "by",
"localTitle": "Абсолютбанк",
"engTitle": "Absolutbank",
"url": "http://www.absolutbank.by",
"color": "#b72930"
"color": "#b72930",
"prefixes": [
458563
]
}
12 changes: 6 additions & 6 deletions banks/by/alfabank.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "alfabank",
"country": "by",
"localTitle": "Альфабанк",
"engTitle": "Alfabank",
"url": "https://www.alfabank.by/",
"color": "#ee3124",
"prefixes": [
437350,
458520,
458521,
458522,
458523
],
"country": "by",
"localTitle": "Альфабанк",
"engTitle": "Alfabank",
"url": "https://www.alfabank.by/",
"color": "#ee3124"
]
}
12 changes: 6 additions & 6 deletions banks/by/belapb.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "belapb",
"country": "by",
"localTitle": "Белагропромбанк",
"engTitle": "Belagroprombank",
"url": "http://www.belapb.by",
"color": "#fab606",
"prefixes": [
432036,
432037,
Expand All @@ -11,10 +16,5 @@
522208,
532308,
547232
],
"country": "by",
"localTitle": "Белагропромбанк",
"engTitle": "Belagroprombank",
"url": "http://www.belapb.by",
"color": "#fab606"
]
}
12 changes: 6 additions & 6 deletions banks/by/belarusbank.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "belarusbank",
"country": "by",
"localTitle": "Беларусбанк",
"engTitle": "Belarusbank",
"url": "http://www.belarusbank.by",
"color": "#127d49",
"prefixes": [
401803,
409087,
Expand All @@ -18,10 +23,5 @@
547504,
557075,
557076
],
"country": "by",
"localTitle": "Беларусбанк",
"engTitle": "Belarusbank",
"url": "http://www.belarusbank.by",
"color": "#127d49"
]
}
12 changes: 6 additions & 6 deletions banks/by/belaruskynarodny.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "belaruskynarodny",
"country": "by",
"localTitle": "Белорусский народный банк",
"engTitle": "Beloruskii Narodny Bank",
"url": "http://www.bnb.by",
"color": "#f89828",
"prefixes": [
450040,
450041,
450042,
489062
],
"country": "by",
"localTitle": "Белорусский народный банк",
"engTitle": "Beloruskii Narodny Bank",
"url": "http://www.bnb.by",
"color": "#f89828"
]
}
12 changes: 6 additions & 6 deletions banks/by/belgazprom.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "belgazprom",
"country": "by",
"localTitle": "Белгазпромбанк",
"engTitle": "Belgazprombank",
"url": "http://www.belgazprombank.by",
"color": "#0079c2",
"prefixes": [
428620,
428621,
Expand All @@ -9,10 +14,5 @@
518597,
518707,
529922
],
"country": "by",
"localTitle": "Белгазпромбанк",
"engTitle": "Belgazprombank",
"url": "http://www.belgazprombank.by",
"color": "#0079c2"
]
}
12 changes: 6 additions & 6 deletions banks/by/belinvestbank.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "belinvestbank",
"country": "by",
"localTitle": "Белинвестбанк",
"engTitle": "Belinvestbank",
"url": "http://www.belinvestbank.by/",
"color": "#009881",
"prefixes": [
401346,
434484,
Expand All @@ -11,10 +16,5 @@
557749,
557884,
557885
],
"country": "by",
"localTitle": "Белинвестбанк",
"engTitle": "Belinvestbank",
"url": "http://www.belinvestbank.by/",
"color": "#009881"
]
}
10 changes: 5 additions & 5 deletions banks/by/belswissbank.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "belswissbank",
"prefixes": [
410745,
410746
],
"country": "by",
"localTitle": "БелСвиссБанк",
"engTitle": "BelSwiss",
"url": "https://www.bsb.by/",
"color": "#ee1d23"
"color": "#ee1d23",
"prefixes": [
410745,
410746
]
}
12 changes: 6 additions & 6 deletions banks/by/belveb.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "belveb",
"country": "by",
"localTitle": "Банк БелВЭБ",
"engTitle": "BelVEB Bank",
"url": "http://www.bveb.by/",
"color": "#f37637",
"prefixes": [
414088,
414297,
Expand All @@ -16,10 +21,5 @@
544650,
547747,
548475
],
"country": "by",
"localTitle": "Банк БелВЭБ",
"engTitle": "BelVEB Bank",
"url": "http://www.bveb.by/",
"color": "#f37637"
]
}
12 changes: 6 additions & 6 deletions banks/by/bpssberbank.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "bpssberbank",
"country": "by",
"localTitle": "БПС-Сбербанк",
"engTitle": "BPS-Sberbank",
"url": "http://www.bps-sberbank.by/",
"color": "#1b991b",
"prefixes": [
413856,
413857,
Expand All @@ -10,10 +15,5 @@
540234,
544454,
558682
],
"country": "by",
"localTitle": "БПС-Сбербанк",
"engTitle": "BPS-Sberbank",
"url": "http://www.bps-sberbank.by/",
"color": "#1b991b"
]
}
12 changes: 6 additions & 6 deletions banks/by/deltabank.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "deltabank",
"prefixes": [
467939,
467940,
467941
],
"country": "by",
"localTitle": "Дельтабанк",
"engTitle": "Delta Bank",
"url": "http://deltabank.by/",
"color": "#d81e05",
"defunct": true
"defunct": true,
"prefixes": [
467939,
467940,
467941
]
}
12 changes: 6 additions & 6 deletions banks/by/homecredit.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "homecredit",
"prefixes": [
510415,
510428,
528065
],
"country": "by",
"localTitle": "Хоум Кредит Банк",
"engTitle": "Home Credit Bank",
"url": "http://homecredit.by/",
"color": "#e03a3e"
"color": "#e03a3e",
"prefixes": [
510415,
510428,
528065
]
}
8 changes: 4 additions & 4 deletions banks/by/moskvaminsk.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "moskvaminsk",
"prefixes": [
446505
],
"country": "by",
"localTitle": "Банк Москва-Минск",
"engTitle": "Bank Moskva-Minsk",
"url": "http://www.mmbank.by/",
"color": "#f2000d"
"color": "#f2000d",
"prefixes": [
446505
]
}
Loading

0 comments on commit 29d97a4

Please sign in to comment.