shiprocket_api 0.4.3 → 0.4.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b03ee9034588c44b804bb772fcc9a69c596264a54d897c6fa0e726f349318d7
|
|
4
|
+
data.tar.gz: e73bca24913df4676e3386c661f8d9b8c416d829cf99fa768e403396d95cceb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b730d322c4da4c099f8cf27534fd26a69f2061ff4cc1b7cb3005385894607e0e6e7ab0e73cf1731bc751229e66e70948b2cf0519ca3e3118afb16eabc578efae
|
|
7
|
+
data.tar.gz: 7b368aeb68edbb2ba261ca4b9076167f096a047be692220592a6b933a876ff1281c5cad9decb4cd1a819468e80f7c1afd13d087836ada928629eea17119e34a8
|
data/Gemfile.lock
CHANGED
|
@@ -65,6 +65,8 @@ module ShiprocketAPI
|
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
def generate_awb(courier_id:)
|
|
68
|
+
return false unless attributes["shipment_id"] && shipment_id != 0
|
|
69
|
+
|
|
68
70
|
self.awb = Awb.new(
|
|
69
71
|
shipment_id: shipment_id,
|
|
70
72
|
courier_id: courier_id,
|
|
@@ -74,18 +76,16 @@ module ShiprocketAPI
|
|
|
74
76
|
end
|
|
75
77
|
|
|
76
78
|
def generate_label
|
|
77
|
-
return false unless
|
|
79
|
+
return false unless attributes["shipment_id"] && shipment_id != 0
|
|
78
80
|
|
|
79
81
|
self.label = ::ShiprocketAPI::Label.new(shipment_id: [shipment_id])
|
|
80
82
|
self.label.save
|
|
81
83
|
end
|
|
82
84
|
|
|
83
|
-
def create_pickup
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
is_return: 1
|
|
88
|
-
)
|
|
85
|
+
def create_pickup
|
|
86
|
+
return false unless attributes["shipment_id"] && shipment_id != 0
|
|
87
|
+
|
|
88
|
+
self.pickup = ::ShiprocketAPI::Pickup.new(shipment_id: [shipment_id])
|
|
89
89
|
self.pickup.save
|
|
90
90
|
end
|
|
91
91
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shiprocket_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Chong
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-02-
|
|
11
|
+
date: 2021-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activeresource
|