erp_integration 1.2.0 → 1.3.0

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: 63c63386156abec358b4a911669ec462ccc287806f515a42748bee8adb5688e1
4
- data.tar.gz: 1a614a32dc1e84fb577355c823a1d5c3b8e02fa30a019d3a109e3a35cc2da23b
3
+ metadata.gz: 57bcbbc1b10c4ff1347307cd8ac6a309d25b567ea6867d7da650de10487bcd24
4
+ data.tar.gz: a3af916a963967b5693257eb54494c7d693ab48c66fc115353ae422ebbb6c0b4
5
5
  SHA512:
6
- metadata.gz: 001ba2ddcc6a601823be103d98273ac88fd39a8ec39e971e44b12a951e312d3661cd8841ab822cc431fdcf30f63196239a04a2cab9a0229858ede8ffab569bc3
7
- data.tar.gz: d43b7377eaa12ef82ce1b7e5351dfd7d49333a1d5b9a6bec865de64b5f76f1e63f45df935c984b323f1bed80afd872395e1446de619fba4cfc17ad67342b2e22
6
+ metadata.gz: 10f6a82933b804faf33b0143d38cfb8168ce2dbee1e5795dd82662da7ea1dab240a5f7511e211c7eb7917844427c86d12b44fecb8f2e4f8d7682f421affea845
7
+ data.tar.gz: '0390c8ecd58b20ace0663ee1c315ff5e5b2ef13f655fbe1d8c31b36455735540ec0f958cb474d9958e671f84e67f6ff892b5d52f1051fde533a2ebd99ec689aa'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v.1.2.0](https://github.com/mejuri-inc/erp-integration/tree/v.1.2.0) (2026-05-07)
4
+
5
+ [Full Changelog](https://github.com/mejuri-inc/erp-integration/compare/v.1.1.0...v.1.2.0)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - \[BACK-2222\] Rename `salable` to `sellable` for Product [\#229](https://github.com/mejuri-inc/erp-integration/pull/229) ([ikzekly](https://github.com/ikzekly))
10
+
3
11
  ## [v.0.1.0](https://github.com/mejuri-inc/erp-integration/tree/v.0.1.0) (2021-07-28)
4
12
 
5
13
  [Full Changelog](https://github.com/mejuri-inc/erp-integration/compare/a411f1240265c1e67ed4f07275cb357ffbbdb681...v.0.1.0)
@@ -98,6 +98,11 @@ module ErpIntegration
98
98
  # @return [Symbol] The configured adapter for the product option.
99
99
  attr_writer :product_option_adapter
100
100
 
101
+ # Allows configuring an adapter for the `ProductOptionSet` resource. When
102
+ # none is configured, it will default to Fulfil.
103
+ # @return [Symbol] The configured adapter for the product option set.
104
+ attr_writer :product_option_set_adapter
105
+
101
106
  # Allows configuring an adapter for the `ProductTemplate` resource. When none is
102
107
  # configured, it will default to Fulfil.
103
108
  # @return [Symbol] The configured adapter for the product templates.
@@ -263,6 +268,10 @@ module ErpIntegration
263
268
  @product_option_adapter || :fulfil
264
269
  end
265
270
 
271
+ def product_option_set_adapter
272
+ @product_option_set_adapter || :fulfil
273
+ end
274
+
266
275
  def product_template_adapter
267
276
  @product_template_adapter || :fulfil
268
277
  end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../api_resource'
4
+
5
+ module ErpIntegration
6
+ module Fulfil
7
+ module Resources
8
+ # Maps `ErpIntegration::ProductOptionSet` to Fulfil's
9
+ # `product_option_set` model. Reachable at
10
+ # `/api/v2/model/product_option_set` on the merchant's Fulfil host.
11
+ #
12
+ # @see https://mejuri.fulfil.io/developer/api-reference/v2/product_option_set
13
+ class ProductOptionSet < ApiResource
14
+ self.model_name = 'product_option_set'
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ # Groups one or more `ProductOption` records into a named bundle that
5
+ # attaches to product templates. In Fulfil, the option set is what lives
6
+ # on a product template, and its `options` field carries the ids of the
7
+ # individual `ProductOption` records that surface to order lines.
8
+ #
9
+ # @see https://mejuri.fulfil.io/developer/api-reference/v2/product_option_set
10
+ class ProductOptionSet < Resource
11
+ attr_accessor :id, :name, :options
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
@@ -46,6 +46,7 @@ module ErpIntegration
46
46
  autoload :Product, 'erp_integration/product'
47
47
  autoload :ProductCategory, 'erp_integration/product_category'
48
48
  autoload :ProductOption, 'erp_integration/product_option'
49
+ autoload :ProductOptionSet, 'erp_integration/product_option_set'
49
50
  autoload :ProductTemplate, 'erp_integration/product_template'
50
51
  autoload :ProductionOrder, 'erp_integration/production_order'
51
52
  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: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Vermaas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-07 00:00:00.000000000 Z
11
+ date: 2026-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -272,6 +272,7 @@ files:
272
272
  - lib/erp_integration/fulfil/resources/product.rb
273
273
  - lib/erp_integration/fulfil/resources/product_category.rb
274
274
  - lib/erp_integration/fulfil/resources/product_option.rb
275
+ - lib/erp_integration/fulfil/resources/product_option_set.rb
275
276
  - lib/erp_integration/fulfil/resources/product_template.rb
276
277
  - lib/erp_integration/fulfil/resources/production_order.rb
277
278
  - lib/erp_integration/fulfil/resources/purchase_order.rb
@@ -303,6 +304,7 @@ files:
303
304
  - lib/erp_integration/product.rb
304
305
  - lib/erp_integration/product_category.rb
305
306
  - lib/erp_integration/product_option.rb
307
+ - lib/erp_integration/product_option_set.rb
306
308
  - lib/erp_integration/product_template.rb
307
309
  - lib/erp_integration/production_order.rb
308
310
  - lib/erp_integration/purchase_order.rb