erp_integration 0.21.0 → 0.22.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: c03eaf82065763fce0b3bf8b771b2af9a04e588ab56056f3b617f7696db110ad
4
- data.tar.gz: bfdf6e68ea49ad4e72a5cfcaa28d2b99d39d67f26cebb866214583076e607047
3
+ metadata.gz: 0521d80838f8ccd03a3c0dd41d712f9313e3dfc0c399b32bfc61164196e0bafa
4
+ data.tar.gz: ab487dd4c2f93eb5c41178970c76811cbb986d513f5aea4dd7fa9d646ec90336
5
5
  SHA512:
6
- metadata.gz: e368a61cd727304adf94f5dbfb14f149b2c976b27e68c7d1de00b93dee9d279f35dfcbf58d197ef3f9775cbf6a0e1d18af1c4ac0883edf8e3466eabe8c7c9fd4
7
- data.tar.gz: b82940b549df5f315167152bcc65c60ce7fc44ed44d8863513238e06c66e330e553dd2cdbe6799bd01b7c3b418b5fb45d8e2d14d8f0e949e8b9a2c787c93be69
6
+ metadata.gz: 52e06719aa752a9c5e59723ab446285d1759190ddd5b467afa049de1e056710cf7564d4da13239384a7eb93cde799cd277e19bc3c2120fb8ce82cfd86a8716a0
7
+ data.tar.gz: cb8a670fc0a97172b4ac631c15b4ded0e600af49da29aebc1a80c11034bed903c63c76064c1f083d1ae33d9e2e1cdc1c14809a596407bb0e299e0188de46eb5f
@@ -15,4 +15,4 @@ jobs:
15
15
  steps:
16
16
  - uses: seferov/pr-lint-action@master
17
17
  with:
18
- title-regex: '^\[RELEASE|NO-TICKET|DL|UDL|AD|DU|AR|IN|CON|DIS|AS|MT|DEL-\d*\](\ )'
18
+ title-regex: '^\[RELEASE|NO-TICKET|DL|UDL|AD|DU|AR|IN|CON|DIS|AS|MT|SCR|DEL-\d*\](\ )'
@@ -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, :quantity
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.
@@ -20,6 +20,10 @@ module ErpIntegration
20
20
  self.class.adapter.cancel(id)
21
21
  end
22
22
 
23
+ def return!(options)
24
+ self.class.adapter.return!(id, options)
25
+ end
26
+
23
27
  def duplicate
24
28
  self.class.adapter.duplicate(id)
25
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.21.0'
4
+ VERSION = '0.22.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.21.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-01-31 00:00:00.000000000 Z
11
+ date: 2023-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport