erp_integration 0.46.0 → 0.48.0

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: cc595a10c50b58e2ed163058d95f658be92b852a4827aab0e30a964ce7960f27
4
- data.tar.gz: 407b494f39ffd973a2264f9d6b82a2d4c8c0698d9bc74c031c5dc099567da056
3
+ metadata.gz: 5c4c24346c137f126254ca4c48a8fba90742b4ce614a5575bf2344c1c02d6463
4
+ data.tar.gz: 60a8fd0caaa904d63c0d01dd185b40b36d2c8a1657b1fffb196974d7cdfa2beb
5
5
  SHA512:
6
- metadata.gz: 590eb2725b4212fc60882342466b1d6ddbda4935abd7f745e55648a8cc5bba75a6e975276a7ce63cf9987efb49e8fff4444ac6db507a060d16da26a5656b6059
7
- data.tar.gz: 7302ae626554c39747c9229c8291b4e08eb429e4a1d17d24792c4f1a85edcdfd4e0deef5af54172512209d79cfa9c60cd99c7eff9aa052f6f117edccc6ace095
6
+ metadata.gz: 6e67b11d936ce4b6c71e8f4963ca1ebeff30c82293862002442dc3b8e9eb0a2f42aab96b9507ceabd8931fb8214165e4fd17752012610e16eb21a80e0cbb55d5
7
+ data.tar.gz: 2f613253fc2cff3482e23c659c04ee2c5557478fe30d9e668de786220b414d361670c9704de902c220610e0eb4ec531cf3f80205a03d0950d9d4c03f7811583f
@@ -147,6 +147,16 @@ module ErpIntegration
147
147
  # @return [Symbol] The configured adapter for the tracking number.
148
148
  attr_writer :gift_card_adapter
149
149
 
150
+ # Allows configuring an adapter for the `SaleLineOption` resource. When
151
+ # none is configured, it will default to Fulfil.
152
+ # @return [Symbol] The configured adapter for the tracking number.
153
+ attr_writer :sales_line_option_adapter
154
+
155
+ # Allows configuring an adapter for the `ProductOption` resource. When
156
+ # none is configured, it will default to Fulfil.
157
+ # @return [Symbol] The configured adapter for the tracking number.
158
+ attr_writer :product_option_adapter
159
+
150
160
  # Logger that will be used for HTTP operations on Client
151
161
  # @return [Logger] The configured logger
152
162
  attr_accessor :logger
@@ -272,6 +282,14 @@ module ErpIntegration
272
282
  def gift_card_adapter
273
283
  @gift_card_adapter || :fulfil
274
284
  end
285
+
286
+ def sales_line_option_adapter
287
+ @sales_line_option_adapter || :fulfil
288
+ end
289
+
290
+ def product_option_adapter
291
+ @product_option_adapter || :fulfil
292
+ end
275
293
  end
276
294
 
277
295
  # Returns ERP Integration's configuration.
@@ -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 ProductOption < ApiResource
9
+ self.model_name = 'product.options.option'
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 SalesLineOption < ApiResource
9
+ self.model_name = 'sale.line.option'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ # The `ErpIntegration::ProductOption` exposes an uniformed API for interaction with
5
+ # third-party ERP vendors.
6
+ class ProductOption < Resource
7
+ attr_accessor :id, :code
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ # The `ErpIntegration::SaleLieOption` exposes an uniformed API for interaction with
5
+ # third-party ERP vendors.
6
+ class SalesLineOption < Resource
7
+ attr_accessor :id, :option, :value_text, :line
8
+ end
9
+ end
@@ -11,10 +11,10 @@ module ErpIntegration
11
11
  :invoice_address, :invoice_method, :invoice_state, :invoices,
12
12
  :lines, :metadata, :moves, :payment_term, :payment_total, :price_list,
13
13
  :reference, :sales_person, :shipment_amount, :shipment_method,
14
- :shipment_returns, :shipment_state, :shipments, :shipping_start_date,
15
- :state, :tax_amount, :total_amount, :total_quantity, :total_shipment_cost,
16
- :untaxed_amount, :warehouse, :weight, :weight_uom, :write_date, :write_uid,
17
- :gift_message
14
+ :shipment_returns, :shipment_state, :shipments, :shipping_instructions,
15
+ :shipping_start_date, :state, :tax_amount, :total_amount, :total_quantity,
16
+ :total_shipment_cost, :untaxed_amount, :warehouse, :weight, :weight_uom,
17
+ :write_date, :write_uid, :gift_message
18
18
 
