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

        W66 = s::SegmentDef.build(:W66, "Warehouse Carrier Information",
          "",
          e::E146 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
          e::E91  .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
          e::E399 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E400 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E387 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E433 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E434 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          e::E625 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
          e::E610 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
          e::E140 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
          SyntaxNotes::P.build(8, 9))
      end
    end
  end
end
