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

        W05 = s::SegmentDef.build(:W05, "Shipping Order Identification",
          "",
          e::E473 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
          e::E285 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
          e::E324 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E472 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
          e::E474 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
          e::E640 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E306 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E92  .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          SyntaxNotes::P.build(4, 5))
      end
    end
  end
end
