erp_integration 0.33.0 → 0.34.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: 3ac97590f290e26055da9668b54eda483dd7aa197d2c131ed129898af7722818
4
- data.tar.gz: f2b35c2a82dc71e4fb520dcbc119b0ed2c0668157620c190002452956c381a12
3
+ metadata.gz: 46c2613fa4d588241f06f9a130cdc5fece97ba69c5e732d66d4ff141adabb080
4
+ data.tar.gz: 71e0908f8b3fbfcf89a28d15445cd8d3b170a19ba81182c0af03be0933a64631
5
5
  SHA512:
6
- metadata.gz: 7b271c8b16571c28015c5ce11387831a1ab434953e32106396dbb324e9a9b08d82aacfc270637a81db51de40bae78ceff1430ba85e4fd63c8275ab108ca856a2
7
- data.tar.gz: 9f513bc64319f18136f5f0e11aefe6a7b69e83deb0023af6227bb299f5324231369eb2ba655bd4940b2dbeae623f1c5ff205f978a3dd477cea46ed22e1a9c0ee
6
+ metadata.gz: 273b05cc0dbf4030cb6a0a39788614165aba29392795e196228987300a74043a81760ded720d8ba548f0c74708293bb0e845add3b4f3ecef7d69e3939fb5a558
7
+ data.tar.gz: 0e8969487347f3a661ffaa5c789b65fae4da98f1c2e117f19aef0286e86a8856b70f70e71b095c48d5698f39112fea808ef28620935308f268fb74574b211a69
@@ -102,6 +102,11 @@ module ErpIntegration
102
102
  # @return [Symbol] The configured adapter for the stock move.
103
103
  attr_writer :stock_move_adapter
104
104
 
105
+ # Allows configuring an adapter for the `Task` resource. When
106
+ # none is configured, it will default to Fulfil.
107
+ # @return [Symbol] The configured adapter for the task.
108
+ attr_writer :task_adapter
109
+
105
110
  # Allows configuring an adapter for the `TrackingNumber` resource. When
106
111
  # none is configured, it will default to Fulfil.
107
112
  # @return [Symbol] The configured adapter for the tracking number.
@@ -198,6 +203,10 @@ module ErpIntegration
198
203
  @stock_move_adapter || :fulfil
199
204
  end
200
205
 
206
+ def task_adapter
207
+ @task_adapter || :fulfil
208
+ end
209
+
201
210
  def tracking_number_adapter
202
211
  @tracking_number_adapter || :fulfil
203
212
  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 Task < ApiResource
9
+ self.model_name = 'task'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ class Task < Resource
5
+ attr_accessor :id, :attachments, :batch, :create_date, :create_uid,
6
+ :customer_shipment, :done_at, :messages, :metadata, :metafields,
7
+ :name, :operation, :origin, :owner, :private_notes, :public_notes,
8
+ :rec_blurb, :rec_name, :requester, :started_at, :state, :stock_move,
9
+ :template, :type, :write_date, :write_uid
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.33.0'
4
+ VERSION = '0.34.0'
5
5
  end
@@ -41,6 +41,7 @@ module ErpIntegration
41
41
  autoload :SalesReturnReason, 'erp_integration/sales_return_reason'
42
42
  autoload :StockMove, 'erp_integration/stock_move'
43
43
  autoload :SupplierShipment, 'erp_integration/supplier_shipment'
44
+ autoload :Task, 'erp_integration/task'
44
45
  autoload :TrackingNumber, 'erp_integration/tracking_number'
45
46
  autoload :Webhook, 'erp_integration/webhook'
46
47
  autoload :GiftCard, 'erp_integration/gift_card'
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.33.0
4
+ version: 0.34.0
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: 2023-05-15 00:00:00.000000000 Z
11
+ date: 2023-06-23 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: []
@@ -299,6 +299,7 @@ files:
299
299
  - lib/erp_integration/fulfil/resources/sales_return_reason.rb
300
300
  - lib/erp_integration/fulfil/resources/stock_move.rb
301
301
  - lib/erp_integration/fulfil/resources/supplier_shipment.rb
302
+ - lib/erp_integration/fulfil/resources/task.rb
302
303
  - lib/erp_integration/fulfil/resources/tracking_number.rb
303
304
  - lib/erp_integration/fulfil/resources/webhook.rb
304
305
  - lib/erp_integration/fulfil/where_clause.rb
@@ -318,6 +319,7 @@ files:
318
319
  - lib/erp_integration/sales_return_reason.rb
319
320
  - lib/erp_integration/stock_move.rb
320
321
  - lib/erp_integration/supplier_shipment.rb
322
+ - lib/erp_integration/task.rb
321
323
  - lib/erp_integration/tracking_number.rb
322
324
  - lib/erp_integration/types/decimal.rb
323
325
  - lib/erp_integration/version.rb
@@ -330,7 +332,7 @@ metadata:
330
332
  homepage_uri: https://www.github.com/mejuri-inc/erp-integration
331
333
  source_code_uri: https://www.github.com/mejuri-inc/erp-integration
332
334
  changelog_uri: https://www.github.com/mejuri-inc/erp-integration/blob/main/CHANGELOG.md
333
- post_install_message:
335
+ post_install_message:
334
336
  rdoc_options: []
335
337
  require_paths:
336
338
  - lib
@@ -345,8 +347,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
345
347
  - !ruby/object:Gem::Version
346
348
  version: '0'
347
349
  requirements: []
348
- rubygems_version: 3.3.7
349
- signing_key:
350
+ rubygems_version: 3.2.3
351
+ signing_key:
350
352
  specification_version: 4
351
353
  summary: Connects Mejuri with third-party ERP vendors
352
354
  test_files: []