[general]
data_dir=data

[service_codes_to_ups_names_in_zone_file]
GNDRES=Ground
GNDCOM=Ground
3DS=3DaySelect
2DA=2ndDayAir
2DA_AM=2ndDayAirAM
1DA_SAV=NextDayAirSaver
1DA=NextDayAir
XDM=ExpressPlusSM
XPR=ExpressSM
XPD=ExpeditedSM

# The UPS Standard zone files only have one column, it is named Zone.

UPSSTD=Zone

# Note: Ground will switch to gndcomm automatically if to_residential is set. 
[ups_names_in_zone_file_to_table_map]
Ground=gndres
3DaySelect=a_3dscomm
2ndDayAir=a_2da
2ndDayAirAM=a_2dam
NextDayAirSaver=a_1dasaver
NextDayAir=a_1da
1dacwt=a_1dacwt
1dasavercwt=a_1dasavercwt
2dacwt=a_2dacwt
2damcwt=a_2damcwt
3dscwt=a_3dscwt
ExpressSM=ww_xpr
ExpressPlusSM=ww_xpr
ExpeditedSM=ww_xpd
ExpressSM_WC=ww_xpr
ExpressSM_EC=ww_xpr
ExpeditedSM_WC=ww_xpd
ExpeditedSM_EC=ww_xpd
Zone=canstnd

[ups_names_in_zone_file_to_table_map_exceptions]
Canada=<<EOF
Express	can_xpr
ExpressSM	can_xpr
ExpressPlusSM	can_xpr
ExpeditedSM	can_xpd
Expedited	can_xpd
EOF


[Table_UPS_NextDayAir]
file=NextDayAir
eol=nl

[DL_UPS_Ground]
UPS_Ground_Commercial=http://www.ups.com/media/us/currentrates/rate-csv/gndcomm.csv
UPS_Ground_Hundredweight_Commercial=http://www.ups.com/media/us/currentrates/rate-csv/gndcwt.csv
#UPS_Ground_Residential
#UPS_Ground_Hundredweight_Residential

#
# This will tell you the zip codes that need an additional $1.70 surcharge 
# added, since they are in a domestic area.
# Applies to Air and Ground, but not Hundredweight shipments.
#
# TODO: HOW TO FIND THE CURRENT SURCHARGE!?!
# http://www.ups.com/content/us/en/fuel_surcharge.html
#
#
# *All* Domestic rate charts:
# http://www.ups.com/media/us/currentrates/rate-csv/usrates.zip
#
#
# Domestic_Delivery_Area_Surcharge=http://www.ups.com/media/us/currentrates/rate-csv/xarea.csv
#
# If you are located *in* Alaska, or Hawaii, then you will need special tables.
#
#Alaska -- 48 State Ground -- Commercial
#Alaska -- 48 State Ground -- Residential
#Intra-Alaska Ground -- Commercial
#Intra-Alaska Ground -- Residential

[ups_information]
# Surcharge as of Sept 6, 2004.
fuel_surcharge=8.50%

express_plus_adder=40.00
always_calc_zone_data=0

us_origin_rates_url=http://www.ups.com/media/us/currentrates/rate-csv
us_origin_zones_url=http://www.ups.com/media/us/currentrates/zone-csv
us_origin_rates_filenames=<<EOF
	usrates.zip
	canrates.zip
	wwrates.zip
EOF
us_origin_zones_filenames=<<EOF
	uszones.zip
	canzones.zip
	wwzones.zip
EOF
csv_files_skip_regexes=<<EOF
	akz_48.csv
	akz_48g.csv
	akz_air.csv
	akz_akg.csv
	akz_hi.csv
	hiz_48pr.csv
	hiz_ak.csv
	hiz_hi.csv
	canww.csv
	alabama.csv
	arizona.csv
	arkansas.csv
	cal.csv
	colorado.csv
	conn.csv
	delaware.csv
	d_of_c.csv
	florida.csv
	georgia.csv
	idaho.csv
	illinois.csv
	indiana.csv
	iowa.csv
	kansas.csv
	kentucky.csv
	louisian.csv
	maine.csv
	maryland.csv
	mass.csv
	michigan.csv
	minn.csv
	missouri.csv
	montana.csv
	nebraska.csv
	nevada.csv
	n_hamp.csv
	n_jer.csv
	n_mex.csv
	new_york.csv
	n_car.csv
	n_dak.csv
	ohio.csv
	oklahoma.csv
	oregon.csv
	penn.csv
	r_isl.csv
	s_car.csv
	s_dak.csv
	utah.csv
	wash.csv
	tenn.csv
	texas.csv
	vermont.csv
	virginia.csv
	wvir.csv
	wis.csv
	wyoming.csv
	miss.csv
	wweas.csv
