erp_integration 0.57.0 → 0.59.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: d3ca1dee9c59a3fe44512bb878c063385b9ce338a8fdc4a6ff5b9c8f7167609d
4
- data.tar.gz: cd1a513db316b7a69ace5ef024f4e64bc8214d4a08fc19c939280bb8217f505b
3
+ metadata.gz: 250cc7b1817f3927cd06be7545741785b8138140bd99630f89d57c8c9266ba95
4
+ data.tar.gz: 26b5dbd54069e133da8f967b63823ab66ab87d3f8a1eb97f96a1003a716b7c41
5
5
  SHA512:
6
- metadata.gz: a1c33b241d2bf37cdc487e49079d0fe85500125216799b872ea2921baf5769dbb33c0c57e9679cf09a5aa8ea8b68e0738052275c5b58883a76a12d4221431d19
7
- data.tar.gz: 622bc6cd1456950c07a1b67ff75ab8c66e5c7e6ece19dc685d592e43adad88ce3aaa0b927e456ecc1344a3e5bebbaf81d529755c644ee4249459aa2e4701fb84
6
+ metadata.gz: fc03d175e54dfd7eea2309d4d1dd156dc95c4df26bc1543d2611de03fb4203e028c5e23d6fc4bb3f177fdb43f834aff4084d905d9ce56356914329f021b3ee46
7
+ data.tar.gz: 435670cb288a266e2c1a4ff39cb65c276486f3e1ef87fc6f99e69c6f895b3760ffafbae4a54d715e317ab18e50a46a954892bdf47781c2937fff737694aa2287
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.2
1
+ 3.1.0
@@ -41,5 +41,9 @@ 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
44
48
  end
45
49
  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,13 @@ 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
32
39
  end
33
40
  end
34
41
  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.59.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.59.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-11-28 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.3.3
375
375
  signing_key:
376
376
  specification_version: 4
377
377
  summary: Connects Mejuri with third-party ERP vendors