unforlogistics-api 0.10 → 0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/unforlogistics/core/shipments.rb +5 -5
- 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: 0f7c016ab826994f4acce3bfb8bbf1898a5c8ac1
|
|
4
|
+
data.tar.gz: 8c8394ac4e9318a536a5def99f58df367788f318
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 578ca391924e64c19afb8013fda76d599347e9bed6c22dee7c846a884757b6ac1a54d6a923803a2cf2da3ec6e2a82bf4ee0f942d80c889a276684aef1012b095
|
|
7
|
+
data.tar.gz: 90bd3175a52a8fd0e7d206fe97b181b96a4b8f89eb7eadefc0fef503abdc785b4614f3237af1c6abb33e2c781c3a7e2c2f9c21ebf73b9723be58d2f4caa3b13c
|
data/CHANGELOG.md
CHANGED
|
@@ -2,29 +2,29 @@ module Unforlogistics
|
|
|
2
2
|
module Core
|
|
3
3
|
module Shipments
|
|
4
4
|
def get_shipments(filters={})
|
|
5
|
-
response =
|
|
5
|
+
response = get_request('/shipments', filters)
|
|
6
6
|
|
|
7
7
|
get_paging_response(response)
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def get_shipment(code)
|
|
11
|
-
|
|
11
|
+
get_request("/shipments/#{code}").body
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def create_shipment(attrs={})
|
|
15
|
-
response =
|
|
15
|
+
response = post_request('/shipments', attrs)
|
|
16
16
|
|
|
17
17
|
get_persistance_response(response)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def cancel_shipment(code)
|
|
21
|
-
response =
|
|
21
|
+
response = put_request("/shipments/#{code}/cancellation")
|
|
22
22
|
|
|
23
23
|
get_persistance_response(response)
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def quote_shipment(attrs={})
|
|
27
|
-
response =
|
|
27
|
+
response = post_request('/shipments/quote', attrs)
|
|
28
28
|
|
|
29
29
|
if response.headers.warning.nil?
|
|
30
30
|
errors = []
|