EOF


	#
	# International Export Accessorials
	#
	#wwaccs.csv
	
	#
	# Canada Export Accessorials
	#
	#canaccs.csv
	
	#
	# U.S. Accessorials
	#
	#accessorials.csv
	
	#
	# Domestic Areas Table
	#
	#xarea.csv
	
	#
	# Hundred weight services not supported at this time.
	#
	#1dacwt.csv
	#1dasavercwt.csv
	#2dacwt.csv
	#2damcwt.csv
	#3dscwt.csv
	#gndcwt.csv

cannot_convert=<<EOF
	wwaccs.csv
	canaccs.csv
	accessorials.csv
	xarea.csv
	1dacwt.csv
	1dasavercwt.csv
	2dacwt.csv
	2damcwt.csv
	3dscwt.csv
	gndcwt.csv
EOF

#
# Zone 124 for Next Day Air and 2nd Day Air
#
hi_special_zipcodes_124_224=96701,96706,96707,96709,96712,96717,96730,96731,96734,96744,96759,96762,96782,96786,96789,96791,96792,96795,96797,96801,96802,96803,96804,96805,96806,96807,96808,96809,96810,96811,96812,96813,96814,96815,96816,96817,96818,96819,96820,96821,96822,96823,96824,96825,96826,96827,96828,96830,96835,96836,96837,96838,96839,96840,96841,96842,96843,96844,96845,96846,96847,96848,96849,96850,96853,96854,96857,96858,96859,96860,96861,96862,96863,96898
hi_special_zipcodes_126_226=96703,96704,96705,96708,96710,96713,96714,96715,96716,96718,96719,96720,96721,96722,96725,96726,96727,96728,96729,96732,96733,96737,96738,96739,96740,96741,96742,96743,96745,96746,96747,96748,96749,96750,96751,96752,96753,96754,96755,96756,96757,96760,96761,96763,96764,96765,96766,96767,96768,96769,96770,96771,96772,96773,96774,96775,96776,96777,96778,96779,96780,96781,96783,96784,96785,96788,96790,96793,96796
ak_special_zipcodes_124_224=99501,99502,99503,99504,99505,99506,99507,99508,99509,99510,99511,99512,99513,99514,99515,99516,99517,99518,99519,99520,99521,99522,99523,99524,99540,99556,99567,99568,99572,99577,99587,99603,99605,99610,99611,99631,99635,99639,99645,99654,99664,99669,99672,99687,99701,99702,99703,99705,99706,99707,99708,99709,99710,99711,99712,99775
ak_special_zipcodes_126_226=99547,99548,99549,99550,99551,99552,99553,99554,99555,99557,99558,99559,99561,99563,99564,99565,99566,99569,99571,99573,99574,99575,99576,99578,99579,99580,99581,99583,99584,99585,99586,99588,99589,99590,99591,99602,99604,99606,99607,99608,99609,99612,99613,99614,99615,99619,99620,99621,99622,99624,99625,99626,99627,99628,99630,99632,99633,99634,99636,99637,99638,99640,99641,99643,99644,99647,99648,99649,99650,99651,99652,99653,99655,99656,99657,99658,99659,99660,99661,99662,99663,99665,99666,99667,99668,99670,99671,99674,99675,99676,99677,99678,99679,99680,99681,99682,99683,99684,99685,99686,99688,99689,99690,99691,99692,99693,99694,99695,99697,99704,99714,99716,99720,99721,99722,99723,99724,99725,99726,99727,99729,99730,99732,99733,99734,99736,99737,99738,99739,99740,99741,99742,99743,99744,99745,99746,99747,99748,99749,99750,99751,99752,99753,99754,99755,99756,99757,99758,99759,99760,99761,99762,99763,99764,99765,99766,99767,99768,99769,99770,99771,99772,99773,99774,99776,99777,99778,99779,99780,99781,99782,99783,99784,99785,99786,99788,99789,99790,99791,99801,99802,99803,99811,99820,99821,99824,99825,99826,99827,99829,99830,99832,99833,99835,99836,99840,99841,99850,99901,99903,99918,99919,99921,99922,99923,99925,99926,99927,99928,99929,99950

