zaikio-warehouse 0.2.3 → 0.2.5

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: 875d5cf17ce81095769341f2f64af5dd5bbbe69f5f7d4fa296db221075d2a5e1
4
- data.tar.gz: e31637728832e4fce034a0e675e27b4d81c8195471c4b44fca6c98a38ec4f0e9
3
+ metadata.gz: 41fe2c973a4b725693ae1444c33bd8c032e567add048b95793cb2d5d249f00bc
4
+ data.tar.gz: ab187be945c6c61c8dcf05558b3a6155559135cfddbd52512ec4e4f3c93fcab7
5
5
  SHA512:
6
- metadata.gz: 8f77cd1cda6f4e0419349781bdd3d59d8ea0f901ea80999fc72d31e5436b8093eb32b48415e44ec032191148eb887917835aa21d52f6f86244179c7ba3e812fe
7
- data.tar.gz: f6e4e665ecbb961105a6800e01fda5a1bf1d0fee9e7ba53ec89f64c03396eef8783997f862814ca9e7813cfb21ee05c9c46407be37f202d13db547facf69a868
6
+ metadata.gz: f76914a111b66d8988f6e9a6764ec4aea26cda28981527a80b6d5e0dd9e20a3c484b0dc84a524c0c4eb67fd22ff764051215d753e0e10c8a936f3082654d4b97
7
+ data.tar.gz: 11fdc9be8978c516529698580053e07bc625b059b06407e7132b4409b13f8295b33d774b1a507bd895baaa4d85401487e9f99c99a721ea3d30ce6ac26b3e0526
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.5] - 2023-06-26
11
+
12
+ - Fixed relative class names in `CallOff`
13
+
14
+ ## [0.2.4] - 2023-03-27
15
+
16
+ - Add `Material#merge(id)` method to support merging
17
+
10
18
  ## [0.2.3] - 2023-03-20
11
19
 
12
20
  - Add an optional `person_id` attribute for `MaterialReservationCancelation`
@@ -34,7 +42,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
42
  - Update and reuse `zaikio-client-helpers` logic to support `Zaikio::Client.with_token`
35
43
  - Initial release
36
44
 
37
- [Unreleased]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.3..HEAD
45
+ [Unreleased]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.5..HEAD
46
+ [0.2.5]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.4..v0.2.5
47
+ [0.2.4]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.3..v0.2.4
38
48
  [0.2.3]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.2..v0.2.3
39
49
  [0.2.2]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.1..v0.2.2
40
50
  [0.2.1]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.0..v0.2.1
@@ -44,10 +44,10 @@ module Zaikio
44
44
 
45
45
  attributes :state, :references, :delivery_date, :deletable, :created_at, :updated_at
46
46
 
47
- has_one :delivery_address, uri: nil, class_name: "Address"
47
+ has_one :delivery_address, uri: nil, class_name: "Zaikio::Warehouse::FinishedGoods::CallOff::Address"
48
48
  has_one :customer, uri: nil, class_name: "Zaikio::Warehouse::Contact"
49
49
  has_one :operator, uri: nil, class_name: "Zaikio::Warehouse::Organization"
50
- has_many :line_items, uri: nil, class_name: "LineItem"
50
+ has_many :line_items, uri: nil, class_name: "Zaikio::Warehouse::FinishedGoods::CallOff::LineItem"
51
51
  end
52
52
  end
53
53
  end
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Zaikio
4
4
  module Warehouse
5
- VERSION = "0.2.3"
5
+ VERSION = "0.2.5"
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.3
4
+ version: 0.2.5
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-20 00:00:00.000000000 Z
12
+ date: 2023-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport