we_ship_client 1.1.0 → 1.1.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2085010e2a63d6304cec95a3edc485f4cb7376e82cf87d6e3955095e1806977b
|
4
|
+
data.tar.gz: dbba31ab58b4d14eac7bf5aa3405fe6f15e36bf7f9cae788951285b80b8f1f1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb68b5582678bfd41b172fc8af0842af60fb727af5b32727a1457b6d1f7d431b3b4de6026e70ae740f61c73af59e83b89b27e1ad82d9c636e5f8c5aa9b12bf0d
|
7
|
+
data.tar.gz: f72ad4eeb8ef42eb830b8ad80a9411ae175b4c01c25efea3f47cc838a24bc299354e3438cd2d555482776eca83f742e8414ac6d5f3d80414bb118ffaaef55cea
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
we_ship_client (1.1.
|
4
|
+
we_ship_client (1.1.1)
|
5
5
|
activesupport
|
6
6
|
dry-struct (~> 1.4)
|
7
7
|
dry-types
|
@@ -94,6 +94,7 @@ GEM
|
|
94
94
|
zeitwerk (2.6.9)
|
95
95
|
|
96
96
|
PLATFORMS
|
97
|
+
arm64-darwin-21
|
97
98
|
arm64-darwin-22
|
98
99
|
x86_64-darwin-20
|
99
100
|
x86_64-darwin-21
|
@@ -8,7 +8,7 @@ module WeShipClient
|
|
8
8
|
class OrderItem < Base
|
9
9
|
attribute :productName, Types::Strict::String
|
10
10
|
attribute :productSKU, Types::Strict::String
|
11
|
-
attribute :productType, Types::Strict::String.default
|
11
|
+
attribute :productType, Types::Strict::String.default { ENV['WE_SHIP_DEFAULT_PRODUCT_TYPE'] }
|
12
12
|
attribute :quantity, Types::Strict::Integer
|
13
13
|
attribute :weight, Types::Strict::String
|
14
14
|
end
|
@@ -15,9 +15,9 @@ module WeShipClient
|
|
15
15
|
# :description=>"Invalid content was found starting with element 'clientCode'. One of '{order}' is expected.",
|
16
16
|
# :status=>"Fail"
|
17
17
|
# }}}
|
18
|
-
attribute :formatVersion, Types::Strict::String.default
|
19
|
-
attribute :clientCode, Types::Strict::String.default
|
20
|
-
attribute :allowDuplicates, Types::Strict::String.default
|
18
|
+
attribute :formatVersion, Types::Strict::String.default { ENV['WE_SHIP_FORMAT_VERSION'] }
|
19
|
+
attribute :clientCode, Types::Strict::String.default { ENV['WE_SHIP_CUSTOMER_CODE'] }
|
20
|
+
attribute :allowDuplicates, Types::Strict::String.default { ENV['WE_SHIP_ALLOW_DUPLICATES'] }
|
21
21
|
attribute :order, Types::Strict::Array.of(Order)
|
22
22
|
end
|
23
23
|
end
|
data/lib/we_ship_client.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: we_ship_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juul Labs, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|