newgistics 2.2.0 → 2.3.0
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/lib/newgistics.rb +2 -0
- data/lib/newgistics/package.rb +13 -0
- data/lib/newgistics/package_item.rb +12 -0
- data/lib/newgistics/shipment.rb +1 -0
- data/lib/newgistics/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c0335cf92de05483074262a2aa46718a9b233cd
|
4
|
+
data.tar.gz: 338ae379bbc0bad06091476890e6a8a80562f986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2e93ae697d6d3625c6f5f562e6502d1c18f78e65fd5045419bc2686acee06440ee3e7bd3f9870669e4173c0af98bd336e1a4de48a97d4b2c7c384f4c98584dc
|
7
|
+
data.tar.gz: 7c369439d2f000e045e38a683783490b7edf9d60f44134ed758fbae2d9a2a44a684f0b903b9954926ce16aa9029b32cc5b7b6e4a98955a749632ddb676f64e84
|
data/lib/newgistics.rb
CHANGED
@@ -15,6 +15,8 @@ require "newgistics/model"
|
|
15
15
|
require "newgistics/customer"
|
16
16
|
require "newgistics/item"
|
17
17
|
require "newgistics/order"
|
18
|
+
require "newgistics/package_item"
|
19
|
+
require "newgistics/package"
|
18
20
|
require "newgistics/product"
|
19
21
|
require "newgistics/return"
|
20
22
|
require "newgistics/inbound_return"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Newgistics
|
2
|
+
class Package
|
3
|
+
include Newgistics::Model
|
4
|
+
|
5
|
+
attribute :tracking_number, String
|
6
|
+
attribute :weight, Float
|
7
|
+
attribute :billable_weight, Float
|
8
|
+
attribute :height, Float
|
9
|
+
attribute :width, Float
|
10
|
+
attribute :depth, Float
|
11
|
+
attribute :items, Array[PackageItem]
|
12
|
+
end
|
13
|
+
end
|
data/lib/newgistics/shipment.rb
CHANGED
data/lib/newgistics/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newgistics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Martinez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: virtus
|
@@ -216,6 +216,8 @@ files:
|
|
216
216
|
- lib/newgistics/manifest_slip.rb
|
217
217
|
- lib/newgistics/model.rb
|
218
218
|
- lib/newgistics/order.rb
|
219
|
+
- lib/newgistics/package.rb
|
220
|
+
- lib/newgistics/package_item.rb
|
219
221
|
- lib/newgistics/product.rb
|
220
222
|
- lib/newgistics/query.rb
|
221
223
|
- lib/newgistics/requests/cancel_manifest.rb
|