erp_integration 0.38.0 → 0.39.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: a9ec7d14403a7fa4972458b0a2b55b317ae1431c12ff9e9cc7c7a85b79a1591f
4
- data.tar.gz: 11ac2f98ada47b54e13ddef91651af058c7179561b26310496c0f20129fdec26
3
+ metadata.gz: 709cbaf0b59e08e696e7f05fb8671b544f69219f8cf0644610fd98080ffe3f7f
4
+ data.tar.gz: 2dc9273ef654f8438e26ee303f558ceca15272a7996ab22eadfe25eaf46648b8
5
5
  SHA512:
6
- metadata.gz: 577f07c764ae85b9726a894048c86d28054aabcf173d9e4edc6dfca3adc878ef20b3985b2d1958bf274716bcb8bd612d2ea701615528fa77b6c2df6d186942a1
7
- data.tar.gz: 5eaca359b7ef4c0ade19441f3b1ee562e36f42f30928ff8a96e97753d0b9c53cfef64b596c02d82fd0b663d0156832499283a10ea545fd7b370cf59922bb03d0
6
+ metadata.gz: 3417589709fbe3b803a12bf06f25fb2a0f01434d5d8bac0cef9f802a8f675b486f2bb8eb8cb93168a974d43d5917b5917a8b045bdffac4ac49433ac7813f418e
7
+ data.tar.gz: 54509ad8bf29d1bbc8e4a1441dc75de1e78e33546047c64eacb321d7c8e72fd8d4753f2809d6667f6b3742c03b9f224f0fc8aac58ce47dde21b237d32e56acbc
@@ -52,6 +52,11 @@ module ErpIntegration
52
52
  # @return [Symbol] The configured adapter for the customer shipment.
53
53
  attr_writer :customer_shipment_return_adapter
54
54
 
55
+ # Allows configuring an adapter for the `Location` resource. When
56
+ # none is configured, it will default to Fulfil.
57
+ # @return [Symbol] The configured adapter for the location.
58
+ attr_writer :location_adapter
59
+
55
60
  # Allows configuring an adapter for the `Product` resource. When none is
56
61
  # configured, it will default to Fulfil.
57
62
  # @return [Symbol] The configured adapter for the products.
@@ -178,6 +183,10 @@ module ErpIntegration
178
183
  @customer_shipment_return_adapter || :fulfil
179
184
  end
180
185
 
186
+ def location_adapter
187
+ @location_adapter || :fulfil
188
+ end
189
+
181
190
  def product_adapter
182
191
  @product_adapter || :fulfil
183
192
  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 Location < ApiResource
9
+ self.model_name = 'stock.location'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ # The `ErpIntegration::GiftCard` exposes an uniformed API for interaction with
5
+ # third-party ERP vendors.
6
+ class Location < Resource
7
+ attr_accessor :id, :name, :parent, :type
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.38.0'
4
+ VERSION = '0.39.0'
5
5
  end
@@ -30,6 +30,7 @@ module ErpIntegration
30
30
  autoload :ChannelListing, 'erp_integration/channel_listing'
31
31
  autoload :CustomerShipment, 'erp_integration/customer_shipment'
32
32
  autoload :CustomerShipmentReturn, 'erp_integration/customer_shipment_return'
33
+ autoload :Location, 'erp_integration/location'
33
34
  autoload :Product, 'erp_integration/product'
34
35
  autoload :ProductCategory, 'erp_integration/product_category'
35
36
  autoload :ProductTemplate, 'erp_integration/product_template'
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.38.0
4
+ version: 0.39.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: 2023-10-26 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -289,6 +289,7 @@ files:
289
289
  - lib/erp_integration/fulfil/resources/customer_shipment.rb
290
290
  - lib/erp_integration/fulfil/resources/customer_shipment_return.rb
291
291
  - lib/erp_integration/fulfil/resources/gift_card.rb
292
+ - lib/erp_integration/fulfil/resources/location.rb
292
293
  - lib/erp_integration/fulfil/resources/product.rb
293
294
  - lib/erp_integration/fulfil/resources/product_category.rb
294
295
  - lib/erp_integration/fulfil/resources/product_template.rb
@@ -307,6 +308,7 @@ files:
307
308
  - lib/erp_integration/fulfil/resources/webhook.rb
308
309
  - lib/erp_integration/fulfil/where_clause.rb
309
310
  - lib/erp_integration/gift_card.rb
311
+ - lib/erp_integration/location.rb
310
312
  - lib/erp_integration/middleware/error_handling.rb
311
313
  - lib/erp_integration/product.rb
312
314
  - lib/erp_integration/product_category.rb
@@ -353,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
355
  - !ruby/object:Gem::Version
354
356
  version: '0'
355
357
  requirements: []
356
- rubygems_version: 3.2.3
358
+ rubygems_version: 3.3.7
357
359
  signing_key:
358
360
  specification_version: 4
359
361
  summary: Connects Mejuri with third-party ERP vendors