=begin #MoneyKit API #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 2023-02-18 Generated by: https://openapi-generator.tech OpenAPI Generator version: 7.1.0 =end require 'date' require 'time' module MoneyKit class Currency AFN = "AFN".freeze EUR = "EUR".freeze ALL = "ALL".freeze DZD = "DZD".freeze USD = "USD".freeze AOA = "AOA".freeze XCD = "XCD".freeze ARS = "ARS".freeze AMD = "AMD".freeze AWG = "AWG".freeze AUD = "AUD".freeze AZN = "AZN".freeze BSD = "BSD".freeze BHD = "BHD".freeze BDT = "BDT".freeze BBD = "BBD".freeze BYN = "BYN".freeze BZD = "BZD".freeze XOF = "XOF".freeze BMD = "BMD".freeze INR = "INR".freeze BTN = "BTN".freeze BOB = "BOB".freeze BOV = "BOV".freeze BAM = "BAM".freeze BWP = "BWP".freeze NOK = "NOK".freeze BRL = "BRL".freeze BND = "BND".freeze BGN = "BGN".freeze BIF = "BIF".freeze CVE = "CVE".freeze KHR = "KHR".freeze XAF = "XAF".freeze CAD = "CAD".freeze KYD = "KYD".freeze CLP = "CLP".freeze CLF = "CLF".freeze CNY = "CNY".freeze COP = "COP".freeze COU = "COU".freeze KMF = "KMF".freeze CDF = "CDF".freeze NZD = "NZD".freeze CRC = "CRC".freeze HRK = "HRK".freeze CUP = "CUP".freeze CUC = "CUC".freeze ANG = "ANG".freeze CZK = "CZK".freeze DKK = "DKK".freeze DJF = "DJF".freeze DOP = "DOP".freeze EGP = "EGP".freeze SVC = "SVC".freeze ERN = "ERN".freeze SZL = "SZL".freeze ETB = "ETB".freeze FKP = "FKP".freeze FJD = "FJD".freeze XPF = "XPF".freeze GMD = "GMD".freeze GEL = "GEL".freeze GHS = "GHS".freeze GIP = "GIP".freeze GTQ = "GTQ".freeze GBP = "GBP".freeze GNF = "GNF".freeze GYD = "GYD".freeze HTG = "HTG".freeze HNL = "HNL".freeze HKD = "HKD".freeze HUF = "HUF".freeze ISK = "ISK".freeze IDR = "IDR".freeze XDR = "XDR".freeze IRR = "IRR".freeze IQD = "IQD".freeze ILS = "ILS".freeze JMD = "JMD".freeze JPY = "JPY".freeze JOD = "JOD".freeze KZT = "KZT".freeze KES = "KES".freeze KPW = "KPW".freeze KRW = "KRW".freeze KWD = "KWD".freeze KGS = "KGS".freeze LAK = "LAK".freeze LBP = "LBP".freeze LSL = "LSL".freeze ZAR = "ZAR".freeze LRD = "LRD".freeze LYD = "LYD".freeze CHF = "CHF".freeze MOP = "MOP".freeze MKD = "MKD".freeze MGA = "MGA".freeze MWK = "MWK".freeze MYR = "MYR".freeze MVR = "MVR".freeze MRU = "MRU".freeze MUR = "MUR".freeze XUA = "XUA".freeze MXN = "MXN".freeze MXV = "MXV".freeze MDL = "MDL".freeze MNT = "MNT".freeze MAD = "MAD".freeze MZN = "MZN".freeze MMK = "MMK".freeze NAD = "NAD".freeze NPR = "NPR".freeze NIO = "NIO".freeze NGN = "NGN".freeze OMR = "OMR".freeze PKR = "PKR".freeze PAB = "PAB".freeze PGK = "PGK".freeze PYG = "PYG".freeze PEN = "PEN".freeze PHP = "PHP".freeze PLN = "PLN".freeze QAR = "QAR".freeze RON = "RON".freeze RUB = "RUB".freeze RWF = "RWF".freeze SHP = "SHP".freeze WST = "WST".freeze STN = "STN".freeze SAR = "SAR".freeze RSD = "RSD".freeze SCR = "SCR".freeze SLL = "SLL".freeze SLE = "SLE".freeze SGD = "SGD".freeze XSU = "XSU".freeze SBD = "SBD".freeze SOS = "SOS".freeze SSP = "SSP".freeze LKR = "LKR".freeze SDG = "SDG".freeze SRD = "SRD".freeze SEK = "SEK".freeze CHE = "CHE".freeze CHW = "CHW".freeze SYP = "SYP".freeze TWD = "TWD".freeze TJS = "TJS".freeze TZS = "TZS".freeze THB = "THB".freeze TOP = "TOP".freeze TTD = "TTD".freeze TND = "TND".freeze TRY = "TRY".freeze TMT = "TMT".freeze UGX = "UGX".freeze UAH = "UAH".freeze AED = "AED".freeze USN = "USN".freeze UYU = "UYU".freeze UYI = "UYI".freeze UYW = "UYW".freeze UZS = "UZS".freeze VUV = "VUV".freeze VES = "VES".freeze VED = "VED".freeze VND = "VND".freeze YER = "YER".freeze ZMW = "ZMW".freeze ZWL = "ZWL".freeze XBA = "XBA".freeze XBB = "XBB".freeze XBC = "XBC".freeze XBD = "XBD".freeze XTS = "XTS".freeze XXX = "XXX".freeze XAU = "XAU".freeze XPD = "XPD".freeze XPT = "XPT".freeze XAG = "XAG".freeze def self.all_vars @all_vars ||= [AFN, EUR, ALL, DZD, USD, AOA, XCD, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BDT, BBD, BYN, BZD, XOF, BMD, INR, BTN, BOB, BOV, BAM, BWP, NOK, BRL, BND, BGN, BIF, CVE, KHR, XAF, CAD, KYD, CLP, CLF, CNY, COP, COU, KMF, CDF, NZD, CRC, HRK, CUP, CUC, ANG, CZK, DKK, DJF, DOP, EGP, SVC, ERN, SZL, ETB, FKP, FJD, XPF, GMD, GEL, GHS, GIP, GTQ, GBP, GNF, GYD, HTG, HNL, HKD, HUF, ISK, IDR, XDR, IRR, IQD, ILS, JMD, JPY, JOD, KZT, KES, KPW, KRW, KWD, KGS, LAK, LBP, LSL, ZAR, LRD, LYD, CHF, MOP, MKD, MGA, MWK, MYR, MVR, MRU, MUR, XUA, MXN, MXV, MDL, MNT, MAD, MZN, MMK, NAD, NPR, NIO, NGN, OMR, PKR, PAB, PGK, PYG, PEN, PHP, PLN, QAR, RON, RUB, RWF, SHP, WST, STN, SAR, RSD, SCR, SLL, SLE, SGD, XSU, SBD, SOS, SSP, LKR, SDG, SRD, SEK, CHE, CHW, SYP, TWD, TJS, TZS, THB, TOP, TTD, TND, TRY, TMT, UGX, UAH, AED, USN, UYU, UYI, UYW, UZS, VUV, VES, VED, VND, YER, ZMW, ZWL, XBA, XBB, XBC, XBD, XTS, XXX, XAU, XPD, XPT, XAG].freeze end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) return value if Currency.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #Currency" end end end