lib/shippinglogic/fedex/request.rb in binarylogic-shippinglogic-1.0.2 vs lib/shippinglogic/fedex/request.rb in binarylogic-shippinglogic-1.0.3
- old
+ new
@@ -90,14 +90,10 @@
def custom_packaging?
packaging_type == "YOUR_PACKAGING"
end
def country_code(value)
- if Enumerations::COUNTRY_CODES.key?(value.to_s)
- Enumerations::COUNTRY_CODES[value.to_s]
- else
- value.to_s
- end
+ Enumerations::FEDEX_COUNTRY_CODES[value.to_s] || Enumerations::RAILS_COUNTRY_CODES[value.to_s] || value.to_s
end
end
end
end
\ No newline at end of file