erp_integration 0.57.0 → 0.60.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: d3ca1dee9c59a3fe44512bb878c063385b9ce338a8fdc4a6ff5b9c8f7167609d
4
- data.tar.gz: cd1a513db316b7a69ace5ef024f4e64bc8214d4a08fc19c939280bb8217f505b
3
+ metadata.gz: a0932079d538fced226d15ff150918a402294ac6e156dabeb6747c4bc7aa8818
4
+ data.tar.gz: 55b3a480c577522f531de51c742053ff633e048e59bfe5efd42481f29ff513be
5
5
  SHA512:
6
- metadata.gz: a1c33b241d2bf37cdc487e49079d0fe85500125216799b872ea2921baf5769dbb33c0c57e9679cf09a5aa8ea8b68e0738052275c5b58883a76a12d4221431d19
7
- data.tar.gz: 622bc6cd1456950c07a1b67ff75ab8c66e5c7e6ece19dc685d592e43adad88ce3aaa0b927e456ecc1344a3e5bebbaf81d529755c644ee4249459aa2e4701fb84
6
+ metadata.gz: cacdc5a6dc2f90ec59b76941446cbd2bb259aa37f20fd1f664217635923b4180226bc42ff770d5c2b25697ca9fc547648085ce73c18d8bb55db58b1f1acb02f9
7
+ data.tar.gz: 195ad741dc743617aba4a0fca214773d7e7af0a0b4e9956840b1d7db7026a32c196691748b69127c9ba83dd203645e6988c0583fa5d59dfa756743e117a7a86b
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.2
1
+ 3.0.2
@@ -41,5 +41,13 @@ module ErpIntegration
41
41
  def mark_as_packed!
42
42
  self.class.adapter.mark_as_packed!(id)
43
43
  end
44
+
45
+ def mark_as_done!
46
+ self.class.adapter.mark_as_done!(id)
47
+ end
48
+
49
+ def bulk_update(options)
50
+ self.class.adapter.bulk_update(options)
51
+ end
44
52
  end
45
53
  end
@@ -32,7 +32,7 @@ module ErpIntegration
32
32
  class MethodNotAllowed < HttpError; end
33
33
  class NotAccepted < HttpError; end
34
34
  class UnprocessableEntity < HttpError; end
35
- class TooManyRequests < HttpError; end
35
+ class TooManyRequests < Faraday::Error; end
36
36
  class InternalServerError < HttpError; end
37
37
  end
38
38
  end
@@ -29,6 +29,25 @@ module ErpIntegration
29
29
  def mark_as_packed!(id)
30
30
  client.put("model/stock.shipment.out/#{id}/pack")
31
31
  end
32
+
33
+ # Mark a CustomerShipment as done in Fulfil
34
+ #
35
+ # @param id [Integer, String] The ID of the Customer Shipment
36
+ def mark_as_done!(id)
37
+ client.put("model/stock.shipment.out/#{id}/done")
38
+ end
39
+
40
+ # Bulk update CustomerShipments in Fulfil
41
+ #
42
+ # @param options [Array]
43
+ # [
44
+ # [ customer_shipment_id ],
45
+ # { "planned_date": 2024-05-04 },
46
+ # ...
47
+ # ]
48
+ def bulk_update(options)
49
+ client.put('model/stock.shipment.out/write', options)
50
+ end
32
51
  end
33
52
  end
34
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.57.0'
4
+ VERSION = '0.60.0'
5
5
  end
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.57.0
4
+ version: 0.60.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-11-20 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -371,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
371
371
  - !ruby/object:Gem::Version
372
372
  version: '0'
373
373
  requirements: []
374
- rubygems_version: 3.5.6
374
+ rubygems_version: 3.4.10
375
375
  signing_key:
376
376
  specification_version: 4
377
377
  summary: Connects Mejuri with third-party ERP vendors