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 +4 -4
- data/CHANGELOG.md +11 -1
- data/lib/zaikio/warehouse/finished_goods/call_off.rb +2 -2
- data/lib/zaikio/warehouse/material.rb +10 -0
- data/lib/zaikio/warehouse/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41fe2c973a4b725693ae1444c33bd8c032e567add048b95793cb2d5d249f00bc
|
4
|
+
data.tar.gz: ab187be945c6c61c8dcf05558b3a6155559135cfddbd52512ec4e4f3c93fcab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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.
|
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-
|
12
|
+
date: 2023-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|