west_coast_states = <<EOF
	AK
	AZ
	AR
	CA
	CO
	HI
	ID
	KS
	LA
	MN
	MS
	MT
	NE
	NV
	NM
	ND
	OK
	OR
	SD
	TX
	UT
	WA
	WY
EOF

east_coast_states = <<EOF
	AL
	CT
	DE
	DC
	FL
	GA
	IL
	IN
	IA
	KY
	ME
	MD
	MA
	MI
	MO
	NH
	NJ
	NY
	NC
	OH
	PA
	RI
	SC
	TN
	VT
	VA
	WV
	WI
EOF

abbrev_to_state = <<EOF
AK	Alaska
AL	Alabama
AR	Arkansas
AZ	Arizona
CA	California
CO	Colorado
CT	Connecticut
DC	District of Columbia
DE	Delaware
FL	Florida
GA	Georgia
HI	Hawaii
IA	Iowa
ID	Idaho
IL	Illinois
IN	Indiana
KS	Kansas
KY	Kentucky
LA	Louisiana
MA	Massachusetts
MD	Maryland
ME	Maine
MI	Michigan
MN	Minnesota
MO	Missouri
MP	Marianas
MS	Mississippi
MT	Montana
NC	North Carolina
ND	North Dakota
NE	Nebraska
NH	New Hampshire
NJ	New Jersey
NM	New Mexico
NV	Nevada
NY	New York
OH	Ohio
OK	Oklahoma
OR	Oregon
PA	Pennsylvania
RI	Rhode Island
SC	South Carolina
SD	South Dakota
TN	Tennessee
TX	Texas
UT	Utah
VA	Virginia
VT	Vermont
WA	Washington
WI	Wisconsin
WV	West Virginia
WY	Wyoming
AS	American Samoa
MH	Marshall Islands
VI	Virgin Islands
PW	Palau
PR	Puerto Rico
AA	Military Americas
AE	Military Europe/ME/Canada
AP	Military Pacific
FM	Micronesia
GU	Guam
EOF

state_to_abbrev = <<EOF
Alaska	AK
Alabama	AL
Arkansas	AR
American Samoa	AS
Arizona	AZ
California	CA
Colorado	CO
Connecticut	CT
D.C.	DC
Delaware	DE
Florida	FL
Micronesia	FM
Georgia	GA
Guam	GU
Hawaii	HI
Iowa	IA
Idaho	ID
Illinois	IL
Indiana	IN
Kansas	KS
Kentucky	KY
Louisiana	LA
Massachusetts	MA
Maryland	MD
Maine	ME
Marshall Islands	MH
Michigan	MI
Minnesota	MN
Missouri	MO
Marianas	MP
Mississippi	MS
Montana	MT
North Carolina	NC
North Dakota	ND
Nebraska	NE
New Hampshire	NH
New Jersey	NJ
New Mexico	NM
Nevada	NV
New York	NY
Ohio	OH
Oklahoma	OK
Oregon	OR
Pennsylvania	PA
Puerto Rico	PR
Palau	PW
Rhode Island	RI
South Carolina	SC
South Dakota	SD
Tennessee	TN
Texas	TX
Utah	UT
Virginia	VA
Virgin Islands	VI
Vermont	VT
Washington	WA
Wisconsin	WI
West Virginia	WV
Wyoming	WY
Military Americas	AA
Military Europe/ME/Canada	AE
Military Pacific	AP
EOF

