From 021682832c951d290bc8643bc3db00410b9fb69a Mon Sep 17 00:00:00 2001 From: thomascurry Date: Mon, 7 Jan 2019 14:25:35 +0000 Subject: [PATCH] add january 2019 rates file --- .../binders/DateBinder.scala | 2 +- .../controllers/ExchangeRateController.scala | 2 +- .../models/ConversionRatePeriod.scala | 2 +- .../models/ExchangeRateResult.scala | 2 +- .../repositories/ExchangeRateRepository.scala | 2 +- .../services/ExchangeRateService.scala | 2 +- .../utils/ExchangeRateParsing.scala | 2 +- conf/application.conf | 2 +- conf/resources/xml/exrates-monthly-0119.xml | 1172 +++++++++++++++++ .../binders/BinderSpec.scala | 2 +- .../ExchangeRateControllerSpec.scala | 2 +- .../utils/ExchangeRateParsingSpec.scala | 2 +- 12 files changed, 1183 insertions(+), 11 deletions(-) create mode 100644 conf/resources/xml/exrates-monthly-0119.xml diff --git a/app/uk/gov/hmrc/currencyconversion/binders/DateBinder.scala b/app/uk/gov/hmrc/currencyconversion/binders/DateBinder.scala index 7cd3bb2..35dac88 100644 --- a/app/uk/gov/hmrc/currencyconversion/binders/DateBinder.scala +++ b/app/uk/gov/hmrc/currencyconversion/binders/DateBinder.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/app/uk/gov/hmrc/currencyconversion/controllers/ExchangeRateController.scala b/app/uk/gov/hmrc/currencyconversion/controllers/ExchangeRateController.scala index 890ae19..0728a97 100644 --- a/app/uk/gov/hmrc/currencyconversion/controllers/ExchangeRateController.scala +++ b/app/uk/gov/hmrc/currencyconversion/controllers/ExchangeRateController.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/app/uk/gov/hmrc/currencyconversion/models/ConversionRatePeriod.scala b/app/uk/gov/hmrc/currencyconversion/models/ConversionRatePeriod.scala index 487667c..01c276e 100644 --- a/app/uk/gov/hmrc/currencyconversion/models/ConversionRatePeriod.scala +++ b/app/uk/gov/hmrc/currencyconversion/models/ConversionRatePeriod.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/app/uk/gov/hmrc/currencyconversion/models/ExchangeRateResult.scala b/app/uk/gov/hmrc/currencyconversion/models/ExchangeRateResult.scala index 32423c7..dd88856 100644 --- a/app/uk/gov/hmrc/currencyconversion/models/ExchangeRateResult.scala +++ b/app/uk/gov/hmrc/currencyconversion/models/ExchangeRateResult.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/app/uk/gov/hmrc/currencyconversion/repositories/ExchangeRateRepository.scala b/app/uk/gov/hmrc/currencyconversion/repositories/ExchangeRateRepository.scala index 7acf5b3..b60c2af 100644 --- a/app/uk/gov/hmrc/currencyconversion/repositories/ExchangeRateRepository.scala +++ b/app/uk/gov/hmrc/currencyconversion/repositories/ExchangeRateRepository.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/app/uk/gov/hmrc/currencyconversion/services/ExchangeRateService.scala b/app/uk/gov/hmrc/currencyconversion/services/ExchangeRateService.scala index d2705fc..8abf463 100644 --- a/app/uk/gov/hmrc/currencyconversion/services/ExchangeRateService.scala +++ b/app/uk/gov/hmrc/currencyconversion/services/ExchangeRateService.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/app/uk/gov/hmrc/currencyconversion/utils/ExchangeRateParsing.scala b/app/uk/gov/hmrc/currencyconversion/utils/ExchangeRateParsing.scala index 03f2210..e2a317c 100644 --- a/app/uk/gov/hmrc/currencyconversion/utils/ExchangeRateParsing.scala +++ b/app/uk/gov/hmrc/currencyconversion/utils/ExchangeRateParsing.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/conf/application.conf b/conf/application.conf index efc3656..50b91bb 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -1,4 +1,4 @@ -# Copyright 2018 HM Revenue & Customs +# Copyright 2019 HM Revenue & Customs # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/conf/resources/xml/exrates-monthly-0119.xml b/conf/resources/xml/exrates-monthly-0119.xml new file mode 100644 index 0000000..2d53eeb --- /dev/null +++ b/conf/resources/xml/exrates-monthly-0119.xml @@ -0,0 +1,1172 @@ + + + + Argentina + AR + Peso + ARS + 48.39 + + + Australia + AU + Dollar + AUD + 1.7617 + + + Brazil + BR + Real + BRL + 4.8927 + + + Canada + CA + Dollar + CAD + 1.6965 + + + Denmark + DK + Krone + DKK + 8.2659 + + + Hong Kong + HK + Dollar + HKD + 9.895 + + + India + IN + Rupee + INR + 89.01 + + + Israel + IL + Shekel + ILS + 4.7471 + + + Japan + JP + Yen + JPY + 141.96 + + + Malaysia + MY + Ringgit + MYR + 5.2835 + + + Mexico + MX + Mexican Peso + MXN + 25.31 + + + New Zealand + NZ + Dollar + NZD + 1.845 + + + Norway + NO + Norwegian Krone + NOK + 10.97 + + + Philippines + PH + Peso + PHP + 67.09 + + + Saudi Arabia + SA + Riyal + SAR + 4.744 + + + Singapore + SG + Dollar + SGD + 1.7309 + + + South Africa + ZA + Rand + ZAR + 17.9 + + + South Korea + KR + Won + KRW + 1420.44 + + + Sweden + SE + Krona + SEK + 11.46 + + + Switzerland + CH + Franc + CHF + 1.2551 + + + Taiwan + TW + Dollar + TWD + 38.95 + + + Thailand + TH + Baht + THB + 41.34 + + + USA + US + Dollar + USD + 1.2643 + + + Eurozone + EU + Euro + EUR + 1.1069 + + + Abu Dhabi + DH + Dirham + AED + 4.644 + + + Albania + AL + Lek + ALL + 136.03 + + + Algeria + DZ + Dinar + DZD + 149.82 + + + Angola + AO + Readj Kwanza + AOA + 389.84 + + + Antigua + AG + E Caribbean Dollar + XCD + 3.4136 + + + Armenia + AM + Dram + AMD + 612.61 + + + Aruba + AA + Florin + AWG + 2.2631 + + + Azerbaijan + AZ + New Manat + AZN + 2.1449 + + + Bahamas + BS + Dollar + BSD + 1.2643 + + + Bahrain + BH + Dinar + BHD + 0.4766 + + + Bangladesh + BD + Taka + BDT + 106.2 + + + Barbados + BB + Dollar + BBD + 2.5286 + + + Belarus + BY + Rouble + BYN + 2.698 + + + Belize + BZ + Dollar + BZD + 2.527 + + + Benin + BJ + CFA Franc + XOF + 726.07 + + + Bermuda + BM + Dollar (US) + BMD + 1.2643 + + + Bhutan + BT + Ngultrum + BTN + 89.01 + + + Bolivia + BO + Boliviano + BOB + 8.7363 + + + Bosnia- Herzegovinia + BA + Marka + BAM + 2.1649 + + + Botswana + BW + Pula + BWP + 13.45 + + + Brunei + BN + Dollar + BND + 1.7309 + + + Bulgaria + BG + Lev + BGN + 2.1649 + + + Burkina Faso + BK + CFA Franc + XOF + 726.07 + + + Burundi + BI + Franc + BIF + 2303.47 + + + Cambodia + KH + Riel + KHR + 5087.42 + + + Cameroon Republic + CM + CFA Franc + XAF + 726.07 + + + Cape Verde Islands + CV + Escudo + CVE + 122.27 + + + Cayman Islands + KY + Dollar + KYD + 1.0367 + + + Central African Republic + CF + CFA Franc + XAF + 726.07 + + + Chad + TD + CFA Franc + XAF + 726.07 + + + Chile + CL + Peso + CLP + 869.65 + + + China + CN + Yuan + CNY + 8.718 + + + Colombia + CO + Peso + COP + 4066.94 + + + Comoros + KM + Franc + KMF + 544.55 + + + Congo (Brazaville) + CG + CFA Franc + XAF + 726.07 + + + Congo (DemRep) + ZR + Congo Fr + CDF + 2055.75 + + + Costa Rica + CR + Colon + CRC + 756.47 + + + Cote d'Ivoire + CI + CFA Franc + XOF + 726.07 + + + Croatia + HR + Kuna + HRK + 8.2137 + + + Cuba + CU + Peso + CUP + 1.2643 + + + Czech Republic + CZ + Koruna + CZK + 28.5 + + + Djibouti + DJ + Franc + DJF + 224.69 + + + Dominica + DM + E Caribbean Dollar + XCD + 3.4136 + + + Dominican Republic + DO + Peso + DOP + 63.77 + + + Dubai + DU + Dirham + AED + 4.644 + + + Ecuador + EC + Dollar + ECS + 1.2643 + + + Egypt + EG + Pound + EGP + 22.64 + + + El Salvador + SV + Colon + SVC + 11.06 + + + Equatorial Guinea + GQ + CFA Franc + XAF + 726.07 + + + Eritrea + ER + Nakfa + ERN + 18.96 + + + Ethiopia + ET + Birr + ETB + 35.54 + + + Fiji Islands + FJ + Dollar + FJD + 2.6938 + + + Fr. Polynesia + PF + CFP Franc + XPF + 132.08 + + + Gabon + GA + CFA Franc + XAF + 726.07 + + + Gambia + GM + Dalasi + GMD + 62.48 + + + Georgia + GE + Lari + GEL + 3.363 + + + Ghana + GH + Cedi + GHS + 6.2077 + + + Grenada + GD + E Caribbean Dollar + XCD + 3.4136 + + + Guatemala + GT + Quetzal + GTQ + 9.792 + + + Guinea Bissau + GW + CFA Franc + XOF + 726.07 + + + Guinea Republic + GN + Franc + GNF + 11503.89 + + + Guyana + GY + Dollar + GYD + 264.23 + + + Haiti + HT + Gourde + HTG + 96.83 + + + Honduras + HN + Lempira + HNL + 30.76 + + + Hungary + HU + Forint + HUF + 356.9 + + + Iceland + IS + Krona + ISK + 153.42 + + + Indonesia + ID + Rupiah + IDR + 18259.7 + + + Iraq + IQ + Dinar + IQD + 1505.78 + + + Jamaica + JM + Dollar + JMD + 162.28 + + + Jordan + JO + Dinar + JOD + 0.8971 + + + Kazakhstan + KZ + Tenge + KZT + 469.37 + + + Kenya + KE + Schilling + KES + 128.83 + + + Kuwait + KW + Dinar + KWD + 0.3846 + + + Kyrgyz Republic + KG + Som + KGS + 88.28 + + + Lao People's Dem Rep + LA + Kip + LAK + 10809.78 + + + Lebanon + LB + Pound + LBP + 1904.67 + + + Lesotho + LS + Loti + LSL + 17.9 + + + Liberia + LR + Dollar (US) + LRD + 1.2643 + + + Libya + LY + Dinar + LYD + 1.7671 + + + Macao + MO + Pataca + MOP + 10.19 + + + Macedonia + MK + Denar + MKD + 68.18 + + + Madagascar + MG + Malagasy Ariary + MGA + 4478.79 + + + Malawi + MW + Kwacha + MWK + 925.89 + + + Maldive Islands + MV + Rufiyaa + MVR + 19.53 + + + Mali Republic + ML + CFA Franc + XOF + 726.07 + + + Mauritania + MR + Ouguiya + MRO + 451.73 + + + Mauritius + MU + Rupee + MUR + 43.36 + + + Moldova + MD + Leu + MDL + 21.8 + + + Mongolia + MN + Tugrik + MNT + 3339.02 + + + Montserrat + MS + E Caribbean Dollar + XCD + 3.4136 + + + Morocco + MA + Dirham + MAD + 12.05 + + + Mozambique + MZ + Metical + MZN + 77.84 + + + Myanmar + MM + Kyat + MMK + 1989.12 + + + Nepal + NP + Rupee + NPR + 142.42 + + + New Caledonia + NC + CFP Franc + XPF + 132.08 + + + Nicaragua + NI + Gold Cordoba + NIO + 40.81 + + + Niger Republic + NE + CFA Franc + XOF + 726.07 + + + Nigeria + NG + Naira + NGN + 458.94 + + + Oman + OM + Rial + OMR + 0.4868 + + + Pakistan + PK + Rupee + PKR + 175.57 + + + Panama + PA + Balboa + PAB + 1.2643 + + + Papua New Guinea + PG + Kina + PGK + 4.2604 + + + Paraguay + PY + Guarani + PYG + 7515.16 + + + Peru + PE + New Sol + PEN + 4.2323 + + + Poland + PL + Zloty + PLN + 4.7397 + + + Qatar + QA + Riyal + QAR + 4.6036 + + + Romania + RO + New Leu + RON + 5.1589 + + + Russia + RU + Rouble + RUB + 85.28 + + + Rwanda + RW + Franc + RWF + 1128.3 + + + Saotome & Principe + ST + Dobra + STD + 27119.3 + + + Senegal + SN + CFA Franc + XOF + 726.07 + + + Serbia + XS + Dinar + RSD + 130.89 + + + Seychelles + SC + Rupee + SCR + 17.51 + + + Sierra Leone + SL + Leone + SLL + 10809.79 + + + Soloman Islands + SB + Dollar + SBD + 10.04 + + + Somali Republic + SO + Schilling + SOS + 733.29 + + + Sri Lanka + LK + Rupee + LKR + 228.01 + + + St Christopher & Anguilla + KN + E Caribbean Dollar + XCD + 3.4136 + + + St Lucia + LC + E Caribbean Dollar + XCD + 3.4136 + + + St Vincent + VC + E Caribbean Dollar + XCD + 3.4136 + + + Sudan Republic + SD + Pound + SDG + 60.21 + + + Surinam + SR + Dollar + SRD + 9.4292 + + + Swaziland + SZ + Lilangeni + SZL + 17.9 + + + Tanzania + TZ + Schilling + TZS + 2907.89 + + + Togo Republic + TG + CFA Franc + XOF + 726.07 + + + Tonga Islands + TO + Pa'anga (AUS) + TOP + 1.7617 + + + Trinidad/Tobago + TT + Dollar + TTD + 8.5339 + + + Tunisia + TN + Dinar + TND + 3.7604 + + + Turkey + TR + Turkish Lira + TRY + 6.6678 + + + Turkmenistan + TM + New Manat + TMT + 4.4377 + + + UAE + AE + Dirham + AED + 4.644 + + + Uganda + UG + Schilling + UGX + 4671.59 + + + Ukraine + UA + Hryvnia + UAH + 34.91 + + + Uruguay + UY + Peso + UYU + 40.7 + + + Uzbekistan + UZ + Sum + UZS + 10526.07 + + + Vanuatu + VU + Vatu + VUV + 143.69 + + + Venezuela + VE + Bolivar Fuerte + VEF + 314736.93 + + + Vietnam + VN + Dong + VND + 29468.36 + + + Wallis & Futuna Islands + WF + CFP Franc + XPF + 132.08 + + + Western Samoa + WS + Tala + WST + 3.2737 + + + Yemen (Rep of) + YE + Rial + YER + 316.25 + + + Zambia + ZM + Kwacha + ZMW + 15.1 + + + Zimbabwe + ZW + Dollar + ZWL + 457.55 + + diff --git a/test/uk/gov/hmrc/currencyconversion/binders/BinderSpec.scala b/test/uk/gov/hmrc/currencyconversion/binders/BinderSpec.scala index 57f7cb6..43e0270 100644 --- a/test/uk/gov/hmrc/currencyconversion/binders/BinderSpec.scala +++ b/test/uk/gov/hmrc/currencyconversion/binders/BinderSpec.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/uk/gov/hmrc/currencyconversion/controllers/ExchangeRateControllerSpec.scala b/test/uk/gov/hmrc/currencyconversion/controllers/ExchangeRateControllerSpec.scala index 165d5da..7cec920 100644 --- a/test/uk/gov/hmrc/currencyconversion/controllers/ExchangeRateControllerSpec.scala +++ b/test/uk/gov/hmrc/currencyconversion/controllers/ExchangeRateControllerSpec.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/uk/gov/hmrc/currencyconversion/utils/ExchangeRateParsingSpec.scala b/test/uk/gov/hmrc/currencyconversion/utils/ExchangeRateParsingSpec.scala index 955c2d0..5952031 100644 --- a/test/uk/gov/hmrc/currencyconversion/utils/ExchangeRateParsingSpec.scala +++ b/test/uk/gov/hmrc/currencyconversion/utils/ExchangeRateParsingSpec.scala @@ -1,5 +1,5 @@ /* - * Copyright 2018 HM Revenue & Customs + * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.