newgistics 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c78efd59e9969427e5667058ec67d2e3ef98b1d0
4
- data.tar.gz: 268b0649dff9364b4ddf08bbfe7928ab98cb2572
3
+ metadata.gz: 4c0335cf92de05483074262a2aa46718a9b233cd
4
+ data.tar.gz: 338ae379bbc0bad06091476890e6a8a80562f986
5
5
  SHA512:
6
- metadata.gz: c9dc722ef281ebd07358037462798faed5de755f7ccc9f1f20689eb688330369daf52ad87d981f687e92a29d03ec167ad4c45444a9882caed9b4cfa6a90efa7d
7
- data.tar.gz: c1b67f93b7311e980ac660b17db9928159ea6c5d72b6ffd46b9a57c233ce89d5818741991e609364617048231d354b91dc77ce11dec9e88c13c60a5a0b617ad8
6
+ metadata.gz: b2e93ae697d6d3625c6f5f562e6502d1c18f78e65fd5045419bc2686acee06440ee3e7bd3f9870669e4173c0af98bd336e1a4de48a97d4b2c7c384f4c98584dc
7
+ data.tar.gz: 7c369439d2f000e045e38a683783490b7edf9d60f44134ed758fbae2d9a2a44a684f0b903b9954926ce16aa9029b32cc5b7b6e4a98955a749632ddb676f64e84
@@ -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
@@ -0,0 +1,12 @@
1
+ module Newgistics
2
+ class PackageItem
3
+ include Newgistics::Model
4
+
5
+ attribute :sku, String
6
+ attribute :qty, Integer
7
+
8
+ def self.element_selector
9
+ 'Item'
10
+ end
11
+ end
12
+ end
@@ -35,6 +35,7 @@ module Newgistics
35
35
  attribute :weight, Float
36
36
  attribute :postage, Float
37
37
  attribute :fees, Array[Fee]
38
+ attribute :packages, Array[Package]
38
39
 
39
40
  def backordered?
40
41
  shipment_status == 'BACKORDER'
@@ -1,3 +1,3 @@
1
1
  module Newgistics
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
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.2.0
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: 2018-11-08 00:00:00.000000000 Z
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