erp_integration 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ba635456dc688941f6d3a1d52b48f9a24ef6a6ccfd8ebb5f522749b6054546b
|
4
|
+
data.tar.gz: 802f67bc96c101f8945a27c8925b2690d4d7513f2435457c69fee91f9fad2de0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd6cb73c26c593d2c01e78ca994274a84c4bbaea429542f21b524411fef9ab3e1e4e1b3bbf84bdf17cb8c2e66efef4969bed6531bcbd165acde0dbd87195952
|
7
|
+
data.tar.gz: '0680d849ab5f42043ec2a8903c1f139e7c180e295737218cb83511c83122ecf3e3f038e0bc2943aed51da85f8b24dade4ee858e4eb1a158d39dbd4109ab815a8'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ErpIntegration
|
4
|
+
# The `ErpIntegration::BillOfMaterialInput` exposes an uniformed API for interaction with
|
5
|
+
# third-party ERP vendors.
|
6
|
+
class BillOfMaterialInput < Resource
|
7
|
+
attr_accessor :attachments, :bom, :create_date, :create_uid, :id, :messages,
|
8
|
+
:metadata, :private_notes, :product, :public_notes, :quantity,
|
9
|
+
:rec_blurb, :rec_name, :sequence, :to_location, :unit_digits,
|
10
|
+
:uom, :uom_category, :warehouse, :write_date, :write_uid
|
11
|
+
end
|
12
|
+
end
|
@@ -27,6 +27,11 @@ module ErpIntegration
|
|
27
27
|
# @return [Symbol] The configured adapter for the bill_of_material.
|
28
28
|
attr_writer :bill_of_material_adapter
|
29
29
|
|
30
|
+
# Allows configuring an adapter for the `BillOfMaterialInput` resource. When
|
31
|
+
# none is configured, it will default to Fulfil.
|
32
|
+
# @return [Symbol] The configured adapter for the Bill of Material's input.
|
33
|
+
attr_writer :bill_of_material_input_adapter
|
34
|
+
|
30
35
|
# Allows configuring an adapter for the `BillOfMaterialOutput` resource. When
|
31
36
|
# none is configured, it will default to Fulfil.
|
32
37
|
# @return [Symbol] The configured adapter for the bill_of_material.
|
@@ -87,6 +92,10 @@ module ErpIntegration
|
|
87
92
|
@bill_of_material_adapter || :fulfil
|
88
93
|
end
|
89
94
|
|
95
|
+
def bill_of_material_input_adapter
|
96
|
+
@bill_of_material_input_adapter || :fulfil
|
97
|
+
end
|
98
|
+
|
90
99
|
def bill_of_material_output_adapter
|
91
100
|
@bill_of_material_output_adapter || :fulfil
|
92
101
|
end
|
data/lib/erp_integration.rb
CHANGED
@@ -21,6 +21,7 @@ require_relative 'erp_integration/fulfil/client'
|
|
21
21
|
module ErpIntegration
|
22
22
|
# Resources
|
23
23
|
autoload :BillOfMaterial, 'erp_integration/bill_of_material'
|
24
|
+
autoload :BillOfMaterialInput, 'erp_integration/bill_of_material_input'
|
24
25
|
autoload :BillOfMaterialOutput, 'erp_integration/bill_of_material_output'
|
25
26
|
autoload :Product, 'erp_integration/product'
|
26
27
|
autoload :ProductionOrder, 'erp_integration/production_order'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_integration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Vermaas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -260,6 +260,7 @@ files:
|
|
260
260
|
- erp_integration.gemspec
|
261
261
|
- lib/erp_integration.rb
|
262
262
|
- lib/erp_integration/bill_of_material.rb
|
263
|
+
- lib/erp_integration/bill_of_material_input.rb
|
263
264
|
- lib/erp_integration/bill_of_material_output.rb
|
264
265
|
- lib/erp_integration/configuration.rb
|
265
266
|
- lib/erp_integration/errors.rb
|
@@ -268,6 +269,7 @@ files:
|
|
268
269
|
- lib/erp_integration/fulfil/query.rb
|
269
270
|
- lib/erp_integration/fulfil/query_methods.rb
|
270
271
|
- lib/erp_integration/fulfil/resources/bill_of_material.rb
|
272
|
+
- lib/erp_integration/fulfil/resources/bill_of_material_input.rb
|
271
273
|
- lib/erp_integration/fulfil/resources/bill_of_material_output.rb
|
272
274
|
- lib/erp_integration/fulfil/resources/product.rb
|
273
275
|
- lib/erp_integration/fulfil/resources/production_order.rb
|