2021-04-02 21:19:54 +04:00

179 lines
4.5 KiB
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// CurrencyCode.swift
// CurrencyText
//
// Created by Felipe Lefèvre Marino on 1/26/19.
//
import Foundation
/// Currency wraps all availabe currencies that can represented as formatted monetary values
/// A currency code is a three-letter code that is, in most cases,
/// composed of a countrys two-character Internet country code plus an extra character
/// to denote the currency unit. For example, the currency code for the Australian
/// dollar is AUD. Currency codes are based on the ISO 4217 standard
public enum Currency: String {
case afghani = "AFN",
algerianDinar = "DZD",
argentinePeso = "ARS",
armenianDram = "AMD",
arubanFlorin = "AWG",
australianDollar = "AUD",
azerbaijanManat = "AZN",
bahamianDollar = "BSD",
bahrainiDinar = "BHD",
baht = "THB",
balboa = "PAB",
barbadosDollar = "BBD",
belarusianRuble = "BYN",
belizeDollar = "BZD",
bermudianDollar = "BMD",
boliviano = "BOB",
bolívar = "VEF",
brazilianReal = "BRL",
bruneiDollar = "BND",
bulgarianLev = "BGN",
burundiFranc = "BIF",
caboVerdeEscudo = "CVE",
canadianDollar = "CAD",
caymanIslandsDollar = "KYD",
chileanPeso = "CLP",
colombianPeso = "COP",
comorianFranc = "KMF",
congoleseFranc = "CDF",
convertibleMark = "BAM",
cordobaOro = "NIO",
costaRicanColon = "CRC",
cubanPeso = "CUP",
czechKoruna = "CZK",
dalasi = "GMD",
danishKrone = "DKK",
denar = "MKD",
djiboutiFranc = "DJF",
dobra = "STN",
dollar = "USD",
dominicanPeso = "DOP",
dong = "VND",
eastCaribbeanDollar = "XCD",
egyptianPound = "EGP",
elSalvadorColon = "SVC",
ethiopianBirr = "ETB",
euro = "EUR",
falklandIslandsPound = "FKP",
fijiDollar = "FJD",
forint = "HUF",
ghanaCedi = "GHS",
gibraltarPound = "GIP",
gourde = "HTG",
guarani = "PYG",
guineanFranc = "GNF",
guyanaDollar = "GYD",
hongKongDollar = "HKD",
hryvnia = "UAH",
icelandKrona = "ISK",
indianRupee = "INR",
iranianRial = "IRR",
iraqiDinar = "IQD",
jamaicanDollar = "JMD",
jordanianDinar = "JOD",
kenyanShilling = "KES",
kina = "PGK",
kuna = "HRK",
kuwaitiDinar = "KWD",
kwanza = "AOA",
kyat = "MMK",
laoKip = "LAK",
lari = "GEL",
lebanesePound = "LBP",
lek = "ALL",
lempira = "HNL",
leone = "SLL",
liberianDollar = "LRD",
libyanDinar = "LYD",
lilangeni = "SZL",
loti = "LSL",
malagasyAriary = "MGA",
malawiKwacha = "MWK",
malaysianRinggit = "MYR",
mauritiusRupee = "MUR",
mexicanPeso = "MXN",
mexicanUnidadDeInversion = "MXV",
moldovanLeu = "MDL",
moroccanDirham = "MAD",
mozambiqueMetical = "MZN",
mvdol = "BOV",
naira = "NGN",
nakfa = "ERN",
namibiaDollar = "NAD",
nepaleseRupee = "NPR",
netherlandsAntilleanGuilder = "ANG",
newIsraeliSheqel = "ILS",
newTaiwanDollar = "TWD",
newZealandDollar = "NZD",
ngultrum = "BTN",
northKoreanWon = "KPW",
norwegianKrone = "NOK",
ouguiya = "MRU",
paanga = "TOP",
pakistanRupee = "PKR",
pataca = "MOP",
pesoConvertible = "CUC",
pesoUruguayo = "UYU",
philippinePiso = "PHP",
poundSterling = "GBP",
pula = "BWP",
qatariRial = "QAR",
quetzal = "GTQ",
rand = "ZAR",
rialOmani = "OMR",
riel = "KHR",
romanianLeu = "RON",
rufiyaa = "MVR",
rupiah = "IDR",
russianRuble = "RUB",
rwandaFranc = "RWF",
saintHelenaPound = "SHP",
saudiRiyal = "SAR",
serbianDinar = "RSD",
seychellesRupee = "SCR",
singaporeDollar = "SGD",
sol = "PEN",
solomonIslandsDollar = "SBD",
som = "KGS",
somaliShilling = "SOS",
somoni = "TJS",
southSudanesePound = "SSP",
sriLankaRupee = "LKR",
sudanesePound = "SDG",
surinamDollar = "SRD",
swedishKrona = "SEK",
swissFranc = "CHF",
syrianPound = "SYP",
taka = "BDT",
tala = "WST",
tanzanianShilling = "TZS",
tenge = "KZT",
trinidadAndTobagoDollar = "TTD",
tugrik = "MNT",
tunisianDinar = "TND",
turkishLira = "TRY",
turkmenistanNewManat = "TMT",
uaeDirham = "AED",
ugandaShilling = "UGX",
unidadDeFomento = "CLF",
unidadDeValorReal = "COU",
uruguayPesoEnUnidadesIndexadas = "UYI",
uzbekistanSum = "UZS",
vatu = "VUV",
wirEuro = "CHE",
wirFranc = "CHW",
won = "KRW",
yemeniRial = "YER",
yen = "JPY",
yuanRenminbi = "CNY",
zambianKwacha = "ZMW",
zimbabweDollar = "ZWL",
zloty = "PLN",
none
}