lib/shippinglogic/fedex/enumerations.rb in binarylogic-shippinglogic-1.0.4 vs lib/shippinglogic/fedex/enumerations.rb in binarylogic-shippinglogic-1.0.5

- old
+ new

@@ -263,11 +263,11 @@ RAILS_COUNTRY_CODES = { "United States" => "US" } - STATE_CODES = { + US_STATE_CODES = { "Alabama" => "AL", "Alaska" => "AK", "America Samoa" => "AS", "Arizona" => "AZ", "Arkansas" => "AR", @@ -323,8 +323,26 @@ "Washington" => "WA", "West Virginia" => "WV", "Wisconsin" => "WI", "Wyoming" => "WY", } + + CANADA_STATE_CODES = { + "Alberta" => "AB", + "British Columbia" => "BC", + "Manitoba" => "MB", + "New Brunswick" => "NB", + "Newfoundland and Labrador" => "NL", + "Nova Scotia" => "NS", + "Northwest Territories" => "NT", + "Nunavut" => "NU", + "Ontario" => "ON", + "Prince Edward Island" => "PE", + "Quebec" => "QC", + "Saskatchewan" => "SK", + "Yukon" => "YT" + } + + STATE_CODES = US_STATE_CODES.merge(CANADA_STATE_CODES) end end end \ No newline at end of file