Files
SDL/VERAG_PROG_ALLGEMEIN/Schnittstellen/GASTON_SCHUL/agsCustomsExchange.xsd
2020-10-20 09:03:00 +02:00

940 lines
42 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.gaston-schul.com/platform/facade/customs/ags/exchange"
xmlns:b2b="http://www.gaston-schul.com/platform/facade/customs/ags/exchange"
elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="EN" version="0.1.2">
<!-- Venetian Blind Design -->
<xsd:element name="exchangeRequest" type="b2b:exchangeRequestType">
<xsd:annotation>
<xsd:documentation>
Customs approved data for creating an export declaration.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!-- complex types -->
<xsd:complexType name="exchangeRequestType">
<xsd:sequence>
<xsd:element name="uuid" type="b2b:uuid"/>
<xsd:element name="version" type="b2b:version"/>
<xsd:element name="requestDateTime" type="b2b:dateTime"/>
<xsd:element name="creationDateTime" type="b2b:dateTime"/>
<xsd:element name="dispatchCountry" type="b2b:countryCode"/>
<xsd:element name="destinationCountry" type="b2b:countryCode"/>
<xsd:element name="localReferenceNumber" type="b2b:string_35" minOccurs="0"/>
<xsd:element name="movementReferenceNumber" type="b2b:string_35" minOccurs="0"/>
<xsd:element name="declaration" type="b2b:declarationType"/>
<xsd:element name="goodsShipment" type="b2b:goodsShipmentType"/>
<xsd:element name="attachments" type="b2b:attachmentType" minOccurs="0" maxOccurs="99"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="declarationType">
<xsd:sequence>
<xsd:element name="declarationOffice" type="b2b:declarationOffice" minOccurs="0"/>
<xsd:element name="declarationCode" type="b2b:declarationCode" minOccurs="0"/>
<xsd:element name="declarationTypeCode" type="b2b:declarationTypeCode" minOccurs="0"/>
<xsd:element name="procedure" type="b2b:procedure" minOccurs="0"/>
<xsd:element name="commercialReferenceNumber" type="b2b:string_35"/>
<xsd:element name="invoiceAmount" type="b2b:priceType_18_2" minOccurs="0"/>
<xsd:element name="deductibleAmount" type="b2b:priceType_16_2" minOccurs="0"/>
<xsd:element name="transportCostsAmount" type="b2b:priceType_16_2" minOccurs="0"/>
<xsd:element name="insuranceCostsAmount" type="b2b:priceType_16_2" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="goodsShipmentType">
<xsd:sequence>
<xsd:element name="countryOfExportation" type="b2b:countryCode"/>
<xsd:element name="natureOfTransaction" type="b2b:natureOfTransaction"/>
<xsd:element name="deliveryDestination" type="b2b:countryCode"/>
<xsd:element name="consignee" type="b2b:consigneeType"/>
<xsd:element name="consignor" type="b2b:consignorType"/>
<xsd:element name="consignment" type="b2b:consignmentType"/>
<xsd:element name="exitOffice" type="b2b:exitOffice" minOccurs="0"/>
<xsd:element name="internationalCommercialTerms" type="b2b:inCoTermType"/>
<xsd:element name="portOfLoading" type="b2b:portType" minOccurs="0"/>
<xsd:element name="portOfDischarge" type="b2b:portType" minOccurs="0"/>
<xsd:element name="shippingLine" type="b2b:string_1_70" minOccurs="0"/>
<xsd:element name="goodsItem" type="b2b:goodsItemType" maxOccurs="999"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="consigneeType">
<xsd:sequence>
<xsd:element name="name" type="b2b:string_70" minOccurs="0"/>
<xsd:element name="address" type="b2b:addressType" minOccurs="0"/>
<xsd:element name="eoriNumber" type="b2b:token_3_17" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
European Union registration and identification number for businesses
which undertake the import or export of goods into or out of the EU.
It comprises of the ISO 3166 Alpha-2 country code followed by
a code or number that is unique in the member state.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="consignorType">
<xsd:sequence>
<xsd:element name="name" type="b2b:string_70" minOccurs="0"/>
<xsd:element name="address" type="b2b:addressType" minOccurs="0"/>
<xsd:element name="eoriNumber" type="b2b:token_3_17" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
European Union registration and identification number for businesses
which undertake the import or export of goods into or out of the EU.
It comprises of the ISO 3166 Alpha-2 country code followed by
a code or number that is unique in the member state.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="consignmentType">
<xsd:sequence>
<xsd:element name="borderTransportMeansType" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="modeCrossing" type="b2b:modeTransport" minOccurs="0"/>
<xsd:element name="nationalityCrossing" type="b2b:countryCode" minOccurs="0"/>
<xsd:element name="identificationCrossingBorder" type="b2b:string_35"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="departureTransportMeansType" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="modeTransport" type="b2b:modeTransport"/>
<xsd:element name="identificationDeparture" type="b2b:string_1_35"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="arrivalTransportMeansType" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="modeTransport" type="b2b:modeTransport" minOccurs="0"/>
<xsd:element name="identificationArrival" type="b2b:string_1_35" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="freightType" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="paymentMethod" type="b2b:modePaymentTransport" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="goodsLocationName" type="b2b:string_1_256" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="portType">
<xsd:sequence>
<xsd:element name="portCode" type="b2b:token_1_10"/>
<xsd:element name="portCountry" type="b2b:countryCode"/>
<xsd:element name="portLocationName" type="b2b:string_1_35" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="inCoTermType">
<xsd:sequence>
<xsd:element name="inCoTerm" type="b2b:inCoTerm"/>
<xsd:element name="inCoTermCountryRelationship" type="b2b:inCoTermCountryRelationship"/>
<xsd:element name="inCoTermPlaceCode" type="b2b:string_35" minOccurs="0"/>
<xsd:element name="inCoTermPlaceName" type="b2b:string_35"/>
<xsd:element name="inCoTermPlaceDescription" type="b2b:string_35" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="principalType">
<xsd:sequence>
<xsd:element name="nameType" minOccurs="0">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="b2b:string_35">
<xsd:attribute name="language" type="b2b:countryCode"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="address" type="b2b:addressType" minOccurs="0"/>
<xsd:element name="taxIdentificationNumber" type="b2b:string_1_17" minOccurs="0"/>
<xsd:element name="contactPersonType" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="contactPersonName" type="b2b:string_35" minOccurs="0"/>
<xsd:element name="contactPersonCommunicationNumber" type="b2b:string_15" minOccurs="0"/>
<xsd:element name="contactPersonEmail" type="b2b:string_70" minOccurs="0"/>
<xsd:element name="contactPersonFaxNumber" type="b2b:string_15" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="goodsItemType">
<xsd:sequence>
<xsd:element name="sequenceNumeric" type="b2b:sequenceNumeric"/>
<xsd:element name="customsValueAmount" type="b2b:priceType_16_2" minOccurs="0"/>
<xsd:element name="statisticalValueAmount" type="b2b:priceType_16_2" minOccurs="0"/>
<xsd:element name="additionalDocumentType" minOccurs="0" maxOccurs="99">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="documentCode" type="b2b:documentCode"/>
<xsd:element name="documentReference" type="b2b:string_1_35" minOccurs="0"/>
<xsd:element name="amount" type="b2b:priceType_16_2" minOccurs="0"/>
<xsd:element name="quantity" type="b2b:quantityType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="additionalInformationType" minOccurs="0" maxOccurs="99">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="statementCode" type="b2b:statementCode"/>
<xsd:element name="statementDescription" type="b2b:string_1_512" minOccurs="0"/>
<xsd:element name="statementTypeCode" type="b2b:token_1_3"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="commodityType">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="sequenceNumeric" type="b2b:sequenceNumeric"/>
<xsd:element name="description" type="b2b:string_1_512"/>
<xsd:element name="valueAmount" type="b2b:priceType_16_2" minOccurs="0"/>
<xsd:element name="classificationType" minOccurs="0" maxOccurs="99">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="commodityCode" type="b2b:string_8_22" minOccurs="0"/>
<xsd:element name="unitedNationsDangerousGoodCode" type="b2b:unitedNationsDangerousGoodCode" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="transportEquipmentType" minOccurs="0" maxOccurs="99">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="sequenceNumeric" type="b2b:sequenceNumeric" minOccurs="0"/>
<xsd:element name="equipmentIdentificationNumberId" type="b2b:equipmentIdentificationNumberId" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="goodsMeasureType">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="grossMassMeasure" type="b2b:weightType_16_6" minOccurs="0"/>
<xsd:element name="netNetWeightMeasure" type="b2b:weightType_16_6"/>
<xsd:element name="tariffQuantity" type="b2b:decimal_16_6" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="governmentProcedureType" maxOccurs="2">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="currentCode" type="b2b:governmentProcedure" minOccurs="0"/>
<xsd:element name="previousCode" type="b2b:governmentProcedure" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="manufacturerType" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" type="b2b:string_1_70" minOccurs="0"/>
<xsd:element name="id" type="b2b:string_1_17" minOccurs="0"/>
<xsd:element name="address" type="b2b:addressType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="originType" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="countryCode" type="b2b:countryCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="packagingType" maxOccurs="99">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="sequenceNumeric" type="b2b:sequenceNumeric"/>
<xsd:element name="MarksNumbersID" type="b2b:string_1_512" minOccurs="0"/>
<xsd:element name="packagingQuantity" type="b2b:packagingSequenceNumeric" minOccurs="0"/>
<xsd:element name="typeCode" type="b2b:packagingTypeCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="previousDocumentType" minOccurs="0" maxOccurs="9">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="DocTypeCode" type="b2b:prevDocTypeCode"/>
<xsd:element name="DocSortCode" type="b2b:prevDocSortCode"/>
<xsd:element name="DocNr" type="b2b:string_1_31"/>
<xsd:element name="lineNumeric" type="b2b:previousDocumentNumeric" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="refundRecipientPartyType" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" type="b2b:string_1_70" minOccurs="0"/>
<xsd:element name="id" type="b2b:string_1_17" minOccurs="0"/>
<xsd:element name="address" type="b2b:addressType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="valuationAdjustmentType" minOccurs="0" maxOccurs="99">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="additionCode" type="b2b:valuationAdjustmentAdditionCode" minOccurs="0"/>
<xsd:element name="valuationAdjustmentAmount" type="b2b:priceType_16_2" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="attachmentType">
<xsd:sequence>
<xsd:element name="attachmentName">
<xsd:annotation>
<xsd:documentation>
Must have an extension so the user can open it with the corresponding program
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="160"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="attachmentType" type="b2b:attachmentTypeCode">
<xsd:annotation>
<xsd:documentation>Example 380 for invoice,...</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="attachmentReference" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Contains the invoice number, MRN or other reference markers
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="35"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="binaryAttachmentData" type="xsd:base64Binary"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="addressType">
<xsd:sequence>
<xsd:element name="postalCode" type="b2b:string_15"/>
<xsd:element name="streetAndNumber" type="b2b:string_2_35"/>
<xsd:element name="city" type="b2b:string_2_35"/>
<xsd:element name="country" type="b2b:countryCode"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="priceType_16_2">
<xsd:simpleContent>
<xsd:extension base="b2b:decimal_16_2">
<xsd:attribute name="currency" type="b2b:currency" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="priceType_18_2">
<xsd:simpleContent>
<xsd:extension base="b2b:decimal_18_2">
<xsd:attribute name="currency" type="b2b:currency" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="weightType_16_6">
<xsd:simpleContent>
<xsd:extension base="b2b:decimal_16_6">
<xsd:attribute name="massUnit" fixed="kg" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="quantityType">
<xsd:simpleContent>
<xsd:extension base="b2b:quantityTypeNumeric">
<xsd:attribute name="unitCode" type="xsd:string" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<!-- simple types -->
<xsd:simpleType name="uuid">
<xsd:annotation>
<xsd:documentation xml:lang="EN">
A universally unique type 4 identifier (UUID) is a 128-bit number used to identify a single exchange document.
The term globally unique identifier (GUID) is also used, typically in software created by Microsoft.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:length value="36" fixed="true"/>
<xsd:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[8-9a-bA-B][0-9a-fA-F]{3}-[0-9a-fA-F]{12}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="version">
<xsd:annotation>
<xsd:documentation xml:lang="EN">
Version of the schema used.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:length value="5" fixed="true"/>
<xsd:pattern value="\d.\d.\d"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="dateTime">
<xsd:annotation>
<xsd:documentation xml:lang="EN">
ISO 8601 Date and time with timezone added relative to UTC. For example, 2019-01-01T12:00:00+01:00 for UK time
Content is yyyy-mm-ddThh:mm:ssphh:mm where p is + or -. Note that the time zone is required.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:dateTime">
<xsd:pattern value="\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d[+\-]\d\d:\d\d"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="declarationCode">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a03.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="CO"/>
<xsd:enumeration value="EU"/>
<xsd:enumeration value="EX"/>
<xsd:enumeration value="IM"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="declarationTypeCode">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a04.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
<xsd:enumeration value="D"/>
<xsd:enumeration value="E"/>
<xsd:enumeration value="X"/>
<xsd:enumeration value="Y"/>
<xsd:enumeration value="Z"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="procedure">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/wps/wcm/connect/bldcontenten/belastingdienst/customs/customs-processes/special-procedures/special-procedures-for-goods/special-procedures-for-goods
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
<xsd:enumeration value="C"/>
<xsd:enumeration value="D"/>
<xsd:enumeration value="E"/>
<xsd:enumeration value="H"/>
<xsd:enumeration value="I"/>
<xsd:enumeration value="J"/>
<xsd:enumeration value="K"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="modeTransport">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%20sagitta%2C%20onderdeel%20algemeen-a27.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="AIR"/>
<xsd:enumeration value="HUMAN"/>
<xsd:enumeration value="POSTAL"/>
<xsd:enumeration value="RAIL"/>
<xsd:enumeration value="ROAD"/>
<xsd:enumeration value="SEA"/>
<xsd:enumeration value="INLAND_WATERWAYS"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="modePaymentTransport">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-116.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="CASH"/>
<xsd:enumeration value="CREDIT_CARD"/>
<xsd:enumeration value="CHECK"/>
<xsd:enumeration value="OTHER"/>
<xsd:enumeration value="ELECTRONIC"/>
<xsd:enumeration value="ACCOUNT_HOLDER"/>
<xsd:enumeration value="NOT_PAYED_BEFOREHAND"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="inCoTerm">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a14.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="CFR"/>
<xsd:enumeration value="CIF"/>
<xsd:enumeration value="CIP"/>
<xsd:enumeration value="CPT"/>
<xsd:enumeration value="DAF"/>
<xsd:enumeration value="DAP"/>
<xsd:enumeration value="DAT"/>
<xsd:enumeration value="DDP"/>
<xsd:enumeration value="DDU"/>
<xsd:enumeration value="DEQ"/>
<xsd:enumeration value="DES"/>
<xsd:enumeration value="EXW"/>
<xsd:enumeration value="FAS"/>
<xsd:enumeration value="FCA"/>
<xsd:enumeration value="FOB"/>
<xsd:enumeration value="XXX"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="natureOfTransaction">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a22.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
<xsd:enumeration value="4"/>
<xsd:enumeration value="5"/>
<xsd:enumeration value="6"/>
<xsd:enumeration value="7"/>
<xsd:enumeration value="8"/>
<xsd:enumeration value="9"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="inCoTermCountryRelationship">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a89.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="governmentProcedure">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a35.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="2"/>
<xsd:pattern value=".{1,2}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="valuationAdjustmentAdditionCode">
<xsd:annotation>
<xsd:documentation>
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a11.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="3"/>
<xsd:pattern value=".{1,3}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="attachmentTypeCode">
<xsd:annotation>
<xsd:documentation>
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a28.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="3"/>
<xsd:pattern value=".{1,3}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="unitedNationsDangerousGoodCode">
<xsd:annotation>
<xsd:documentation xml:lang="EN">
UN IDs are four-digit numbers that identify dangerous goods, hazardous substances and articles
in the framework of international transport.
They are assigned by the United Nations Committee of Experts on the Transport of Dangerous Goods.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d{4}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="documentCode">
<xsd:annotation>
<xsd:documentation xml:lang="NL" >
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-t03.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="4"/>
<xsd:pattern value=".{1,4}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="statementCode">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a12.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="17"/>
<xsd:pattern value=".{1,17}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="packagingTypeCode">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-a25.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="2"/>
<xsd:pattern value=".{1,2}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="exitOffice">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%2C%20onderdeel%20aangiftebehandeling-s20.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="17"/>
<xsd:pattern value=".{1,17}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="declarationOffice">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%20sagitta%2C%20onderdeel%20algemeen-s03.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="4"/>
<xsd:pattern value=".{1,4}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="prevDocTypeCode">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
X - Summiere Aangifte
Y - Oorspronkelijke Aangifte
Z - Voorafgaand Document
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="X"/>
<xsd:enumeration value="Y"/>
<xsd:enumeration value="Z"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="prevDocSortCode">
<xsd:annotation>
<xsd:documentation xml:lang="NL">
https://www.belastingdienst.nl/codeboek_sagitta/huidig/html/tabel-codeboek%20sagitta%2C%20onderdeel%20transit-014.html
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="3"/>
<xsd:pattern value=".{1,3}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="previousDocumentNumeric">
<xsd:restriction base="xsd:decimal">
<xsd:pattern value="[0-9]{1,4}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="sequenceNumeric">
<xsd:restriction base="xsd:decimal">
<xsd:pattern value="[0-9]{1,5}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="packagingSequenceNumeric">
<xsd:restriction base="xsd:decimal">
<xsd:pattern value="[0-9]{1,8}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="quantityTypeNumeric">
<xsd:restriction base="xsd:decimal">
<xsd:pattern value="[0-9]{1,16}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="equipmentIdentificationNumberId">
<xsd:annotation>
<xsd:documentation xml:lang="EN">
Placeholder for container nr, train, barge, plane etc.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="17"/>
<xsd:pattern value=".{1,17}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="currency">
<xsd:annotation>
<xsd:documentation xml:lang="EN">
ISO 4217 currency code,
like GBP for pound sterling or EUR for Euro
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:length value="3" fixed="true"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="countryCode">
<xsd:annotation>
<xsd:documentation xml:lang="EN">
ISO 3166 Alpha-2 country code,
like GB for the United Kingdom of Great Britain and Northern Ireland,
and NL for the Kingdom of the Netherlands
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:length value="2" fixed="true"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="decimal_16_2">
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="16"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="decimal_16_6">
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="16"/>
<xsd:fractionDigits value="6"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="decimal_18_2">
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="18"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_15">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="15"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_35">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="35"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_70">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="70"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_1_17">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="17"/>
<xsd:pattern value=".{1,17}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_8_22">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="22"/>
<xsd:pattern value=".{8,22}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_1_25">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="25"/>
<xsd:pattern value=".{1,25}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_1_31">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="31"/>
<xsd:pattern value=".{1,31}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_1_35">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="35"/>
<xsd:pattern value=".{1,35}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_2_35">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="35"/>
<xsd:pattern value=".{2,35}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_1_70">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="70"/>
<xsd:pattern value=".{1,70}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_1_256">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="256"/>
<xsd:pattern value=".{1,256}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string_1_512">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
<xsd:pattern value=".{1,512}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="token_1_3">
<xsd:restriction base="xsd:token">
<xsd:maxLength value="3"/>
<xsd:pattern value=".{1,3}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="token_1_10">
<xsd:restriction base="xsd:token">
<xsd:maxLength value="10"/>
<xsd:pattern value=".{1,10}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="token_3_17">
<xsd:restriction base="xsd:token">
<xsd:maxLength value="17"/>
<xsd:pattern value=".{3,17}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:annotation>
<xsd:appinfo>
<copyright-notice>Copyright 2020 gaston-schul.com and/or its affiliates. All rights reserved.</copyright-notice>
<author>Marcel Mullenders</author>
</xsd:appinfo>
<xsd:documentation>
End-User License Agreement (EULA) of ags customs exchange
This End-User License Agreement ("EULA") is a legal agreement between you and Gaston Schul
This EULA agreement governs your acquisition and use of our ags customs exchange software ("Software")
directly from Gaston Schul or indirectly through a Gaston Schul authorized reseller or distributor (a "Reseller").
Please read this EULA agreement carefully before completing the installation process and using the ags customs exchange software.
It provides a license to use the ags customs exchange software and contains warranty information and liability disclaimers.
If you are entering into this EULA agreement on behalf of a company or other legal entity,
you represent that you have the authority to bind such entity and its affiliates to these terms and conditions.
If you do not have such authority or if you do not agree with the terms and conditions of this EULA agreement,
do not install or use the Software, and you must not accept this EULA agreement.
This EULA agreement shall apply only to the Software supplied by Gaston Schul herewith regardless of whether other
software is referred to or described herein. The terms also apply to any Gaston Schul updates, supplements, Internet-based services,
and support services for the Software, unless other terms accompany those items on delivery. If so, those terms apply.
License Grant
Gaston Schul hereby grants you a personal, non-transferable, non-exclusive licence to use the v software on your devices
in accordance with the terms of this EULA agreement. You are permitted to load the ags customs exchange software (for example a PC, laptop, mobile or tablet)
under your control. You are responsible for ensuring your device meets the minimum requirements of the ags customs exchange software.
You are not permitted to:
Edit, alter, modify, adapt or otherwise change the whole or any part of the Software
Attempt to do any such things as to distribute or resell the Software
Allow any third party to use the Software on behalf of or for the benefit of any third party
Use the Software in any way which breaches any applicable local, national or international law
Use the Software for any purpose that Gaston Schul considers is a breach of this EULA agreement
Intellectual Property and Ownership
Gaston Schul shall at all times retain ownership of the Software as originally downloaded by you and all subsequent downloads of the Software by you.
The Software (and the copyright, and other intellectual property rights of whatever nature in the Software, including any modifications made thereto)
are and shall remain the property of Gaston Schul.
Gaston Schul reserves the right to grant licences to use the Software to third parties.
Termination
This EULA agreement is effective from the date you first use the Software and shall continue until terminated.
You may terminate it at any time.
It will also terminate immediately if you fail to comply with any term of this EULA agreement.
Upon such termination, the licenses granted by this EULA agreement will immediately terminate and you agree to stop all access and use of the Software.
The provisions that by their nature continue and survive will survive any termination of this EULA agreement.
Governing Law
This EULA agreement, and any dispute arising out of or in connection with this EULA agreement,
shall be governed by and construed in accordance with the laws of the Netherlands.
</xsd:documentation>
</xsd:annotation>
</xsd:schema>