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 +4 -4
- data/lib/postmen/manifest.rb +2 -2
- data/lib/postmen/types.rb +2 -0
- data/lib/postmen/types/file.rb +11 -0
- data/lib/postmen/types/manifesting_label.rb +12 -0
- data/lib/postmen/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90c9b660d4ce5c83ce7d1c825bbf2fa7e1f119ea
|
4
|
+
data.tar.gz: e758eeecbb700e4b1d34196770a11778deedaad0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83529fe90063f5f6a34da1c0665672614d30b6bd8508c8639c0009ca8d71648785296a5e2eed336096b4924ede22dcc4d97b9e91eab88c8043ccff6751829458
|
7
|
+
data.tar.gz: 90af0e695421ed48fd150039215c71cea9202d7ee9300cd3b61c6fdab26babd518f71cc374ea1e023fc55455f082ef0bbba9d3b3f6ac1d65ca4fd9dfc24830c1
|
data/lib/postmen/manifest.rb
CHANGED
@@ -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
|
10
|
-
attribute :files, Types::
|
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
@@ -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
|
data/lib/postmen/version.rb
CHANGED
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
|
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-
|
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:
|
225
|
+
version: '0'
|
224
226
|
requirements: []
|
225
227
|
rubyforge_project:
|
226
228
|
rubygems_version: 2.6.10
|