erp_integration 0.5.4 → 0.5.5

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: ec43e95ecdd5a4ab657f037a5526bb0bf152d7f5f0a004921b11ab87b14b6a10
4
- data.tar.gz: ac5f72e0e2019e1f0af165cf6a7adfb6ecd24a163cbf0d486e21884fb66fbaa5
3
+ metadata.gz: 6ba635456dc688941f6d3a1d52b48f9a24ef6a6ccfd8ebb5f522749b6054546b
4
+ data.tar.gz: 802f67bc96c101f8945a27c8925b2690d4d7513f2435457c69fee91f9fad2de0
5
5
  SHA512:
6
- metadata.gz: 050e3cc8c0d1e0d46e2a82e10080b6261337f2fdbdc27b1286d4ec645c8cf188f4c864dd3d2044b8e00dc200357bb089a52d25253706bcf7121fdfb04edded87
7
- data.tar.gz: 18877ae7e6684e5c04af4a2acb04bc0771e8261241788fa753726f4550f507358e98367e2204adb2566f6be7852d8826fd46c435bb01b4e69f718b913c77e63a
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
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../api_resource'
4
+
5
+ module ErpIntegration
6
+ module Fulfil
7
+ module Resources
8
+ class BillOfMaterialInput < ApiResource
9
+ self.model_name = 'production.bom.input'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.5.4'
4
+ VERSION = '0.5.5'
5
5
  end
@@ -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
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-10-29 00:00:00.000000000 Z
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