zaikio-procurement 2.1.0 → 2.1.2

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: f514551c75276723f89ef84fe2888072c00dcb6f44d0237d54cc11821517507c
4
- data.tar.gz: 3c3db09e362d8573b187a2e1821adacc0cb720415e09575dd4c27ffad22553c7
3
+ metadata.gz: 04f6172910b9cfece842db08006b3e020d4de614c940585f74db84c24280e7d1
4
+ data.tar.gz: 42e2c9fc11f422ca0b0c57dbb1c5dacde30cacf969ac352dbb472c7818cbb67f
5
5
  SHA512:
6
- metadata.gz: 4982b2fcf2cdf1ef0bb2c3d13d82636935eb455419f5252b8e49183f8bb57aef751af61ee6bb49d836b917c1763ec41829beb751d1303c9afcc946cb8f3593a4
7
- data.tar.gz: 62eb46093fde1d29b43ebb3573882df0df1ab914968f44c693d113525c32ba114d43313e3e2f5739db19605841faa1a6db8c11a8e79d274be613e16ccab6146e
6
+ metadata.gz: '04521909e30e7a25ebc1082a0694047a671559b764b75c22844f34c74f9a1264aa59d6afa11be80f8f2459deb2231cec2877dc13b2f61bfa26ed59d198abd4ff'
7
+ data.tar.gz: fd6a863c8938b79b50aee6c5f395f3a0e60f4cb9de6cf39fe6435510f54af6cb645e01ffb13b5a20d853d3b09c9d0b5bafec7d292cc91e1834434cd0e85982c3
@@ -1,6 +1,11 @@
1
1
  module Zaikio
2
2
  module Procurement
3
3
  class Article < Base
4
+ # Attributes
5
+ attributes :base_unit, :description, :manufacturer, :name,
6
+ :summary, :classification_reports, :certifications,
7
+ :coated, :finish, :kind
8
+
4
9
  # Associations
5
10
  has_one :supplier, class_name: "Zaikio::Procurement::Supplier",
6
11
  uri: nil
@@ -0,0 +1,8 @@
1
+ module Zaikio
2
+ module Procurement
3
+ class LineItem < Base
4
+ # Attributes
5
+ attributes :sku_id, :amount, :unit, :palletized, :order_number
6
+ end
7
+ end
8
+ end
@@ -17,6 +17,7 @@ module Zaikio
17
17
  has_one :quantity, class_name: "Zaikio::Procurement::Quantity", uri: nil
18
18
  has_one :job, class_name: "Zaikio::Procurement::Job", uri: nil
19
19
  has_one :creator, class_name: "Zaikio::Procurement::Person", uri: nil
20
+ has_many :line_items, class_name: "Zaikio::Procurement::LineItem", uri: nil
20
21
 
21
22
  def archive
22
23
  Zaikio::Procurement::MaterialRequirement.new(
@@ -1,6 +1,10 @@
1
1
  module Zaikio
2
2
  module Procurement
3
3
  class Sku < Base
4
+ # Attributes
5
+ attributes :amount, :amount_in_base_unit, :environmental_certification,
6
+ :order_number, :palletized, :unit
7
+
4
8
  # Associations
5
9
  has_many :suppliers, class_name: "Zaikio::Procurement::Supplier",
6
10
  uri: nil
@@ -10,6 +10,12 @@ module Zaikio
10
10
  sleeking_foil specialized_printing_blanket web_substrate].freeze
11
11
  end
12
12
 
13
+ # Attributes
14
+ attributes :type, :summary, :global_trade_item_number, :brightness, :category, :color,
15
+ :dimensions_unit, :form, :grain, :height, :optical_brightness_agent,
16
+ :optical_brightness_agent_amount, :paper_weight, :paper_weight_unit, :roughness,
17
+ :thickness, :transparency, :white_point_m0, :white_point_m1, :whiteness, :width
18
+
13
19
  # Associations
14
20
  has_one :article, class_name: "Zaikio::Procurement::Article",
15
21
  uri: nil
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module Procurement
3
- VERSION = "2.1.0".freeze
3
+ VERSION = "2.1.2".freeze
4
4
  end
5
5
  end
@@ -16,6 +16,7 @@ require "zaikio/procurement/order"
16
16
  require "zaikio/procurement/order_line_item"
17
17
  require "zaikio/procurement/delivery"
18
18
  require "zaikio/procurement/material_requirement"
19
+ require "zaikio/procurement/line_item"
19
20
  require "zaikio/procurement/material"
20
21
  require "zaikio/procurement/pricing"
21
22
  require "zaikio/procurement/site"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-procurement
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.2
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: 2022-08-15 00:00:00.000000000 Z
12
+ date: 2022-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby
@@ -100,6 +100,7 @@ files:
100
100
  - lib/zaikio/procurement/contract_request.rb
101
101
  - lib/zaikio/procurement/delivery.rb
102
102
  - lib/zaikio/procurement/job.rb
103
+ - lib/zaikio/procurement/line_item.rb
103
104
  - lib/zaikio/procurement/material.rb
104
105
  - lib/zaikio/procurement/material_requirement.rb
105
106
  - lib/zaikio/procurement/order.rb