# frozen_string_literal: true
module Stupidedi
  module Versions
    module ThirtyForty
      module SegmentDefs
        s = Schema
        e = ElementDefs
        r = ElementReqs

        W17 = s::SegmentDef.build(:W17, "Warehouse Receipt Identification",
          "To provide identifying numbers and date",
          e::E514 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
          e::E373 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
          e::E394 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
          e::E285 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
          e::E145 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E176 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
          e::E337 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
          e::E474 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
          e::E472 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
          SyntaxNotes::P.build(6, 7),
          SyntaxNotes::P.build(8, 9))
      end
    end
  end
end
