erp_integration 0.49.0 → 0.50.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: 649f6e6df0c9f5fb12d93fd9ffde7a3648cbc364f087e1bcc8ad5ef50c5102ee
4
- data.tar.gz: 1d47066b1b44fbc008cdbae187004006d06f609dbc795789f4d28b0535dd6a8f
3
+ metadata.gz: f1164d8044b67e9e2b3a76d2fc3fe1cc2a293e0a930a5e3e8f2424ec48089b9a
4
+ data.tar.gz: 11e5bccbf22d70be8496049fb731cd6fe782cba50a2283520eaeacd836b71631
5
5
  SHA512:
6
- metadata.gz: e2b9ae39b29a56106026a26831d5a4b3879561d61a0a67f27c0f0ae63714c654d54e13a1c7452aeee6511d9c1e0bde012fda5bf5b807e2955e5ed82bb750a5be
7
- data.tar.gz: e62f04b7837c043593b9afcf2c4f0f8c85e41aa20dbd789e6eba6e3a1759bde2cb84478d131338507c93ca4b3456e82a6d8a8cd92ec58ee212eb02e8e9999851
6
+ metadata.gz: 7e62a94f229b19e3ea1fa70f315e9e6e6295fa0d2ee309505787031ca69aaf6188449418abf72f9af2c2682debe083eca14eca7b5e259c5fc0c29788c0e84522
7
+ data.tar.gz: f78b319f38240e564de0136021df8f3cd866cdecbd6b409d814b3111c0acf2d200e173f685f5e110d1cc0c6957b5eff49d05e9ffb0783ec059c1a789579f8dce
@@ -47,5 +47,14 @@ module ErpIntegration
47
47
  def receive!(id)
48
48
  self.class.adapter.receive!(id)
49
49
  end
50
+
51
+ # TODO: We don't need to send the id here
52
+ # as is part of the object. Fix this and the rest
53
+ # of the methods doing the same
54
+ #
55
+ # SBE-965
56
+ def mark_as_done!(id)
57
+ self.class.adapter.mark_as_done!(id)
58
+ end
50
59
  end
51
60
  end
@@ -32,6 +32,11 @@ module ErpIntegration
32
32
  rescue Faraday::ParsingError
33
33
  true
34
34
  end
35
+
36
+ def mark_as_done!(id)
37
+ client.put("model/#{model_name}/#{id}/done")
38
+ true
39
+ end
35
40
  end
36
41
  end
37
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.49.0'
4
+ VERSION = '0.50.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.49.0
4
+ version: 0.50.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-07-30 00:00:00.000000000 Z
11
+ date: 2024-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport