Class: GOBL::Currency::Code
- Inherits:
-
String
- Object
- String
- GOBL::Currency::Code
- Includes:
- Enum
- Defined in:
- lib/generated/gobl/currency/code.rb
Overview
Currency Code as defined in the GOBL source which is expected to be ISO or commonly used alternative.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Code structure
'https://gobl.org/draft-0/currency/code'
- ENUM =
{ 'USD' => 'United States Dollar', 'EUR' => 'Euro', 'GBP' => 'British Pound', 'AUD' => 'Australian Dollar', 'CAD' => 'Canadian Dollar', 'JPY' => 'Japanese Yen', 'BYR' => 'Belarusian Ruble', 'MOP' => 'Macanese Pataca', 'HTG' => 'Haitian Gourde', 'AZN' => 'Azerbaijani Manat', 'BAM' => 'Bosnia and Herzegovina Convertible Mark', 'BBD' => 'Barbadian Dollar', 'BDT' => 'Bangladeshi Taka', 'BGN' => 'Bulgarian Lev', 'BHD' => 'Bahraini Dinar', 'BIF' => 'Burundian Franc', 'BMD' => 'Bermudian Dollar', 'BND' => 'Brunei Dollar', 'BOB' => 'Bolivian Boliviano', 'BRL' => 'Brazilian Real', 'BSD' => 'Bahamian Dollar', 'BTN' => 'Bhutanese Ngultrum', 'BWP' => 'Botswana Pula', 'BYN' => 'Belarusian Ruble', 'ARS' => 'Argentine Peso', 'BZD' => 'Belize Dollar', 'AOA' => 'Angolan Kwanza', 'CDF' => 'Congolese Franc', 'CHF' => 'Swiss Franc', 'CLF' => 'Unidad de Fomento', 'CLP' => 'Chilean Peso', 'CNY' => 'Chinese Renminbi Yuan', 'COP' => 'Colombian Peso', 'CRC' => 'Costa Rican Colón', 'CUC' => 'Cuban Convertible Peso', 'CUP' => 'Cuban Peso', 'CVE' => 'Cape Verdean Escudo', 'CZK' => 'Czech Koruna', 'DJF' => 'Djiboutian Franc', 'DKK' => 'Danish Krone', 'MXN' => 'Mexican Peso', 'DZD' => 'Algerian Dinar', 'EGP' => 'Egyptian Pound', 'ERN' => 'Eritrean Nakfa', 'ETB' => 'Ethiopian Birr', 'ANG' => 'Netherlands Antillean Gulden', 'FJD' => 'Fijian Dollar', 'FKP' => 'Falkland Pound', 'AMD' => 'Armenian Dram', 'GEL' => 'Georgian Lari', 'GHS' => 'Ghanaian Cedi', 'GIP' => 'Gibraltar Pound', 'GMD' => 'Gambian Dalasi', 'GNF' => 'Guinean Franc', 'GTQ' => 'Guatemalan Quetzal', 'GYD' => 'Guyanese Dollar', 'HKD' => 'Hong Kong Dollar', 'HNL' => 'Honduran Lempira', 'MWK' => 'Malawian Kwacha', 'HUF' => 'Hungarian Forint', 'IDR' => 'Indonesian Rupiah', 'ILS' => 'Israeli New Sheqel', 'INR' => 'Indian Rupee', 'IQD' => 'Iraqi Dinar', 'IRR' => 'Iranian Rial', 'ISK' => 'Icelandic Króna', 'JMD' => 'Jamaican Dollar', 'JOD' => 'Jordanian Dinar', 'ALL' => 'Albanian Lek', 'KES' => 'Kenyan Shilling', 'KGS' => 'Kyrgyzstani Som', 'KHR' => 'Cambodian Riel', 'KMF' => 'Comorian Franc', 'KPW' => 'North Korean Won', 'KRW' => 'South Korean Won', 'KWD' => 'Kuwaiti Dinar', 'KYD' => 'Cayman Islands Dollar', 'KZT' => 'Kazakhstani Tenge', 'LAK' => 'Lao Kip', 'LBP' => 'Lebanese Pound', 'LKR' => 'Sri Lankan Rupee', 'LRD' => 'Liberian Dollar', 'LSL' => 'Lesotho Loti', 'LYD' => 'Libyan Dinar', 'MAD' => 'Moroccan Dirham', 'MDL' => 'Moldovan Leu', 'MGA' => 'Malagasy Ariary', 'MKD' => 'Macedonian Denar', 'MMK' => 'Myanmar Kyat', 'MNT' => 'Mongolian Tögrög', 'AED' => 'United Arab Emirates Dirham', 'MRU' => 'Mauritanian Ouguiya', 'MUR' => 'Mauritian Rupee', 'PLN' => 'Polish Złoty', 'AWG' => 'Aruban Florin', 'DOP' => 'Dominican Peso', 'MYR' => 'Malaysian Ringgit', 'MZN' => 'Mozambican Metical', 'NAD' => 'Namibian Dollar', 'NGN' => 'Nigerian Naira', 'NIO' => 'Nicaraguan Córdoba', 'NOK' => 'Norwegian Krone', 'NPR' => 'Nepalese Rupee', 'NZD' => 'New Zealand Dollar', 'OMR' => 'Omani Rial', 'PAB' => 'Panamanian Balboa', 'PEN' => 'Peruvian Sol', 'PGK' => 'Papua New Guinean Kina', 'PHP' => 'Philippine Peso', 'PKR' => 'Pakistani Rupee', 'MVR' => 'Maldivian Rufiyaa', 'PYG' => 'Paraguayan Guaraní', 'QAR' => 'Qatari Riyal', 'RON' => 'Romanian Leu', 'RSD' => 'Serbian Dinar', 'RUB' => 'Russian Ruble', 'RWF' => 'Rwandan Franc', 'SAR' => 'Saudi Riyal', 'SBD' => 'Solomon Islands Dollar', 'SCR' => 'Seychellois Rupee', 'SDG' => 'Sudanese Pound', 'SEK' => 'Swedish Krona', 'SGD' => 'Singapore Dollar', 'SHP' => 'Saint Helenian Pound', 'SKK' => 'Slovak Koruna', 'SLE' => 'New Leone', 'SLL' => 'Sierra Leonean Leone', 'SOS' => 'Somali Shilling', 'SRD' => 'Surinamese Dollar', 'SSP' => 'South Sudanese Pound', 'STD' => 'São Tomé and Príncipe Dobra', 'STN' => 'São Tomé and Príncipe Second Dobra', 'SVC' => 'Salvadoran Colón', 'SYP' => 'Syrian Pound', 'SZL' => 'Swazi Lilangeni', 'THB' => 'Thai Baht', 'TJS' => 'Tajikistani Somoni', 'TMT' => 'Turkmenistani Manat', 'TND' => 'Tunisian Dinar', 'TOP' => 'Tongan Paʻanga', 'TRY' => 'Turkish Lira', 'TTD' => 'Trinidad and Tobago Dollar', 'TWD' => 'New Taiwan Dollar', 'TZS' => 'Tanzanian Shilling', 'UAH' => 'Ukrainian Hryvnia', 'UGX' => 'Ugandan Shilling', 'AFN' => 'Afghan Afghani', 'UYU' => 'Uruguayan Peso', 'UZS' => 'Uzbekistan Som', 'VES' => 'Venezuelan Bolívar Soberano', 'VND' => 'Vietnamese Đồng', 'VUV' => 'Vanuatu Vatu', 'WST' => 'Samoan Tala', 'XAF' => 'Central African Cfa Franc', 'XAG' => 'Silver (Troy Ounce)', 'XAU' => 'Gold (Troy Ounce)', 'XBA' => 'European Composite Unit', 'XBB' => 'European Monetary Unit', 'XBC' => 'European Unit of Account 9', 'XBD' => 'European Unit of Account 17', 'XCD' => 'East Caribbean Dollar', 'XDR' => 'Special Drawing Rights', 'XOF' => 'West African Cfa Franc', 'XPD' => 'Palladium', 'XPF' => 'Cfp Franc', 'XPT' => 'Platinum', 'XTS' => 'Codes specifically reserved for testing purposes', 'YER' => 'Yemeni Rial', 'ZAR' => 'South African Rand', 'ZMK' => 'Zambian Kwacha', 'ZMW' => 'Zambian Kwacha', 'BCH' => 'Bitcoin Cash', 'BTC' => 'Bitcoin', 'JEP' => 'Jersey Pound', 'GGP' => 'Guernsey Pound', 'IMP' => 'Isle of Man Pound', 'XFU' => 'UIC Franc', 'GBX' => 'British Penny', 'CNH' => 'Chinese Renminbi Yuan Offshore', 'USDC' => 'USD Coin' }.freeze
Instance Method Summary collapse
Methods included from Enum
#description, included, #valid_enum_value
Instance Method Details
#strict_enum? ⇒ Boolean
200 201 202 |
# File 'lib/generated/gobl/currency/code.rb', line 200 def strict_enum? true end |