abbrev_to_country=<<EOF
AL	Albania
AS	American Samoa
AD	Andorra
AI	Anguilla
AG	Antigua and Barbuda
AR	Argentina
AM	Armenia
AW	Aruba
AU	Australia
AT	Austria
AZ	Azerbaijan
AP	Azores
BS	Bahamas
BH	Bahrain
BD	Bangladesh
BB	Barbados
BY	Belarus
BE	Belgium
BZ	Belize
BM	Bermuda
BT	Bhutan
BO	Bolivia
XB	Bosnia-Herzegovina
BW	Botswana
BV	Bouvet Island
BR	Brazil
VG	British Virgin Islands
BN	Brunei Darussalam
BG	Bulgaria
KH	Cambodia
CM	Cameroon
CA	Canada
CV	Cape Verde
KY	Cayman Islands
CL	Chile
CN	China
CO	Colombia
KM	Comoros
CK	Cook Islands
CR	Costa Rica
HR	Croatia
CY	Cyprus
CZ	Czech Republic
DK	Denmark
DM	Dominica
DO	Dominican Republic
EC	Ecuador
EG	Egypt
SV	El Salvador
GQ	Equatorial Guinea
EE	Estonia
FO	Faroe Islands
FJ	Fiji
FI	Finland
FR	France
FX	France
GF	French Guiana
PF	French Polynesia
TA	French Polynesia (Tahiti)
GE	Georgia
DE	Germany
GI	Gibraltar
GR	Greece
GL	Greenland
GD	Grenada
GP	Guadeloupe
GU	Guam
GT	Guatemala
GY	Guyana
HK	Hong Kong
HU	Hungary
IS	Iceland
IN	India
IE	Ireland
IL	Israel
IT	Italy
JM	Jamaica
JP	Japan
JO	Jordan
KZ	Kazakhstan
KE	Kenya
KI	Kiribati
KW	Kuwait
KG	Kyrgyzstan
LA	Laos
LV	Latvia
LI	Liechtenstein
LT	Lithuania
LU	Luxembourg
MO	Macao
MK	Macedonia
MG	Madagascar
MY	Malaysia
MV	Maldives
ML	Mali
MT	Malta
MH	Marshall Islands
MQ	Martinique
MR	Mauritania
MU	Mauritius
MX	Mexico
FM	Micronesia, Federated States Of
MD	Moldova, Republic Of
MN	Mongolia
MS	Montserrat
MA	Morocco
MM	Myanmar (Burma)
NR	Nauru
NP	Nepal
NL	Netherlands (Holland)
AN	Netherlands Antilles
NC	New Caledonia
NZ	New Zealand
NO	Norway
OM	Oman
PK	Pakistan
PW	Palau
PA	Panama
PG	Papua New Guinea
PY	Paraguay
PE	Peru
PH	Philippines
PN	Pitcairn
PL	Poland
PT	Portugal
PR	Puerto Rico
QA	Qatar
RO	Romania
RU	Russia
SM	San Marino
SA	Saudi Arabia
XS	Serbia-Montenegro
SC	Seychelles
SL	Sierra Leone
SG	Singapore
SK	Slovak Republic
SI	Slovenia
SB	Solomon Islands
ZA	South Africa
KR	South Korea
ES	Spain
LK	Sri Lanka
NV	St. Christopher and Nevis
SH	St. Helena
LC	St. Lucia
PM	St. Pierre and Miquelon
VC	St. Vincent and the Grenadines
SR	Suriname
SE	Sweden
CH	Switzerland
TW	Taiwan
TJ	Tajikistan
TZ	Tanzania
TH	Thailand
TO	Tonga
TT	Trinidad and Tobago
XU	Tristan da Cunha
TN	Tunisia
TR	Turkey
TM	Turkmenistan
TC	Turks and Caicos Islands
TV	Tuvalu
UA	Ukraine
AE	United Arab Emirates
UK	United Kingdom
GB	United Kingdom
US	United States
UY	Uruguay
UZ	Uzbekistan
VU	Vanuatu
XV	Vatican City
VE	Venezuela
VN	Vietnam
VI	Virgin Islands (U.S.)
WF	Wallis and Furuna Islands
WS	Western Samoa
YE	Yemen
EOF

