lib/active_shipping/carriers/ups.rb in active_shipping-1.13.0 vs lib/active_shipping/carriers/ups.rb in active_shipping-1.13.1
- old
+ new
@@ -1076,9 +1076,10 @@
def location_from_address_node(address)
return nil unless address
country = address.at('CountryCode').try(:text)
country = 'US' if country == 'ZZ' # Sometimes returned by SUREPOST in the US
+ country = 'XK' if country == 'KV' # ActiveUtils now refers to Kosovo by XK
Location.new(
:country => country,
:postal_code => address.at('PostalCode').try(:text),
:province => address.at('StateProvinceCode').try(:text),
:city => address.at('City').try(:text),