workarea-orderbot 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/config/initializers/configurations.rb +65 -57
- data/lib/workarea/orderbot/version.rb +1 -1
- data/workarea-orderbot.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa73a15ddaf3661112df83dec0c41187153c1bd6ef7f1c9af27e271ba71c84ef
|
4
|
+
data.tar.gz: 50fdf18f5bbc2b8a7c29697233e6cd0d92ca46af2f013c34d614beb26fe54a0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8b823bdffcdb4d205b14f98945f9ce132cab46688ed74bbcc0ee9e3fcaed0c03aa26c0d36b23a0df9233705ead91443c145c416b1fbb8089aaa4c31e554afcf
|
7
|
+
data.tar.gz: 4fb3d7578ce12e8732a34d6604297a86e842431c16653c24cc5f9d83f4a81f14aab64c939d5bb1655b5e498d7a033a6aa90749b5f4c99d02e8180e97a0893a23
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
Workarea Orderbot 1.0.1 (2020-04-06)
|
2
|
+
--------------------------------------------------------------------------------
|
3
|
+
|
4
|
+
* Add compatibility with Workarea v3.4
|
5
|
+
|
6
|
+
* Checking if Workarea respond_to define_fields
|
7
|
+
* Define configuration defaults
|
8
|
+
* Allow v3.5 since this would be compatible
|
9
|
+
|
10
|
+
Co-authored-by: Ben Crouse <bencrouse@gmail.com>
|
11
|
+
Rocela Durazo
|
12
|
+
|
13
|
+
|
14
|
+
|
1
15
|
Workarea Orderbot 1.0.0 (2020-03-13)
|
2
16
|
--------------------------------------------------------------------------------
|
3
17
|
|
@@ -1,60 +1,68 @@
|
|
1
|
-
Workarea::Configuration.define_fields
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
1
|
+
if Workarea::Configuration.respond_to?(:define_fields)
|
2
|
+
Workarea::Configuration.define_fields do
|
3
|
+
fieldset 'Orderbot', namespaced: false do
|
4
|
+
field 'Orderbot API Email Address',
|
5
|
+
type: :string,
|
6
|
+
description: 'Email Address of Orderbot admin, used to authenticate to the API. This email address is the same that is used to login to the Orderbot admin.',
|
7
|
+
allow_blank: false,
|
8
|
+
encrypted: false
|
9
|
+
|
10
|
+
field 'Orderbot API Password',
|
11
|
+
type: :string,
|
12
|
+
description: 'Password of Orderbot admin, used to authenticate to the API. This password is the same that is used to login to the Orderbot admin.',
|
13
|
+
allow_blank: false,
|
14
|
+
encrypted: true
|
15
|
+
|
16
|
+
field 'Use Orderbot Staging Environment',
|
17
|
+
type: :boolean,
|
18
|
+
description: 'Use the Orderbot staging environment. Only recommended for experimenting with new and custom Orderbot features, talk to your Orderbot support representative for access.',
|
19
|
+
default: false
|
20
|
+
|
21
|
+
field 'Default Order Guide ID',
|
22
|
+
type: :integer,
|
23
|
+
description: 'What order guide ID is used to filter products on import. This value will also be sent when an order is exported to Orderbot.',
|
24
|
+
allow_blank: true
|
25
|
+
|
26
|
+
field 'Inventory Distribution Center ID',
|
27
|
+
type: :integer,
|
28
|
+
description: 'What inventory distribution center to import inventory from. Leaving this field blank will import inventory from all centers and is not recommended. This field will also be used as the default distribution center on order export.',
|
29
|
+
allow_blank: true
|
30
|
+
|
31
|
+
field 'Default Inventory Import Policy',
|
32
|
+
type: :symbol,
|
33
|
+
default: "standard",
|
34
|
+
description: 'The default policy to use when importing inventory from the Orderbot API.',
|
35
|
+
allow_blank: false,
|
36
|
+
values: -> do
|
37
|
+
Workarea.config.inventory_policies.map do |class_name|
|
38
|
+
[class_name.demodulize.titleize, class_name.demodulize.underscore]
|
39
|
+
end
|
38
40
|
end
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
41
|
+
|
42
|
+
field 'Product Import filters',
|
43
|
+
type: :hash,
|
44
|
+
values_type: :string,
|
45
|
+
default: {},
|
46
|
+
description: 'Additional filters to pass to the API when importing products. For example "group: robots"',
|
47
|
+
allow_blank: true
|
48
|
+
|
49
|
+
field 'Orderbot API Timezone',
|
50
|
+
type: :string,
|
51
|
+
default: "Eastern Time (US & Canada)",
|
52
|
+
description: 'Set this value to match the timezone Orderbot sends any date-time information via the API. Consult with Orderbot before changing this value.',
|
53
|
+
allow_blank: false,
|
54
|
+
values: -> { ActiveSupport::TimeZone.all.map(&:name) }
|
55
|
+
|
56
|
+
field 'Shipping Date Lead Time',
|
57
|
+
type: :duration,
|
58
|
+
default: 3.days,
|
59
|
+
description: 'Lead time used to generate the "ship date" field when an order is placed. This time will added to the current date and sent to Orderbot when an order is placed.'
|
60
|
+
end
|
59
61
|
end
|
62
|
+
else
|
63
|
+
Workarea.config.use_orderbot_staging_environment = false
|
64
|
+
Workarea.config.default_inventory_import_policy = 'standard'
|
65
|
+
Workarea.config.product_import_filters = {}
|
66
|
+
Workarea.config.orderbot_api_timezone = 'Eastern Time (US & Canada)'
|
67
|
+
Workarea.config.shipping_date_lead_time = 3.days
|
60
68
|
end
|
data/workarea-orderbot.gemspec
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-orderbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Yucis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.4.x
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.4.x
|
27
27
|
description: Ordebot OMS integration for catalog and order data.
|
28
28
|
email:
|
29
29
|
- jyucis@workarea.com
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
|
-
rubygems_version: 3.0.
|
168
|
+
rubygems_version: 3.0.3
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Workarea Integration with Orderbot OMS.
|