erp_integration 0.27.0 → 0.28.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: af2d7c35bd0582dd14abd43703dfe8eaff596501a17e19d6b600ab7b77771437
4
- data.tar.gz: d42c0df0a66e21e1b51e64da1761cd774d30bde60a273e5eda2fe907871405cf
3
+ metadata.gz: ce9166d556b18b7bc901a79897d91aac2fe7eb55c5aaddf9af9294c4bd998565
4
+ data.tar.gz: e1691411b7567d04cd7f005be725df6be5934bf5ce6bbf3c827f622ac05f2ad5
5
5
  SHA512:
6
- metadata.gz: e9c61186614433de65b90c79eabed2980d44447c7b7f1dc7416960ad7d40f6ce92768fb7f81d9024cea3707dac48b0007f63d17c74b104fd112f2ce0dcf3c161
7
- data.tar.gz: bec060c2f626b39e375561e4c19453e359243158877a10f12baf570aab10ae218ef9d30e9422178a704c54f9e2015ad7bcfb9f9cd0c13516af178cb1dcaa6259
6
+ metadata.gz: 59b3d087c5218481e4482a37f6b48ea3a889fd4e1c63e9a38704a636a45b0c15f2fc622231819ee7f1ebb78687e7313e1044227d3094d9f157f502959bab53fd
7
+ data.tar.gz: b41b6762a7b5667ea55732c1e2d184c3074223ea3508fb08a1bb917424a76b1b9907434d1c9083c33efd45d4f6c0ec49528b500dec10e0df4e0a0d476faa4fe7
@@ -32,5 +32,13 @@ module ErpIntegration
32
32
  def create_default_package(id)
33
33
  self.class.adapter.create_default_package(id)
34
34
  end
35
+
36
+ # Create a package for a {CustomerShipmentReturn}.
37
+ #
38
+ # @param id [Integer] The ID of the {CustomerShipmentReturn}.
39
+ # @param options [Hash] The attributes needed for the new package.
40
+ def create_package(id, options)
41
+ self.class.adapter.create_package(id, options)
42
+ end
35
43
  end
36
44
  end
@@ -21,6 +21,10 @@ module ErpIntegration
21
21
  def create_default_package(id)
22
22
  client.put("model/#{model_name}/#{id}/create_default_packages")
23
23
  end
24
+
25
+ def create_package(id, options)
26
+ client.put("model/#{model_name}/#{id}", options)
27
+ end
24
28
  end
25
29
  end
26
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.27.0'
4
+ VERSION = '0.28.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.27.0
4
+ version: 0.28.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-03-24 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport