lib/fedex/request/address.rb in fedex-3.1.0 vs lib/fedex/request/address.rb in fedex-3.3.0

- old
+ new

@@ -65,11 +65,14 @@ } end def add_address_to_validate(xml) xml.AddressesToValidate{ + xml.CompanyName @address[:company] unless @address[:company].nil? or @address[:company].empty? xml.Address{ - xml.StreetLines @address[:street] + Array(@address[:street]).take(2).each do |address_line| + xml.StreetLines address_line + end xml.City @address[:city] xml.StateOrProvinceCode @address[:state] xml.PostalCode @address[:postal_code] xml.CountryCode @address[:country] }