erp_integration 0.5.3 → 0.5.4

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: 4ef3df17fffd25f4bb3d44b59fa8a2a2b4495a4d159cb22e06b5fdb852422d19
4
- data.tar.gz: b9368f71c9adf3b70324ca550370a607e40b97a18588f3719aa541f132debe81
3
+ metadata.gz: ec43e95ecdd5a4ab657f037a5526bb0bf152d7f5f0a004921b11ab87b14b6a10
4
+ data.tar.gz: ac5f72e0e2019e1f0af165cf6a7adfb6ecd24a163cbf0d486e21884fb66fbaa5
5
5
  SHA512:
6
- metadata.gz: 208f536ae2693e7d7c0f9541b16d86341deaa8216de7511df93819e0729a71a03aaca4a9f76330707b3a08bb10f2a8b3760f313079fbb43c2bda3968e50ceb4f
7
- data.tar.gz: 45d12d1855b3d3326072cf39ee1ad5cbde463ed7562bbb8d4fc7ab9c92832904b4834f66d3599a3d89a6d84e1cd854d35bea407ef865a5e8854182ac0c8b1451
6
+ metadata.gz: 050e3cc8c0d1e0d46e2a82e10080b6261337f2fdbdc27b1286d4ec645c8cf188f4c864dd3d2044b8e00dc200357bb089a52d25253706bcf7121fdfb04edded87
7
+ data.tar.gz: 18877ae7e6684e5c04af4a2acb04bc0771e8261241788fa753726f4550f507358e98367e2204adb2566f6be7852d8826fd46c435bb01b4e69f718b913c77e63a
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ # The `ErpIntegration::BillOfMaterialOutput` exposes an uniformed API for interaction with
5
+ # third-party ERP vendors.
6
+ class BillOfMaterialOutput < 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 `BillOfMaterialOutput` resource. When
31
+ # none is configured, it will default to Fulfil.
32
+ # @return [Symbol] The configured adapter for the bill_of_material.
33
+ attr_writer :bill_of_material_output_adapter
34
+
30
35
  # Allows configuring an adapter for the `Product` resource. When none is
31
36
  # configured, it will default to Fulfil.
32
37
  # @return [Symbol] The configured adapter for the products.
@@ -82,6 +87,10 @@ module ErpIntegration
82
87
  @bill_of_material_adapter || :fulfil
83
88
  end
84
89
 
90
+ def bill_of_material_output_adapter
91
+ @bill_of_material_output_adapter || :fulfil
92
+ end
93
+
85
94
  def product_adapter
86
95
  @product_adapter || :fulfil
87
96
  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 BillOfMaterialOutput < ApiResource
9
+ self.model_name = 'production.bom.output'
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.3'
4
+ VERSION = '0.5.4'
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 :BillOfMaterialOutput, 'erp_integration/bill_of_material_output'
24
25
  autoload :Product, 'erp_integration/product'
25
26
  autoload :ProductionOrder, 'erp_integration/production_order'
26
27
  autoload :PurchaseOrder, 'erp_integration/purchase_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.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Vermaas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2021-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -224,7 +224,7 @@ dependencies:
224
224
  - - '='
225
225
  - !ruby/object:Gem::Version
226
226
  version: 1.19.2
227
- description:
227
+ description:
228
228
  email:
229
229
  - stefan@knowndecimal.com
230
230
  executables: []
@@ -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_output.rb
263
264
  - lib/erp_integration/configuration.rb
264
265
  - lib/erp_integration/errors.rb
265
266
  - lib/erp_integration/fulfil/api_resource.rb
@@ -267,6 +268,7 @@ files:
267
268
  - lib/erp_integration/fulfil/query.rb
268
269
  - lib/erp_integration/fulfil/query_methods.rb
269
270
  - lib/erp_integration/fulfil/resources/bill_of_material.rb
271
+ - lib/erp_integration/fulfil/resources/bill_of_material_output.rb
270
272
  - lib/erp_integration/fulfil/resources/product.rb
271
273
  - lib/erp_integration/fulfil/resources/production_order.rb
272
274
  - lib/erp_integration/fulfil/resources/purchase_order.rb
@@ -297,7 +299,7 @@ metadata:
297
299
  homepage_uri: https://www.github.com/mejuri-inc/erp-integration
298
300
  source_code_uri: https://www.github.com/mejuri-inc/erp-integration
299
301
  changelog_uri: https://www.github.com/mejuri-inc/erp-integration/blob/main/CHANGELOG.md
300
- post_install_message:
302
+ post_install_message:
301
303
  rdoc_options: []
302
304
  require_paths:
303
305
  - lib
@@ -313,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
315
  version: '0'
314
316
  requirements: []
315
317
  rubygems_version: 3.2.22
316
- signing_key:
318
+ signing_key:
317
319
  specification_version: 4
318
320
  summary: Connects Mejuri with third-party ERP vendors
319
321
  test_files: []