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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0932079d538fced226d15ff150918a402294ac6e156dabeb6747c4bc7aa8818
|
4
|
+
data.tar.gz: 55b3a480c577522f531de51c742053ff633e048e59bfe5efd42481f29ff513be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cacdc5a6dc2f90ec59b76941446cbd2bb259aa37f20fd1f664217635923b4180226bc42ff770d5c2b25697ca9fc547648085ce73c18d8bb55db58b1f1acb02f9
|
7
|
+
data.tar.gz: 195ad741dc743617aba4a0fca214773d7e7af0a0b4e9956840b1d7db7026a32c196691748b69127c9ba83dd203645e6988c0583fa5d59dfa756743e117a7a86b
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
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 <
|
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
|
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.
|
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
|
+
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.
|
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
|