-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
currencies.go
2020 lines (2001 loc) · 38.3 KB
/
currencies.go
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package countries
import (
"encoding/json"
"fmt"
)
// CurrencyCode - currency code of country
type CurrencyCode int64 // int64 for database/sql/driver.Valuer compatibility
// Currency - all info about currency
type Currency struct {
NickelRounding bool
Name string
Alpha string
Digits int
Code CurrencyCode
Countries []CountryCode
}
// Emoji - return a currency as Emoji (only for USD, EUR, JPY and GBP)
func (c CurrencyCode) Emoji() string {
switch c {
case CurrencyUSD:
return "💵"
case CurrencyEUR:
return "💶"
case CurrencyJPY:
return "💴"
case CurrencyGBP:
return "💷"
}
return c.Alpha()
}
// TotalCurrencies - returns number of currencies in the package, countries.TotalCurrencies() == len(countries.AllCurrencies()) but static value for performance
func TotalCurrencies() int {
return 169
}
// Type implements Typer interface
func (c CurrencyCode) Type() string {
return TypeCurrencyCode
}
// String - implements fmt.Stringer, returns a english name of currency
//
//nolint:gocyclo
func (c CurrencyCode) String() string { //nolint:gocyclo
switch c {
case 840:
return "US Dollar"
case 978:
return "Euro"
case 971:
return "Afghani"
case 8:
return "Lek"
case 12:
return "Algerian Dinar"
case 973:
return "Kwanza"
case 951:
return "East Caribbean Dollar"
case 32:
return "Argentine Peso"
case 51:
return "Armenian Dram"
case 533:
return "Aruban Florin"
case 36:
return "Australian Dollar"
case 944:
return "Azerbaijanian Manat"
case 44:
return "Bahamian Dollar"
case 48:
return "Bahraini Dinar"
case 50:
return "Taka"
case 52:
return "Barbados Dollar"
case 933:
return "Belarussian Ruble"
case 84:
return "Belize Dollar"
case 952:
return "CFA Franc BCEAO"
case 60:
return "Bermudian Dollar"
case 64:
return "Ngultrum"
case 356:
return "Indian Rupee"
case 68:
return "Boliviano"
case 977:
return "Convertible Mark"
case 72:
return "Pula"
case 578:
return "Norwegian Krone"
case 986:
return "Brazilian Real"
case 96:
return "Brunei Dollar"
case 975:
return "Bulgarian Lev"
case 108:
return "Burundi Franc"
case 132:
return "Cabo Verde Escudo"
case 116:
return "Riel"
case 950:
return "CFA Franc BEAC"
case 124:
return "Canadian Dollar"
case 136:
return "Cayman Islands Dollar"
case 990:
return "Unidad de Fomento"
case 152:
return "Chilean Peso"
case 156:
return "Yuan Renminbi"
case 170:
return "Colombian Peso"
case 970:
return "Unidad de Valor Real (UVR)"
case 174:
return "Comoro Franc"
case 976:
return "Congolese Franc"
case 554:
return "New Zealand Dollar"
case 188:
return "Costa Rican Colon"
case 191:
return "Kuna"
case 931:
return "Peso Convertible"
case 192:
return "Cuban Peso"
case 532:
return "Netherlands Antillean Guilder"
case 203:
return "Czech Koruna"
case 208:
return "Danish Krone"
case 262:
return "Djibouti Franc"
case 214:
return "Dominican Peso"
case 818:
return "Egyptian Pound"
case 222:
return "El Salvador Colon"
case 232:
return "Nakfa"
case 230:
return "Ethiopian Birr"
case 238:
return "Falkland Islands Pound"
case 242:
return "Fiji Dollar"
case 953:
return "CFP Franc"
case 270:
return "Dalasi"
case 981:
return "Lari"
case 936:
return "Ghana Cedi"
case 292:
return "Gibraltar Pound"
case 320:
return "Quetzal"
case 826:
return "Pound Sterling"
case 324:
return "Guinea Franc"
case 328:
return "Guyana Dollar"
case 332:
return "Gourde"
case 340:
return "Lempira"
case 344:
return "Hong Kong Dollar"
case 348:
return "Forint"
case 352:
return "Iceland Krona"
case 360:
return "Rupiah"
case 960:
return "SDR (Special Drawing Right)"
case 364:
return "Iranian Rial"
case 368:
return "Iraqi Dinar"
case 376:
return "New Israeli Sheqel"
case 388:
return "Jamaican Dollar"
case 392:
return "Yen"
case 400:
return "Jordanian Dinar"
case 398:
return "Tenge"
case 404:
return "Kenyan Shilling"
case 408:
return "North Korean Won"
case 410:
return "Won"
case 414:
return "Kuwaiti Dinar"
case 417:
return "Som"
case 418:
return "Kip"
case 422:
return "Lebanese Pound"
case 426:
return "Loti"
case 710:
return "Rand"
case 430:
return "Liberian Dollar"
case 434:
return "Libyan Dinar"
case 756:
return "Swiss Franc"
case 446:
return "Pataca"
case 807:
return "Denar"
case 969:
return "Malagasy Ariary"
case 454:
return "Kwacha"
case 458:
return "Malaysian Ringgit"
case 462:
return "Rufiyaa"
case 929:
return "Ouguiya"
case 480:
return "Mauritius Rupee"
case 965:
return "ADB Unit of Account"
case 484:
return "Mexican Peso"
case 979:
return "Mexican Unidad de Inversion (UDI)"
case 498:
return "Moldovan Leu"
case 496:
return "Tugrik"
case 504:
return "Moroccan Dirham"
case 943:
return "Mozambique Metical"
case 104:
return "Kyat"
case 516:
return "Namibia Dollar"
case 524:
return "Nepalese Rupee"
case 558:
return "Cordoba Oro"
case 566:
return "Naira"
case 512:
return "Rial Omani"
case 586:
return "Pakistan Rupee"
case 590:
return "Balboa"
case 598:
return "Kina"
case 600:
return "Guarani"
case 604:
return "Nuevo Sol"
case 608:
return "Philippine Peso"
case 985:
return "Zloty"
case 634:
return "Qatari Rial"
case 946:
return "Romanian Leu"
case 643:
return "Russian Ruble"
case 646:
return "Rwanda Franc"
case 654:
return "Saint Helena Pound"
case 882:
return "Tala"
case 930:
return "Dobra"
case 682:
return "Saudi Riyal"
case 941:
return "Serbian Dinar"
case 690:
return "Seychelles Rupee"
case 694:
return "Leone"
case 702:
return "Singapore Dollar"
case 994:
return "Sucre"
case 90:
return "Solomon Islands Dollar"
case 706:
return "Somali Shilling"
case 728:
return "South Sudanese Pound"
case 144:
return "Sri Lanka Rupee"
case 938:
return "Sudanese Pound"
case 968:
return "Surinam Dollar"
case 748:
return "Lilangeni"
case 752:
return "Swedish Krona"
case 947:
return "WIR Euro"
case 948:
return "WIR Franc"
case 760:
return "Syrian Pound"
case 901:
return "New Taiwan Dollar"
case 972:
return "Somoni"
case 834:
return "Tanzanian Shilling"
case 764:
return "Baht"
case 776:
return "Pa’anga"
case 780:
return "Trinidad and Tobago Dollar"
case 788:
return "Tunisian Dinar"
case 949:
return "Turkish Lira"
case 934:
return "Turkmenistan New Manat"
case 800:
return "Uganda Shilling"
case 980:
return "Hryvnia"
case 784:
return "UAE Dirham"
case 997:
return "US Dollar Next day"
case 940:
return "Uruguay Peso en Unidades Indexadas (URUIURUI)"
case 858:
return "Peso Uruguayo"
case 860:
return "Uzbekistan Sum"
case 548:
return "Vatu"
case 928:
return "Bolivar"
case 937:
return "Bolivar (deprecated)"
case 704:
return "Dong"
case 886:
return "Yemeni Rial"
case 967:
return "Zambian Kwacha"
case 932:
return "Zimbabwe Dollar"
case 891:
return "Yugoslavian Dinar"
case 998:
return "None"
}
return UnknownMsg
}
// Alpha - returns a default ISO 3166-1 Alpha (3 chars) code of currency
//
//nolint:gocyclo
func (c CurrencyCode) Alpha() string { //nolint:gocyclo
switch c {
case 840:
return "USD"
case 978:
return "EUR"
case 971:
return "AFN"
case 8:
return "ALL"
case 12:
return "DZD"
case 973:
return "AOA"
case 951:
return "XCD"
case 32:
return "ARS"
case 51:
return "AMD"
case 533:
return "AWG"
case 36:
return "AUD"
case 944:
return "AZN"
case 44:
return "BSD"
case 48:
return "BHD"
case 50:
return "BDT"
case 52:
return "BBD"
case 933:
return "BYN"
case 84:
return "BZD"
case 952:
return "XOF"
case 60:
return "BMD"
case 64:
return "BTN"
case 356:
return "INR"
case 68:
return "BOB"
case 977:
return "BAM"
case 72:
return "BWP"
case 578:
return "NOK"
case 986:
return "BRL"
case 96:
return "BND"
case 975:
return "BGN"
case 108:
return "BIF"
case 132:
return "CVE"
case 116:
return "KHR"
case 950:
return "XAF"
case 124:
return "CAD"
case 136:
return "KYD"
case 990:
return "CLF"
case 152:
return "CLP"
case 156:
return "CNY"
case 170:
return "COP"
case 970:
return "COU"
case 174:
return "KMF"
case 976:
return "CDF"
case 554:
return "NZD"
case 188:
return "CRC"
case 191:
return "HRK"
case 931:
return "CUC"
case 192:
return "CUP"
case 532:
return "ANG"
case 203:
return "CZK"
case 208:
return "DKK"
case 262:
return "DJF"
case 214:
return "DOP"
case 818:
return "EGP"
case 222:
return "SVC"
case 232:
return "ERN"
case 230:
return "ETB"
case 238:
return "FKP"
case 242:
return "FJD"
case 953:
return "XPF"
case 270:
return "GMD"
case 981:
return "GEL"
case 936:
return "GHS"
case 292:
return "GIP"
case 320:
return "GTQ"
case 826:
return "GBP"
case 324:
return "GNF"
case 328:
return "GYD"
case 332:
return "HTG"
case 340:
return "HNL"
case 344:
return "HKD"
case 348:
return "HUF"
case 352:
return "ISK"
case 360:
return "IDR"
case 960:
return "XDR"
case 364:
return "IRR"
case 368:
return "IQD"
case 376:
return "ILS"
case 388:
return "JMD"
case 392:
return "JPY"
case 400:
return "JOD"
case 398:
return "KZT"
case 404:
return "KES"
case 408:
return "KPW"
case 410:
return "KRW"
case 414:
return "KWD"
case 417:
return "KGS"
case 418:
return "LAK"
case 422:
return "LBP"
case 426:
return "LSL"
case 710:
return "ZAR"
case 430:
return "LRD"
case 434:
return "LYD"
case 756:
return "CHF"
case 446:
return "MOP"
case 807:
return "MKD"
case 969:
return "MGA"
case 454:
return "MWK"
case 458:
return "MYR"
case 462:
return "MVR"
case 929:
return "MRU"
case 480:
return "MUR"
case 965:
return "XUA"
case 484:
return "MXN"
case 979:
return "MXV"
case 498:
return "MDL"
case 496:
return "MNT"
case 504:
return "MAD"
case 943:
return "MZN"
case 104:
return "MMK"
case 516:
return "NAD"
case 524:
return "NPR"
case 558:
return "NIO"
case 566:
return "NGN"
case 512:
return "OMR"
case 586:
return "PKR"
case 590:
return "PAB"
case 598:
return "PGK"
case 600:
return "PYG"
case 604:
return "PEN"
case 608:
return "PHP"
case 985:
return "PLN"
case 634:
return "QAR"
case 946:
return "RON"
case 643:
return "RUB"
case 646:
return "RWF"
case 654:
return "SHP"
case 882:
return "WST"
case 930:
return "STN"
case 682:
return "SAR"
case 941:
return "RSD"
case 690:
return "SCR"
case 694:
return "SLL"
case 702:
return "SGD"
case 994:
return "XSU"
case 90:
return "SBD"
case 706:
return "SOS"
case 728:
return "SSP"
case 144:
return "LKR"
case 938:
return "SDG"
case 968:
return "SRD"
case 748:
return "SZL"
case 752:
return "SEK"
case 947:
return "CHE"
case 948:
return "CHW"
case 760:
return "SYP"
case 901:
return "TWD"
case 972:
return "TJS"
case 834:
return "TZS"
case 764:
return "THB"
case 776:
return "TOP"
case 780:
return "TTD"
case 788:
return "TND"
case 949:
return "TRY"
case 934:
return "TMT"
case 800:
return "UGX"
case 980:
return "UAH"
case 784:
return "AED"
case 997:
return "USN"
case 940:
return "UYI"
case 858:
return "UYU"
case 860:
return "UZS"
case 548:
return "VUV"
case 928:
return "VES"
case 937:
return "VEF"
case 704:
return "VND"
case 886:
return "YER"
case 967:
return "ZMW"
case 932:
return "ZWL"
case 891:
return "YUD"
case 998:
return "None"
}
return UnknownMsg
}
// IsValid - returns true, if code is correct
func (c CurrencyCode) IsValid() bool {
return c.Alpha() != UnknownMsg
}
// Countries - returns a country codes of currency using
//
//nolint:gocyclo
func (c CurrencyCode) Countries() []CountryCode { //nolint:gocyclo
switch c {
case CurrencyAFN:
return []CountryCode{AFG}
case CurrencyDZD:
return []CountryCode{DZA}
case CurrencyARS:
return []CountryCode{ARG}
case CurrencyAMD:
return []CountryCode{ARM}
case CurrencyAWG:
return []CountryCode{ABW}
case CurrencyAUD:
return []CountryCode{AUS, CXR, CCK, HMD, KIR, NRU, NFK, TUV}
case CurrencyAZN:
return []CountryCode{AZE}
case CurrencyBSD:
return []CountryCode{BHS}
case CurrencyBHD:
return []CountryCode{BHR}
case CurrencyTHB:
return []CountryCode{THA}
case CurrencyPAB:
return []CountryCode{PAN}
case CurrencyBBD:
return []CountryCode{BRB}
case CurrencyBYN:
return []CountryCode{BLR}
case CurrencyBZD:
return []CountryCode{BLZ}
case CurrencyBMD:
return []CountryCode{BMU}
case CurrencyVES:
return []CountryCode{VEN}
case CurrencyVEF:
return []CountryCode{VEN}
case CurrencyBOB:
return []CountryCode{BOL}
case CurrencyBRL:
return []CountryCode{BRA}
case CurrencyBND:
return []CountryCode{BRN}
case CurrencyBGN:
return []CountryCode{BGR}
case CurrencyBIF:
return []CountryCode{BDI}
case CurrencyCVE:
return []CountryCode{CPV}
case CurrencyCAD:
return []CountryCode{CAN}
case CurrencyKYD:
return []CountryCode{CYM}
case CurrencyXOF:
return []CountryCode{BEN, BFA, CIV, GNB, MLI, NER, SEN, TGO}
case CurrencyXAF:
return []CountryCode{CMR, CAF, TCD, COG, GNQ, GAB}
case CurrencyXPF:
return []CountryCode{PYF, NCL, WLF}
case CurrencyCLP:
return []CountryCode{CHL}
case CurrencyCOP:
return []CountryCode{COL}
case CurrencyKMF:
return []CountryCode{COM}
case CurrencyCDF:
return []CountryCode{COD}
case CurrencyBAM:
return []CountryCode{BIH}
case CurrencyNIO:
return []CountryCode{NIC}
case CurrencyCRC:
return []CountryCode{CRI}
case CurrencyCUP:
return []CountryCode{CUB}
case CurrencyCZK:
return []CountryCode{CZE}
case CurrencyGMD:
return []CountryCode{GMB}
case CurrencyDKK:
return []CountryCode{DNK, FRO, GRL}
case CurrencyMKD:
return []CountryCode{MKD}
case CurrencyDJF:
return []CountryCode{DJI}
case CurrencySTN:
return []CountryCode{STP}
case CurrencyDOP:
return []CountryCode{DOM}
case CurrencyVND:
return []CountryCode{VNM}
case CurrencyXCD:
return []CountryCode{AIA, ATG, DMA, GRD, MSR, KNA, LCA, VCT}
case CurrencyEGP:
return []CountryCode{EGY}
case CurrencySVC:
return []CountryCode{SLV}
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, HRV}
case CurrencyFKP:
return []CountryCode{FLK}
case CurrencyFJD:
return []CountryCode{FJI}
case CurrencyHUF:
return []CountryCode{HUN}
case CurrencyGHS:
return []CountryCode{GHA}
case CurrencyGIP:
return []CountryCode{GIB}
case CurrencyHTG:
return []CountryCode{HTI}
case CurrencyPYG:
return []CountryCode{PRY}
case CurrencyGNF:
return []CountryCode{GIN}
case CurrencyGYD:
return []CountryCode{GUY}
case CurrencyHKD:
return []CountryCode{HKG}
case CurrencyUAH:
return []CountryCode{UKR}
case CurrencyISK:
return []CountryCode{ISL}
case CurrencyINR:
return []CountryCode{BTN, IND}
case CurrencyIRR:
return []CountryCode{IRN}
case CurrencyIQD:
return []CountryCode{IRQ}
case CurrencyJMD:
return []CountryCode{JAM}
case CurrencyJOD:
return []CountryCode{JOR}
case CurrencyKES:
return []CountryCode{KEN}
case CurrencyPGK:
return []CountryCode{PNG}
case CurrencyLAK:
return []CountryCode{LAO}
case CurrencyHRK:
return []CountryCode{HRV}
case CurrencyKWD:
return []CountryCode{KWT}
case CurrencyMWK:
return []CountryCode{MWI}
case CurrencyAOA:
return []CountryCode{AGO}
case CurrencyMMK:
return []CountryCode{MMR}
case CurrencyGEL:
return []CountryCode{GEO}
case CurrencyLBP:
return []CountryCode{LBN}
case CurrencyALL:
return []CountryCode{ALB}
case CurrencyHNL:
return []CountryCode{HND}
case CurrencySLL:
return []CountryCode{SLE}
case CurrencyLRD:
return []CountryCode{LBR}
case CurrencyLYD:
return []CountryCode{LBY}
case CurrencySZL:
return []CountryCode{SWZ}
case CurrencyLSL:
return []CountryCode{LSO}
case CurrencyMGA:
return []CountryCode{MDG}
case CurrencyMYR:
return []CountryCode{MYS}
case CurrencyMUR:
return []CountryCode{MUS}
case CurrencyMXN:
return []CountryCode{MEX}
case CurrencyMXV:
return []CountryCode{MEX}
case CurrencyMDL:
return []CountryCode{MDA}
case CurrencyMAD:
return []CountryCode{MAR, ESH}
case CurrencyMZN:
return []CountryCode{MOZ}
case CurrencyNGN:
return []CountryCode{NGA}
case CurrencyERN:
return []CountryCode{ERI}
case CurrencyNAD:
return []CountryCode{NAM}
case CurrencyNPR:
return []CountryCode{NPL}
case CurrencyANG:
return []CountryCode{CUW, SXM, ANT}
case CurrencyILS:
return []CountryCode{ISR, PSE}
case CurrencyTWD:
return []CountryCode{TWN}
case CurrencyNZD:
return []CountryCode{COK, NZL, NIU, PCN, TKL}
case CurrencyBTN:
return []CountryCode{BTN}
case CurrencyKPW:
return []CountryCode{PRK}
case CurrencyNOK:
return []CountryCode{BVT, NOR, SJM}
case CurrencyPEN:
return []CountryCode{PER}
case CurrencyMRU:
return []CountryCode{MRT}
case CurrencyTOP:
return []CountryCode{TON}
case CurrencyPKR:
return []CountryCode{PAK}
case CurrencyMOP:
return []CountryCode{MAC}
case CurrencyCUC:
return []CountryCode{CUB}
case CurrencyUYU:
return []CountryCode{URY}
case CurrencyPHP:
return []CountryCode{PHL}
case CurrencyGBP:
return []CountryCode{GGY, IMN, JEY, GBR, XWA, SGS, XSC}
case CurrencyBWP:
return []CountryCode{BWA}
case CurrencyQAR:
return []CountryCode{QAT}
case CurrencyGTQ:
return []CountryCode{GTM}
case CurrencyZAR:
return []CountryCode{LSO, NAM, ZAF}
case CurrencyOMR:
return []CountryCode{OMN}
case CurrencyKHR:
return []CountryCode{KHM}
case CurrencyRON:
return []CountryCode{ROU}
case CurrencyMVR:
return []CountryCode{MDV}
case CurrencyIDR:
return []CountryCode{IDN}
case CurrencyRUB:
return []CountryCode{RUS}
case CurrencyRWF:
return []CountryCode{RWA}
case CurrencySHP:
return []CountryCode{SHN}
case CurrencySAR: