<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xs:element name="PT514C">
  <xs:annotation>
    <xs:documentation> ; Envelope da Mensagem; O; </xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="messageSender">
        <xs:annotation>
          <xs:documentation> ; Emissor (Sender); O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="messageRecipient">
        <xs:annotation>
          <xs:documentation> ; Recetor; O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="preparationDateAndTime">
        <xs:annotation>
          <xs:documentation> ; Data e hora de preparação; O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="19"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="messageIdentification">
        <xs:annotation>
          <xs:documentation> ; Identificação da mensagem; O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="messageType">
        <xs:annotation>
          <xs:documentation> ; Tipo de mensagem; O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="6"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="correlationIdentifier" minOccurs="0">
        <xs:annotation>
          <xs:documentation> ; Identificador de correlação; C; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ExportOperation">
        <xs:annotation>
          <xs:documentation> ; Operação de exportação; O; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LRN" minOccurs="0">
              <xs:annotation>
                <xs:documentation>12 09 000 000 ; NRL; C; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="22"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MRN" minOccurs="0">
              <xs:annotation>
                <xs:documentation> ; MRN; C; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="18"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="invalidationRequestDateAndTime">
              <xs:annotation>
                <xs:documentation> ; Data e hora do pedido de anulação; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="19"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="invalidationReason">
              <xs:annotation>
                <xs:documentation> ; Fundamento do pedido; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CustomsOfficeOfExport">
        <xs:annotation>
          <xs:documentation>17 02 000 000 ; Estância aduaneira de exportação; O; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="referenceNumber">
              <xs:annotation>
                <xs:documentation>17 02 001 000 ; N.º de referência; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Exporter" minOccurs="0">
        <xs:annotation>
          <xs:documentation>13 01 000 000 ; Exportador; C; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="identificationNumber" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 01 017 000 ; N.º de identificação; C; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="name" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 01 016 000 ; Nome; C; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Address" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 01 018 000 ; Endereço; C; </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="streetAndNumber">
                    <xs:annotation>
                      <xs:documentation>13 01 018 019 ; Rua e n.º; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="postcode" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>13 01 018 021 ; Código postal; C; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="17"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="city">
                    <xs:annotation>
                      <xs:documentation>13 01 018 022 ; Localidade; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="country">
                    <xs:annotation>
                      <xs:documentation>13 01 018 020 ; País; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Declarant">
        <xs:annotation>
          <xs:documentation>13 05 000 000 ; Declarante; O; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="identificationNumber" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 05 017 000 ; N.º de identificação; C; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="name" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 05 016 000 ; Nome; C; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Address" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 05 018 000 ; Endereço; C; </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="streetAndNumber">
                    <xs:annotation>
                      <xs:documentation>13 05 018 019 ; Rua e n.º; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="postcode" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>13 05 018 021 ; Código postal; C; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="17"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="city">
                    <xs:annotation>
                      <xs:documentation>13 05 018 022 ; Localidade; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="country">
                    <xs:annotation>
                      <xs:documentation>13 05 018 020 ; País; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ContactPerson" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 05 074 000 ; Pessoa de contacto; F; </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="name">
                    <xs:annotation>
                      <xs:documentation>13 05 074 016 ; Nome; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="phoneNumber">
                    <xs:annotation>
                      <xs:documentation>13 05 074 075 ; N.º de telefone; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="eMailAddress" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>13 05 074 076 ; Endereço eletrónico; F; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="256"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Representative" minOccurs="0">
        <xs:annotation>
          <xs:documentation>13 06 000 000 ; Representante; C; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="identificationNumber">
              <xs:annotation>
                <xs:documentation>13 06 017 000 ; N.º de identificação; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="status">
              <xs:annotation>
                <xs:documentation>13 06 030 000 ; Estatuto; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:int">
                  <xs:totalDigits value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ContactPerson" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 06 074 000 ; Pessoa de contacto; F; </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="name">
                    <xs:annotation>
                      <xs:documentation>13 06 074 016 ; Nome; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="phoneNumber">
                    <xs:annotation>
                      <xs:documentation>13 06 074 075 ; N.º de telefone; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="eMailAddress" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>13 06 074 076 ; Endereço eletrónico; F; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="256"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>
</xs:schema>
