colissimo_label 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/colissimo_label/generate_label.rb +2 -2
- data/lib/colissimo_label/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a6695bec2480207d3e9479703468a8252941b2598944ac67b105330f9c7366a
|
4
|
+
data.tar.gz: e28880586b4cef27762d685a8774d800cc8e1b85f07ca4ec2f07532b7a5c3dd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2dde7499384b99d861bdf13dd98909fdbb3385e0412bbfab0241096eabd070cbc9eb33d786c4c6e5793ab36bfe3b9433ae4eb74612421871823cee9448aa12d
|
7
|
+
data.tar.gz: 03dadf09a8be60b8c7da502d1da1363d5bc1aae17ecad0aede37e2d0bc573d7fc069296770f3b01b2e6655d2284588cb38837ffa91badd95c2e0a3975cac86bc
|
data/CHANGELOG.md
CHANGED
@@ -50,7 +50,7 @@ class ColissimoLabel::GenerateLabel
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
if status == 400
|
53
|
+
if status == 400 || status == 500
|
54
54
|
error_message = response.body.to_s.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '').scan(/"messageContent":"(.*?)"/).last&.first
|
55
55
|
raise StandardError, error_message
|
56
56
|
elsif status == 503
|
@@ -90,7 +90,7 @@ class ColissimoLabel::GenerateLabel
|
|
90
90
|
"parcel": {
|
91
91
|
"weight": format_weight,
|
92
92
|
"pickupLocationId": @pickup_id,
|
93
|
-
"insuranceValue": @insurance_value
|
93
|
+
# "insuranceValue": @insurance_value
|
94
94
|
}.compact,
|
95
95
|
"sender": {
|
96
96
|
"address": format_sender
|