SyncMadeEasy/force-app/main/default/classes/CountryCode.cls

543 lines
31 KiB
OpenEdge ABL
Raw 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.

public class CountryCode {
public static Map<String,String> mapForInputCountry ;
public static map<string,string> mapForCountryConverting;
public static String getCountryCode(String countryToSearch){
countryToSearch = countryToSearch.toLowerCase();
if(mapForInputCountry.containsKey(countryToSearch)){
if(mapForCountryConverting.containsKey(mapForInputCountry.get(countryToSearch))){
system.debug('55555'+mapForCountryConverting.get(mapForInputCountry.get(countryToSearch)));
return mapForCountryConverting.get(mapForInputCountry.get(countryToSearch));
}
}
return null;
}
@TestVisible
private static void loadCountryCode(){
mapForCountryConverting = new map <string,string>();
mapForInputCountry = new map <string,string>();
mapForInputCountry.put('bolivia','Bolivia (Plurinational State of)');
mapForInputCountry.put('bosnia/herzegovina','Bosnia and Herzegovina');
mapForInputCountry.put('brasil','Brazil');
mapForInputCountry.put('china','People\'s Republic of China');
mapForInputCountry.put('china, peoples republic of','People\'s Republic of China');
mapForInputCountry.put('cote d&#039;ivoire','Côte d\'Ivoire');
mapForInputCountry.put('côte d’ivoire','Côte d\'Ivoire');
mapForInputCountry.put('hong kong s.a.r., china','Hong Kong');
mapForInputCountry.put('iran','Iran (Islamic Republic of)');
mapForInputCountry.put('iran, islamic republic of','Iran (Islamic Republic of)');
mapForInputCountry.put('kazakstan','Kazakhstan');
mapForInputCountry.put('korea','Korea (Republic of)');
mapForInputCountry.put('korea, republic of','Korea (Republic of)');
mapForInputCountry.put('korea, south','Korea (Republic of)');
mapForInputCountry.put('lao people&#039;s democratic republic','Lao People\'s Democratic Republic');
mapForInputCountry.put('laos','Lao People\'s Democratic Republic');
mapForInputCountry.put('libyan arab jamahiriya','Libya');
mapForInputCountry.put('macau','Macao');
mapForInputCountry.put('macedonia','Macedonia (the former Yugoslav Republic of)');
mapForInputCountry.put('moldova','Moldova (Republic of)');
mapForInputCountry.put('moldova, republic of','Moldova (Republic of)');
mapForInputCountry.put('netherlands antilles','Netherlands');
mapForInputCountry.put('p.r. china','People\'s Republic of China');
mapForInputCountry.put('palestinian territory','Palestine, State of');
mapForInputCountry.put('p.r.china','People\'s Republic of China');
mapForInputCountry.put('pr china','People\'s Republic of China');
mapForInputCountry.put('prc china','People\'s Republic of China');
mapForInputCountry.put('republic of korea','Korea (Republic of)');
mapForInputCountry.put('republic of south korea','Korea (Republic of)');
mapForInputCountry.put('roc','Taiwan, Province of China[a]');
mapForInputCountry.put('russia','Russian Federation');
mapForInputCountry.put('slovakia (slovak republic)','Slovakia');
mapForInputCountry.put('south korea','Korea (Republic of)');
mapForInputCountry.put('syria','Syrian Arab Republic');
mapForInputCountry.put('taiwan roc','Taiwan, Province of China[a]');
mapForInputCountry.put('taiwan','Taiwan, Province of China[a]');
mapForInputCountry.put('tanzania','Tanzania, United Republic of');
mapForInputCountry.put('the netherlands','Netherlands');
mapForInputCountry.put('u.s.','United States of America');
mapForInputCountry.put('u.s.a.','United States of America');
mapForInputCountry.put('uk','United Kingdom of Great Britain and Northern Ireland');
mapForInputCountry.put('united kingdom','United Kingdom of Great Britain and Northern Ireland');
mapForInputCountry.put('united states','United States of America');
mapForInputCountry.put('us','United States of America');
mapForInputCountry.put('usa','United States of America');
mapForInputCountry.put('venezuela','Venezuela (Bolivarian Republic of)');
mapForInputCountry.put('vietnam','Viet Nam');
mapForInputCountry.put('afghanistan','Afghanistan');
mapForInputCountry.put('åland islands','Åland Islands');
mapForInputCountry.put('albania','Albania');
mapForInputCountry.put('algeria','Algeria');
mapForInputCountry.put('american samoa','American Samoa');
mapForInputCountry.put('andorra','Andorra');
mapForInputCountry.put('angola','Angola');
mapForInputCountry.put('anguilla','Anguilla');
mapForInputCountry.put('antarctica','Antarctica');
mapForInputCountry.put('antigua and barbuda','Antigua and Barbuda');
mapForInputCountry.put('argentina','Argentina');
mapForInputCountry.put('armenia','Armenia');
mapForInputCountry.put('aruba','Aruba');
mapForInputCountry.put('australia','Australia');
mapForInputCountry.put('austria','Austria');
mapForInputCountry.put('azerbaijan','Azerbaijan');
mapForInputCountry.put('bahamas','Bahamas');
mapForInputCountry.put('bahrain','Bahrain');
mapForInputCountry.put('bangladesh','Bangladesh');
mapForInputCountry.put('barbados','Barbados');
mapForInputCountry.put('belarus','Belarus');
mapForInputCountry.put('belgium','Belgium');
mapForInputCountry.put('belize','Belize');
mapForInputCountry.put('benin','Benin');
mapForInputCountry.put('bermuda','Bermuda');
mapForInputCountry.put('bhutan','Bhutan');
mapForInputCountry.put('bonaire, Sint Eustatius and Saba','Bonaire, Sint Eustatius and Saba');
mapForInputCountry.put('botswana','Botswana');
mapForInputCountry.put('bouvet island','Bouvet Island');
mapForInputCountry.put('british indian ocean territory','British Indian Ocean Territory');
mapForInputCountry.put('brunei darussalam','Brunei Darussalam');
mapForInputCountry.put('bulgaria','Bulgaria');
mapForInputCountry.put('burkina faso','Burkina Faso');
mapForInputCountry.put('burundi','Burundi');
mapForInputCountry.put('cabo verde','Cabo Verde');
mapForInputCountry.put('cameroon','Cameroon');
mapForInputCountry.put('canada','Canada');
mapForInputCountry.put('cayman islands','Cayman Islands');
mapForInputCountry.put('central african republic','Central African Republic');
mapForInputCountry.put('chad','Chad');
mapForInputCountry.put('chile','Chile');
mapForInputCountry.put('christmas island','Christmas Island');
mapForInputCountry.put('cocos (keeling) islands','Cocos (Keeling) Islands');
mapForInputCountry.put('colombia','Colombia');
mapForInputCountry.put('comoros','Comoros');
mapForInputCountry.put('congo','Congo');
mapForInputCountry.put('congo (democratic republic of the)','Congo (Democratic Republic of the)');
mapForInputCountry.put('cook islands','Cook Islands');
mapForInputCountry.put('costa rica','Costa Rica');
mapForInputCountry.put('croatia','Croatia');
mapForInputCountry.put('cuba','Cuba');
mapForInputCountry.put('cyprus','Cyprus');
mapForInputCountry.put('czech republic','Czech Republic');
mapForInputCountry.put('denmark','Denmark');
mapForInputCountry.put('djibouti','Djibouti');
mapForInputCountry.put('dominica','Dominica');
mapForInputCountry.put('dominican republic','Dominican Republic');
mapForInputCountry.put('ecuador','Ecuador');
mapForInputCountry.put('egypt','Egypt');
mapForInputCountry.put('el salvador','El Salvador');
mapForInputCountry.put('equatorial guinea','Equatorial Guinea');
mapForInputCountry.put('eritrea','Eritrea');
mapForInputCountry.put('estonia','Estonia');
mapForInputCountry.put('ethiopia','Ethiopia');
mapForInputCountry.put('falkland islands (Malvinas)','Falkland Islands (Malvinas)');
mapForInputCountry.put('faroe islands','Faroe Islands');
mapForInputCountry.put('fiji','Fiji');
mapForInputCountry.put('finland','Finland');
mapForInputCountry.put('france','France');
mapForInputCountry.put('french guiana','French Guiana');
mapForInputCountry.put('french polynesia','French Polynesia');
mapForInputCountry.put('french southern territories','French Southern Territories');
mapForInputCountry.put('gabon','Gabon');
mapForInputCountry.put('gambia','Gambia');
mapForInputCountry.put('georgia','Georgia');
mapForInputCountry.put('germany','Germany');
mapForInputCountry.put('ghana','Ghana');
mapForInputCountry.put('gibraltar','Gibraltar');
mapForInputCountry.put('greece','Greece');
mapForInputCountry.put('greenland','Greenland');
mapForInputCountry.put('grenada','Grenada');
mapForInputCountry.put('guadeloupe','Guadeloupe');
mapForInputCountry.put('guam','Guam');
mapForInputCountry.put('guatemala','Guatemala');
mapForInputCountry.put('guernsey','Guernsey');
mapForInputCountry.put('guinea','Guinea');
mapForInputCountry.put('guinea-Bissau','Guinea-Bissau');
mapForInputCountry.put('guyana','Guyana');
mapForInputCountry.put('haiti','Haiti');
mapForInputCountry.put('heard island and mcdonald islands','Heard Island and McDonald Islands');
mapForInputCountry.put('holy See','Holy See');
mapForInputCountry.put('honduras','Honduras');
mapForInputCountry.put('hungary','Hungary');
mapForInputCountry.put('iceland','Iceland');
mapForInputCountry.put('india','India');
mapForInputCountry.put('indonesia','Indonesia');
mapForInputCountry.put('iraq','Iraq');
mapForInputCountry.put('ireland','Ireland');
mapForInputCountry.put('isle of man','Isle of Man');
mapForInputCountry.put('israel','Israel');
mapForInputCountry.put('italy','Italy');
mapForInputCountry.put('jamaica','Jamaica');
mapForInputCountry.put('japan','Japan');
mapForInputCountry.put('jersey','Jersey');
mapForInputCountry.put('jordan','Jordan');
mapForInputCountry.put('kenya','Kenya');
mapForInputCountry.put('kiribati','Kiribati');
mapForInputCountry.put('kuwait','Kuwait');
mapForInputCountry.put('korea (democratic people\'s republic of)','Korea (Democratic People\'s Republic of)');
mapForInputCountry.put('zimbabwe','Zimbabwe');
mapForInputCountry.put('zambia','Zambia');
mapForInputCountry.put('yemen','Yemen');
mapForInputCountry.put('western sahara','Western Sahara');
mapForInputCountry.put('wallis and futuna','Wallis and Futuna');
mapForInputCountry.put('virgin islands (u.s.)','Virgin Islands (U.S.)');
mapForInputCountry.put('virgin islands (british)','Virgin Islands (British)');
mapForInputCountry.put('vanuatu','Vanuatu');
mapForInputCountry.put('uzbekistan','Uzbekistan');
mapForInputCountry.put('uruguay','Uruguay');
mapForInputCountry.put('united states minor outlying islands','United States Minor Outlying Islands');
mapForInputCountry.put('united arab emirates','United Arab Emirates');
mapForInputCountry.put('ukraine','Ukraine');
mapForInputCountry.put('uganda','Uganda');
mapForInputCountry.put('tuvalu','Tuvalu');
mapForInputCountry.put('turks and caicos islands','Turks and Caicos Islands');
mapForInputCountry.put('turkmenistan','Turkmenistan');
mapForInputCountry.put('turkey','Turkey');
mapForInputCountry.put('tunisia','Tunisia');
mapForInputCountry.put('trinidad and tobago','Trinidad and Tobago');
mapForInputCountry.put('tonga','Tonga');
mapForInputCountry.put('tokelau','Tokelau');
mapForInputCountry.put('togo','Togo');
mapForInputCountry.put('timor-leste','Timor-Leste');
mapForInputCountry.put('thailand','Thailand');
mapForInputCountry.put('tajikistan','Tajikistan');
mapForInputCountry.put('switzerland','Switzerland');
mapForInputCountry.put('sweden','Sweden');
mapForInputCountry.put('swaziland','Swaziland');
mapForInputCountry.put('svalbard and jan mayen','Svalbard and Jan Mayen');
mapForInputCountry.put('suriname','Suriname');
mapForInputCountry.put('sudan','Sudan');
mapForInputCountry.put('sri Lanka','Sri Lanka');
mapForInputCountry.put('spain','Spain');
mapForInputCountry.put('south sudan','South Sudan');
mapForInputCountry.put('south georgia and the south sandwich islands','South Georgia and the South Sandwich Islands');
mapForInputCountry.put('south africa','South Africa');
mapForInputCountry.put('somalia','Somalia');
mapForInputCountry.put('solomon islands','Solomon Islands');
mapForInputCountry.put('slovenia','Slovenia');
mapForInputCountry.put('sint Maarten (dutch part)','Sint Maarten (Dutch part)');
mapForInputCountry.put('singapore','Singapore');
mapForInputCountry.put('sierra leone','Sierra Leone');
mapForInputCountry.put('seychelles','Seychelles');
mapForInputCountry.put('serbia','Serbia');
mapForInputCountry.put('senegal','Senegal');
mapForInputCountry.put('saudi arabia','Saudi Arabia');
mapForInputCountry.put('sao tome and principe','Sao Tome and Principe');
mapForInputCountry.put('san marino','San Marino');
mapForInputCountry.put('samoa','Samoa');
mapForInputCountry.put('saint vincent and the grenadines','Saint Vincent and the Grenadines');
mapForInputCountry.put('saint pierre and miquelon','Saint Pierre and Miquelon');
mapForInputCountry.put('saint martin (french part)','Saint Martin (French part)');
mapForInputCountry.put('saint lucia','Saint Lucia');
mapForInputCountry.put('saint kitts and nevis','Saint Kitts and Nevis');
mapForInputCountry.put('saint helena, ascension and tristan da cunha','Saint Helena, Ascension and Tristan da Cunha');
mapForInputCountry.put('saint barthélemy','Saint Barthélemy');
mapForInputCountry.put('rwanda','Rwanda');
mapForInputCountry.put('romania','Romania');
mapForInputCountry.put('réunion','Réunion');
mapForInputCountry.put('qatar','Qatar');
mapForInputCountry.put('puerto rico','Puerto Rico');
mapForInputCountry.put('portugal','Portugal');
mapForInputCountry.put('poland','Poland');
mapForInputCountry.put('pitcairn','Pitcairn');
mapForInputCountry.put('philippines','Philippines');
mapForInputCountry.put('peru','Peru');
mapForInputCountry.put('paraguay','Paraguay');
mapForInputCountry.put('papua new guinea','Papua New Guinea');
mapForInputCountry.put('panama','Panama');
mapForInputCountry.put('palau','Palau');
mapForInputCountry.put('pakistan','Pakistan');
mapForInputCountry.put('oman','Oman');
mapForInputCountry.put('norway','Norway');
mapForInputCountry.put('northern mariana islands','Northern Mariana Islands');
mapForInputCountry.put('norfolk island','Norfolk Island');
mapForInputCountry.put('niue','Niue');
mapForInputCountry.put('nigeria','Nigeria');
mapForInputCountry.put('niger','Niger');
mapForInputCountry.put('nicaragua','Nicaragua');
mapForInputCountry.put('new Zealand','New Zealand');
mapForInputCountry.put('new caledonia','New Caledonia');
mapForInputCountry.put('nepal','Nepal');
mapForInputCountry.put('nauru','Nauru');
mapForInputCountry.put('namibia','Namibia');
mapForInputCountry.put('myanmar','Myanmar');
mapForInputCountry.put('mozambique','Mozambique');
mapForInputCountry.put('morocco','Morocco');
mapForInputCountry.put('montserrat','Montserrat');
mapForInputCountry.put('montenegro','Montenegro');
mapForInputCountry.put('mongolia','Mongolia');
mapForInputCountry.put('monaco','Monaco');
mapForInputCountry.put('micronesia (federated states of)','Micronesia (Federated States of)');
mapForInputCountry.put('mexico','Mexico');
mapForInputCountry.put('mayotte','Mayotte');
mapForInputCountry.put('mauritius','Mauritius');
mapForInputCountry.put('mauritania','Mauritania');
mapForInputCountry.put('martinique','Martinique');
mapForInputCountry.put('marshall islands','Marshall Islands');
mapForInputCountry.put('malta','Malta');
mapForInputCountry.put('mali','Mali');
mapForInputCountry.put('maldives','Maldives');
mapForInputCountry.put('malaysia','Malaysia');
mapForInputCountry.put('malawi','Malawi');
mapForInputCountry.put('madagascar','Madagascar');
mapForInputCountry.put('luxembourg','Luxembourg');
mapForInputCountry.put('lithuania','Lithuania');
mapForInputCountry.put('liechtenstein','Liechtenstein');
mapForInputCountry.put('liberia','Liberia');
mapForInputCountry.put('lesotho','Lesotho');
mapForInputCountry.put('lebanon','Lebanon');
mapForInputCountry.put('latvia','Latvia');
mapForInputCountry.put('kyrgyzstan','Kyrgyzstan');
mapForCountryConverting.put('Afghanistan','AF');
mapForCountryConverting.put('Åland Islands','AX');
mapForCountryConverting.put('Albania','AL');
mapForCountryConverting.put('Algeria','DZ');
mapForCountryConverting.put('American Samoa','AS');
mapForCountryConverting.put('Andorra','AD');
mapForCountryConverting.put('Angola','AO');
mapForCountryConverting.put('Anguilla','AI');
mapForCountryConverting.put('Antarctica','AQ');
mapForCountryConverting.put('Antigua and Barbuda','AG');
mapForCountryConverting.put('Argentina','AR');
mapForCountryConverting.put('Armenia','AM');
mapForCountryConverting.put('Aruba','AW');
mapForCountryConverting.put('Australia','AU');
mapForCountryConverting.put('Austria','AT');
mapForCountryConverting.put('Azerbaijan','AZ');
mapForCountryConverting.put('Bahamas','BS');
mapForCountryConverting.put('Bahrain','BH');
mapForCountryConverting.put('Bangladesh','BD');
mapForCountryConverting.put('Barbados','BB');
mapForCountryConverting.put('Belarus' , 'BY');
mapForCountryConverting.put('Belgium','BE');
mapForCountryConverting.put('Belize','BZ');
mapForCountryConverting.put('Benin','BJ');
mapForCountryConverting.put('Bermuda','BM');
mapForCountryConverting.put('Bhutan','BT');
mapForCountryConverting.put('Bolivia (Plurinational State of)','BO');
mapForCountryConverting.put('Bonaire, Sint Eustatius and Saba','BQ');
mapForCountryConverting.put('Bosnia and Herzegovina','BA');
mapForCountryConverting.put('Botswana','BW');
mapForCountryConverting.put('Bouvet Island','BV');
mapForCountryConverting.put('Brazil','BR');
mapForCountryConverting.put('British Indian Ocean Territory','IO');
mapForCountryConverting.put('Brunei Darussalam','BN');
mapForCountryConverting.put('Bulgaria','BG');
mapForCountryConverting.put('Burkina Faso','BF');
mapForCountryConverting.put('Burundi','BI');
mapForCountryConverting.put('Cabo Verde','CV');
mapForCountryConverting.put('Cambodia','KH');
mapForCountryConverting.put('Cameroon','CM');
mapForCountryConverting.put('Canada','CA');
mapForCountryConverting.put('Cayman Islands','KY');
mapForCountryConverting.put('Central African Republic','CF');
mapForCountryConverting.put('Chad','TD');
mapForCountryConverting.put('Chile','CL');
mapForCountryConverting.put('People\'s Republic of China','CN');
mapForCountryConverting.put('Christmas Island','CX');
mapForCountryConverting.put('Cocos (Keeling) Islands','CC');
mapForCountryConverting.put('Colombia','CO');
mapForCountryConverting.put('Comoros','KM');
mapForCountryConverting.put('Congo','CG');
mapForCountryConverting.put('Congo (Democratic Republic of the)','CD');
mapForCountryConverting.put('Cook Islands','CK');
mapForCountryConverting.put('Costa Rica','CR');
mapForCountryConverting.put('Côte d\'Ivoire','CI');
mapForCountryConverting.put('Croatia','HR');
mapForCountryConverting.put('Cuba','CU');
mapForCountryConverting.put('Curaçao','CW');
mapForCountryConverting.put('Cyprus','CY');
mapForCountryConverting.put('Czech Republic','CZ');
mapForCountryConverting.put('Denmark','DK');
mapForCountryConverting.put('Djibouti','DJ');
mapForCountryConverting.put('Dominica','DM');
mapForCountryConverting.put('Dominican Republic','DO');
mapForCountryConverting.put('Ecuador','EC');
mapForCountryConverting.put('Egypt','EG');
mapForCountryConverting.put('El Salvador','SV');
mapForCountryConverting.put('Equatorial Guinea','GQ');
mapForCountryConverting.put('Eritrea','ER');
mapForCountryConverting.put('Estonia','EE');
mapForCountryConverting.put('Ethiopia','ET');
mapForCountryConverting.put('Falkland Islands (Malvinas)','FK');
mapForCountryConverting.put('Faroe Islands','FO');
mapForCountryConverting.put('Fiji','FJ');
mapForCountryConverting.put('Finland','FI');
mapForCountryConverting.put('France','FR');
mapForCountryConverting.put('French Guiana','GF');
mapForCountryConverting.put('French Polynesia','PF');
mapForCountryConverting.put('French Southern Territories','TF');
mapForCountryConverting.put('Gabon','GA');
mapForCountryConverting.put('Gambia','GM');
mapForCountryConverting.put('Georgia','GE');
mapForCountryConverting.put('Germany','DE');
mapForCountryConverting.put('Ghana','GH');
mapForCountryConverting.put('Gibraltar','GI');
mapForCountryConverting.put('Greece','GR');
mapForCountryConverting.put('Greenland','GL');
mapForCountryConverting.put('Grenada','GD');
mapForCountryConverting.put('Guadeloupe','GP');
mapForCountryConverting.put('Guam','GU');
mapForCountryConverting.put('Guatemala','GT');
mapForCountryConverting.put('Guernsey','GG');
mapForCountryConverting.put('Guinea','GN');
mapForCountryConverting.put('Guinea-Bissau','GW');
mapForCountryConverting.put('Guyana','GY');
mapForCountryConverting.put('Haiti','HT');
mapForCountryConverting.put('Heard Island and McDonald Islands','HM');
mapForCountryConverting.put('Holy See','VA');
mapForCountryConverting.put('Honduras','HN');
mapForCountryConverting.put('Hong Kong','HK');
mapForCountryConverting.put('Hungary','HU');
mapForCountryConverting.put('Iceland','IS');
mapForCountryConverting.put('India','IN');
mapForCountryConverting.put('Indonesia','ID');
mapForCountryConverting.put('Iran (Islamic Republic of)','IR');
mapForCountryConverting.put('Iraq','IQ');
mapForCountryConverting.put('Ireland','IE');
mapForCountryConverting.put('Isle of Man','IM');
mapForCountryConverting.put('Israel','IL');
mapForCountryConverting.put('Italy','IT');
mapForCountryConverting.put('Jamaica','JM');
mapForCountryConverting.put('Japan','JP');
mapForCountryConverting.put('Jersey','JE');
mapForCountryConverting.put('Jordan','JO');
mapForCountryConverting.put('Kazakhstan','KZ');
mapForCountryConverting.put('Kenya','KE');
mapForCountryConverting.put('Kiribati','KI');
mapForCountryConverting.put('Korea (Democratic People\'s Republic of)','KP');
mapForCountryConverting.put('Korea (Republic of)','KR');
mapForCountryConverting.put('Kuwait','KW');
mapForCountryConverting.put('Kyrgyzstan','KG');
mapForCountryConverting.put('Lao People\'s Democratic Republic','LA');
mapForCountryConverting.put('Latvia','LV');
mapForCountryConverting.put('Lebanon','LB');
mapForCountryConverting.put('Lesotho','LS');
mapForCountryConverting.put('Liberia','LR');
mapForCountryConverting.put('Libya','LY');
mapForCountryConverting.put('Liechtenstein','LI');
mapForCountryConverting.put('Lithuania','LT');
mapForCountryConverting.put('Luxembourg','LU');
mapForCountryConverting.put('Macao','MO');
mapForCountryConverting.put('Macedonia (the former Yugoslav Republic of)','MK');
mapForCountryConverting.put('Madagascar','MG');
mapForCountryConverting.put('Malawi','MW');
mapForCountryConverting.put('Malaysia','MY');
mapForCountryConverting.put('Maldives','MV');
mapForCountryConverting.put('Mali','ML');
mapForCountryConverting.put('Malta','MT');
mapForCountryConverting.put('Marshall Islands','MH');
mapForCountryConverting.put('Martinique','MQ');
mapForCountryConverting.put('Mauritania','MR');
mapForCountryConverting.put('Mauritius','MU');
mapForCountryConverting.put('Mayotte','YT');
mapForCountryConverting.put('Mexico','MX');
mapForCountryConverting.put('Micronesia (Federated States of)','FM');
mapForCountryConverting.put('Moldova (Republic of)','MD');
mapForCountryConverting.put('Monaco','MC');
mapForCountryConverting.put('Mongolia','MN');
mapForCountryConverting.put('Montenegro','ME');
mapForCountryConverting.put('Montserrat','MS');
mapForCountryConverting.put('Morocco','MA');
mapForCountryConverting.put('Mozambique','MZ');
mapForCountryConverting.put('Myanmar','MM');
mapForCountryConverting.put('Namibia','NA');
mapForCountryConverting.put('Nauru','NR');
mapForCountryConverting.put('Nepal','NP');
mapForCountryConverting.put('Netherlands','NL');
mapForCountryConverting.put('New Caledonia','NC');
mapForCountryConverting.put('New Zealand','NZ');
mapForCountryConverting.put('Nicaragua','NI');
mapForCountryConverting.put('Niger','NE');
mapForCountryConverting.put('Nigeria','NG');
mapForCountryConverting.put('Niue','NU');
mapForCountryConverting.put('Norfolk Island','NF');
mapForCountryConverting.put('Northern Mariana Islands','MP');
mapForCountryConverting.put('Norway','NO');
mapForCountryConverting.put('Oman','OM');
mapForCountryConverting.put('Pakistan','PK');
mapForCountryConverting.put('Palau','PW');
mapForCountryConverting.put('Palestine, State of','PS');
mapForCountryConverting.put('Panama','PA');
mapForCountryConverting.put('Papua New Guinea','PG');
mapForCountryConverting.put('Paraguay','PY');
mapForCountryConverting.put('Peru','PE');
mapForCountryConverting.put('Philippines','PH');
mapForCountryConverting.put('Pitcairn','PN');
mapForCountryConverting.put('Poland','PL');
mapForCountryConverting.put('Portugal','PT');
mapForCountryConverting.put('Puerto Rico','PR');
mapForCountryConverting.put('Qatar','QA');
mapForCountryConverting.put('Réunion','RE');
mapForCountryConverting.put('Romania','RO');
mapForCountryConverting.put('Russian Federation','RU');
mapForCountryConverting.put('Rwanda','RW');
mapForCountryConverting.put('Saint Barthélemy','BL');
mapForCountryConverting.put('Saint Helena, Ascension and Tristan da Cunha','SH');
mapForCountryConverting.put('Saint Kitts and Nevis','KN');
mapForCountryConverting.put('Saint Lucia','LC');
mapForCountryConverting.put('Saint Martin (French part)','MF');
mapForCountryConverting.put('Saint Pierre and Miquelon','PM');
mapForCountryConverting.put('Saint Vincent and the Grenadines','VC');
mapForCountryConverting.put('Samoa','WS');
mapForCountryConverting.put('San Marino','SM');
mapForCountryConverting.put('Sao Tome and Principe','ST');
mapForCountryConverting.put('Saudi Arabia','SA');
mapForCountryConverting.put('Senegal','SN');
mapForCountryConverting.put('Serbia','RS');
mapForCountryConverting.put('Seychelles','SC');
mapForCountryConverting.put('Sierra Leone','SL');
mapForCountryConverting.put('Singapore','SG');
mapForCountryConverting.put('Sint Maarten (Dutch part)','SX');
mapForCountryConverting.put('Slovakia','SK');
mapForCountryConverting.put('Slovenia','SI');
mapForCountryConverting.put('Solomon Islands','SB');
mapForCountryConverting.put('Somalia','SO');
mapForCountryConverting.put('South Africa','ZA');
mapForCountryConverting.put('South Georgia and the South Sandwich Islands','GS');
mapForCountryConverting.put('South Sudan','SS');
mapForCountryConverting.put('Spain','ES');
mapForCountryConverting.put('Sri Lanka','LK');
mapForCountryConverting.put('Sudan','SD');
mapForCountryConverting.put('Suriname','SR');
mapForCountryConverting.put('Svalbard and Jan Mayen','SJ');
mapForCountryConverting.put('Swaziland','SZ');
mapForCountryConverting.put('Sweden','SE');
mapForCountryConverting.put('Switzerland','CH');
mapForCountryConverting.put('Syrian Arab Republic','SY');
mapForCountryConverting.put('Taiwan, Province of China[a]','TW');
mapForCountryConverting.put('Tajikistan','TJ');
mapForCountryConverting.put('Tanzania, United Republic of','TZ');
mapForCountryConverting.put('Thailand','TH');
mapForCountryConverting.put('Timor-Leste','TL');
mapForCountryConverting.put('Togo','TG');
mapForCountryConverting.put('Tokelau','TK');
mapForCountryConverting.put('Tonga','TO');
mapForCountryConverting.put('Trinidad and Tobago','TT');
mapForCountryConverting.put('Tunisia','TN');
mapForCountryConverting.put('Turkey','TR');
mapForCountryConverting.put('Turkmenistan','TM');
mapForCountryConverting.put('Turks and Caicos Islands','TC');
mapForCountryConverting.put('Tuvalu','TV');
mapForCountryConverting.put('Uganda','UG');
mapForCountryConverting.put('Ukraine','UA');
mapForCountryConverting.put('United Arab Emirates','AE');
mapForCountryConverting.put('United Kingdom of Great Britain and Northern Ireland','GB');
mapForCountryConverting.put('United States of America','US');
mapForCountryConverting.put('United States Minor Outlying Islands','UM');
mapForCountryConverting.put('Uruguay','UY');
mapForCountryConverting.put('Uzbekistan','UZ');
mapForCountryConverting.put('Vanuatu','VU');
mapForCountryConverting.put('Venezuela (Bolivarian Republic of)','VE');
mapForCountryConverting.put('Viet Nam','VN');
mapForCountryConverting.put('Virgin Islands (British)','VG');
mapForCountryConverting.put('Virgin Islands (U.S.)','VI');
mapForCountryConverting.put('Wallis and Futuna','WF');
mapForCountryConverting.put('Western Sahara','EH');
mapForCountryConverting.put('Yemen','YE');
mapForCountryConverting.put('Zambia','ZM');
mapForCountryConverting.put('Zimbabwe','ZW');
}
}