ProductRef v2.xml

Материал из Фабиус wiki
Версия от 16:14, 12 декабря 2019; Hisava (обсуждение | вклад)

(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

<?xml version="1.0" encoding="utf-8"?>

<xs:schema version="1.0"
  xmlns:xs             = "http://www.w3.org/2001/XMLSchema"
  xmlns:ns             = "http://fsrar.ru/WEGAIS/ProductRef_v2"
  targetNamespace      = "http://fsrar.ru/WEGAIS/ProductRef_v2"
  xmlns:oref           = "http://fsrar.ru/WEGAIS/ClientRef_v2"
  xmlns:c              = "http://fsrar.ru/WEGAIS/Common"
  xmlns:ce             = "http://fsrar.ru/WEGAIS/CommonEnum"
  elementFormDefault   = "qualified"
  attributeFormDefault = "unqualified">
 <xs:import namespace  = "http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
 <xs:import namespace  = "http://fsrar.ru/WEGAIS/CommonEnum" schemaLocation="EGCommonEnum.xsd"/>
 <xs:import namespace  = "http://fsrar.ru/WEGAIS/ClientRef_v2" schemaLocation="ClientRef_v2.xsd"/>
 
 <xs:complexType name="ProductsType_v2">
   <xs:annotation>
     <xs:documentation>Продукция</xs:documentation>
   </xs:annotation>
   <xs:sequence>
     <xs:element name="Product" type="ns:ProductInfo_v2" maxOccurs="unbounded" >
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 
 <xs:simpleType name="WbUnitType">
   <xs:annotation>
     <xs:documentation>Типы продукции: упакованная, неупакованная</xs:documentation>
   </xs:annotation>
   <xs:restriction base="xs:string">
     <xs:enumeration value="Packed"/>
     <xs:enumeration value="Unpacked"/>
   </xs:restriction>
 </xs:simpleType>
 
 <xs:simpleType name="ProductType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="АП"/>
     <xs:enumeration value="ССП"/>
     <xs:enumeration value="ССНП"/>
     <xs:enumeration value="Спирт"/>
     <xs:enumeration value="УБП"/>
   </xs:restriction>
 </xs:simpleType>
 <xs:complexType name="MarkInfoType">
   <xs:annotation>
     <xs:documentation>Информация о марках</xs:documentation>
   </xs:annotation>
   <xs:sequence>
     <xs:element name="Type" type="ce:TypeEnum" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Тип марки</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="Ranges" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Диапазоны марок</xs:documentation>
       </xs:annotation>
       <xs:complexType>
         <xs:sequence>
           <xs:element name="Range" minOccurs="1" maxOccurs="unbounded">
             <xs:annotation>
               <xs:documentation>Диапазоны марок</xs:documentation>
             </xs:annotation>
             <xs:complexType>
               <xs:sequence>
                 <xs:element name="Identity" type="xs:string" nillable="false" minOccurs="0" maxOccurs="1">
                   <xs:annotation>
                     <xs:documentation>Идентификатор диапазона в списке</xs:documentation>
                   </xs:annotation>
                 </xs:element>
                 <xs:element name="Rank" type="ns:RankType" minOccurs="1" maxOccurs="1">
                   <xs:annotation>
                     <xs:documentation>Серия</xs:documentation>
                   </xs:annotation>
                 </xs:element>
                 <xs:element name="Start" type="ns:MarkNumberType" minOccurs="1" maxOccurs="1">
                   <xs:annotation>
                     <xs:documentation>Начальный номер</xs:documentation>
                   </xs:annotation>
                 </xs:element>
                 <xs:element name="Last" type="ns:MarkNumberType" minOccurs="1" maxOccurs="1">
                   <xs:annotation>
                     <xs:documentation>Конечный номер</xs:documentation>
                   </xs:annotation>
                 </xs:element>
               </xs:sequence>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 <xs:simpleType name="RankType">
   <xs:annotation>
     <xs:documentation>Серия марки</xs:documentation>
   </xs:annotation>
   <xs:restriction>
     <xs:simpleType>
       <xs:restriction base="xs:string" />
     </xs:simpleType>
     <xs:length value="3" />
     <xs:pattern value="[0-9]{3}" />
   </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="MarkNumberType">
   <xs:annotation>
     <xs:documentation>Серия марки</xs:documentation>
   </xs:annotation>
   <xs:restriction>
     <xs:simpleType>
       <xs:restriction base="xs:string" />
     </xs:simpleType>
     <xs:maxLength value="9" />
     <xs:minLength value="1" />
     <xs:pattern value="([0-9])*" />
   </xs:restriction>
 </xs:simpleType>
 
 <xs:complexType name="ProductInfoTest_v2">
   <xs:annotation>
     <xs:documentation>Продукция</xs:documentation>
   </xs:annotation>
   <xs:choice>
     <xs:element name="Domestic" type="ns:ProductInfoRus_v2" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Российское производство</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="Foreign" type="ns:ProductInfoForeign_v2" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Иностранное производство</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:choice>
 </xs:complexType>
 <xs:complexType name="ProductInfo_v2">
   <xs:annotation>
     <xs:documentation>Продукция </xs:documentation>
   </xs:annotation>
   <xs:all>
     <xs:element name="UnitType" type="ns:WbUnitType" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Признак фасованной/нефасованной продукции</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element type="ns:ProductType" name="Type" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Тип продукции (АП | ССП | ССНП | Спирт) Если не указано, то АП</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FullName" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции полное</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="255"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="ShortName" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции краткое</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="AlcCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Capacity" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Емкость упаковки продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="AlcVolume" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Содержание этилового спирта, %</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:decimal">
           <xs:minInclusive value="0"/>
           <xs:maxInclusive value="100"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Producer" type="oref:OrgInfo_v2" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Производитель</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="ProductVCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код вида продукции</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="5"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
   </xs:all>
 </xs:complexType>
 <xs:complexType name="ProductInfoReply_v2">
   <xs:annotation>
     <xs:documentation>Продукция </xs:documentation>
   </xs:annotation>
   <xs:all>
     <xs:element name="UnitType" type="ns:WbUnitType" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Признак фасованной/нефасованной продукции</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element type="ns:ProductType" name="Type" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Тип продукции (АП | ССП | ССНП | Спирт) Если не указано, то АП</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FullName" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции полное</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="255"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="ShortName" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции краткое</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="AlcCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Capacity" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Емкость упаковки продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="AlcVolume" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Содержание этилового спирта, %</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:decimal">
           <xs:minInclusive value="0"/>
           <xs:maxInclusive value="100"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Producer" type="oref:OrgInfoReply_v2" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Производитель</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="ProductVCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код вида продукции</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="5"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
   </xs:all>
 </xs:complexType>
 <xs:complexType name="ProductInfoRus_v2">
   <xs:annotation>
     <xs:documentation>Продукция российского происхождения</xs:documentation>
   </xs:annotation>
   <xs:all>
     <xs:element name="UnitType" type="ns:WbUnitType" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Признак фасованной/нефасованной продукции</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element type="ns:ProductType" name="Type" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Тип продукции (АП | ССП | ССНП | Спирт) Если не указано, то АП</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FullName" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции полное</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="255"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="ShortName" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции краткое</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="AlcCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Capacity" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Емкость упаковки продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="AlcVolume" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Содержание этилового спирта, %</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:decimal">
           <xs:minInclusive value="0"/>
           <xs:maxInclusive value="100"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Producer" type="oref:OrgInfoRus_v2" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Производитель</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="ProductVCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код вида продукции</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="5"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
   </xs:all>
 </xs:complexType>
 <xs:complexType name="ProductInfoForeign_v2">
   <xs:annotation>
     <xs:documentation>Продукция иностранного происхождения</xs:documentation>
   </xs:annotation>
   <xs:all>
     <xs:element name="UnitType" type="ns:WbUnitType" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Признак фасованной/нефасованной продукции</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element type="ns:ProductType" name="Type" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Тип продукции (АП | ССП | ССНП | Спирт) Если не указано, то АП</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FullName" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции полное</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="255"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="ShortName" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции краткое</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="AlcCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Capacity" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Емкость упаковки продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="AlcVolume" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Содержание этилового спирта, %</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:decimal">
           <xs:minInclusive value="0"/>
           <xs:maxInclusive value="100"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Producer" type="oref:OrgInfoForeign_v2" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Производитель</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="Importer" type="oref:OrgInfoRus_v2" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Производитель</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="ProductVCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код вида продукции</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="5"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
   </xs:all>
 </xs:complexType>
 <xs:complexType name="ProductInfoAsiiu_v2">
   <xs:annotation>
     <xs:documentation>Продукция российского происхождения</xs:documentation>
   </xs:annotation>
   <xs:all>
     <xs:element name="UnitType" type="ns:WbUnitType" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Признак фасованной/нефасованной продукции</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element type="ns:ProductType" name="Type" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Тип продукции (АП | ССП | ССНП | Спирт) Если не указано, то АП</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FullName" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции полное</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="255"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="ShortName" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование продукции краткое</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="AlcCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="Capacity" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Емкость упаковки продукции согласно ЕГАИС</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="AlcVolume" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Содержание этилового спирта, %</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:decimal">
           <xs:minInclusive value="0"/>
           <xs:maxInclusive value="100"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="ProductVCode" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код вида продукции</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="c:NoEmptyString">
           <xs:maxLength value="5"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
   </xs:all>
 </xs:complexType>
 <xs:complexType name="InformF1Type">
   <xs:annotation>
     <xs:documentation>Справка 1 к ТТН</xs:documentation>
   </xs:annotation>
   <xs:sequence>
     <xs:element name="RegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Регистрационный номер справки 1</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="MarkInfo" type="ns:MarkInfoType" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Информация о марках</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 <xs:complexType name="InformF2Type">
   <xs:annotation>
     <xs:documentation>Справка 2 к ТТН</xs:documentation>
   </xs:annotation>
   <xs:sequence>
     <xs:element name="InformF2Item" type="ns:InformF2TypeItem" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Информация о предыдущих отгрузках</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 <xs:complexType name="InformF2TypeItem">
   <xs:annotation>
     <xs:documentation>Запись в справке 2 к ТТН, Информация о предыдущих отгрузках</xs:documentation>
   </xs:annotation>
   <xs:sequence>
     <xs:element name="F2RegId" type="c:NoEmptyString50" default="FIRSTSHIPMENT" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Регистрационный номер раздела справки 2</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="MarkInfo" type="ns:MarkInfoType" nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Информация о марках</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:sequence>
 </xs:complexType>
</xs:schema>

Смотрите также

TTNSingle v3.xml