From dbc085ef5484ea60b2c70ef39a4bf9414cde3d16 Mon Sep 17 00:00:00 2001 From: splincode Date: Mon, 9 Oct 2023 15:19:51 +0300 Subject: [PATCH] fix(addon-commerce): invalid descriptions in currency code dictionary --- .../addon-commerce/enums/currency-code.ts | 343 +++++++++--------- 1 file changed, 172 insertions(+), 171 deletions(-) diff --git a/projects/addon-commerce/enums/currency-code.ts b/projects/addon-commerce/enums/currency-code.ts index eee0a23926f18..0171520e2406e 100644 --- a/projects/addon-commerce/enums/currency-code.ts +++ b/projects/addon-commerce/enums/currency-code.ts @@ -10,26 +10,44 @@ // eslint-disable-next-line no-restricted-syntax export enum TuiCurrencyCode { /** - * Armenian dram + * Russian ruble * - * @description Numeric code: 051 - * @description Alphabetic code: AMD - * @description Countries and territories: Armenia - * @description Currency symbol: ֏ + * @description Numeric code: 643 + * @description Alphabetic code: RUB + * @description Countries and territories: Russia + * @description Currency symbol: ₽ */ - ArmenianDram = `051`, + Ruble = `643`, /** - * Australian dollar + * Euro * - * @description Numeric code: 036 - * @description Alphabetic code: AUD - * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV) - * @description Currency symbol: A$ + * @description Numeric code: 978 + * @description Alphabetic code: EUR + * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA) + * @description Currency symbol: € */ - AustralianDollar = `036`, + Euro = `978`, - AzerbaijaniManat = `944`, + /** + * United States dollar + * + * @description Numeric code: 840 + * @description Alphabetic code: USD + * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM) + * @description Currency symbol: $ + */ + Dollar = `840`, + + /** + * Pound sterling + * + * @description Numeric code: 826 + * @description Alphabetic code: GBP + * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA) + * @description Currency symbol: £ + */ + Pound = `826`, /** * Thai baht @@ -41,59 +59,105 @@ export enum TuiCurrencyCode { */ Baht = `764`, - BelarusianRuble = `933`, + /** + * Turkish lira + * + * @description Numeric code: 949 + * @description Alphabetic code: TRY + * @description Countries and territories: Turkey + * @description Currency symbol: ₺ + */ + TurkishLira = `949`, /** - * Brazilian Real + * Chinese yuan * - * @description Numeric code: 986 - * @description Alphabetic code: BRL - * @description Countries and territories: Brazilia - * @description Currency symbol: R$ + * @description Numeric code: 156 + * @description Alphabetic code: CNY + * @description Countries and territories: China + * @description Currency symbol: CN¥ */ - BrazilianReal = `986`, + YuanRenminbi = `156`, /** - * Canadian dollar + * Kazakhstani tenge * - * @description Numeric code: 124 - * @description Alphabetic code: CAD - * @description Countries and territories: Canada - * @description Currency symbol: C$ + * @description Numeric code: 398 + * @description Alphabetic code: KZT + * @description Countries and territories: Kazakhstan + * @description Currency symbol: ₸ */ - CanadianDollar = `124`, + Tenge = `398`, /** - * United Arab Emirates dirham + * Israeli new shekel * - * @description Numeric code: 784 - * @description Alphabetic code: AED - * @description Countries and territories: United Arab Emirates - * @description Currency symbol: Dh + * @description Numeric code: 376 + * @description Alphabetic code: ILS + * @description Countries and territories: Israel + * @description Currency symbol: ₪ */ - Dirham = `784`, + IsraeliShekel = `376`, /** - * United States dollar + * Indian rupee * - * @description Numeric code: 840 - * @description Alphabetic code: USD - * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM) - * @description Currency symbol: $ + * @description Numeric code: 356 + * @description Alphabetic code: INR + * @description Countries and territories: India, Bhutan + * @description Currency symbol: ₹ */ - Dollar = `840`, + IndianRupee = `356`, /** - * Euro + * Japanese yen * - * @description Numeric code: 978 - * @description Alphabetic code: EUR - * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA) - * @description Currency symbol: € + * @description Numeric code: 392 + * @description Alphabetic code: JPY + * @description Countries and territories: Japan + * @description Currency symbol: ¥ */ - Euro = `978`, + Yen = `392`, - GeorgianLari = `981`, + /** + * South Korean won + * + * @description Numeric code: 410 + * @description Alphabetic code: KRW + * @description Countries and territories: South Korea + * @description Currency symbol: ₩ + */ + Won = `410`, + + /** + * Swiss franc + * + * @description Numeric code: 756 + * @description Alphabetic code: CHF + * @description Countries and territories: Switzerland, Liechtenstein (LI) + * @description Currency symbol: ₣ + */ + SwissFranc = `756`, + + /** + * Singapore dollar + * + * @description Numeric code: 702 + * @description Alphabetic code: SGD + * @description Countries and territories: Singapore + * @description Currency symbol: S$ + */ + SingaporeDollar = `702`, + + /** + * Australian dollar + * + * @description Numeric code: 036 + * @description Alphabetic code: AUD + * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV) + * @description Currency symbol: A$ + */ + AustralianDollar = `036`, /** * Hong Kong dollar @@ -105,6 +169,26 @@ export enum TuiCurrencyCode { */ HongKongDollar = `344`, + /** + * Canadian dollar + * + * @description Numeric code: 124 + * @description Alphabetic code: CAD + * @description Countries and territories: Canada + * @description Currency symbol: C$ + */ + CanadianDollar = `124`, + + /** + * Armenian dram + * + * @description Numeric code: 051 + * @description Alphabetic code: AMD + * @description Countries and territories: Armenia + * @description Currency symbol: ֏ + */ + ArmenianDram = `051`, + /** * Ukrainian hryvnia * @@ -116,28 +200,24 @@ export enum TuiCurrencyCode { Hryvnia = `980`, /** - * Indian rupee + * Mexican peso * - * @description Numeric code: 356 - * @description Alphabetic code: INR - * @description Countries and territories: India, Bhutan - * @description Currency symbol: ₹ + * @description Numeric code: 484 + * @description Alphabetic code: MXN + * @description Countries and territories: Mexico + * @description Currency symbol: $ */ - IndianRupee = `356`, - - IndonesianRupiah = `360`, - - IranianRial = `364`, + MexicanPeso = `484`, /** - * Israeli new shekel + * Uzbek sum * - * @description Numeric code: 376 - * @description Alphabetic code: ILS - * @description Countries and territories: Israel - * @description Currency symbol: ₪ + * @description Numeric code: 860 + * @description Alphabetic code: UZS + * @description Countries and territories: Uzbekistan + * @description Currency symbol: So'm */ - IsraeliShekel = `376`, + UzbekSum = `860`, /** * Kyrgyzstani som @@ -149,41 +229,26 @@ export enum TuiCurrencyCode { */ KyrgyzstanSom = `417`, - MalaysianRinggit = `458`, - /** - * Mexican peso + * United Arab Emirates dirham * - * @description Numeric code: 484 - * @description Alphabetic code: MXN - * @description Countries and territories: Mexico - * @description Currency symbol: $ + * @description Numeric code: 784 + * @description Alphabetic code: AED + * @description Countries and territories: United Arab Emirates + * @description Currency symbol: Dh */ - MexicanPeso = `484`, - - MongolianTugrik = `496`, - - NewTurkmenManat = `934`, + Dirham = `784`, /** - * Pound sterling + * Tajikistani somoni * - * @description Numeric code: 826 - * @description Alphabetic code: GBP - * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA) - * @description Currency symbol: £ + * @description Numeric code: 972 + * @description Alphabetic code: TJS + * @description Countries and territories: Tajikistan + * @description Currency symbol: SM */ - Pound = `826`, - /** - * Russian ruble - * - * @description Numeric code: 643 - * @description Alphabetic code: RUB - * @description Countries and territories: Russia - * @description Currency symbol: ₽ - */ - Ruble = `643`, + TajikistaniSomoni = `972`, /** * Malaysian ringgit @@ -193,8 +258,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Malaysia * @description Currency symbol: RM */ + MalaysianRinggit = `458`, - SaudiRiyal = `682`, /** * * Belarusian ruble @@ -204,8 +269,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Belarus * @description Currency symbol: Rbl */ + BelarusianRuble = `933`, - SerbianDinar = `941`, /** * Georgian lari * @@ -214,16 +279,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Georgia * @description Currency symbol: ₾ */ + GeorgianLari = `981`, - /** - * Singapore dollar - * - * @description Numeric code: 702 - * @description Alphabetic code: SGD - * @description Countries and territories: Singapore - * @description Currency symbol: S$ - */ - SingaporeDollar = `702`, /** * Azerbaijani manat * @@ -232,8 +289,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Azerbaijan * @description Currency symbol: ₼ */ + AzerbaijaniManat = `944`, - SouthAfricanRand = `710`, /** * Sri Lankan rupee * @@ -242,8 +299,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Sri Lanka * @description Currency symbol: Rs. */ - SriLankanRupee = `144`, + /** * Serbian dinar * @@ -252,16 +309,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Serbia * @description Currency symbol: DIN */ + SerbianDinar = `941`, - /** - * Swiss franc - * - * @description Numeric code: 756 - * @description Alphabetic code: CHF - * @description Countries and territories: Switzerland, Liechtenstein (LI) - * @description Currency symbol: ₣ - */ - SwissFranc = `756`, /** * Saudi Riyal * @@ -270,16 +319,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Saudi Arabia * @description Currency symbol: SR */ + SaudiRiyal = `682`, - /** - * Tajikistani somoni - * - * @description Numeric code: 972 - * @description Alphabetic code: TJS - * @description Countries and territories: Tajikistan - * @description Currency symbol: SM - */ - TajikistaniSomoni = `972`, /** * Mongolian tugrik * @@ -288,16 +329,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Mongolia * @description Currency symbol: ₮ */ + MongolianTugrik = `496`, - /** - * Kazakhstani tenge - * - * @description Numeric code: 398 - * @description Alphabetic code: KZT - * @description Countries and territories: Kazakhstan - * @description Currency symbol: ₸ - */ - Tenge = `398`, /** * South African rand * @@ -306,16 +339,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: South Africa * @description Currency symbol: R */ + SouthAfricanRand = `710`, - /** - * Turkish lira - * - * @description Numeric code: 949 - * @description Alphabetic code: TRY - * @description Countries and territories: Turkey - * @description Currency symbol: ₺ - */ - TurkishLira = `949`, /** * Iranian rial * @@ -324,16 +349,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Iran * @description Currency symbol: IR */ + IranianRial = `364`, - /** - * Uzbek sum - * - * @description Numeric code: 860 - * @description Alphabetic code: UZS - * @description Countries and territories: Uzbekistan - * @description Currency symbol: So'm - */ - UzbekSum = `860`, /** * Indonesian rupiah * @@ -342,8 +359,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Indonesia * @description Currency symbol: Rp */ + IndonesianRupiah = `360`, - VietnameseDong = `704`, /** * Vietnamese dong * @@ -352,16 +369,8 @@ export enum TuiCurrencyCode { * @description Countries and territories: Vietnam * @description Currency symbol: đ */ + VietnameseDong = `704`, - /** - * South Korean won - * - * @description Numeric code: 410 - * @description Alphabetic code: KRW - * @description Countries and territories: South Korea - * @description Currency symbol: ₩ - */ - Won = `410`, /** * New Turkmen manat * @@ -370,23 +379,15 @@ export enum TuiCurrencyCode { * @description Countries and territories: Turkmenistan * @description Currency symbol: TMT */ + NewTurkmenManat = `934`, /** - * Japanese yen - * - * @description Numeric code: 392 - * @description Alphabetic code: JPY - * @description Countries and territories: Japan - * @description Currency symbol: ¥ - */ - Yen = `392`, - /** - * Chinese yuan + * Brazilian Real * - * @description Numeric code: 156 - * @description Alphabetic code: CNY - * @description Countries and territories: China - * @description Currency symbol: CN¥ + * @description Numeric code: 986 + * @description Alphabetic code: BRL + * @description Countries and territories: Brazilia + * @description Currency symbol: R$ */ - YuanRenminbi = `156`, + BrazilianReal = `986`, }