country_to_abbrev=<<EOF
Albania	AL
American Samoa	AS
Andorra	AD
Anguilla	AI
Antigua and Barbuda	AG
Argentina	AR
Armenia	AM
Aruba	AW
Australia	AU
Austria	AT
Azerbaijan	AZ
Azores	AP
Bahamas	BS
Bahrain	BH
Bangladesh	BD
Barbados	BB
Belarus	BY
Belgium	BE
Belize	BZ
Bermuda	BM
Bhutan	BT
Bolivia	BO
Bosnia-Herzegovina	XB
Botswana	BW
Bouvet Island	BV
Brazil	BR
British Virgin Islands	VG
Brunei Darussalam	BN
Bulgaria	BG
Cambodia	KH
Cameroon	CM
Canada	CA
Cape Verde	CV
Cayman Islands	KY
Chile	CL
China	CN
Colombia	CO
Comoros	KM
Cook Islands	CK
Costa Rica	CR
Croatia	HR
Cyprus	CY
Czech Republic	CZ
Denmark	DK
Dominica	DM
Dominican Republic	DO
Ecuador	EC
Egypt	EG
El Salvador	SV
Equatorial Guinea	GQ
Estonia	EE
Faroe Islands	FO
Fiji	FJ
Finland	FI
France	FR
France, Metropolitan	FX
French Guiana	GF
French Polynesia	PF
French Polynesia (Tahiti)	TA
Georgia	GE
Germany	DE
Gibraltar	GI
Greece	GR
Greenland	GL
Grenada	GD
Guadeloupe	GP
Guam	GU
Guatemala	GT
Guyana	GY
Hong Kong	HK
Hungary	HU
Iceland	IS
India	IN
Ireland	IE
Israel	IL
Italy	IT
Jamaica	JM
Japan	JP
Jordan	JO
Kazakhstan	KZ
Kenya	KE
Kiribati	KI
Kuwait	KW
Kyrgyzstan	KG
Laos	LA
Latvia	LV
Liechtenstein	LI
Lithuania	LT
Luxembourg	LU
Macao	MO
Macedonia	MK
Madagascar	MG
Malaysia	MY
Maldives	MV
Mali	ML
Malta	MT
Marshall Islands	MH
Martinique	MQ
Mauritania	MR
Mauritius	MU
Mexico	MX
Micronesia, Federated States Of	FM
Moldova, Republic Of	MD
Mongolia	MN
Montserrat	MS
Morocco	MA
Myanmar (Burma)	MM
Nauru	NR
Nepal	NP
Netherlands	NL
Netherlands Antilles	AN
New Caledonia	NC
New Zealand	NZ
Norway	NO
Oman	OM
Pakistan	PK
Palau	PW
Panama	PA
Papua New Guinea	PG
Paraguay	PY
Peru	PE
Philippines	PH
Pitcairn	PN
Poland	PL
Portugal	PT
Puerto Rico	PR
Qatar	QA
Romania	RO
Russia	RU
San Marino	SM
Saudi Arabia	SA
Serbia-Montenegro	XS
Seychelles	SC
Sierra Leone	SL
Singapore	SG
Slovak Republic	SK
Slovenia	SI
Solomon Islands	SB
South Africa	ZA
South Korea	KR
Spain	ES
Sri Lanka	LK
St. Christopher and Nevis	NV
St. Helena	SH
St. Lucia	LC
St. Pierre and Miquelon	PM
St. Vincent and the Grenadines	VC
Suriname	SR
Sweden	SE
Switzerland	CH
Taiwan	TW
Tajikistan	TJ
Tanzania	TZ
Thailand	TH
Tonga	TO
Trinidad and Tobago	TT
Tristan da Cunha	XU
Tunisia	TN
Turkey	TR
Turkmenistan	TM
Turks and Caicos Islands	TC
Tuvalu	TV
Ukraine	UA
United Arab Emirates	AE
United Kingdom	UK
Great Britain	GB
United States	US
Uruguay	UY
Uzbekistan	UZ
Vanuatu	VU
Vatican City	XV
Venezuela	VE
Vietnam	VN
Virgin Islands (U.S.)	VI
Wallis and Furuna Islands	WF
Western Samoa	WS
Yemen	YE
EOF

online_ups_country_to_abbrev=<<EOF
United Kingdom	GB
EOF

