TTNInformF2Reg.xsd

Материал из Фабиус wiki
Перейти к: навигация, поиск

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

<xs:schema version = "1.0"
 xmlns:ns          = "http://fsrar.ru/WEGAIS/TTNInformF2Reg"
 targetNamespace   = "http://fsrar.ru/WEGAIS/TTNInformF2Reg"
 xmlns:xs          = "http://www.w3.org/2001/XMLSchema"
 xmlns:c           = "http://fsrar.ru/WEGAIS/Common" 
 elementFormDefault = "qualified"
 attributeFormDefault = "unqualified"
 xmlns:oref           = "http://fsrar.ru/WEGAIS/ClientRef_v2"
 xmlns:pref           = "http://fsrar.ru/WEGAIS/ProductRef_v2">
 <xs:import namespace = "http://fsrar.ru/WEGAIS/Common"       schemaLocation = "EGCommon.xsd"/>  
 <xs:import namespace = "http://fsrar.ru/WEGAIS/ClientRef_v2" schemaLocation = "ClientRef_v2.xsd"/>
 <xs:complexType name = "WayBillInformF2RegType">
  <xs:annotation>
   <xs:documentation>Квитанция о регистрации справок 2 для Товарно-Транспортной Накладной</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name = "Header">
    <xs:complexType>
     <xs:all>
      <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "0" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>ИД накладной(клиентский, исходной накладной, если заполнялся)</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "WBRegId" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>ИД накладной в системе (присвоенный)</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "EGAISFixNumber" type = "c:NoEmptyString50" minOccurs = "0" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Номер фиксации накладной(отгрузки) в ЕГАИС</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "EGAISFixDate" type = "c:DateNoTime" minOccurs = "0" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Дата фиксации накладной(отгрузки) в ЕГАИС</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "WBNUMBER" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Номер накладной</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "WBDate" type = "c:DateNoTime" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Дата составления накладной</xs:documentation>
       </xs:annotation>
      </xs:element>
           
      <xs:element name = "Shipper" type = "oref:OrgInfoRus_v2" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Грузоотправитель</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "Consignee" type = "oref:OrgInfo_v2" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Грузополучатель</xs:documentation>
       </xs:annotation>
      </xs:element>
     </xs:all>
    </xs:complexType>
   </xs:element>
   <xs:element name = "Content">
    <xs:complexType>
     <xs:sequence>
      <xs:element name = "Position" type = "ns:InformF2PositionType" minOccurs = "1" maxOccurs = "unbounded">
       <xs:annotation>
        <xs:documentation>Содержимое должно содержать 1 и более позиций</xs:documentation>
       </xs:annotation>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
    <xs:unique name = "PosUnB">
     <xs:selector xpath = "ns:Position"/>
     <xs:field xpath = "ns:Identity"/>
    </xs:unique>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name = "InformF2PositionType">
  <xs:all>
   <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Идентификатор позиции внутри накладной</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "InformF2RegId" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Регистрационный номер записи справки 2</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "BottlingDate" type = "c:DateNoTime" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Дата производства/импорта продукции</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:all>
 </xs:complexType> 
</xs:schema>

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

Документы и их типы для отправки ( версия 4 )