Skip to content

Commit

Permalink
update currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed Feb 17, 2023
1 parent 072d4be commit c394503
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 21 deletions.
4 changes: 2 additions & 2 deletions bin/fetch-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
require_once __DIR__ . "/../vendor/autoload.php";

$fetcher = new Fetcher(
'https://www.currency-iso.org/dam/downloads/lists/list_one.xml',
'https://www.currency-iso.org/dam/downloads/lists/list_three.xml'
'https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml',
'https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-three.xml'
);

$fetcher->saveCurrentCountriesTo(__DIR__ . "/../resources/current.php", new PhpExportSerializer());
Expand Down
2 changes: 1 addition & 1 deletion resources/all.json

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion resources/all.php
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@
array (
'alphabeticCode' => 'HRK',
'currency' => 'Kuna',
'minorUnit' => 2,
'minorUnit' => 0,
'numericCode' => 191,
),
'HTG' =>
Expand Down Expand Up @@ -1539,6 +1539,13 @@
'minorUnit' => 0,
'numericCode' => 703,
),
'SLE' =>
array (
'alphabeticCode' => 'SLE',
'currency' => 'Leone',
'minorUnit' => 2,
'numericCode' => 925,
),
'SLL' =>
array (
'alphabeticCode' => 'SLL',
Expand Down Expand Up @@ -1812,6 +1819,13 @@
'minorUnit' => 0,
'numericCode' => 862,
),
'VED' =>
array (
'alphabeticCode' => 'VED',
'currency' => 'Bolívar Soberano',
'minorUnit' => 2,
'numericCode' => 926,
),
'VEF' =>
array (
'alphabeticCode' => 'VEF',
Expand Down
12 changes: 11 additions & 1 deletion resources/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ HRD:
HRK:
alphabeticCode: HRK
currency: Kuna
minorUnit: 2
minorUnit: 0
numericCode: 191
HTG:
alphabeticCode: HTG
Expand Down Expand Up @@ -1098,6 +1098,11 @@ SKK:
currency: 'Slovak Koruna'
minorUnit: 0
numericCode: 703
SLE:
alphabeticCode: SLE
currency: Leone
minorUnit: 2
numericCode: 925
SLL:
alphabeticCode: SLL
currency: Leone
Expand Down Expand Up @@ -1293,6 +1298,11 @@ VEB:
currency: Bolivar
minorUnit: 0
numericCode: 862
VED:
alphabeticCode: VED
currency: 'Bolívar Soberano'
minorUnit: 2
numericCode: 926
VEF:
alphabeticCode: VEF
currency: Bolívar
Expand Down
2 changes: 1 addition & 1 deletion resources/current.json

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions resources/current.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,6 @@
'minorUnit' => 2,
'numericCode' => 340,
),
'HRK' =>
array (
'alphabeticCode' => 'HRK',
'currency' => 'Kuna',
'minorUnit' => 2,
'numericCode' => 191,
),
'HTG' =>
array (
'alphabeticCode' => 'HTG',
Expand Down Expand Up @@ -902,6 +895,13 @@
'minorUnit' => 2,
'numericCode' => 654,
),
'SLE' =>
array (
'alphabeticCode' => 'SLE',
'currency' => 'Leone',
'minorUnit' => 2,
'numericCode' => 925,
),
'SLL' =>
array (
'alphabeticCode' => 'SLL',
Expand Down Expand Up @@ -1077,6 +1077,13 @@
'minorUnit' => 2,
'numericCode' => 860,
),
'VED' =>
array (
'alphabeticCode' => 'VED',
'currency' => 'Bolívar Soberano',
'minorUnit' => 2,
'numericCode' => 926,
),
'VES' =>
array (
'alphabeticCode' => 'VES',
Expand Down
15 changes: 10 additions & 5 deletions resources/current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,6 @@ HNL:
currency: Lempira
minorUnit: 2
numericCode: 340
HRK:
alphabeticCode: HRK
currency: Kuna
minorUnit: 2
numericCode: 191
HTG:
alphabeticCode: HTG
currency: Gourde
Expand Down Expand Up @@ -643,6 +638,11 @@ SHP:
currency: 'Saint Helena Pound'
minorUnit: 2
numericCode: 654
SLE:
alphabeticCode: SLE
currency: Leone
minorUnit: 2
numericCode: 925
SLL:
alphabeticCode: SLL
currency: Leone
Expand Down Expand Up @@ -768,6 +768,11 @@ UZS:
currency: 'Uzbekistan Sum'
minorUnit: 2
numericCode: 860
VED:
alphabeticCode: VED
currency: 'Bolívar Soberano'
minorUnit: 2
numericCode: 926
VES:
alphabeticCode: VES
currency: 'Bolívar Soberano'
Expand Down
2 changes: 1 addition & 1 deletion resources/historic.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/historic.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
'HRK' =>
array (
'alphabeticCode' => 'HRK',
'currency' => 'Croatian Kuna',
'currency' => 'Kuna',
'minorUnit' => 0,
'numericCode' => 191,
),
Expand Down
2 changes: 1 addition & 1 deletion resources/historic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ HRD:
numericCode: 191
HRK:
alphabeticCode: HRK
currency: 'Croatian Kuna'
currency: Kuna
minorUnit: 0
numericCode: 191
IDR:
Expand Down

0 comments on commit c394503

Please sign in to comment.