state_to_upsstd_zone_file=<<EOF
AL	alabama.csv
AZ	arizona.csv
AK	arkansas.csv
CA	cal.csv
CO	colorado.csv
CT	conn.csv
DC	d_of_c.csv
DE	delaware.csv
FL	florida.csv
GA	georgia.csv
ID	idaho.csv
IL	illinois.csv
IN	indiana.csv
IA	iowa.csv
KS	kansas.csv
KY	kentucky.csv
LA	louisian.csv
ME	maine.csv
MD	maryland.csv
MA	mass.csv
MI	michigan.csv
MN	minn.csv
MS	miss.csv
MO	missouri.csv
MT	montana.csv
NC	n_car.csv
ND	n_dak.csv
NH	n_hamp.csv
NJ	n_jer.csv
NM	n_mex.csv
NE	nebraska.csv
NV	nevada.csv
NY	new_york.csv
OH	ohio.csv
OK	oklahoma.csv
OR	oregon.csv
PA	penn.csv
RI	r_isl.csv
SC	s_car.csv
SD	s_dak.csv
TN	tenn.csv
TX	texas.csv
UT	utah.csv
VT	vermont.csv
VA	virginia.csv
WA	wash.csv
WI	wis.csv
WV	wvir.csv
WY	wyoming.csv
EOF

[invalid_rate_requests]

#Offline::UPS cannot estimate Express Plus to Canada, because
#not all zip codes are supported.  -- What about Online::UPS?
#
# Any UPS shipment originating in Canada must use UPS Standard or UPS
# Worldwide method.

invalid_rate_requests_ups=<<EOF
service=XDM	to_country=Australia
service=XDM	to_country=Canada	reason=Express Plus to Canada not supported, because UPS requires that you call them to find out if a given zip code you are shipping to is supported.
service=GNDRES	from_country=Canada
service=GNDCOM	from_country=Canada
service=1DA	from_country=Canada
service=2DA	from_country=Canada
service=3DS	from_country=Canada
service=XDM	to_country=Brazil
service=XDM	to_country=South Africa
service=XDM	to_country=Malaysia
service=XDM	to_country=Israel
service=XPD	to_country=Israel
service=XPD	to_country=Cyprus
service=XPD	to_country=United Arab Emirates
service=XPD	to_country=Saudi Arabia
service=XPD	to_country=St. Lucia
service=XPD	to_country=Jordan
service=XPD	to_country=Israel
service=GNDRES	to_country=!United States	reason=UPS Ground Residential cannot be used to ship to Canada.  Try UPS Standard (UPSSTD), WorldWide Expedited (XPD), or another international service.
service=XPR	to_country=United States        reason=WorldWide Express not available for domestic shipping.
EOF

[usps_information]

usps_country_name_translations=<<EOF
American Samoa	US Possession
Bosnia And Herzegovina	Bosnia-Herzegovina
Bosnia And Herzegowina	Bosnia-Herzegovina
Cocos (Keeling) Islands	Australia
Cook Islands	New Zealand
Corsica	France
Cote d` Ivoire (Ivory Coast)	Cote d lvoire (Ivory Coast)
East Timor	Indonesia
Falkland Islands (Malvinas)	Falkland Islands
France (Includes Monaco)	France
France, Metropolitan	France
French Polynesia (Tahiti)	French Polynesia
Georgia	Georgia, Republic of
Great Britain	Great Britain and Northern Ireland
Holy See (Vatican City State)	Vatican City
Ireland (Eire)	Ireland
Macedonia	Macedonia, Republic of
Madeira Islands	Portugal
Marshall Islands	US Possession
Mayotte	France
Micronesia, Federated States Of	US Possession
Moldova, Republic Of	Moldova
Monaco	France
Niue	New Zealand
Norfolk Island	Australia
Northern Mariana Islands	US Possession
Palau	US Possession
Pitcairn	Pitcairn Island
Puerto Rico	US Possession
Russian Federation	Russia
Saint Kitts And Nevis	St. Christopher and Nevis
South Georgia And The South Sand	Falkland Islands
South Korea	Korea, Republic of (South Korea)
Tahiti	French Polynesia
Tokelau	Western Samoa
United Kingdom	Great Britain and Northern Ireland
Virgin Islands (U.S.)	US Possession
Wallis and Furuna Islands	Wallis and Futuna Islands
Yugoslavia	Serbia-Montenegro
Zaire	Congo, Democratic Republic of the
EOF
