zaikio-warehouse 0.2.2 → 0.2.4

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: 84d3b3d618cda393f386f9839345d2b428a94a704a0dafa4d22aacb25fe7a064
4
- data.tar.gz: 1ff3543a8c05517cbfbe94eb54425c78240b24379fbe4a004db6cb8942724138
3
+ metadata.gz: c8e6cd14f506a06aa4f2f6dcfe43452144f0c2ece0063350f55f3c77589b30d8
4
+ data.tar.gz: 85e0ec8568a905739541b005cd56cf394276eb8812ca06c09bc204f79983eeb9
5
5
  SHA512:
6
- metadata.gz: 2baf20da780caf3cca93770b1ef48672261304a06d5170c2c9dcdb2d1222d7cb408a200a19d42edc8f4ba3d80750f0040b3a69062ff1323286a46fb614f42720
7
- data.tar.gz: ff8d7c8b8ca34cc26239195714e6b3de857cc83c58fb6974f74335a97b554f138718439d88e33a8b8b9e584d3d0a3da6a24341dbcf5d3f2fe0f3bc0930dee5a9
6
+ metadata.gz: bac9ee55ef8d820f8adf4154298ce96b9dbcd06164f92d6bea42c1a9b95da58167b42639566dc294dfde74d550a0d039f4eab809166b5a0f8e3b7c60d8209f01
7
+ data.tar.gz: 94c2dfd23e36e72a6231ba1c75e449a171c0624388dd87e4beb677da5bb144ae2829560327b75c36c915f37b0af61bf3fdd55ac6a9647dd1126bdd8a51d2ffb6
data/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.4] - 2023-03-27
11
+
12
+ - Add `Material#merge(id)` method to support merging
13
+
14
+ ## [0.2.3] - 2023-03-20
15
+
16
+ - Add an optional `person_id` attribute for `MaterialReservationCancelation`
17
+
10
18
  ## [0.2.2] - 2023-03-16
11
19
 
12
20
  - Add endpoint to `#material_requests` association for `Material`
@@ -30,7 +38,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
38
  - Update and reuse `zaikio-client-helpers` logic to support `Zaikio::Client.with_token`
31
39
  - Initial release
32
40
 
33
- [Unreleased]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.1..HEAD
41
+ [Unreleased]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.4..HEAD
42
+ [0.2.4]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.3..v0.2.4
43
+ [0.2.3]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.2..v0.2.3
44
+ [0.2.2]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.1..v0.2.2
34
45
  [0.2.1]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.0..v0.2.1
35
46
  [0.2.0]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.1.0..v0.2.0
36
47
  [0.1.0]: https://github.com/zaikio/zaikio-hub-models/compare/c96ae1302a6ec5b90cfc445116fc83af16579e01..v0.1.0
@@ -22,6 +22,16 @@ module Zaikio
22
22
  has_many :material_reservations,
23
23
  uri: "materials/:material_id/material_reservations",
24
24
  class_name: "Zaikio::Warehouse::MaterialReservation"
25
+
26
+ def merge(into_material_or_material_id)
27
+ self.class.request(:post, "#{collection_name}/#{id}/merge_into/#{into_material_or_material_id.to_param}")
28
+ end
29
+
30
+ private
31
+
32
+ def collection_name
33
+ self.class.name.demodulize.underscore.pluralize
34
+ end
25
35
  end
26
36
  end
27
37
  end
@@ -9,7 +9,7 @@ module Zaikio
9
9
  uri "material_reservation_cancelations(/:id)"
10
10
 
11
11
  attributes :material_reservation_id, :cancelation_reference, :cancelation_reference_link,
12
- :cancelation_client, :cancelation_subject, :amount, :reason, :created_at, :updated_at
12
+ :cancelation_client, :cancelation_subject, :person_id, :amount, :reason, :created_at, :updated_at
13
13
 
14
14
  has_one :material, uri: nil, class_name: "Zaikio::Warehouse::Material"
15
15
  has_one :warehouse, uri: nil, class_name: "Zaikio::Warehouse::Warehouse"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Zaikio
4
4
  module Warehouse
5
- VERSION = "0.2.2"
5
+ VERSION = "0.2.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-warehouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaikio GmbH
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-16 00:00:00.000000000 Z
12
+ date: 2023-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport