Atilla Beleg, ENS HMRC
This commit is contained in:
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
||||
' übernehmen, indem Sie "*" eingeben:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.3.6.0")>
|
||||
<Assembly: AssemblyFileVersion("1.3.6.0")>
|
||||
<Assembly: AssemblyVersion("1.3.6.2")>
|
||||
<Assembly: AssemblyFileVersion("1.3.6.2")>
|
||||
|
||||
@@ -369,8 +369,8 @@ Public Class frmBelegNeu
|
||||
lblFrachtf_Fahrer.Text = BELEG.Fahrer
|
||||
lblFrachtf_LKWNr.Text = BELEG.LKW_Kennzeichen
|
||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Case "ATILLA" : cbxSplittung.Enabled = False
|
||||
Case Else : cbxSplittung.Checked = Not If(BELEG.LKW_Beleg, False)
|
||||
Case "ATILLA" : cbxSplittung.Checked = True : cbxSplittung.Enabled = True 'false
|
||||
Case Else : cbxSplittung.Checked = Not If(BELEG.LKW_Beleg, True)
|
||||
End Select
|
||||
|
||||
|
||||
|
||||
1670
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/CHMRC.vb
Normal file
1670
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/CHMRC.vb
Normal file
File diff suppressed because it is too large
Load Diff
5665
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/ENS/CC315A-v11-2.Designer.vb
generated
Normal file
5665
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/ENS/CC315A-v11-2.Designer.vb
generated
Normal file
File diff suppressed because it is too large
Load Diff
1257
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/ENS/CC315A-v11-2.xsd
Normal file
1257
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/ENS/CC315A-v11-2.xsd
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
24
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/ENS/doc-v11-2.xsd
Normal file
24
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/ENS/doc-v11-2.xsd
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:doc="http://ics.dgtaxud.ec/doc" targetNamespace="http://ics.dgtaxud.ec/doc" version="11.1" id="doc" elementFormDefault="unqualified" attributeFormDefault="unqualified">
|
||||
<xs:element name="description">
|
||||
<xs:complexType>
|
||||
<xs:attribute use="required" name="value" type="xs:token"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="rule">
|
||||
<xs:complexType>
|
||||
<xs:attribute use="required" name="name" type="xs:token"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="condition">
|
||||
<xs:complexType>
|
||||
<xs:attribute use="required" name="name" type="xs:token"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="codeList">
|
||||
<xs:complexType>
|
||||
<xs:attribute use="required" name="name" type="xs:token"/>
|
||||
<xs:attribute default="technical" name="type" type="xs:token"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,662 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:simple="http://ics.dgtaxud.ec/simple" targetNamespace="http://ics.dgtaxud.ec/simple" version="11.1" id="simple_types" elementFormDefault="unqualified" attributeFormDefault="unqualified">
|
||||
<xs:simpleType name="AlphaCapital1Type">
|
||||
<xs:restriction base="simple:AlphaCapitalType">
|
||||
<xs:length value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaCapital2Type">
|
||||
<xs:restriction base="simple:AlphaCapitalType">
|
||||
<xs:length value="2"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaCapital3Type">
|
||||
<xs:restriction base="simple:AlphaCapitalType">
|
||||
<xs:length value="3"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaCapital4Type">
|
||||
<xs:restriction base="simple:AlphaCapitalType">
|
||||
<xs:length value="4"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaCapitalMax3Type">
|
||||
<xs:restriction base="simple:AlphaCapitalType">
|
||||
<xs:maxLength value="3"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaCapitalType">
|
||||
<xs:restriction base="simple:AlphaType">
|
||||
<xs:pattern value="[A-Z]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaNumType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Base class for all anN and an..N types</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Base class for all aN and a..N
|
||||
types</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alpha_1">
|
||||
<xs:restriction base="simple:AlphaType">
|
||||
<xs:length value="1"/>
|
||||
<xs:pattern value="[a-zA-Z]"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alpha_2">
|
||||
<xs:restriction base="simple:AlphaType">
|
||||
<xs:length value="2"/>
|
||||
<xs:pattern value="[a-zA-Z]{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alpha_3">
|
||||
<xs:restriction base="simple:AlphaType">
|
||||
<xs:length value="3"/>
|
||||
<xs:pattern value="[a-zA-Z]{3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alpha_4">
|
||||
<xs:restriction base="simple:AlphaType">
|
||||
<xs:length value="4"/>
|
||||
<xs:pattern value="[a-zA-Z]{4}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alpha_Max8">
|
||||
<xs:restriction base="simple:AlphaType">
|
||||
<xs:maxLength value="8"/>
|
||||
<xs:pattern value="[a-zA-Z]{1,8}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapital1Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:length value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapital2Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:length value="2"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapital3Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:length value="3"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapital5Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:length value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapitalMax2Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:maxLength value="2"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapitalMax3Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:maxLength value="3"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapitalMax4Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:maxLength value="4"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapitalMax5Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:maxLength value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapitalMax6Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:maxLength value="6"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapitalMax9Type">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:maxLength value="9"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapitalType">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:pattern value="[A-Z0-9]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericCapitalTypeOfDeclaration">
|
||||
<xs:restriction base="simple:AlphanumericCapitalMax9Type">
|
||||
<xs:pattern value="[A-Z0-9]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphanumericSpecMax35Type">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="35"/>
|
||||
<xs:pattern value="[a-zA-Z]{2}.{1,33}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_1">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="1"/>
|
||||
<xs:pattern value=".{1}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_2">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="2"/>
|
||||
<xs:pattern value=".{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_3">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="3"/>
|
||||
<xs:pattern value=".{3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_4">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="4"/>
|
||||
<xs:pattern value=".{4}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_5">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="5"/>
|
||||
<xs:pattern value=".{5}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_8">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="8"/>
|
||||
<xs:pattern value=".{8}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Capital_5">
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:length value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max14">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="14"/>
|
||||
<xs:pattern value=".{1,14}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max140">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="140"/>
|
||||
<xs:pattern value=".{1,140}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max15">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="15"/>
|
||||
<xs:pattern value=".{1,15}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max17">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="17"/>
|
||||
<xs:pattern value=".{1,17}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max175">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="175"/>
|
||||
<xs:pattern value=".{1,175}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max2">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="2"/>
|
||||
<xs:pattern value=".{1,2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max20">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="20"/>
|
||||
<xs:pattern value=".{1,20}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max21">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="21"/>
|
||||
<xs:pattern value=".{1,21}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max210">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="210"/>
|
||||
<xs:pattern value=".{1,210}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max22">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="22"/>
|
||||
<xs:pattern value=".{1,22}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max27">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="27"/>
|
||||
<xs:pattern value=".{1,27}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max280">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="280"/>
|
||||
<xs:pattern value=".{1,280}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max29">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="29"/>
|
||||
<xs:pattern value=".{1,29}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max3">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="3"/>
|
||||
<xs:pattern value=".{1,3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max35">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="35"/>
|
||||
<xs:pattern value=".{1,35}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max350">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="350"/>
|
||||
<xs:pattern value=".{1,350}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max4">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="4"/>
|
||||
<xs:pattern value=".{1,4}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max42">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="42"/>
|
||||
<xs:pattern value=".{1,42}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max5">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="5"/>
|
||||
<xs:pattern value=".{1,5}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max6">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="6"/>
|
||||
<xs:pattern value=".{1,6}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max70">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="70"/>
|
||||
<xs:pattern value=".{1,70}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Alphanumeric_Max8">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="8"/>
|
||||
<xs:pattern value=".{1,8}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CORefNumType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Customs Office Reference Number
|
||||
(format:an8)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="8"/>
|
||||
<xs:pattern value="[a-zA-Z]{2}[a-zA-Z0-9]{6}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CityType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Trader City (format:
|
||||
an..35)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="35"/>
|
||||
<xs:pattern value=".{1,35}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CommodityCodeType">
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:pattern value="[0-9]{1,8}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CountryCodeType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Country Code (format:a2)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaType">
|
||||
<xs:length value="2"/>
|
||||
<xs:pattern value="[A-Z]{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DatePrepType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date type (format
|
||||
YYMMDD)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="6"/>
|
||||
<xs:pattern value="[0-9]{2}(([0][1|3|5|7|8])([0][1-9]|[1-2][0-9]|[3][0-1])|([0][4|6|9])([0][1-9]|[1-2][0-9]|[3][0])|([0][2])([0][1-9]|[1-2][0-9])|([1][0|2])([0][1-9]|[1-2][0-9]|[3][0-1])|([1][1])([0][1-9]|[1-2][0-9]|[3][0]))"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DateTimeType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date and Time with precision of minute
|
||||
(format
|
||||
YYYYMMDDHHMM)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="12"/>
|
||||
<xs:pattern value="[1-9][0-9][0-9][0-9](([0][1|3|5|7|8])([0][1-9]|[1-2][0-9]|[3][0-1])|([0][4|6|9])([0][1-9]|[1-2][0-9]|[3][0])|([0][2])([0][1-9]|[1-2][0-9])|([1][0|2])([0][1-9]|[1-2][0-9]|[3][0-1])|([1][1])([0][1-9]|[1-2][0-9]|[3][0]))(([2][0-3]|[0][0-9]|[1][0-9])([0-5][0-9]))"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DateType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date type (format
|
||||
YYYYMMDD)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="8"/>
|
||||
<xs:pattern value="[1-9][0-9]{3}(([0][1|3|5|7|8])([0][1-9]|[1-2][0-9]|[3][0-1])|([0][4|6|9])([0][1-9]|[1-2][0-9]|[3][0])|([0][2])([0][1-9]|[1-2][0-9])|([1][0|2])([0][1-9]|[1-2][0-9]|[3][0-1])|([1][1])([0][1-9]|[1-2][0-9]|[3][0]))"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DateTypeExtended">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date type (format
|
||||
YYYYMMDDHHMNSS)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:length value="14"/>
|
||||
<xs:pattern value="[1-9][0-9][0-9]{2}(([0][1|3|5|7|8])([0][1-9]|[1-2][0-9]|[3][0-1])|([0][4|6|9])([0][1-9]|[1-2][0-9]|[3][0])|([0][2])([0][1-9]|[1-2][0-9])|([1][0|2])([0][1-9]|[1-2][0-9]|[3][0-1])|([1][1])([0][1-9]|[1-2][0-9]|[3][0]))([2][0-3]|[0][0-9]|[1][0-9])([0-5][0-9])(0-5)(0-9)(0-5)(0-9)"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DayInTheMonthType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Day in the Month (format:
|
||||
DD)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="2"/>
|
||||
<xs:pattern value="[0][1-9]|[1-2][0-9]|[3][0-1]"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DecType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Base class for all n..N,M
|
||||
types</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:decimal"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Decimal_11_3">
|
||||
<xs:restriction base="simple:DecType">
|
||||
<xs:totalDigits value="11"/>
|
||||
<xs:fractionDigits value="3"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Decimal_15_2">
|
||||
<xs:restriction base="simple:DecType">
|
||||
<xs:totalDigits value="15"/>
|
||||
<xs:fractionDigits value="2"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Decimal_6_5">
|
||||
<xs:restriction base="simple:DecType">
|
||||
<xs:totalDigits value="6"/>
|
||||
<xs:fractionDigits value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Decimal_8_6">
|
||||
<xs:restriction base="simple:DecType">
|
||||
<xs:totalDigits value="8"/>
|
||||
<xs:fractionDigits value="6"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DeclarationRequestNumberType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Declaration request number (format:
|
||||
an..22)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="22"/>
|
||||
<xs:pattern value="[a-zA-Z]{2}.{1,20}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="GRNType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>GRN (format: an..24), (alias:GuaRefNumGRNREF21)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphanumericCapitalType">
|
||||
<xs:pattern value="[0-9]{2}[A-Z]{2}[A-Z0-9]{12}.{1,8}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="LanguageCodeType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Language Code (format: a2)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaType">
|
||||
<xs:length value="2"/>
|
||||
<xs:pattern value="[a-zA-Z]{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="MRNType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>MRN (format: an..21), (alias: DocNumHEA5Type)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:pattern value="[0-9]{2}[A-Z]{2}[A-Z0-9]{13}[0-9]"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NumType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Base class for all nN and n..N
|
||||
types</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric2">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="2"/>
|
||||
<xs:pattern value="[0-9]{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric2Max">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="8"/>
|
||||
<xs:pattern value="[0-9]{1,2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric3">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="3"/>
|
||||
<xs:pattern value="[0-9]{3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric4">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="4"/>
|
||||
<xs:pattern value="[0-9]{4}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric6Max">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="8"/>
|
||||
<xs:pattern value="[0-9]{1,6}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric8Max">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="8"/>
|
||||
<xs:pattern value="[0-9]{1,8}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NumericMin4Max8">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:pattern value="[0-9]{4,8}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NumericMin4Max8Type">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:pattern value="[0-9]{4,8}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_1">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="1"/>
|
||||
<xs:pattern value="[0-9]"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_2">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="2"/>
|
||||
<xs:pattern value="[0-9]{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_3">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="3"/>
|
||||
<xs:pattern value="[0-9]{3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_4">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="4"/>
|
||||
<xs:pattern value="[0-9]{4}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_Max11">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="11"/>
|
||||
<xs:pattern value="[0-9]{1,11}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_Max2">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="2"/>
|
||||
<xs:pattern value="[0-9]{1,2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_Max3">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="3"/>
|
||||
<xs:pattern value="[0-9]{1,3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_Max4">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="4"/>
|
||||
<xs:pattern value="[0-9]{1,4}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_Max5">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="5"/>
|
||||
<xs:pattern value="[0-9]{1,5}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_Max6">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="6"/>
|
||||
<xs:pattern value="[0-9]{1,6}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_Max7">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="7"/>
|
||||
<xs:pattern value="[0-9]{1,7}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Numeric_Max9">
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:maxLength value="9"/>
|
||||
<xs:pattern value="[0-9]{1,9}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="PostalCodeType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Trader Postal Code (format:
|
||||
n..9)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="9"/>
|
||||
<xs:pattern value=".{1,9}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="StreetNumType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Trader Street and Number (format:
|
||||
an..35)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="35"/>
|
||||
<xs:pattern value=".{1,35}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="StringLatin1">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="\p{IsBasicLatin}+"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="TINType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Trader Identification Number (format:
|
||||
an..17)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:StringLatin1">
|
||||
<xs:minLength value="3"/>
|
||||
<xs:maxLength value="17"/>
|
||||
<xs:pattern value="[A-Z]{2}[^\n\r]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="TaricCodeType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Taric Code (format:
|
||||
an..6)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:pattern value="[0-9]{1,6}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="TimeType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Time with precision of minute (format
|
||||
HHMM)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:NumType">
|
||||
<xs:length value="4"/>
|
||||
<xs:pattern value="([2][0-3]|[0][0-9]|[1][0-9])([0-5][0-9])"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="TradNameType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Trader Name (format:
|
||||
an..35)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="simple:AlphaNumType">
|
||||
<xs:maxLength value="35"/>
|
||||
<xs:pattern value=".{1,35}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="emailAddressType">
|
||||
<xs:restriction base="simple:StringLatin1">
|
||||
<xs:maxLength value="70"/>
|
||||
<xs:pattern value="[^@]+@[^\.]+\..+"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:schema>
|
||||
769
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/ENS/tcl-v11-2.xsd
Normal file
769
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/ENS/tcl-v11-2.xsd
Normal file
@@ -0,0 +1,769 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tcl="http://ics.dgtaxud.ec/tcl" targetNamespace="http://ics.dgtaxud.ec/tcl" version="11.1" id="tcl" elementFormDefault="unqualified" attributeFormDefault="unqualified">
|
||||
<xs:simpleType name="BusinessFunctionalityCode">
|
||||
<xs:annotation>
|
||||
<xs:documentation>[Format: a1]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="H">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Reference Data</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="U">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Entry Processing</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="V">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Lodgement</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="W">
|
||||
<xs:annotation>
|
||||
<xs:documentation>ALL FUNCTIONALITY</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CountryCodesCustomsOfficeLists">
|
||||
<xs:annotation>
|
||||
<xs:documentation>All the countries included in code list 9 excluding AX, GF, GP, LI, MC, MQ, RE, SJ and YT. The same codelist values are used for all Domains (ECS/NCTS/ICS) in order to support the COL. Values are shown for illustration only. [Format: a2]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="AD">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Andorra</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="AT">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Austria</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="BE">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Belgium</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="BG">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Bulgaria</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CH">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Switzerland</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CY">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Cyprus</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CZ">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Czech Republic</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="DE">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Germany</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="DK">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Denmark</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="EE">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Estonia</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="ES">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Spain</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="FI">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Finland</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="FR">
|
||||
<xs:annotation>
|
||||
<xs:documentation>France</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="GB">
|
||||
<xs:annotation>
|
||||
<xs:documentation>United Kingdom</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="GR">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Greece</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="HR">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Croatia</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="HU">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Hungary</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="IE">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Ireland</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="IS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Iceland</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="IT">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Italy</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="LT">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Lithuania</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="LU">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Luxembourg</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="LV">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Latvia</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="MT">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Malta</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="NL">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Netherlands</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="NO">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Norway</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="PL">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Poland</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="PT">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Portugal</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="RO">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Romania</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="SE">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Sweden</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="SI">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Slovenia</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="SK">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Slovakia</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="SM">
|
||||
<xs:annotation>
|
||||
<xs:documentation>San Marino</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="TR">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Turkey</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DayInTheWeek">
|
||||
<xs:annotation>
|
||||
<xs:documentation>[Format: n1]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="1">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Monday</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="2">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Tuesday</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="3">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Wednesday</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="4">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Thursday</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="5">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Friday</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="6">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Saturday</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="7">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Sunday</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="EoriAeoErrorCode">
|
||||
<xs:annotation>
|
||||
<xs:documentation>It is an alphanumerical up to 50 characters string (i.e. an..50) that is used to define in an acknowledgement notification message the error code(s). [Format: an..50]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="GEN-CORR">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Non XML message received</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="GEN-INVALID-BYTE-SEQUENCE">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid byte sequence: a byte sequence does not represent a valid character in the character encoding scheme (UTF-8).</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="GEN-WRONG-ENVID">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Envelope Id and/or Originator Reference are missing</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="FunctionalErrorCodes">
|
||||
<xs:annotation>
|
||||
<xs:documentation>- Subset of the UN/EDIFACT generic error table. - For remarks on the codes : see DDNTA Sec. VII. [Format: n2]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="12">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Incorrect (code) value</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="13">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Missing</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="14">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value not supported in this position (code value constraint)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="15">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Not supported in this position</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="19">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid decimal notation</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="26">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Duplicate detected</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="35">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Too many repetitions</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="37">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid type characters</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="38">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Missing digit in front of decimal sign</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="39">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Element too long (length constraint)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="40">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Element too short (length constraint)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="90">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Unknown MRN</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="91">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Duplicate MRN</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="92">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Message out of sequence</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="93">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid MRN</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="XmlErrorCodes">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Defines the codes to be used for reporting errors on XML messages. [Format: n2]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="12">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Incorrect enumeration</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="13">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Missing</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="15">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Not supported in this position</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="18">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Unspecified Error / Other</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="19">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid decimal notation</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="35">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Too many repetitions</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="39">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Element too long (length constraint)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="40">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Element too short (length constraint)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="50">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid Value for the specific type</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="51">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid value according to the pattern</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="52">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid XML format</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="53">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Invalid character(s)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="54">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value is lower than the allowed lowest limit (Minimum Inclusive)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="55">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value is greater than the allowed upper limit (Maximum Inclusive)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="56">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value is lower than or equal to the allowed lowest limit (Minimum Exlcusive)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="57">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value is greater than or equal to the allowed upper limit (Maximum Exclusive)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="PrefixSuffixLevel">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Used for CUSTOMS OFFICE LSD. [Format: an1]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Simple office (see box A in Customs Office List)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="E">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Higher authority (see box E in Customs Office List)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="SystemUnavailabilityType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Used for the attribute SYSTEM UNAVAILABILITY.System Unavailability Type. [Format: a1]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="N">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Business service not implemented</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="S">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Scheduled Unavailability</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="U">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Unscheduled Unavailability</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Flag">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Used for attributes that can have a positive or a negative value. [Format: n1]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>NO</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="1">
|
||||
<xs:annotation>
|
||||
<xs:documentation>YES</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="MonthOfYear">
|
||||
<xs:annotation>
|
||||
<xs:documentation>[Format: an2]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="01">
|
||||
<xs:annotation>
|
||||
<xs:documentation>January</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="02">
|
||||
<xs:annotation>
|
||||
<xs:documentation>February</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="03">
|
||||
<xs:annotation>
|
||||
<xs:documentation>March</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="04">
|
||||
<xs:annotation>
|
||||
<xs:documentation>April</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="05">
|
||||
<xs:annotation>
|
||||
<xs:documentation>May</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="06">
|
||||
<xs:annotation>
|
||||
<xs:documentation>June</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="07">
|
||||
<xs:annotation>
|
||||
<xs:documentation>July</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="08">
|
||||
<xs:annotation>
|
||||
<xs:documentation>August</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="09">
|
||||
<xs:annotation>
|
||||
<xs:documentation>September</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="10">
|
||||
<xs:annotation>
|
||||
<xs:documentation>October</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="11">
|
||||
<xs:annotation>
|
||||
<xs:documentation>November</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="12">
|
||||
<xs:annotation>
|
||||
<xs:documentation>December</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="MessageTypes">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Used for attribute MESSAGE ERRORS.Association assigned code and MESSAGE.Message Type. The usage of each code in one of the UNSM templates is defined in the Remarks column. CC should in all cases be instantiated to the value of the particular domain in which the message is created. [Format: an..6] [Format: an..6]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="CC304A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Entry Summary Declaration Amendment Accepted</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC305A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Entry Summary Declaration Amendment Rejection</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC313A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Entry Summary Declaration Amendment</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC315A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Entry Summary Declaration</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC316A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Entry Summary Declaration Rejected</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC323A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Diversion Request Import</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC324A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Diversion Request Rejected</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC325A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Diversion Request Acknowledgement</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC328A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Entry Summary Request Acknowledgement</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CC351A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Advanced Intervention Notification</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD030C">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Notification of customs offices modification to common domain</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD031C">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Notification of customs offices modification to national domain</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD032C">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Notification of common reference data modification to ND</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD070B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Notification of System Unavailability to CD</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD071B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Notification of System Unavailability to ND</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD301A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>ENS</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD302A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Declaration Request Import</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD303A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Entry Summary Declaration Response</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD319A">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Transmission to subsequent Office of Entry</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD411C">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Sending of statistics data</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD412C">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Statistics generated sent to national domain</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD906B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Functional NACK</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD912B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Availability Matrix</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD913B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Upload parsing response</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD914B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>COL request</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD916B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Common RD Request</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD917B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>XML NACK</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD931C">
|
||||
<xs:annotation>
|
||||
<xs:documentation>COL DATA</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD932C">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Common RD Data</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="CD971B">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Full Unavailability Schedule</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="ModificationType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Used for (multiple) attribute Operation. [Format: a1]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="C">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Create</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="D">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="U">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Update</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CustomSystem">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Custom System applicable domain [Format: n..2]</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="1">
|
||||
<xs:annotation>
|
||||
<xs:documentation>NCTS</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="2">
|
||||
<xs:annotation>
|
||||
<xs:documentation>ECS</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="3">
|
||||
<xs:annotation>
|
||||
<xs:documentation>ICS</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="4">
|
||||
<xs:annotation>
|
||||
<xs:documentation>EOS</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:schema>
|
||||
146
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/cHMRC_ENS.vb
Normal file
146
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/cHMRC_ENS.vb
Normal file
@@ -0,0 +1,146 @@
|
||||
Imports VERAG_PROG_ALLGEMEIN.CC015B_TR_EXT_V4_3
|
||||
Imports VERAG_PROG_ALLGEMEIN.ENS_CC315A
|
||||
|
||||
Public Class cHMRC_ENS
|
||||
|
||||
|
||||
'---> VERAG AG!!! GVMS use 26 86 22 45 50 78?
|
||||
Public Shared ApplicationName = "AVISO_ENS"
|
||||
Public Shared ApplicationID = "af3dc225-6726-4cba-98e6-9b8df39b4c20"
|
||||
Public Shared Client_ID = "Qbwx6C1YYdc6q4XM0aWOKZGH0zyO"
|
||||
Public Shared Client_Secret = "143a33cc-33c8-43bb-bcca-51186ac52855"
|
||||
Public Shared TEST As Boolean = True
|
||||
|
||||
|
||||
|
||||
Shared Function helloWorldENS(ByVal response As String) As Boolean
|
||||
|
||||
|
||||
|
||||
VERAG_PROG_ALLGEMEIN.cChilkat_Helper.UnlockCilkat()
|
||||
|
||||
|
||||
|
||||
|
||||
Dim TOKEN = cHMRC.getTOKEN("ENS_HELLOWORLD", True)
|
||||
|
||||
If TOKEN.hasEntry Then
|
||||
|
||||
' HTTP-Client initialisieren
|
||||
Dim http As New Chilkat.Http
|
||||
|
||||
' HMRC OAuth2 Access Token (muss vorher abgerufen werden)
|
||||
Dim accessToken As String = "YOUR_ACCESS_TOKEN"
|
||||
|
||||
' Falls das Token fehlt, Hinweis ausgeben
|
||||
If String.IsNullOrEmpty(accessToken) Then
|
||||
Console.WriteLine("Fehler: Kein OAuth2-Token gefunden!")
|
||||
Return False
|
||||
End If
|
||||
|
||||
' Setze die benötigten Header
|
||||
http.SetRequestHeader("Authorization", "Bearer " & accessToken)
|
||||
http.SetRequestHeader("Accept", "application/vnd.hmrc.1.0+json")
|
||||
|
||||
' API-Endpunkt für User-Restricted Hello API
|
||||
Dim url As String = "https://test-api.service.hmrc.gov.uk/hello/application"
|
||||
'Dim url As String = "https://test-api.service.hmrc.gov.uk/hello/user"
|
||||
|
||||
' API-Anfrage senden
|
||||
response = http.QuickGetStr(url)
|
||||
|
||||
' Fehlerbehandlung
|
||||
If (http.LastMethodSuccess <> True) Then
|
||||
Console.WriteLine("Fehler: " & http.LastErrorText)
|
||||
Else
|
||||
Console.WriteLine("Antwort von HMRC API: " & response)
|
||||
End If
|
||||
Return True
|
||||
End If
|
||||
Return False
|
||||
End Function
|
||||
Shared Function insertENS(ENS_CC315A As CC315AType, ByVal response As String) As Boolean
|
||||
' Chilkat-Objekt initialisieren
|
||||
Dim http As New Chilkat.Http()
|
||||
|
||||
|
||||
' EORI-Nummer für die Überprüfung
|
||||
'Dim eoriNumber As String = "GB123456789000"
|
||||
|
||||
Dim url As String = ""
|
||||
If TEST Then
|
||||
url = "test-api.service.hmrc.gov.uk"
|
||||
Else
|
||||
url = "api.service.hmrc.gov.uk"
|
||||
End If
|
||||
|
||||
VERAG_PROG_ALLGEMEIN.cChilkat_Helper.UnlockCilkat()
|
||||
|
||||
'-------------------------------------------------------
|
||||
|
||||
ENS_CC315A = New CC315AType
|
||||
|
||||
ENS_CC315A.MesSenMES3 = "GB123"
|
||||
ENS_CC315A.DatOfPreMES9 = Now.ToString("yyMMdd")
|
||||
ENS_CC315A.TimOfPreMES10 = Now.ToString("HHmm")
|
||||
ENS_CC315A.MesIdeMES19 = "ABCD1234"
|
||||
'ENS_CC315A.MesTypMES20 = "CC315A"
|
||||
|
||||
ENS_CC315A.HEAHEA.RefNumHEA4 = "ABCD1234"
|
||||
ENS_CC315A.HEAHEA.TraModAtBorHEA76 = "4"
|
||||
ENS_CC315A.HEAHEA.TotNumOfIteHEA305 = "1"
|
||||
|
||||
|
||||
'-------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
Dim TOKEN = cHMRC.getTOKEN("ENS", True)
|
||||
|
||||
If TOKEN.hasEntry Then
|
||||
|
||||
Dim req As New Chilkat.HttpRequest()
|
||||
|
||||
' Setze deine HMRC API-Credentials
|
||||
http.AuthToken = TOKEN.token_BEARER_TOKEN
|
||||
|
||||
req.HttpVerb = "POST"
|
||||
req.Path = "/customs/imports/declarations"
|
||||
req.ContentType = "application/xml"
|
||||
req.Charset = "utf-8"
|
||||
req.SendCharset = True
|
||||
|
||||
|
||||
|
||||
MsgBox(ENS_CC315A.Serialize)
|
||||
' Füge das XML als Body hinzu
|
||||
req.LoadBodyFromString(ENS_CC315A.Serialize, "utf-8")
|
||||
|
||||
' Füge benötigte Header hinzu
|
||||
req.AddHeader("Accept", "application/x-www-form-urlencoded") '"application/vnd.hmrc.1.0+xml")
|
||||
req.AddHeader("Content-Type", "application/xml; charset=UTF-8") '"application/xml")
|
||||
req.AddHeader("Authorization", "Bearer " & TOKEN.token_BEARER_TOKEN)
|
||||
' req.AddHeader("Gov-Client-Connection-Method", "WEB_APP_VIA_SERVER")
|
||||
' req.AddHeader("Gov-Client-Public-IP", "192.168.1.1")
|
||||
' req.AddHeader("Gov-Client-Timezone", "UTC+00:00")
|
||||
|
||||
MsgBox(TOKEN.token_BEARER_TOKEN)
|
||||
' Sende die Anfrage
|
||||
Dim resp As Chilkat.HttpResponse = http.SynchronousRequest(url, 443, True, req)
|
||||
|
||||
If resp Is Nothing Then
|
||||
Console.WriteLine("Fehler: " & http.LastErrorText)
|
||||
Else
|
||||
Console.WriteLine("Status Code: " & resp.StatusCode)
|
||||
Console.WriteLine("Antwort: " & resp.BodyStr)
|
||||
End If
|
||||
|
||||
Return True
|
||||
End If
|
||||
Return False
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
End Class
|
||||
@@ -362,7 +362,8 @@
|
||||
<Compile Include="Classes\cGrenzstelle.vb" />
|
||||
<Compile Include="Classes\cGVMS.vb" />
|
||||
<Compile Include="Classes\cHandlingssaetzeIntern.vb" />
|
||||
<Compile Include="Classes\cHMRCToken.vb" />
|
||||
<Compile Include="Schnittstellen\HMRC\CHMRC.vb" />
|
||||
<Compile Include="Schnittstellen\HMRC\cHMRCToken.vb" />
|
||||
<Compile Include="Classes\cKundenAufschubkonten.vb" />
|
||||
<Compile Include="Classes\cKundenBesonderheiten.vb" />
|
||||
<Compile Include="Classes\cKundenDatenblatt.vb" />
|
||||
@@ -425,6 +426,8 @@
|
||||
<Compile Include="Schnittstellen\CBAM\QReport_v17.00.Designer.vb" />
|
||||
<Compile Include="Schnittstellen\cTariffKN8.vb" />
|
||||
<Compile Include="Schnittstellen\Digicast\cDigicustAPI.vb" />
|
||||
<Compile Include="Schnittstellen\HMRC\cHMRC_ENS.vb" />
|
||||
<Compile Include="Schnittstellen\HMRC\ENS\CC315A-v11-2.Designer.vb" />
|
||||
<Compile Include="Schnittstellen\Modaltrans\cOregonNCTSDeclarations.vb" />
|
||||
<Compile Include="Classes\cParameter.vb" />
|
||||
<Compile Include="Classes\cProgrammeUpdate.vb" />
|
||||
@@ -868,6 +871,21 @@
|
||||
<None Include="Schnittstellen\GASTON_SCHUL\agsCustomsExchange.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Schnittstellen\HMRC\ENS\CC315A-v11-2.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Schnittstellen\HMRC\ENS\complex_types_ics-v11-2.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Schnittstellen\HMRC\ENS\doc-v11-2.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Schnittstellen\HMRC\ENS\simple_types-v11-2.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Schnittstellen\HMRC\ENS\tcl-v11-2.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Schnittstellen\IDEV_Intrastat\instat6.2.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
|
||||
Reference in New Issue
Block a user