lib/smartsend/shipment.rb in smartsend-ruby-0.5.0 vs lib/smartsend/shipment.rb in smartsend-ruby-0.5.1

- old
+ new

@@ -26,10 +26,10 @@ @success = true @labels_url = response.dig('data', 'pdf', 'link') response['data']['parcels'].each do |parcel_response| parcel = parcels.find do |item| - item.internal_id == parcel_response['parcel_internal_id'] + item.internal_id.to_s == parcel_response['parcel_internal_id'].to_s end parcel&.label_url = parcel_response.dig('pdf', 'link') parcel&.tracking_code = parcel_response['tracking_code'] parcel&.tracking_link = parcel_response['tracking_link']