erp_integration 0.35.0 → 0.36.1

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: 4bf1b8a88038684ef2a0192d9980e29c13fa8c5b2ea5078478d47db28fe6d050
4
- data.tar.gz: e5e37d4c3c39647d1a1118a946f0e1808eaffa2a60b373e4a681f5942f48afce
3
+ metadata.gz: 548a31df6e984f543a625fcf3f44009147536e7c1b1f10cd167514e9932b74a3
4
+ data.tar.gz: 919aa82c3ef6eb4539a824f92db943839c8c494da36654d7948e0e0a41f7b5d3
5
5
  SHA512:
6
- metadata.gz: d23ae16ce5d712adf1ecb1ae6af31feaf29d773214281546902cc641496e89894fbac35ce3a6da05cd2248ca1b674e589ea3be62114112d32b77933dc3df3465
7
- data.tar.gz: 6990bf1cacbf87418692ca4ed5b2b63b16e181f4e35b94de5843a5c3b661a5cad55603809318098c23aaada1ba778bb0e5009d49e443a31ea5fff3a9d58ed858
6
+ metadata.gz: cb2a78c543821df87462e106837f19f6ae5ab4564793be889fe9f3b4d9b9b03169df477faf7c49e2631d4cc3483de28897ca28581346452e47e19d6e4149f8a0
7
+ data.tar.gz: 12c7b5bdad97c7ec573558da3ce224df76a59a9de87a564d7b849a74b08b3c3b3985d310c292002904b6b35f72bb592c5eb79490cb5de7873466cf79cb3970b6
@@ -57,6 +57,16 @@ module ErpIntegration
57
57
  # @return [Symbol] The configured adapter for the products.
58
58
  attr_writer :product_adapter
59
59
 
60
+ # Allows configuring an adapter for the `ProductCategory` resource. When none is
61
+ # configured, it will default to Fulfil.
62
+ # @return [Symbol] The configured adapter for the product category.
63
+ attr_writer :product_category_adapter
64
+
65
+ # Allows configuring an adapter for the `ProductTemplate` resource. When none is
66
+ # configured, it will default to Fulfil.
67
+ # @return [Symbol] The configured adapter for the product templates.
68
+ attr_writer :product_template_adapter
69
+
60
70
  # Allows configuring an adapter for the `ProductionOrder` resource. When
61
71
  # none is configured, it will default to Fulfil.
62
72
  # @return [Symbol] The configured adapter for the production_order.
@@ -172,6 +182,14 @@ module ErpIntegration
172
182
  @product_adapter || :fulfil
173
183
  end
174
184
 
185
+ def product_category_adapter
186
+ @product_category_adapter || :fulfil
187
+ end
188
+
189
+ def product_template_adapter
190
+ @product_template_adapter || :fulfil
191
+ end
192
+
175
193
  def production_order_adapter
176
194
  @production_order_adapter || :fulfil
177
195
  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 ProductCategory < ApiResource
9
+ self.model_name = 'product.category'
10
+ end
11
+ end
12
+ end
13
+ 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 ProductTemplate < ApiResource
9
+ self.model_name = 'product.template'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ # The `ErpIntegration::ProductTemplate` exposes an uniformed API for interaction with
5
+ # third-party ERP vendors.
6
+ class ProductCategory < Resource
7
+ attr_accessor :id, :name, :parent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ # The `ErpIntegration::ProductTemplate` exposes an uniformed API for interaction with
5
+ # third-party ERP vendors.
6
+ class ProductTemplate < Resource
7
+ attr_accessor :id, :name, :account_category
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.35.0'
4
+ VERSION = '0.36.1'
5
5
  end
@@ -31,6 +31,8 @@ module ErpIntegration
31
31
  autoload :CustomerShipment, 'erp_integration/customer_shipment'
32
32
  autoload :CustomerShipmentReturn, 'erp_integration/customer_shipment_return'
33
33
  autoload :Product, 'erp_integration/product'
34
+ autoload :ProductCategory, 'erp_integration/product_category'
35
+ autoload :ProductTemplate, 'erp_integration/product_template'
34
36
  autoload :ProductionOrder, 'erp_integration/production_order'
35
37
  autoload :PurchaseOrder, 'erp_integration/purchase_order'
36
38
  autoload :PurchaseOrderLine, 'erp_integration/purchase_order_line'
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.35.0
4
+ version: 0.36.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Vermaas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-26 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -290,6 +290,8 @@ files:
290
290
  - lib/erp_integration/fulfil/resources/customer_shipment_return.rb
291
291
  - lib/erp_integration/fulfil/resources/gift_card.rb
292
292
  - lib/erp_integration/fulfil/resources/product.rb
293
+ - lib/erp_integration/fulfil/resources/product_category.rb
294
+ - lib/erp_integration/fulfil/resources/product_template.rb
293
295
  - lib/erp_integration/fulfil/resources/production_order.rb
294
296
  - lib/erp_integration/fulfil/resources/purchase_order.rb
295
297
  - lib/erp_integration/fulfil/resources/purchase_order_line.rb
@@ -307,6 +309,8 @@ files:
307
309
  - lib/erp_integration/gift_card.rb
308
310
  - lib/erp_integration/middleware/error_handling.rb
309
311
  - lib/erp_integration/product.rb
312
+ - lib/erp_integration/product_category.rb
313
+ - lib/erp_integration/product_template.rb
310
314
  - lib/erp_integration/production_order.rb
311
315
  - lib/erp_integration/purchase_order.rb
312
316
  - lib/erp_integration/purchase_order_line.rb
@@ -349,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
353
  - !ruby/object:Gem::Version
350
354
  version: '0'
351
355
  requirements: []
352
- rubygems_version: 3.2.3
356
+ rubygems_version: 3.3.7
353
357
  signing_key:
354
358
  specification_version: 4
355
359
  summary: Connects Mejuri with third-party ERP vendors