postmen 1.0.2 → 1.0.3

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: 4dcf572cb04e3a9659c5b849b41857a82c4869cb
4
- data.tar.gz: fdea775c828c21e11ac77ba66fff02221dbd3b18
3
+ metadata.gz: dd3345c73725437b09257d74afd6ea1f3310cc58
4
+ data.tar.gz: 2f0065813ffb298f21f5a8ac6b45412b9a0318b1
5
5
  SHA512:
6
- metadata.gz: 31e2b5546945a3e68f27669629fe4f4de1a99e30924acaf0ddffd55ac841abbc0b548a312e84413217f5600a6c39688b471f3d399e48e5dd7b30a67b514660ec
7
- data.tar.gz: de98f2e8561a520d63f8cfb48f2f18e4645d2abd5aa137c167f6add3cd4e7e430d4dfac95cfb38223844f81f01d5f3a03874db39c1eb8d0b261e4ae73b92b004
6
+ metadata.gz: b2d029f23496a01e948d20a95107e2ae6490d979370584a3b1e730d486bdf92480046cb2c079e37be321082fd4a18c52992af20c12709b517d68be5e55ff1f70
7
+ data.tar.gz: cf12ab5121d8882c703bdd1235a4bb837db1a3dcc793210c8d5fdced982398f2fef19ebb1eb7e2255d121ab9acfd745e700aa7a13089302d1a28e794dcf717bc
data/lib/postmen/label.rb CHANGED
@@ -3,7 +3,7 @@ class Postmen
3
3
  #
4
4
  # @see https://docs.postmen.com/api.html#labels API documentation
5
5
  class Label < Dry::Struct
6
- attribute :id, Types::UUID
6
+ attribute :id, Types::Strict::Nil | Types::UUID
7
7
  attribute :status, Types::String
8
8
  attribute :tracking_numbers, Types::Array.member(Types::String)
9
9
  attribute :files, Types::Strict::Nil | Types::Array.member(Types::Hash)
@@ -3,9 +3,9 @@ class Postmen
3
3
  #
4
4
  # @see https://docs.postmen.com/api.html#parcel API Documentation
5
5
  class Parcel < Dry::Struct
6
- attribute :description, Types::String
6
+ attribute :description, Types::String.optional
7
7
  attribute :box_type, Types::String
8
- attribute :weight, Types::Weight
8
+ attribute :weight, Types::Strict::Nil | Types::Weight
9
9
  attribute :dimension, Types::Dimension
10
10
  attribute :items, Types::Array.member(Types::Item)
11
11
  end
@@ -1,4 +1,4 @@
1
1
  class Postmen
2
2
  # SDK Version
3
- VERSION = '1.0.2'.freeze
3
+ VERSION = '1.0.3'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - postmen.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http