19
19
  def cancel
20
20
  self.class.adapter.cancel(id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.46.0'
4
+ VERSION = '0.48.0'
5
5
  end
@@ -31,16 +31,19 @@ module ErpIntegration
31
31
  autoload :ChannelListing, 'erp_integration/channel_listing'
32
32
  autoload :CustomerShipment, 'erp_integration/customer_shipment'
33
33
  autoload :CustomerShipmentReturn, 'erp_integration/customer_shipment_return'
34
+ autoload :GiftCard, 'erp_integration/gift_card'
34
35
  autoload :InternalShipment, 'erp_integration/internal_shipment'
35
36
  autoload :Location, 'erp_integration/location'
36
37
  autoload :Product, 'erp_integration/product'
37
38
  autoload :ProductCategory, 'erp_integration/product_category'
39
+ autoload :ProductOption, 'erp_integration/product_option'
38
40
  autoload :ProductTemplate, 'erp_integration/product_template'
39
41
  autoload :ProductionOrder, 'erp_integration/production_order'
40
42
  autoload :PurchaseOrder, 'erp_integration/purchase_order'
41
43
  autoload :PurchaseOrderLine, 'erp_integration/purchase_order_line'
42
44
  autoload :PurchaseRequest, 'erp_integration/purchase_request'
43
45
  autoload :Resource, 'erp_integration/resource'
46
+ autoload :SalesLineOption, 'erp_integration/sales_line_option'
44
47
  autoload :SalesOrder, 'erp_integration/sales_order'
45
48
  autoload :SalesOrderLine, 'erp_integration/sales_order_line'
46
49
  autoload :SalesReturnReason, 'erp_integration/sales_return_reason'
@@ -50,7 +53,6 @@ module ErpIntegration
50
53
  autoload :Task, 'erp_integration/task'
51
54
  autoload :TrackingNumber, 'erp_integration/tracking_number'
52
55
  autoload :Webhook, 'erp_integration/webhook'
53
- autoload :GiftCard, 'erp_integration/gift_card'
54
56
  module Resources
55
57
  autoload :Errors, 'erp_integration/resources/errors'
56
58
  autoload :Persistence, 'erp_integration/resources/persistence'
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.46.0
4
+ version: 0.48.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: 2024-05-24 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -295,11 +295,13 @@ files:
295
295
  - lib/erp_integration/fulfil/resources/location.rb
296
296
  - lib/erp_integration/fulfil/resources/product.rb
297
297
  - lib/erp_integration/fulfil/resources/product_category.rb
298
+ - lib/erp_integration/fulfil/resources/product_option.rb
298
299
  - lib/erp_integration/fulfil/resources/product_template.rb
299
300
  - lib/erp_integration/fulfil/resources/production_order.rb
300
301
  - lib/erp_integration/fulfil/resources/purchase_order.rb
301
302
  - lib/erp_integration/fulfil/resources/purchase_order_line.rb
302
303
  - lib/erp_integration/fulfil/resources/purchase_request.rb
304
+ - lib/erp_integration/fulfil/resources/sales_line_option.rb
303
305
  - lib/erp_integration/fulfil/resources/sales_order.rb
304
306
  - lib/erp_integration/fulfil/resources/sales_order_line.rb
305
307
  - lib/erp_integration/fulfil/resources/sales_return_reason.rb
@@ -316,6 +318,7 @@ files:
316
318
  - lib/erp_integration/middleware/error_handling.rb
317
319
  - lib/erp_integration/product.rb
318
320
  - lib/erp_integration/product_category.rb
321
+ - lib/erp_integration/product_option.rb
319
322
  - lib/erp_integration/product_template.rb
320
323
  - lib/erp_integration/production_order.rb
321
324
  - lib/erp_integration/purchase_order.rb
@@ -325,6 +328,7 @@ files:
325
328
  - lib/erp_integration/resources/errors.rb
326
329
  - lib/erp_integration/resources/persistence.rb
327
330
  - lib/erp_integration/resources/validations.rb
331
+ - lib/erp_integration/sales_line_option.rb
328
332
  - lib/erp_integration/sales_order.rb
329
333
  - lib/erp_integration/sales_order_line.rb
330
334
  - lib/erp_integration/sales_return_reason.rb