Skip to content

Commit

Permalink
Merge pull request #65 from DanielHilton/croatia-currency
Browse files Browse the repository at this point in the history
Deprecating HRK (Croatian Kuna) for Euro
  • Loading branch information
biter777 authored Nov 15, 2023
2 parents a93ea93 + 5012e56 commit f62def8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion countries.go
Original file line number Diff line number Diff line change
Expand Up @@ -3499,7 +3499,7 @@ func (c CountryCode) Currency() CurrencyCode { //nolint:gocyclo
case ATF:
return CurrencyEUR
case HRV:
return CurrencyHRK
return CurrencyEUR
case CAF:
return CurrencyXAF
case TCD:
Expand Down
2 changes: 1 addition & 1 deletion currencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ func (c CurrencyCode) Countries() []CountryCode { //nolint:gocyclo
case CurrencyETB:
return []CountryCode{ETH}
case CurrencyEUR:
return []CountryCode{AND, AUT, BEL, CYP, EST, FIN, FRA, GUF, ATF, DEU, GRC, GLP, VAT, IRL, ITA, LVA, LTU, LUX, MLT, MTQ, MYT, MCO, MNE, NLD, PRT, REU, BLM, MAF, SPM, SMR, SVK, SVN, ESP, ALA}
return []CountryCode{AND, AUT, BEL, CYP, EST, FIN, FRA, GUF, ATF, DEU, GRC, GLP, VAT, IRL, ITA, LVA, LTU, LUX, MLT, MTQ, MYT, MCO, MNE, NLD, PRT, REU, BLM, MAF, SPM, SMR, SVK, SVN, ESP, ALA, HRV}
case CurrencyFKP:
return []CountryCode{FLK}
case CurrencyFJD:
Expand Down
1 change: 1 addition & 0 deletions currenciesconst.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ const (
CurrencyCDF CurrencyCode = 976
CurrencyNZD CurrencyCode = 554
CurrencyCRC CurrencyCode = 188
// Deprecated: Croatian Kuna is no longer in circulation, use CurrencyEUR instead.
CurrencyHRK CurrencyCode = 191
CurrencyCUC CurrencyCode = 931
CurrencyCUP CurrencyCode = 192
Expand Down

0 comments on commit f62def8

Please sign in to comment.