<!--
   This file is part of the X12Parser library that provides tools to
   manipulate X12 messages using Ruby native syntax.

   http://x12parser.rubyforge.org 
   
   Copyright (C) 2009 APP Design, Inc.

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with this library; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

   $Id: MCT.xml 78 2009-05-12 22:27:26Z ikk $
-->

<Segment name="MCT" comment="To identify accessorial charges and define the range for which each charge is applicable">
  <Field name="SpecialChargeOrAllowanceCode" min="3" max="3" validation="T150" comment="Code identifying type of special charge or allowance"/>
  <Field name="TariffValueCode" required="y" min="2" max="2" validation="T981" comment="Code identifying how to apply or interpret accessorial charges"/>
  <Field name="RangeMinimum" type="double" required="y" min="1" max="20" comment="The value specifying the minimum of the measurement range"/>
  <Field name="RangeMaximum" type="double" required="y" min="1" max="20" comment="The value specifying the maximum of the measurement range"/>
  <Field name="RateValueQualifier" required="y" min="2" max="2" validation="T122" comment="Code qualifying how to extend charges or interpret value"/>
  <Field name="Rate" type="double" required="y" min="1" max="9" comment="Rate expressed in the standard monetary denomination for the currency specified"/>
  <Field name="TariffReferenceFlag" required="y" min="1" max="1" validation="T974" comment="Code signifying that printed tariff needs to be referenced for proper application of tariff rules or for further explanation of tariff data"/>
  <Field name="SpecialChargeDescription" required="y" min="2" max="25" comment="Identification of special charge; this data element is used whenever an applicable code cannot be found in data element 150"/>
</Segment>