postmen 1.0.0.pre.alpha.2 → 1.0.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: 05652c1c08402bef17419ea6b02586580eae907e
4
- data.tar.gz: 8f6676faa166b9ba2f59248593198cfc4d60e8c0
3
+ metadata.gz: 90c9b660d4ce5c83ce7d1c825bbf2fa7e1f119ea
4
+ data.tar.gz: e758eeecbb700e4b1d34196770a11778deedaad0
5
5
  SHA512:
6
- metadata.gz: 47156b956f5511b485afbee474f381f78e080d7844d642e7d39654417039cfc5b7bea409adef20ffc65df77d8d5bc1bcc5f31f1b04ab8f0b7d9230e30abdf9a0
7
- data.tar.gz: bf6f08c3f8ace491be96fe8d75b90a82663386008a64ecb6ddd633ea7a1dcb5f3aa4ad9061e4dab3e3a91162cf8acc9bb37c548e7bc84127283133c3ee778ec8
6
+ metadata.gz: 83529fe90063f5f6a34da1c0665672614d30b6bd8508c8639c0009ca8d71648785296a5e2eed336096b4924ede22dcc4d97b9e91eab88c8043ccff6751829458
7
+ data.tar.gz: 90af0e695421ed48fd150039215c71cea9202d7ee9300cd3b61c6fdab26babd518f71cc374ea1e023fc55455f082ef0bbba9d3b3f6ac1d65ca4fd9dfc24830c1
@@ -6,8 +6,8 @@ class Postmen
6
6
  attribute :id, Types::UUID
7
7
  attribute :status, Types::ManifestStatuses
8
8
  attribute :shipper_account, Types::Reference
9
- attribute :labels, Types::Array # TODO: implement manifesting label type
10
- attribute :files, Types::Hash # TODO: Implement Files Type
9
+ attribute :labels, Types::Array.member(Types::ManifestingLabel)
10
+ attribute :files, Types::File
11
11
  attribute :created_at, Types::DateTime
12
12
  attribute :updated_at, Types::DateTime
13
13
 
data/lib/postmen/types.rb CHANGED
@@ -140,3 +140,5 @@ require_relative 'types/aes'
140
140
  require_relative 'types/no_eei'
141
141
  require_relative 'types/customs'
142
142
  require_relative 'types/detailed_charges'
143
+ require_relative 'types/manifesting_label'
144
+ require_relative 'types/file'
@@ -0,0 +1,11 @@
1
+ class Postmen
2
+ module Types
3
+ # File object
4
+ # @see https://docs.postmen.com/api.html#a-files-object API Documentation
5
+ class File < Dry::Struct
6
+ attribute :url, Types::String
7
+ attribute :file_type, Types::String
8
+ attribute :paper_size, Types::String
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ class Postmen
2
+ module Types
3
+ # Manifesting Label
4
+ # @see https://docs.postmen.com/api.html#a-manifesting-label-object API Documentation
5
+ class ManifestingLabel < Dry::Struct
6
+ constructor_type :schema
7
+
8
+ attribute :id, Types::UUID
9
+ attribute :manifested, Types::Bool
10
+ end
11
+ end
12
+ end
@@ -1,4 +1,4 @@
1
1
  class Postmen
2
2
  # SDK Version
3
- VERSION = '1.0.0-alpha.2'.freeze
3
+ VERSION = '1.0.0'.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.0.pre.alpha.2
4
+ version: 1.0.0
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-21 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -193,8 +193,10 @@ files:
193
193
  - lib/postmen/types/customs_billing.rb
194
194
  - lib/postmen/types/detailed_charges.rb
195
195
  - lib/postmen/types/dimension.rb
196
+ - lib/postmen/types/file.rb
196
197
  - lib/postmen/types/invoice.rb
197
198
  - lib/postmen/types/item.rb
199
+ - lib/postmen/types/manifesting_label.rb
198
200
  - lib/postmen/types/money.rb
199
201
  - lib/postmen/types/no_eei.rb
200
202
  - lib/postmen/types/passport.rb
@@ -218,9 +220,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
220
  version: 2.2.0
219
221
  required_rubygems_version: !ruby/object:Gem::Requirement
220
222
  requirements:
221
- - - ">"
223
+ - - ">="
222
224
  - !ruby/object:Gem::Version
223
- version: 1.3.1
225
+ version: '0'
224
226
  requirements: []
225
227
  rubyforge_project:
226
228
  rubygems_version: 2.6.10