erp_integration 0.21.0 → 0.22.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0521d80838f8ccd03a3c0dd41d712f9313e3dfc0c399b32bfc61164196e0bafa
|
4
|
+
data.tar.gz: ab487dd4c2f93eb5c41178970c76811cbb986d513f5aea4dd7fa9d646ec90336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e06719aa752a9c5e59723ab446285d1759190ddd5b467afa049de1e056710cf7564d4da13239384a7eb93cde799cd277e19bc3c2120fb8ce82cfd86a8716a0
|
7
|
+
data.tar.gz: cb8a670fc0a97172b4ac631c15b4ded0e600af49da29aebc1a80c11034bed903c63c76064c1f083d1ae33d9e2e1cdc1c14809a596407bb0e299e0188de46eb5f
|
@@ -4,6 +4,7 @@ module ErpIntegration
|
|
4
4
|
# The `ErpIntegration::ChannelListing` exposes an uniformed API for interaction with
|
5
5
|
# third-party ERP vendors.
|
6
6
|
class ChannelListing < Resource
|
7
|
-
attr_accessor :id, :channel, :product,
|
7
|
+
attr_accessor :availability_source, :bom, :id, :channel, :product,
|
8
|
+
:quantity, :product_identifier
|
8
9
|
end
|
9
10
|
end
|
@@ -29,6 +29,12 @@ module ErpIntegration
|
|
29
29
|
true
|
30
30
|
end
|
31
31
|
|
32
|
+
def return!(id, options)
|
33
|
+
client.put("model/sale.sale/#{id}/return_order", options)
|
34
|
+
rescue ErpIntegration::HttpError::BadRequest
|
35
|
+
false
|
36
|
+
end
|
37
|
+
|
32
38
|
# Allows duplicating the entire sales order in Fulfil.
|
33
39
|
# @param id [Integer|String] The ID of the to be duplicated order.
|
34
40
|
# @return [Array|boolean] Whether the sales order was duplicated successfully or not.
|
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.22.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: 2023-
|
11
|
+
date: 2023-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|