dji 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dji/dhl/shipment.rb +4 -2
- data/lib/dji/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc6c9f103a62941a3fc1d6f1ab95a7bbaf13979c
|
4
|
+
data.tar.gz: be663f0e3cafa81200858c895a5aec049c2547a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24eea0e1504234ab514f0b02ed1d1676c5867fcbdfd8b39be80a9003ffdd3312d0f4e58067d5723b9f7063b8365468211b72cc8aa3f435df2f4c0808297d53af
|
7
|
+
data.tar.gz: e02d5b66e27e6ef28ff3387760eeeffad4782973c7cdf390944ab365f130756ca05f41abb641e407e011311ad68218ca4be94c61dbdad8dad2db3c4312330c3c
|
data/lib/dji/dhl/shipment.rb
CHANGED
@@ -35,8 +35,10 @@ module DJI
|
|
35
35
|
puts item.inspect
|
36
36
|
shipment = Shipment.new
|
37
37
|
shipment.waybill = item['id']
|
38
|
-
|
39
|
-
|
38
|
+
if item['delivery'].present?
|
39
|
+
shipment.delivery_code = item['delivery']['code']
|
40
|
+
shipment.delivery_status = item['delivery']['status']
|
41
|
+
end
|
40
42
|
shipment.destination = item['destination']['value']
|
41
43
|
shipment.origin = item['origin']['value']
|
42
44
|
shipment.estimated_delivery_date = Date.parse(item['edd']['date'])
|
data/lib/dji/version.rb
CHANGED