<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="ManifestMessage">
		<xs:annotation>
			<xs:documentation>A message to be used for consolidation purposes, from a party arranging forwarding and transport services to the party for which the transport of the consolidated cargo  is destined</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="MessageHeader">
					<xs:annotation>
						<xs:documentation>UNH - Service element to uniquely identify the message. Example: Message envelope number "1357924680", type "IFCSUM", UN/Edifact directory "D97A"

UNH+1357924680+IFCSUM:D:97A:UN'
</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="MessageReferenceNumber" type="string1..14">
								<xs:annotation>
									<xs:documentation>Unique message reference assigned by the sender. Number assigned by the transmitter. It will not be used for business purposes.

It is suggested to follow the format "CCCCCCAAAASSSS" where

 - CCCCCC user code
 - AAAA year (4-digit)
 - SSSSS sequential number

For backward compatibility, this element will be processed for messeges that are received from users of the existent Port of Lisbon implementation.
The contents of this element will be subject to the rules and interpretation applicable to the BGM:1004.
</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="MessageTypeIdentifier">
								<xs:annotation>
									<xs:documentation>Type of message assigned by its control agency</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..6">
										<xs:enumeration value="IFCSUM">
											<xs:annotation>
												<xs:documentation>Forwarding and consolidation summary message</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="MessageTypeVersionNumber">
								<xs:annotation>
									<xs:documentation>Version number of the message type</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="D">
											<xs:annotation>
												<xs:documentation>Draft Version/UN/EDIFACT Directory</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="MessageTypeReleaseNumber">
								<xs:annotation>
									<xs:documentation>Release number within the current message type version number</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="97A">
											<xs:annotation>
												<xs:documentation>Release 1997 - A</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="ControlingAgency">
								<xs:annotation>
									<xs:documentation>Code identifying the agency controlling the specification, maintenance and publication of the message type</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..2">
										<xs:enumeration value="UN">
											<xs:annotation>
												<xs:documentation>UN/ECE/TRADE/WP.4</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="AssociationAssignedCode" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Code, assigned by the association responsible for the design and maintenance  of the message type concerned, that further identifies the message</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..6"/>
								</xs:simpleType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="BeginningOfMessage">
					<xs:annotation>
						<xs:documentation>BGM - Element to indicate the beginning of the message and transmit the identifying number, date, type and function. Example: Manifest "785"; message number: "23451999"; original: "9"

BGM+785+23451999+9'
</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="DocumentmessageName">
								<xs:annotation>
									<xs:documentation>Document/Message identifier name, coded</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="785">
											<xs:annotation>
												<xs:documentation>Cargo manifest. Listing of goods comprising the cargo carried in a means of transport or in a transport-unit. The cargo manifest gives the commercial particulars of the goods, such as transport document numbers, consignors, consignees, shipping marks, number and kind of packages and descriptions and quantities of the goods.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="833">
											<xs:annotation>
												<xs:documentation>Cargo declaration (departure). Generic term, sometimes referred to as Freight declaration, applied to the documents providing the particulars required by the Customs concerning the cargo (freight) carried by commercial means of transport (CCC). Only provided for backward compatibility. It will be treated like code "785"?</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="DocumentmessageNumber">
								<xs:annotation>
									<xs:documentation>Reference number assigned to the document/message by the issuer. Send the identification of the message. Only provided for backward compatibility. This element can be used by the users of the Port of Lisbon current implementation to send the document (manifest) number. 
The differences between the Port of Lisbon project and this implementation are:
- the document number must be sent in SG1:RFF:1154, having SG1:RFF:1153 with AFB;

</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..35"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="MessageFunction">
								<xs:annotation>
									<xs:documentation>Code indicating the function of the message.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="1">
											<xs:annotation>
												<xs:documentation>Cancellation.Cancel an already sent manifest. If the customs have already activated the customs process, the shipping agent has to ask customs permission to do it.

A manifest cannot be cancelled in the following situations:
 a) at least one of its transport documents is in the state of "closed" (fechado) for the Port Authority, since it originates  invoices and statistical data;
 b) at least one transport equipment or one goods item referred in one of its transport documents  was subject to a physical movement.

This applies to whole document, so information in group 19 will not be processed.
</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="2">
											<xs:annotation>
												<xs:documentation>Addition
Message containing items (e.g. line items, goods items,
Customs items, equipment items) to be added to a previously
sent message.
Add consignment document to an already sent manifest. If
the manifest is a final manifest then this addition is
considered customs additional cargo, execpt if the added
documents resulted form an unfolding (desdobramento)
process. For this particular case see notes in next FTX
segment.
If the manifest was already subject to an invoice process by
the Port Authority, this function will generate "work to do"
since the following documents might be missing:
a) discharge/loading report;
b) invoice for the added transport document.
In group 19 send only the information related to the
consignment to be added.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="3">
											<xs:annotation>
												<xs:documentation>Deletion.Remove consignment document. If the customs have already activated the customs process or this specific consignment document is already treated by customs, the shipping agent has to ask customs permission to do it.

The removal operation cannot be executed in the following situations:
 a) at least one of the transport documents to be removed is in the state of "closed" (fechado) for the Port Authority since it originates  invoices and statistical data;
 b) at least one transport equipment or one goods, item referred in one of the transport documents to be removed was subject to a physical movement.

In group 19 send only the information related to the consignment to be deleted.

</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="4">
											<xs:annotation>
												<xs:documentation>Change.Change a consignment document. If customs had already activated the customs process, or this specific consignment document is already treated by customs, the shipping agent has to ask customs permission to do it.

The change operation cannot be executed in the following situations:
 a) at least one of the transport documents to be changed is in the state of "closed" (fechado) for the Port Authority since it originates  invoices and statistical data;
 b) at least one transport equipment or one goods, item referred in one of the transport documents to be changed was subject to a physical movement.

In group 19 send only the information related to the consignment to be changed.
</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="5">
											<xs:annotation>
												<xs:documentation>Replace. This function replaces the manifest as if it were two messages: delete and create a new one. If the customs have already activated the customs process, the shipping agent has to ask customs permission to do it.

The substitution operation cannot be executed in the following situations:
 a) at least one of the transport documents is in the state of "closed" (fechado) for the Port Auhtority since it originates  invoices and statistical data;
 b) at least one transport equipment or one goods, item referred in one of the transport documents was subject to a physical movement.

</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="9">
											<xs:annotation>
												<xs:documentation>original. Only can be used if it's the first message for this specific document (manifest).</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="22">
											<xs:annotation>
												<xs:documentation>Final Transmission. This code declares the document as closed. This is, no more transport documents will be included in the manifest. Only after the good integration of this message in the Customs system, certain Customs procedures will be activated.

It is the date of this message that will be considered as the date of delivery of the document.

After a message with this function is sent, the usage of all other functions will be processed like "rectification" according to Customs' definition. Consequently they will be subject to approval or refusal from Customs.

This applies to whole document, so information in group 19 will not be processed.

</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="33">
											<xs:annotation>
												<xs:documentation>Change in heading section. This function allows the correction/change of information at document header level. Information in group 19 will not be processed.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="46">
											<xs:annotation>
												<xs:documentation>Provisional.Only provided for backward compatibility. It wil be treated like "9"?.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="47">
											<xs:annotation>
												<xs:documentation>Definitive. Only provided for backward compatibility. It wil be treated like "9"?.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="DateTimePeriod" maxOccurs="2">
					<xs:annotation>
						<xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="DateTimePeriodQualifier">
								<xs:annotation>
									<xs:documentation/>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="137">
											<xs:annotation>
												<xs:documentation>Document/message date/time

Date/time when a document/message is issued. This may include auhentication</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="243">
											<xs:annotation>
												<xs:documentation>Transmission date/time of the document</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="DateTimePeriod">
								<xs:annotation>
									<xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation. According with UN/ECE Recommendation No 7.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..35"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="DateTimePeriodFormatQualifier">
								<xs:annotation>
									<xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:maxLength value="3"/>
										<xs:enumeration value="203">
											<xs:annotation>
												<xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="303">
											<xs:annotation>
												<xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="FreeText" minOccurs="0" maxOccurs="3">
					<xs:annotation>
						<xs:documentation>FTX - The use of this segment allows to have a 350-character space for purpose of free information concerning Observation related to the Manifest as a whole. 

If the manifest is being changed (message function is 2,3 or 4) then the reason must be given in this segment. In this case use code 'AAI' in DE:4451.

If the message is providing documents of transport that resulted from an unfolding process (desdobramento), then use code 'ABG' in DE:4451 with the string DESDOBRAR/UNFOLD in the first element 4440 of C108.

Example: 
"Goods with no special conditionings"
FTX+AAI+++GOODS WITH NO SPECIAL CONDITIONINGS'

Example: 
"The Transport documents in this message resulted from an unfolding process"
FTX+ABG+++DESDOBRAR/UNFOLD'

In the APL implementation guideline, this segment was also used by the vessel agent to identify the other agents making part of the pool and that were carrying cargo in the vessel. 
This function will be performed in the "Processo de Meio de Transport" application system. 
So, information related with this function will be ignored.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="TextSubjectQualifier">
								<xs:annotation>
									<xs:documentation>Code specifying the subject of the free text</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="AAI">
											<xs:annotation>
												<xs:documentation>General information</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ZCN">
											<xs:annotation>
												<xs:documentation>Agent to sent the manifest. Only provided for backward compatibility. Information in the segment will be ignored</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ABG">
											<xs:annotation>
												<xs:documentation>Instructions or information about partial shipment(s)</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element ref="FreeTextNode"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="ControlTotal">
					<xs:annotation>
						<xs:documentation>CNT - A segment to specify totals of the consolidation (e.g. total number of equipment, total number of consignments, total gross weight and/or dimensions of the whole consolidation etc.).
To inform the number of consignments in the message.

Example: 123 consignments
CNT+10:123'

For backward compatibility, more than one occurrence is accepted, but information will be ignored.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="ControlQualifier">
								<xs:annotation>
									<xs:documentation>Determines the source data elements which form the basis for the 6066 control value</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="10">
											<xs:annotation>
												<xs:documentation>Total number of consignements</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="ControlValue" type="decimal18">
								<xs:annotation>
									<xs:documentation>Value obtained from summing the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="Reference" maxOccurs="5">
					<xs:annotation>
						<xs:documentation>RFF - 

A group of segments containing references and constants which apply to the entire
message.                             This group is used to send the five possible references allowed at header level: the
Port Authority vessel call Id, the Customs vessel call Id (known as "Contramarca"),
the manifest Id given by the carrier/agent, a reference to a previous message and
the manifest Id given by the Port Authority (this last reference is only to be used in
the communication between the Port Authority and Customs).
The group must be sent the number of times needed to send all the references the
carrier/agent is aware at the moment it sends the document. At least the manifest
Id (RFF:C506:1153='AFB') and Port Authority vessel call Id (RFF:C506:1153='ATZ')
must be sent by the shipping agent or its representative. This means that the
group must occur twice, at least. In the case of the communication between the
Port Authority and Customs, a third occurence must exist to send the manifest Id
given by the Port Authority (RFF:1153='ACD').
The Customs vessel call Id may be sent when known or was activated. In this
case there is no need to send information in DTM segment. In case the shipping
agent hasn't provided the Customs vessel call Id, the Port Authority must include it
in the message in case this Id has been provided for the vessel call in question.
The reference to a previous message (RFF:1153 is ACW) is only sent when the
message function, stated in BGM:1225, is not '9' (or '46' or '47' for compatibility
reasons) or is '2' but resulting from an unfolding (desdobramento) process. The
goal behind this usage is to provide a way to keep the correct chronological
sequence of different messages related with the same document synchronized
with the sender. This usage was based on ITIGG Recommendation D4/G4.
When qualifiers 'ACW', 'AFB' or 'ACD' are used, then the segment DTM in this
group must be sent.
For qualifier 'ACW' in segment RFF, the date in segment DTM in this group must
be the one that was present in segment DTM at top level of the previous message.
For qualifier 'AFB' in segment RFF, the date in segment DTM in this group
corresponds to the date of the document. In other words, the manifest date. It is
admissible this date to be the same as the date in segment DTM at the top level,
but it cannot be more recent.
The reference number by which the issuer knows the document (manifest) and the
respective date, must be unchangeable and unique for each issuer, independently
of the number of messages associated with the document (manifest).

When the reference is Customs vessel process id (RFF:C506:1153='AFM'), then
the reference value in DE:1154 must have the format defined by Customs. The
current format is
- UN/Locode: 5 characters
- customs office code: 3 digits
- mode of transport code (UN/CEFACT Trade Facilitation Recommendation 19 -
Codes for Modes of Transport): 1 digit
- year: 4 digits
- sequential number: 6 digits left padded with zeros
Please note that this format is subject to changes in the future.
When the reference is the Port Authority vessel call Id (RFF:C506:1153='ATZ'),
then in each the following Ports, the suffixes apply to the reference:
- Port of Leixões: ESC
- Port of Lisbon: LIS
- Port of Sines: SIN

Example: Manifest Id given by the carrier/agent: NBLISD001
RFF+AFB:NBLISD001'

Example: Lisbon's vessel call: LIS200300159
RFF+ATZ:LIS200300159'

Example: Customs vessel process id (Contramarca) PTLIS07512004000107
RFF+AFM:PTLIS07512004000107'
</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="ReferenceQualifier">
								<xs:annotation>
									<xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="ABO">
											<xs:annotation>
												<xs:documentation>Originator's reference. Only provided for backward compatibility. It will be treated like code "AFB"?</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ACD">
											<xs:annotation>
												<xs:documentation>Reference number provided in addition to another given
reference.
This reference corresponds to the identification given by the
Port Authority to a manifest received electronically or created
manually in the Port Authority system through on-line forms.
To be used only in the communication between the Port
Authority and Customs.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ACW">
											<xs:annotation>
												<xs:documentation>Reference number to a previous message. This id is what appeared in BGM:C106:1004 of a previous message.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="AFB">
											<xs:annotation>
												<xs:documentation>Cargo manifest number. The reference by which the carrier/agent knows this manifest.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="AFM">
											<xs:annotation>
												<xs:documentation>Secondary customs reference. The reference is the Customs vessel call Id (known as "Contramarca").</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ATZ">
											<xs:annotation>
												<xs:documentation>Ship's stay reference number. The reference is the Port Authority vessel call Id. This number is provided by the Port Authority Information System.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="VON">
											<xs:annotation>
												<xs:documentation>Voyage number. Only provided for backward compatibility. It will be treated like code "ATZ"</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="ReferenceNumber">
								<xs:annotation>
									<xs:documentation>Identification number. If 1153 is 'ATZ', the reference will be checked against the information about the agent associated with the vessel call provided to the Port Authority (according with the procedures of "Processo Meio Transporte").</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..35"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="DateTimePeriod" minOccurs="0" maxOccurs="2">
								<xs:annotation>
									<xs:documentation>DTM - Element to indicate the date/time relating to the reference. The complete meaning of this date depende of the type of reference in previous RFF segment, state in RFF:C506:1153 is in (ACW, AFB).

Example: Date/time of the reference: "2003/10/08 10:15"?
DTM+171:200310081015:103’
Example: Date/time of the reference: "2003/10/08 – 15:25 UTC+3"?. Attention that in this case the defined escape character must be used in the date/time format, if the time zone is positive in relation to GMT. If the escape character is "?"? then DTM+171:200310081525?+03:303’
</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="DateTimePeriodQualifier">
											<xs:annotation>
												<xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="171">
														<xs:annotation>
															<xs:documentation>Reference date/time

Date/time on which the reference was issued</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="DateTimePeriod">
											<xs:annotation>
												<xs:documentation>The value of a date, a date and a time, a time or a period, in a specified representation. According with UN/ECE Recommendation Nº7</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..35"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="DateTimePeriodFormatQualifier">
											<xs:annotation>
												<xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:maxLength value="3"/>
													<xs:enumeration value="203">
														<xs:annotation>
															<xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="303">
														<xs:annotation>
															<xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="GovernmentalRequirements" maxOccurs="2">
					<xs:annotation>
						<xs:documentation>GOR - An element to give information about the current customs procedure under which the transport is moving or to indicate applicable governmental procedures to import, export and transit of the voyage, flight or consolidation. This group is to state the type of manifest. Its usage replaces the need to use different codes in BGM:1001 (see backward compatibility comments in the GOR segment).

The second usage is applied only to backward compatibility.

Relating to the first function, the following notes shall be considered.

If the document is a Discharge Manifest, then BGM:1001='785' and GOR:8323='2' (see notes for backward compatibility).

If the document is a Loading Manifest, then BGM:1001='785' and GOR:8323='1' (see notes of backward compatibility).

If the document is related to cargo In Transit, then BGM:1004='785' and GOR:8323='3' (see notes of backward compatibility).

Note, the transit manifest can be delivered to Customs on paper while EU legislation does not oblige to an electronic transmission.

Example: Export manifest

GOR+1+5'

In APL implementation guideline, the distinction between Loading and Discharge documents where given by the usage of code "833"? in BGM:1001.

For backward compatibility the process will be supported with the partners that currently use the APL system. The following equivalencies apply:
- APL implementation BGM:1001="?833"? and GOR:8323="?1"? is equivalent to BGM:1001="?785"? and GOR:8323="?1"? in the new implementation.
- APL implementation BGM:1001="?785"? and GOR:8323="?2"? is equivalent to BGM:1001="?785"? and GOR:8323="?2"? in the new implementation.

</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="TransportMovement">
								<xs:annotation>
									<xs:documentation>Code indicating the type of movement of the goods</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="1">
											<xs:annotation>
												<xs:documentation>Export. Note that this term is understood in the wider context of outbound of goods and not under the strict customs definition.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="2">
											<xs:annotation>
												<xs:documentation>Import. Note that this term is understood in the wider context of inbound of goods and not under the strict customs definition.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="3">
											<xs:annotation>
												<xs:documentation>Transit.Note that this term is understood in the wider context of goods that remain on board the vessel.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ZS0">
											<xs:annotation>
												<xs:documentation>Simplified Transit Procedure not admitted. Only provided for backward compatibility. Information in this segment will be ignored.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ZS1">
											<xs:annotation>
												<xs:documentation>Simplified Transit Procedure Level 1 article 447, EC regulation no. 2454/93 of the Commission. Only provided for backward compatibility. Information in this segment will be ignored.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ZS2">
											<xs:annotation>
												<xs:documentation>Simplified Transit Procedure Level 2 article 448, EC regulation no. 2454/93 of the Comission. Only provided for backward compatibility. Information in this segment will be ignored.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="GovernmentAgency">
								<xs:annotation>
									<xs:documentation>Indicates which government agency is involved</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="5">
											<xs:annotation>
												<xs:documentation>Customs</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="NameAndAddress" maxOccurs="5">
					<xs:annotation>
						<xs:documentation>NAD - An element to identify the party's name and contacts.                        This group is used to identify the entities related with the whole manifest. The
identification of the Message Sender (MS), Message Receiver (MR), Customs
office (CM) and the Carrier (CA) must be sent. The others are optional.
The identification of the Customs office was included since some ports have areas
under jurisdiction of different Customs office. So the agent shall identify to which
office is declaring the cargo. For this information, send code 'CM' in NAD:3035.
The Carrier identification corresponds to the carrier identified in the first message
related with the manifest, this is, the message with function '9' in BGM:1225. Note
that when the message has the function 'Original' (BGM:1225='9') the carrier
identified here must be the same carrier identified in all transport documents in the
message, and all the transport documents must be related to the same carrier.
The inclusion of the message sender (NAD:3035='MS') and the message receiver
(NAD:3035='MR') is to separate the business level from the practical issues. For
instance, allow that the entity that is sending the document can be different from
the one which is the originator of the document. The same applies to the receiver
versus the destination.
The information about the transport documents can only be sent by the carrier's
agent, cargo agent or by a legal Declarant's agent/representative. In these cases,
information of the cargo agent on the CNI section must match with the information
of this group (only the information of one carrier agent or cargo agent can be sent).
In the communication between the Shipping Agents and the Port Auhtorities, the
Message Receiver (MR) is the Port Authority. In this case the receiver is the Port
of Leixões or the Port of Lisbon, then it can be identified by the NIF or by the EAN
of the corresponding Port Authority.
In the communication between the Port Authority and Customs, the receiver is the
Customs identified by Customs Office Identification Code.                                                                       


If NAD:3035='CA' then do not use DE:3055 and the identification placed in
DE:3039 must be preeceded by the ISO country code (2 digit) corresponding to
the nationality of the carrier. In DE:1131 use the appropriate code that correctly
identifies the type of number given to the Portuguese Customs at the moment of
the protocol signature.
Today several entities have EAN codes. When the receiver or the sender is one of
this entities, the respective code can be used. In this case DE:1131 shall not be
used and DE:3055 must be '9'. For the following Port Authoroties, these codes
apply:
Port Authority of Leixões: 5600000017340
Port Authority of Lisbon: 5600000009710
When identifying a Customs Office use code '113' in DE:1131 and code '155' in
DE:3055.
When identifying a Portuguese entity use code '167' in DE:1131 and code '155' in
DE:3055, except when the entity is being identified by the EAN code.
Example: Declarant's agent/representative with tax number 510042365789.
NAD+AE+510042365789:167:155'
Example: Manifest to be presented to the customs office of Marítima de Lisboa
(Alcantara).
NAD+CM+PT000040:113:155'
Example: Message recipient is the Port Authority of Leixoes identified by EAN
code 5600000017340
NAD+MR+5600000017340::9'
Example: Greek carrier identified by VAT number 192384
NAD+CA+GR192384:52'

</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="PartyQualifier">
								<xs:annotation>
									<xs:documentation>Code giving a specific meaning to a party</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="AE">
											<xs:annotation>
												<xs:documentation>Declarant's agent/representative</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="CM">
											<xs:annotation>
												<xs:documentation>Customs</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="CV">
											<xs:annotation>
												<xs:documentation>Consignee of vessel
Description to be provided.
Only provided for backward compatibility. It will be treated like code 'CA'.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="MR">
											<xs:annotation>
												<xs:documentation>Message recipient. Receiver of the message.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="MS">
											<xs:annotation>
												<xs:documentation>Document/message issuer/sender</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="CA">
											<xs:annotation>
												<xs:documentation>Carrier
(3126) Party undertaking or arranging transport of goods
between named points.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="PartyId">
								<xs:annotation>
									<xs:documentation>Code identifying a party involved in a transaction. 

If 3035 in ('AE', 'CG', 'MR', 'MS') send tax payer number.

If the message receiver is the Port Authority of Lisbon or Leixões then EAN code can also be used as an identification means of these authorities.

If 3035 is 'CM' send code according to list in pages 71-72 of NSTI/NCTS Declara袯 de Tr᭳ito Informatizada - Documento Auxiliar ao Guia de Implementação das Mensagens EDI Versão 3, Anexo - Códigos a Utilizar.

If 3035 is 'CG', the identification will be checked against the information about the agent associated with the vessel call provided to the Port Authority (according with the procedures of "Processo Meio Transporte").
</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..35"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="CodeListQualifier" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Identification of a code list                                           If the entity is being identified by the EAN code, then this element shall not be sent.
See example in segment notes.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="52"/>
										<xs:enumeration value="53"/>
										<xs:enumeration value="174"/>
										<xs:enumeration value="Z03"/>
										<xs:enumeration value="113">
											<xs:annotation>
												<xs:documentation>Customs office</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="167">
											<xs:annotation>
												<xs:documentation>Tax party identification</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="Z02">
											<xs:annotation>
												<xs:documentation>Other
Use this code to state that the id type in DE:3039 is not
included in the other types listed in this element and the
entity is not Portuguese.</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="CodeListResponsibleAgency" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Code identifying the agency resopnsible for a code list</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:maxLength value="3"/>
										<xs:enumeration value="9">
											<xs:annotation>
												<xs:documentation>EAN (International Article Numbering association)</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="155">
											<xs:annotation>
												<xs:documentation>PT, Portuguese Customs</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="NameAndAddress" type="string1..175" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Unstructured name and address. This entity is required for parners who use the Data Entry application. This composite element is needed when the entity identified in the segment is the message sender (DE:3035 = MS). This way the response can be directed to the appropriate destination.

If the Data Entry application is being used, the sent value identifies the Data Entry installation.

Otherwise, it identifies a point of origin of the message.

Use this element to specify the identification of the Data Entry installation.
</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ContactInformation" minOccurs="0">
								<xs:annotation>
									<xs:documentation>CTA - A group of elements to identify a party's contacts.
                                      Example: Contact Mr. Jos矓ilva.

CTA+BF+:JOSE SILVA'
</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ContactFunction">
											<xs:annotation>
												<xs:documentation>Function of the contact (department of person)</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="BF">
														<xs:annotation>
															<xs:documentation>Service contact</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="IC">
														<xs:annotation>
															<xs:documentation>Information contact</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="DepartmentEmployeeIdentification" type="string1..17" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Internal identification code. Only provided for backward compatibility</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="DepartmentEmployee" type="string1..35">
											<xs:annotation>
												<xs:documentation>The department of person within an organizational unit</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="CommunicationContact" maxOccurs="9">
											<xs:annotation>
												<xs:documentation>COM - Element to hold the communication number of a person or department to whom the it should be addressed.

Example: Contact by phone number 229390700.

COM+229390700:TE'

Example: Contact by email john.mclane@mybusiness.com

COM+JOHN.MCLANE AT MYBUSINESS.COM:EM'
</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="CommunicationNumber">
														<xs:annotation>
															<xs:documentation>The communication number</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..512"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="CommunicationChannelQualifier">
														<xs:annotation>
															<xs:documentation>Identifier of the communications' channel type. UN/EDIFACT code list for Data Element 3155.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3"/>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="TransportDetails" minOccurs="0">
					<xs:annotation>
						<xs:documentation>TDT - Group of elements to describe all transport details of the voyage/flight or consolidation, and of all parties involved.  

The information referred in this segment is to be given to the Port Authority through another process defined by "Processo de Meio de Transporte" specification. The connection between the document (manifest) and the means of transport is made through the Vessel Call Id stated in the SG1:RFF with SG1:RFF:1153 having 'ATZ' qualifier code.

Although the information provided in this group will be not inserted into the application, data will be used for validation purposes against the information provided in the "Processo de Meio de Transporte".

Example: Maritime main-carriage transport, journey 872N of vessel MING ASIA with IMO number 973146, register in Portugal.

TDT+20+872N+1+++++973146:146:54:MING ASIA:PT'

</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="TransportStageQualifier">
								<xs:annotation>
									<xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="20">
											<xs:annotation>
												<xs:documentation>Main-carriage transport</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="ConveyanceReferenceNumber" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Unique reference given by the carrier to a certain journey or departure of a means of transport</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..17"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="ModeOfTransport" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Coded method of transport used for the carriage of the goods.
UN/CEFACT Trade Facilitation Recommendation 19 - Codes for Modes of Transport.
</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="1">
											<xs:annotation>
												<xs:documentation>Maritime Transport</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="MeansOfTransportIMONumber" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Identification of the means of transport. IMO number.

The IMO number will be checked against the information about the agent associated with the vessel call provided to the Port Authority (according with the procedures of "Processo Meio Transporte").
</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..9"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="CodeListQualifier" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Identification of a code list     Must be used if information is sent in data element 8213.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="146">
											<xs:annotation>
												<xs:documentation>Means of transport identification</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="CodeListResponsibleAgency" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Code identifying the agency responsible for the code list                                                                                                Must be used if information is sent in data element 8213.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="54">
											<xs:annotation>
												<xs:documentation>IMO (International Maritime Organisation)</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="IdOfTheMeansOfTransport" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Vessel's name</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..35">
										<xs:maxLength value="35"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="NationalityOfMeansOfTransport" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Coded name of the country where the means of transportation is registered. Use ISO 3166, country code (alphabetic of 2).</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:maxLength value="3"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="LocationIdentification" minOccurs="0" maxOccurs="9">
								<xs:annotation>
									<xs:documentation>LOC - A segment indicating relevant locations related to the transport of the consolidation. Example: Next port of call: Leixões

LOC+61+PTLEI:139:6'

Only provided for backward compatibility. The information referred in this segment is to be given to the Port Authority through another process defined by "Processo de Meio de Transporte"? specification
</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="PlaceLocationQualifier">
											<xs:annotation>
												<xs:documentation>Code identifying the function of a location</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="61">
														<xs:annotation>
															<xs:documentation>Next port of call</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="92">
														<xs:annotation>
															<xs:documentation>Routing</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="PlaceLocationIdentification">
											<xs:annotation>
												<xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..25"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CodeListQualifier">
											<xs:annotation>
												<xs:documentation>Identification of a code list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="139">
														<xs:annotation>
															<xs:documentation>Port</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CodeListResponsibleAgency">
											<xs:annotation>
												<xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:maxLength value="3"/>
													<xs:enumeration value="6">
														<xs:annotation>
															<xs:documentation>UN/ECE (United Nations – Economic Commission for Europe)</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="PlaceLocation" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Name of the place/location. It is mandatory if the UN/LOCODE in the data element 3225 is omitted.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..70">
													<xs:maxLength value="70"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="DateTimePeriod" minOccurs="0" maxOccurs="9">
								<xs:annotation>
									<xs:documentation>DTM - A segment indicating pertinent date(s) and time(s) (e.g.  date of departure/arrival etc.) dependent on the transport stage.

Example: ETD for 2003/10/02 06:00

DTM+133:200310020600:203'

Example: Attention that in this case the defined escape character must be used in the date/time format, if the time zone is positive in relation to GMT. If the escape character is '?' then

DTM+133:200310081525?+03:303´

Only provided for backward compatibility. The information referred in this segment is to be given to the Port Authority through another process defined by "Processo de Meio de Transporte"? specification.

</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="DateTimePeriodQualifier">
											<xs:annotation>
												<xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="132">
														<xs:annotation>
															<xs:documentation>Arrival date/time, estimated</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="133">
														<xs:annotation>
															<xs:documentation>Departure date/time, estimated</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="DateTimePeriod" type="string1..35">
											<xs:annotation>
												<xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation. 
According with UN/ECE Recommendation Nº7.</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="DateTimePeriodFormatQualifier">
											<xs:annotation>
												<xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="203">
														<xs:annotation>
															<xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="303">
														<xs:annotation>
															<xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="ConsignmentInformation" minOccurs="0" maxOccurs="9999">
					<xs:annotation>
						<xs:documentation>CNI - Element to indicate consignments included in the consolidation using the transport document/message number.
                                                    See notes in element BGM:1225 to see when this group has to be send.    
Somehow the transport document must be identified clearly. This implies that unique keys must exist. Being aware that there isn't an "universal" numbering system that would prevent different documents of having the same identification, the identification key must be found by composing some other available data. This way, the goal is achieved but avoiding unnecessary impacts in current business processes.

In this framework, the transport documents presented in this segment group, will be identified by a key composed of the following data elements (all present in SG19):
 - SG26:RFF:1153
 - SG26:RFF:1154
 - SG26:DTM:2380
 - SG34:NAD:3039

Nowadays in the context of shipping, as in business in general, processes are supported by information systems with enough power to deal with a set of data as a single item, without creating additional impact to the user and without affecting the business role of that data. This means that concatenation is not needed and must be avoided. The key must be determined by considering the elements above, but respecting the independent nature of each one.

Example: Third consignment in the message.
CNI+3'

The distinction provided by element 1373 is implemented by the usage of segment group 26.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="ConsolidationItemNumber">
								<xs:annotation>
									<xs:documentation>Serial number differentiating each separate consignment included in the consolidation.
Must be unique for in each message.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="decimal4"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="DocumentMessageNumber" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Reference number assigned to the document/message by the issuer. Only provided for backward compatibility</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..35"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="DocumentMessageStatus" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Code to identify the status of a document/message</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="string1..3">
										<xs:enumeration value="ZZ1">
											<xs:annotation>
												<xs:documentation>(Provided for backwards compatibility. Will be treated like a goods consignment except empty container bill (RFF:1153="?AEW"?) and travel service (RFF="?AUE"?))</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ZZ2">
											<xs:annotation>
												<xs:documentation>(Provided for backwards compatibility. Will be treated like travel service (RFF:1153="?AUE"?))</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
										<xs:enumeration value="ZZ3">
											<xs:annotation>
												<xs:documentation>(Provided for backwards compatibility. Will be treated like empty container bill (RFF:1153="?AEW"?). Note that code is presently used by specify that the consignment is related with empty containers. New implementations are advised to use "AEW"?)</xs:documentation>
											</xs:annotation>
										</xs:enumeration>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="ControlTotal" minOccurs="0" maxOccurs="6">
								<xs:annotation>
									<xs:documentation>CNT - An element to specify totals for a consignment

Although this segment is optional, it is advised to send it in order to inform the
number of packages in the consignment                   (DE:6069 = 11).                        
In case of bulk cargo the number of volumes is 1.
                                         Example: Consigment total gross weight: 21.000 Kg.
CNT+7:2100000:KGM'
                                     Example: Total quantity of volumes present in the consignment: 20.
CNT+11:20'                            '
For backward compatibility, more then one occurrence is accepted, but information will be ignored

</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ControlQualifier">
											<xs:annotation>
												<xs:documentation>Determines the source data elements in the message which forms the basis for ControlValue attribute</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="7">
														<xs:annotation>
															<xs:documentation>Total gross weight</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="11">
														<xs:annotation>
															<xs:documentation>Total number of packages</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="16">
														<xs:annotation>
															<xs:documentation>Total number of equipment</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="26">
														<xs:annotation>
															<xs:documentation>Total gross measurement/cube</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="30">
														<xs:annotation>
															<xs:documentation>Total number of empty containers</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="ControlValue" type="decimal18">
											<xs:annotation>
												<xs:documentation>Value obtained from summing the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="MeasureUnitQualifier" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Indication of the unit of measurement in which the quantity is expressed.

UN/CEFACT Trade Facilitation Recommendation 20 - Codes for Units of Measure used in international trade - Annex II.

</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="KGM">
														<xs:annotation>
															<xs:documentation>Kilogram. Use when 6069 is '7'.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="MTQ">
														<xs:annotation>
															<xs:documentation>Cubic meter. Use when 6069 is '26'.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="ConsignmentFreeText" minOccurs="0" maxOccurs="4">
								<xs:annotation>
									<xs:documentation>FTX - An element to give free form information.

This segment may be used to send several information related with the transport document.

If DE:4451 is 'AAI' then the segment is being used for sending general information.

If DE:4451 is 'BLR' then the segment contains remarks present in the transport document.

If DE:4451 is 'CHG' then the segment contains the reasons why the transport document is being changed. This usage is required always a transport document is being changed. That is, when the values of BGM:1225 is in {'2','3','4'}.

If DE:4451 is 'CUS' then the segment states whether there is an unique transport contract involved in the transportation process or not. If positive, the segment allows to state if the expression "EXPORT" is printed or not in the unique transport contract.

Example: For the Port Authority only. In case  there are goods exempted under article 20, the article and the item should be indicated here for discount purposes. There will be a codification for goods that are not subject of "TUP Carga" charges.

FTX+AAI+++GOODS UNDER ARTICLE 20'

Example: The process involves an unique transport contract that does not have the expression "EXPORT" printed.

FTX+CUS+++YES:NO'

</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="TextSubjectQualifier">
											<xs:annotation>
												<xs:documentation>Code specifying the subject of the free text</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="AAI">
														<xs:annotation>
															<xs:documentation>General information</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AAS">
														<xs:annotation>
															<xs:documentation>Bill of lading remarks. Only provided for backward compatibility. It will be treated like code "BLR"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="BLR">
														<xs:annotation>
															<xs:documentation>Transport document remarks</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CHG">
														<xs:annotation>
															<xs:documentation>Change information</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CUS">
														<xs:annotation>
															<xs:documentation>Customs declaration information.

The usage of this qualifier is to state if there is an unique transport contract involved in this transport process. If this is the case, then this qualifier is also used to state if the unique transport contract has been marked with the "EXPORT" expression or not.

</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element ref="FreeTextNode"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="LocationIdentification" maxOccurs="5">
								<xs:annotation>
									<xs:documentation>LOC - A segment to identify a location applying to the entire consignment.

This group is to specify the locations that normally appear in a transport contract (typically a BL). Please note that these places are at contract level and not at operational level.

This group is also used to state the place where the transport document was issued. This usage is a Customs requirement. For this purpose, SG24:LOC:3227 must have code '91'.

All qualifiers and the associated information must be provided.


Example: Place of Receipt: Yantian, Port of Loading: Rotterdam, Port of Discharge: Leixões

LOC+88+CNYTN:139:6'
LOC+9+NLRTM:139:6'
LOC+11+PTLEI:139:6'

Next rules apply to goods consignment (CNI:1373='ZZ1' in the APL project) 
1. If this is a loading manifest BGM(1001)=833, and 3227=9 then 3225=PTLIS (if the loading port is Lisbon) or PTLEI (if the loading port is LeixÕes) or PTSIE (if the loading port is Sines) and 1131=139 and 3055=6. 
2. If this is a discharge manifest BGM(1001)=785 and 3227=11 then 3225=PTLIS (if the discharge port is Lisbon) or PTLEI (if the discharge port is LeixÕes) or PTSIE (if the discharge port is Sines) and 1131=139 and 3055=6 

For other consignments (CNI:1373 'ZZ1' in the APL project) 
1. In case of B/Ls type ZZ2 or ZZ3 (CNI :1373 = ZZ2 or ZZ3), once the place of origin is unknown,this will be displayed using code ZZZZZ, with literal UNKOWN 
2. In case of B/Ls type ZZ3 (CNI :1373 = ZZ3), once the place of load is unknown, this will be displayed using code ZZZZZ, with literal UNKOWN 
3. In case of B/Ls type ZZ2 or ZZ3 (CNI :1373 = ZZ2 or ZZ3), once the place of destination is unknown, this will be displayed using code ZZZZZ, with literal UNKOWN 

In the case of qualifiers '88', '7' and '91' when the LOCODE is unknown, the country and a brief description of the local must be provided.
 
These rules defined this way are for backward compatibility. The rules will be checked but using different segments and elements in new implementations.


</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="PlaceLocationQualifier">
											<xs:annotation>
												<xs:documentation>Code identifying the function of a location</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="5">
														<xs:annotation>
															<xs:documentation>Place of departure. Only provided for backward compatibility. It Will be treated like "88"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="7">
														<xs:annotation>
															<xs:documentation>Place of delivery</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="8">
														<xs:annotation>
															<xs:documentation>Place of destination. Only provided for backward compatibility. It Will be treated like "7"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="9">
														<xs:annotation>
															<xs:documentation>Place/port of loading</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="11">
														<xs:annotation>
															<xs:documentation>Place/port of discharge</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="88">
														<xs:annotation>
															<xs:documentation>Place of receipt</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="91">
														<xs:annotation>
															<xs:documentation>Place of document issue</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="PlaceLocationIdentification">
											<xs:annotation>
												<xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2. When the Locode is unknown or the location is unknown then place the ISO 2-letter country code. In this case element 3224 must be sent.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..25"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CodeListQualifier">
											<xs:annotation>
												<xs:documentation>Identification of a code list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="139">
														<xs:annotation>
															<xs:documentation>Port</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="162">
														<xs:annotation>
															<xs:documentation>Country</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CodeListResponsibleAgency">
											<xs:annotation>
												<xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="5">
														<xs:annotation>
															<xs:documentation>ISO</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="6">
														<xs:annotation>
															<xs:documentation>UN/ECE</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="PlaceLocation" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Name of the place/location. Name of the place/location. It is required if the UN/LOCODE in the data element 3225 is omitted and only the ISO country code is sent.                                                                           If the location is not known then the expression "UNKNOWN" must be used.                                         Only allowed for qualifiers '88', '7' and '91' in element 3227.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..70">
													<xs:maxLength value="70"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="Reference" maxOccurs="999">
								<xs:annotation>
									<xs:documentation>RFF - A group of elements containing a reference and constants which apply to the entire consignment.
 
This group is used to send any references associated with the consignment,
including the document number.
At least the references to the following items are expected:
- A transport document according to list provided in DE:1153;
- Booking (RFF:1153 in 'BN') before the issue of the transport document. After the
transport document is issued it is strongly advised that the booking reference is
sent in order to relate the booking with the transport document.
Special care to the situation where segment group 31 with TDT:8067 is '1' and
8051 in the same segment is '10'. In this case this group must be used to send
the reference to the previous transport document (RFF:1153 must be 'ANK') and
must be used to send the previous Customs vessel call Id, known as
"Contramarca" (RFF:1153 must be 'AFM'). If in this group TDT:8067 is '1' and 8051
in the same segment is '30' then the group can be used to send the reference to
the next transport document and the next Customs vessel call Id, if known, using
the same qualifiers in RFF:1153.
If the message function is different of 2, 9, 46 or 47 then the Customs Summary
Declaration Number must be provided by using qualifier ABT in element RFF:1153.
If the message function is 2 and the document of transport being sent resulted
from an unfolding (desdobramento) process (see notes in FTX segment at
message header level), one of the two following references must sent (optionally
both). One is the Customs Summary Declaration of the unfolded (desdobrado)
document of transport using qualifer ABT in element RFF:1153. The other is the
identification of the document of transport that was unfolded (desdobrado) using
the qualifier CN in element RFF:1153.

A segment to express a reference which applies to the entire consignment such as:
the document/message number that is to be updated by this very message
(according to data element 1225 Message Function, Coded in segment BGM),
booking reference, order number, insurance contract, etc.

Being aware the booking is just a reference that has associated the same
information that later will be part or the whole of a transport document, it will be
treated like a transport document if not associated with one. When associated
with a transport document, then the booking is treated just like a reference.
All references, except the booking (according to the previous paragraph), must be
associated with a transport document.
If the document of transport resulted from an unfolding (desdobramento) process,
then use qualifier 'CN' in DE:1153 to state that the value in DE:1154 identifies the
document of transport that was unfolded (desdobrado) and sent in a previous
message.

For each occurrence of segment group 19, if there are several references that
correspond to transport documents, then the first to be declared will be considered
as the identification of the document being presented in by the group. All others
will be considered as references.

Example: BL number DKLI0200001
RFF+BM:DKLI0200001'
</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ReferenceQualifier">
											<xs:annotation>
												<xs:documentation>Code giving a specific meaning to a reference element or a reference number</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="AAE">
														<xs:annotation>
															<xs:documentation>Goods declaration number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AAM">
														<xs:annotation>
															<xs:documentation>Waybill number. Document of Transport.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AAO">
														<xs:annotation>
															<xs:documentation>Consignee's shipment number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ABE">
														<xs:annotation>
															<xs:documentation>Declarant's reference number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ABT">
														<xs:annotation>
															<xs:documentation>Customs declaration number. Reference. Use to inform the Customs Summary Declaration Number.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ACW">
														<xs:annotation>
															<xs:documentation>Reference number to a previous message. This code is to be used in scenario of the short form consolidation message. In this case, the group is referring to previous sent single consignment messages.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ADO">
														<xs:annotation>
															<xs:documentation>Container work order reference number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AEI">
														<xs:annotation>
															<xs:documentation>Registration number of previous customs declaration. Only provided for backward compatibility. It Will be treated like "AFM"? with SG31:TDT:8051 like "10"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AEW">
														<xs:annotation>
															<xs:documentation>Empty container bill number. Document of Transport. Only for empty containers.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AEX">
														<xs:annotation>
															<xs:documentation>Non-negotiable maritime transport document number. Document of Transport.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AFA">
														<xs:annotation>
															<xs:documentation>Through bill of landing number. Document of Transport.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AFM">
														<xs:annotation>
															<xs:documentation>Secondary Customs reference. Reference</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AHI">
														<xs:annotation>
															<xs:documentation>Transport contract reference number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AKR">
														<xs:annotation>
															<xs:documentation>General cargo consignment reference number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ANK">
														<xs:annotation>
															<xs:documentation>Reference number assigned by a third party. Reference. This qualifier is mainly used in the transhipment scenario in order to, at the moment of the loading, inform the previous document of transport under which the goods were unloaded.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AUE">
														<xs:annotation>
															<xs:documentation>Travel service. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="AUG">
														<xs:annotation>
															<xs:documentation>Importer's letter of credit reference. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="BM">
														<xs:annotation>
															<xs:documentation>Bill of landing number. Document of Transport.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="BN">
														<xs:annotation>
															<xs:documentation>Booking reference number. Reference. Refer to the segment notes.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CN">
														<xs:annotation>
															<xs:documentation>Carrier's reference number

Reference number assigned by carrier to a consignment.

Use this qualifier when the document of transport resulted
from an unfolding (desdobramento) process, to identified the
document of transport that was unfolded (desdobrado).</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CR">
														<xs:annotation>
															<xs:documentation>Customer reference number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CU">
														<xs:annotation>
															<xs:documentation>Consignor's reference number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="MB">
														<xs:annotation>
															<xs:documentation>Master bill of landing number. Document of Transport.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="PK">
														<xs:annotation>
															<xs:documentation>Packing list number. Document of Transport.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="UCN">
														<xs:annotation>
															<xs:documentation>Unique consignment reference number. Reference.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="ReferenceNumber">
											<xs:annotation>
												<xs:documentation>Identification number, whose nature and function can be qualified by the ReferenceQualifier attribute</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..35"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="DateTimePeriod">
											<xs:annotation>
												<xs:documentation>DTM - Element to indicate the date/time relating to the reference. The complete meaning of this date depende of the type of reference in previous RFF segment, state in RFF:C506:1153 data element.

Example: Date/time of the reference: "2003/10/08 10:15"?
DTM+171:200310081015:103’
Example: Date/time of the reference: "2003/10/08 – 15:25 UTC+3"?. Attention that in this case the defined escape character must be used in the date/time format, if the time zone is positive in relation to GMT. If the escape character is "?"? then DTM+171:200310081525?+03:303’</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="DateTimePeriodQualifier">
														<xs:annotation>
															<xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="171">
																	<xs:annotation>
																		<xs:documentation>Reference date/time

Date/time on which the reference was issued</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="DateTimePeriod">
														<xs:annotation>
															<xs:documentation>The value of a date, a date and a time, a time or a period, in a specified representation. According with UN/ECE Recommendation Nº7</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..35"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="DateTimePeriodFormatQualifier">
														<xs:annotation>
															<xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:maxLength value="3"/>
																<xs:enumeration value="203">
																	<xs:annotation>
																		<xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="303">
																	<xs:annotation>
																		<xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="DetailsOfTransport" maxOccurs="2">
								<xs:annotation>
									<xs:documentation>TDT - An element to indicate information related to a certain stage ot the transport, such as mode, means and carrier. This element can be used to refer the previous and/or next leg of transport. Example: Previous transport by sea.

TDT+10++1'
</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="TransportStageQualifier">
											<xs:annotation>
												<xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="10">
														<xs:annotation>
															<xs:documentation>Pre-carriage transport</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="30">
														<xs:annotation>
															<xs:documentation>On-carriage transport</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="ModeOfTransport">
											<xs:annotation>
												<xs:documentation>Coded method of transport used for the carriage of the goods. UN/ECE Recommendation 19 (2nd edition) - Codes for Modes of Transport (Doc. Ref. TRADE/CEFACT/2001/19).</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="0">
														<xs:annotation>
															<xs:documentation>Transport mode not specified. This mode can only be used when the information provided is provisional at a very early stage of the transport service. If used, it must be corrected later on.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="1">
														<xs:annotation>
															<xs:documentation>Maritime. If this mode is provided at this point of the message structure, it denotes a transshipment situation.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="2">
														<xs:annotation>
															<xs:documentation>Rail</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="3">
														<xs:annotation>
															<xs:documentation>Road</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="4">
														<xs:annotation>
															<xs:documentation>Air transport</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="5">
														<xs:annotation>
															<xs:documentation>Mail</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="7">
														<xs:annotation>
															<xs:documentation>Fixed transport isntallation</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="8">
														<xs:annotation>
															<xs:documentation>Inland water transport</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ZZ1">
														<xs:annotation>
															<xs:documentation>Only provided for backward compatibility. It will be treated like "1"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ZZ2">
														<xs:annotation>
															<xs:documentation>Only provided for backward compatibility. It will be treated like "3"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ZZ3">
														<xs:annotation>
															<xs:documentation>Only provided for backward compatibility. It will be treated like "1"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ZZ5">
														<xs:annotation>
															<xs:documentation>Only provided for backward compatibility. It will be treated like "2"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="ZZ6">
														<xs:annotation>
															<xs:documentation>Only provided for backward compatibility. It will be treated like "0"?</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="NameAndAddress" maxOccurs="9">
								<xs:annotation>
									<xs:documentation>NAD - An element to identify the party's name, address and function

 
This group is to refer the several entities related with this transport contract.
The entities included are the ones generally included in the aligned documents
according to UN/ECE Recommendation 1. But it was identified the need to specify
some of these entities in segment group 42. So, in order to maintain the
compatibility between the business documents and this need, these entities can
be referred at CNI level and/or at GID level. The following rules apply:
- If they are omitted at CNI level, then the ones referred at GID level will be
considered provided that all occurrences of GID group will have these entities,
otherwise an error will occur.
- If they are present at CNI level and omitted at GID level, then the ones at CNI
level will be applied to GID level during the integration process.
- If they are present at CNI level and present in some (not all) occurrences of GID
group, then the ones at CNI level will be applied to the occurrences of the GID
group that had no entities associated.
- If they are present at CNI level and in all occurrences of GID group, then the
information will be processed as is.
At least this group must be used to identify the agent that is presenting the cargo
to Customs (DE3035='AG') and the Carrier (DE3035='CA').
This group is also used to state the Customs Office that endorses the exit from
the Customs territory. Use code 'CM' in DE3035 for this purpose.
Another usage is to identify that an another entity will provide detailed information
about the document of transport. This scenario occurs when the document of
transport needs to be unfolded (desdobrado). This entity is designated as
Nominated Freight Company for this purpose and use code 'FB' in DE3035.

A segment to identify the party's name, address, and function.

For all entities the composite C058 and elements 3251 and 3207 must be used.
Additionally for nationals send the tax payer number in C082:3039.
Additionally whenever NAD:3035 in {'CA','FB'} then do not use DE:3055 and the
identification placed in DE:3039 must be preeceded by the ISO country code (2
digit) corresponding to the nationality of the carrier or the nominated freight
company. In DE:1131 use the appropriate code that correctly identifies the type of
number given to the Portuguese Customs at the moment of the protocol signature.
When identifying a Customs Office use code '113' in DE:1131 and code '155' in
DE:3055.
When identifying a Portuguese entity use code '167' in DE:1131 and code '155' in
DE:3055.
The usage of qualifiers 'AG' and 'CA' is required.
Example: Agent of Cargo, tax payer id 510042365789.
NAD+AG+510042365789:167:155'</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="PartyQualifier">
											<xs:annotation>
												<xs:documentation>Code giving a specific meaning to a party</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="AG">
														<xs:annotation>
															<xs:documentation>Agent/representative. Consider this entity as the Cargo Agent.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CA">
														<xs:annotation>
															<xs:documentation>Carrier</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CM">
														<xs:annotation>
															<xs:documentation>Customs. This qualifier is used to identify the Customs Office that endorses the exit of the goods from Customs territory.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CN">
														<xs:annotation>
															<xs:documentation>Consignee. All details about the consignee are classified as sensitive information.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="CZ">
														<xs:annotation>
															<xs:documentation>Consignor. All details about the consignor are classified as sensitive information.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="N1">
														<xs:annotation>
															<xs:documentation>Notify party no.1</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="NI">
														<xs:annotation>
															<xs:documentation>Notify party</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="OS">
														<xs:annotation>
															<xs:documentation>Original shipper. All details about the original shipper are classified as sensitive information.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="FB">
														<xs:annotation>
															<xs:documentation>Nominated freight company

Party nominated to act as transport company or carrier for the
goods.

The entity associated with this qualifier will unfold (desdobrar)
this document of transport in an independent message,
providing futher detailed information regarding the cargo,
entities and locations.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="PartyIdentificationDetails" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Identification of a transaction party by code.

This composite element is required when the entity is Portuguese or is a Carrier or
is Nominated Freight Company.</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="PartyId">
														<xs:annotation>
															<xs:documentation>Code identifying a party involved in a transaction.

If NAD:3035 in {'CA', 'FB'} then place the number given to the Portuguese Customs
at the moment of the protocol signature preeceded by the ISO country code (2 digit)
corresponding to the nationality of the carrier or the nominated freight company.
Send the tax payer number for Portuguese entities.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..35"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="CodeListQualifier">
														<xs:annotation>
															<xs:documentation>Identification of a code list</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="113">
																	<xs:annotation>
																		<xs:documentation>Customs office
Customs administrative unit competent for the performance of
Customs formalities, and the premises or other areas approved
for the purpose by the competent authorities (CCC).
Use when the code in DE:3039 identifies a Customs Office,
independent of its nationallity.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="167">
																	<xs:annotation>
																		<xs:documentation>Tax party identification
Code assigned by a tax authority to identify a party.
To use when the entity is Portuguese. Portuguese Customs
code NIF.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="52">
																	<xs:annotation>
																		<xs:documentation>Value added tax identification
Value added tax identification code.
Use when the entity identified in DE:3039 is not Portuguese.
Portuguese Customs code VIES.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="53">
																	<xs:annotation>
																		<xs:documentation>Passport number
Number assigned to a passport.
Portuguese Customs code P.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="174">
																	<xs:annotation>
																		<xs:documentation>Citizen identification
Portuguese Customs code BI.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="Z02">
																	<xs:annotation>
																		<xs:documentation>Other

Use this code to state that the id type in DE:3039 is not
included in the other types listed in this element and the
entity is not Portuguese.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="Z03">
																	<xs:annotation>
																		<xs:documentation>Company Identification Number
Use when the entity identified in DE:3039 is not Portuguese.
Portuguese Customs code NIPC.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="CodeListResponsibleAgency" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Code identifying the agency responsible for a code list.
If the entity is a Carrier (DE:3055 = 'CA') or a Nominated freight company (DE:3055
= 'FB'), then this element shall not be sent.

155 PT, Portuguese Customs</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="155">
																	<xs:annotation>
																		<xs:documentation>PT, Portuguese customs</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="FreeNameAndAddress" type="string1..350">
											<xs:annotation>
												<xs:documentation>Free form name and address description.
Name of the entity.
Exception. If DE:3035='CM' then provide the name of the Customs Office that
endorses the exit of the goods from the EU territory.</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="CityName">
											<xs:annotation>
												<xs:documentation>Name of a city (a town, a village) for adressing purposes</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..35">
													<xs:maxLength value="35"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CountrySubentityIdentification" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies. ISO 3166-2 with 1-3 characters country subdivision codes.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..9">
													<xs:maxLength value="9"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="PostcodeIdentification" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Code defining postal zones or addresses. This data element is advised when the country has postal coding system.

It is required for Portugal.
</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..9">
													<xs:maxLength value="9"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="Country">
											<xs:annotation>
												<xs:documentation>Contry's name as specified in ISO 3166. ISO 3166 2-letter country codes.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3"/>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="GoodsItemDetails" minOccurs="0" maxOccurs="999">
								<xs:annotation>
									<xs:documentation>GID - A group of elements to describe the goods items for chich transport is undertaken. Agoods item can ben identified by up to three levels of packaging.

This is a conditional group and can be repeated 999 times. Each instance describes a cargo departure, goods, passengers, etc.

For the Port of LeixÕes and the Port of Sines, and if the transport document refers
only to empty transport equipment then this group and all its included segments is not needed.                          
For the Port of Lisbon this group is needed in all situations. In the case of empty transport equipment, there must be one occurrence for each type of containers according with the codes presented in segment GDS.

Example: 20 Boxes of carton, being the third goods in the consignment.

GID+3+20:CT:67:6'


</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="GoodsItemNumber">
											<xs:annotation>
												<xs:documentation>Serial number differentiating each separate goods item entry of a consignment, as contained in one document/declaration. Must be unique in each consignment.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="decimal5"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="NumberOfPackages">
											<xs:annotation>
												<xs:documentation>Number of undivisible parts of a shipment (without undoing the packing). Note that for break-bulk it must be declared 1 volume.

Only for the Port of Lisbon, in the presence of empty containers this element must have the quantity of empty containers.
</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="decimal8">
													<xs:totalDigits value="8"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="TypeOfPackagesIdentification">
											<xs:annotation>
												<xs:documentation>Coded description of the form in which the goods are presented. UN/ECE Recommendation 21 - Codes for Types of Cargo, Packages and Packaging Materials Revision 4 to Annex V and Annex VI (Doc. Ref. TRADE/CEFACT/2002/).

Only for the Port of Lisbon, in the presence of empty containers this element must have code NE.
</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..17"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CodeListQualifier">
											<xs:annotation>
												<xs:documentation>Identification of a code list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="67">
														<xs:annotation>
															<xs:documentation>Type of package.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CodeListResponsibleAgency">
											<xs:annotation>
												<xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="6">
														<xs:annotation>
															<xs:documentation>UN/ECE</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="TypeOfPackages" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Description of the form in which goods are presented. Annex II - Eurostat Directive. Do not use codes Directive 10,20,30,50,60 and  90 as they are Classification Groups. Only provided for backward compatibility. Information will be treated like the segment GDS in this group</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..35"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="LocationIdentification" maxOccurs="3">
											<xs:annotation>
												<xs:documentation>LOC - An element to specify a country associated with a goods item, such as a country of origin or destination. This segment has three required usages.                
One is to state the first port of loading of goods into a vessel. For this case, use 3227='76'.        
Another is to state the last port of discharge of goods from a vessel. For this case, use 3227='170'.                                    
The other is to state the intended terminal/berth/location where the goods are expected to be loaded/discharged to/from the vessel, except if it is a transit manifest (SG2:GOR:DE8323='3').                                                      In this last situation this usage does not apply.
This information is previsional. It will be confirmed and updated by the Port Auhtorities to Customs and other participating entities, using the Means of
Transport Process (PMT) as a result of fine tune planning, maneuver's scheduling and occurred events, specially after the mooring of the vessel.               
Example: Cargo movement from/to the vessel at berth 007 in the Port of Lisbon
LOC+164+PTLIS:139:6+007'
                                             Example: Original port of loading Shangai
LOC+76+CNSHA:139:6'</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="PlaceLocationQualifier">
														<xs:annotation>
															<xs:documentation>Code identifying the function of a location</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="76">
																	<xs:annotation>
																		<xs:documentation>Original port of loading</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="164">
																	<xs:annotation>
																		<xs:documentation>Berth</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="170">
																	<xs:annotation>
																		<xs:documentation>Final port of discharge</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="PlaceLocationIdentification">
														<xs:annotation>
															<xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..25"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="CodeListQualifier">
														<xs:annotation>
															<xs:documentation>Identification of a code list.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="139">
																	<xs:annotation>
																		<xs:documentation>Port</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="CodeListResponsibleAgency">
														<xs:annotation>
															<xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="6">
																	<xs:annotation>
																		<xs:documentation>UN/ECE</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="RelatedPlaceLocationIdentification" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Specification of the first related place/location by code. Use if DE:3227 is '164'. List to be provided by the Port Authority receiver of the message.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..25"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="PlaceLocation" minOccurs="0">
														<xs:annotation>
															<xs:documentation>.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..25"/>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="MonetaryAmount" minOccurs="0">
											<xs:annotation>
												<xs:documentation>MOA - A segment to specify a monetary amount associated with a goods item, such as declared value, FOB value, etc. Example: Total amount € 5.587,00.

MOA+39:558700:EUR'
</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="MonetaryAmountTypeQualifier">
														<xs:annotation>
															<xs:documentation>Amount of goods or services stated as a monetary amount in a specified currency.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="39">
																	<xs:annotation>
																		<xs:documentation>Invoice total amount</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="MonetaryAmountQTY" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Number of monetary units</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..18"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="CurrencyCoded" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Identification of the name or symbol of the monetary unit involved in the transaction</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="EUR">
																	<xs:annotation>
																		<xs:documentation>EURO</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="AdditionalProductID">
											<xs:annotation>
												<xs:documentation>PIA - A group to specify article numbers.

This segment is required except for transit manifest. In this case use the 8 digit format with 4 significant digits (means that at least the first 4 must be given and the others will be zero).

The usage of 14 digits in the HS code is advised since in the future some customs procedures may be simplified if this information is provided.

If the consignment is related with empty containers, two situations may apply.

1. The containers are being considered just equipment being moved for positioning purposes, then element 7140 must have the value "8609000000" and the type of document in group 26:RFF:1153='AEW'. This applies to the Port of Lisbon and Port of Sines only.

2. The containers were object of a commercial transaction (example, they were sold by a container maker). In this case they are considered to be goods items. Then element 7140 must have values "8609000000" and in GDS:7085 must have a value in ('31,'32','33','34').

If the manifest type is transit (SG2:GOR:DE8323='3') then this segment is optional for all port authorities.

Note that these data are not binding for Customs' purposes.

Example: HS 63.02, Towels

PIA+5+63020000:HS'

</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="ProductId">
														<xs:annotation>
															<xs:documentation>Indication of the function of the product code</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="5">
																	<xs:annotation>
																		<xs:documentation>Product Identification</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="ItemNumber">
														<xs:annotation>
															<xs:documentation>A number allocated to a group or item. Harmonized system code: 4 digits minimum, 14 for non-EU goods.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..35"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="ItemNumberType">
														<xs:annotation>
															<xs:documentation>Identification of the type of item number</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="HS">
																	<xs:annotation>
																		<xs:documentation>Harmonised system</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="FreeText" minOccurs="0" maxOccurs="5">
											<xs:annotation>
												<xs:documentation>FTX - An element to give information and/or processable instructions in adition to those in other elements.

Goods description must be sent (FTX:4451='AAA'). In this case, the goods description must be in portuguese and/or in english. So two occurrences of FTX with DE:4451 equal to 'AAA' may appear.

If the goods benefit from aid under the procedure of supplying the national islands, this fact can be stated in this segment (with FTX:4451='AAI'). In this case element 4440 in C108 shall have the expression "POSEIMA". This usage applies if it is a disembark manifest (SG2:GOR:8323=2) to deliver to a port at the Azores or Madeira archipelagos.

Everytime the goods in this segment group are declared in an export customs declaration, it must be stated if they are the total, just a part or the rest of what is referenced on that declaration. This fact is stated in this segment with 4451='CUS, and element C108:4440 shall be used for this purpose with code 'T' for total, 'P' for part and 'R' for rest. This information applies when this message is an export document (SG2:GOR:8323='1') and goods are being exported (according with customs definition) or goods in transhipment with an export MRN (Movement Reference Number).

It is necessary to segregate the situation when goods of the type vehicles carry other goods inside. Both the vehicle and other goods are considered as one item, so GID occurs only once. Vehicle must be declared according to their specific rules (see Notes of segment group 46), but additionally segment must be sent with code 'TRA' in DE:4451. The elements 4440 can be used to provide complementary information like which vehicle is carrying which goods or which quantities.

All these rules do not apply in the case of empty transport equipment.                
Additionally, if in the presence of an empty transport equipment and it is to be consider as goods, then this segment must be sent with 4451='OSI' and first
element of C108:4440 shall have the value 'G' with the meaning "Empty Equipment
as goods".                           
Example: Goods description: PVC bags for packaging purpose, in english.
FTX+AAA+++PVC BAGS FOR PACKAGING PURPOSE+EN'
Example: Goods to supply the islands.FTX+AAI+++POSEIMA'</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="TextSubjectQualifier">
														<xs:annotation>
															<xs:documentation>Code specifying the subject of the free text</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:maxLength value="3"/>
																<xs:enumeration value="AAA">
																	<xs:annotation>
																		<xs:documentation>Goods description. This code must be used at least once for Customs purposes.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AAI">
																	<xs:annotation>
																		<xs:documentation>General information. Use to inform if the goods benefit from special aid under the procedure of supply of the national islands.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="CUS">
																	<xs:annotation>
																		<xs:documentation>Customs declaration information. This qualifier is to state if the goods item corresponds to the total, to a part or to the rest of the cargo declared in a certain customs document.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="TRA">
																	<xs:annotation>
																		<xs:documentation>Transportation information
General information regarding the transport of the cargo. Use this code when the declared vehicle are carrying other goods inside. The simple usage of the code is enough to state this scenario but it is advised to send complementary information in DE:4440.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="OSI">
																	<xs:annotation>
																		<xs:documentation>Other service information. General information created by the sender of general or specific value. This qualifier is to state if an empty equipment of transport is to be treated as goods item.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element ref="FreeTextNode"/>
													<xs:element name="LanguageCoded" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Code of language (ISO 639-1988). According to ISO 639:1988 two-letter code.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="EN">
																	<xs:annotation>
																		<xs:documentation>English</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="PT">
																	<xs:annotation>
																		<xs:documentation>Portuguese</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="NameAndAddress" maxOccurs="9">
											<xs:annotation>
												<xs:documentation>NAD - A group of segments to identify different places of collection and/or delivery for the goods item.

This group is to refer the several entities related with this transport contract and to
entities related with a particular specific good.
At least the following entities must be specified:
- Consignor/Shipper (CZ). All details about the consignor are classified as sensitive
information.
- Consignee (CN). All details about the consignor are classified as sensitive
information.
- Terminal Operator (TR).
- Warehouse Depositor (WD).
Additionlly to the above ones, in case of an export manifest (SG2:GOR:8323='1')
the following entity must be specified:
- Original Shipper (OS). All details about original shipper are classified as sensitive
information.
Refer to the notes of segment group 34 for additional issues about this group.

A segment to specify an address of a place of collection or delivery for a goods
item.

For all entities the composite C058 and elements 3251 and 3207 must be used.
Additionally for nationals send the tax payer number in C082:3039.
Additionally whenever NAD:3035='CA' then do use C082:1131 and the
identification placed in C082:3039 must be preeceded by the ISO country code (2
digit) corresponding to the nationality of the carrier.
When identifying a Portuguese entity use code '167' in DE:1131 and code '155' in
DE:3055.
Information for terminal operator on the sea-side (NAD:3035 is 'TR') is required
except when the manifest type is transit (SG2:GOR:DE8323='3').
Information about the warehouse depositor (NAD:3035 is 'WD') is required after
Customs vessel call Id is activated, except when the manifest type is transit
(SG2:GOR:DE8323='3').

The entities qualified by codes 'TR', 'WD' and 'WH' must be Portuguese.
Example: Warehouse depositor tax payer number 501566198.
NAD+WD+501566198:167:155'
</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="PartyQualifier">
														<xs:annotation>
															<xs:documentation>Code giving a specific meaning to a party</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="CA">
																	<xs:annotation>
																		<xs:documentation>Carrier</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="CN">
																	<xs:annotation>
																		<xs:documentation>Consignee. All details about consignor are classified as sensitive information.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="CZ">
																	<xs:annotation>
																		<xs:documentation>Consignor. All details about consignor are classified as sensitive information.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="EX">
																	<xs:annotation>
																		<xs:documentation>Exporter. All details about exporter are classified as sensitive information.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="IM">
																	<xs:annotation>
																		<xs:documentation>Importer. All details about importer are classified as sensitive information.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="MS">
																	<xs:annotation>
																		<xs:documentation>Document/message issuer/sender. In this segment group, this code qualifier must be interpreted as Document Issuer. This document is referred in the segment group 49 (DOC) included in segment group 48 (GOR).</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="N1">
																	<xs:annotation>
																		<xs:documentation>Notify party no.1</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="NI">
																	<xs:annotation>
																		<xs:documentation>Notify party</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="OS">
																	<xs:annotation>
																		<xs:documentation>Original shipper. All details about original shipper are classified as sensitive information. It must be used when on export manifests.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="TR">
																	<xs:annotation>
																		<xs:documentation>Terminal operator</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="WD">
																	<xs:annotation>
																		<xs:documentation>Warehouse depositor. For the purposes of this context, this entity is responsible before Customs of the goods placed under its supervision.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="WH">
																	<xs:annotation>
																		<xs:documentation>Warehouse keeper. This entity is responsible for the reception, keeping and delivery of the goods by landside in a terminal.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="ZOP">
																	<xs:annotation>
																		<xs:documentation>Only provided for backward compatibility. It will be treated like the location provided in the LOC segment in SG41</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="PartyIdentificationDetails" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Identification of a transaction party involved. Required when the entity is Portuguese</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="PartyId">
																	<xs:annotation>
																		<xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..35"/>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="CodeListQualifier">
																	<xs:annotation>
																		<xs:documentation>Identification of a code list</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="167">
																				<xs:annotation>
																					<xs:documentation>Tax party identification</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z01">
																				<xs:annotation>
																					<xs:documentation>Authorized entity identification. Use this qualifier when the identification in 3039 is related with an Authorized entity (Importer/Exporter).</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="CodeListResponsibleAgency" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="155">
																				<xs:annotation>
																					<xs:documentation>PT, Portuguese customs</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="FreeNameAndAddress" type="string1..175">
														<xs:annotation>
															<xs:documentation>Unstructured name and address. Required when the party is not Portuguese</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="CityName" type="string1..35">
														<xs:annotation>
															<xs:documentation>Name of a city (a town, a village) for adressing purposes</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="CountrySubentityIdentification" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies. 1-3 character subdivision code ISO 3166-2.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..9">
																<xs:maxLength value="9"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="PostcodeIdentification" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..9">
																<xs:maxLength value="9"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="Country">
														<xs:annotation>
															<xs:documentation>Contry's name as specified in ISO 3166. 2-letter country code ISO 3166-1.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:maxLength value="3"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="NatureOfCargo">
											<xs:annotation>
												<xs:documentation>GDS - An element to describe the nature of the cargo.

The general description must be given by:

 - Annex II - Eurostat Maritime Transport Directive with one digit. This situation is required.

 - Annex II - Eurostat Maritime Transport Directive with two digits. This situation is required for the Port of Lisbon and the Port of Sines.

Example: Solid bulk

GDS+2::2'

</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="NatureOfCargo">
														<xs:annotation>
															<xs:documentation>Code indicating the type of cargo as a rough classification. Annex II - Eurostat Maritime Transport Directive</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="CodeListResponsibleAgency" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="2">
																	<xs:annotation>
																		<xs:documentation>CEC</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="Measurements" maxOccurs="2">
											<xs:annotation>
												<xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item. 

Two occurrences of the element can be used, one to display the gross weight and another to display volume. Weight must be displayed in every occasion, while the volume is an optional information.


Example: Gross weight 3928 Kg.

MEA+AAI+AAD+KGM:392800'


</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="MeasurementPurposeQualifier">
														<xs:annotation>
															<xs:documentation>Specifies the purpose of the measurement</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="AAE">
																	<xs:annotation>
																		<xs:documentation>Measurement</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AAI">
																	<xs:annotation>
																		<xs:documentation>Item weight. Only provided for backward compatibility. It will be used like "AAE"?</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="PropertyMeasured">
														<xs:annotation>
															<xs:documentation>Specification of the property measured</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="AAD">
																	<xs:annotation>
																		<xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="ABJ">
																	<xs:annotation>
																		<xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="MeasureUnitQualifier">
														<xs:annotation>
															<xs:documentation>Indication of the unit in which the measured quantity is expressed. UN/ECE Recommendation 20 - Annex II</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="KGM">
																	<xs:annotation>
																		<xs:documentation>Kilogram</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="MTQ">
																	<xs:annotation>
																		<xs:documentation>Cubic meter</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="MeasurementValue">
														<xs:annotation>
															<xs:documentation>Value of the measured quantity</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..18"/>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="Reference" minOccurs="0" maxOccurs="9">
											<xs:annotation>
												<xs:documentation>RFF - An element to identify a reference to a goods item.

This group is to provide a way to send other references related with the goods.

When these references are transport documents then they must refer to the previous transport stage.

Documents referenced in this group are not to be used for customs purposes. Documents for customs purposes are to be referenced in the DOC segment in group 49.              
If the message function is different of 2, 9, 46 or 47 then the Customs Summary
Declaration Number must be provided by using qualifier ABT in element RFF:1153.     
Example: House Bill of Lading 554142.

RFF+BH:554142'

</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="ReferenceQualifier">
														<xs:annotation>
															<xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="AAB">
																	<xs:annotation>
																		<xs:documentation>Proforma invoice number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AAM">
																	<xs:annotation>
																		<xs:documentation>Waybill number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AAP">
																	<xs:annotation>
																		<xs:documentation>Part consignment number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="ABT">
																	<xs:annotation>
																		<xs:documentation>Customs declaration number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AEE">
																	<xs:annotation>
																		<xs:documentation>Eur 1 certificate number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AEW">
																	<xs:annotation>
																		<xs:documentation>Empty container bill number. Document of Transport. Only allowed for the movement of empty containers.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AEX">
																	<xs:annotation>
																		<xs:documentation>Non-negotiable maritime transport document number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AEZ">
																	<xs:annotation>
																		<xs:documentation>Despatch note (post parcels) number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AFA">
																	<xs:annotation>
																		<xs:documentation>Through bill of lading number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AFB">
																	<xs:annotation>
																		<xs:documentation>Cargo manifest number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AFM">
																	<xs:annotation>
																		<xs:documentation>Secondary Customs reference. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AHI">
																	<xs:annotation>
																		<xs:documentation>Transport contract reference number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AHT">
																	<xs:annotation>
																		<xs:documentation>Quarantine/treatment status reference number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AID">
																	<xs:annotation>
																		<xs:documentation>Certificate of conformity. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AIZ">
																	<xs:annotation>
																		<xs:documentation>Consolidated invoice number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AKA">
																	<xs:annotation>
																		<xs:documentation>Container disposition order reference number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="AKR">
																	<xs:annotation>
																		<xs:documentation>General cargo consignment reference number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="ALK">
																	<xs:annotation>
																		<xs:documentation>Consignee's invoice number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="BH">
																	<xs:annotation>
																		<xs:documentation>House bill of lading number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="BM">
																	<xs:annotation>
																		<xs:documentation>Bill of lading number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="BN">
																	<xs:annotation>
																		<xs:documentation>Booking reference number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="CFO">
																	<xs:annotation>
																		<xs:documentation>Consignor's further order. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="CG">
																	<xs:annotation>
																		<xs:documentation>Consignee's order number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="CMR">
																	<xs:annotation>
																		<xs:documentation>Road consignment note number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="CU">
																	<xs:annotation>
																		<xs:documentation>Consignor's reference number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="ED">
																	<xs:annotation>
																		<xs:documentation>Export declaration. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="EX">
																	<xs:annotation>
																		<xs:documentation>Export licence number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="FF">
																	<xs:annotation>
																		<xs:documentation>Freight forwarders reference number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="HWB">
																	<xs:annotation>
																		<xs:documentation>House waybill number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="IP">
																	<xs:annotation>
																		<xs:documentation>Import licence number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="IV">
																	<xs:annotation>
																		<xs:documentation>Invoice number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="MA">
																	<xs:annotation>
																		<xs:documentation>Ship notice/manifest number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="MB">
																	<xs:annotation>
																		<xs:documentation>Master bill of lading number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="MWB">
																	<xs:annotation>
																		<xs:documentation>Master air waybill number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="PK">
																	<xs:annotation>
																		<xs:documentation>Packing list number. Document of Transport.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="RCN">
																	<xs:annotation>
																		<xs:documentation>Railway consignment. Document of Transport. </xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="SRN">
																	<xs:annotation>
																		<xs:documentation>Shipment reference number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
																<xs:enumeration value="UCN">
																	<xs:annotation>
																		<xs:documentation>Unique consignment reference number. Reference.</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="ReferenceNumber" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Identification number.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..35"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="DateTimePeriod" minOccurs="0" maxOccurs="9">
														<xs:annotation>
															<xs:documentation>The complete meaning of this date depends of the type of reference in the previous RFF segment, stated in RFF:C506:1153 data element.

Example: Date of the reference: "2003/10/08 - 10:15"

DTM+171:200310081015:203´

Example: Date of the reference: "2003/10/08 - 15:25 UTC+3". Attention that in this case the defined escape character must be used in the date/time format, if the time zone is positive in relation to GMT. If the escape character is '?' then

DTM+171:200310081525?+03:303´</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="DateTimePeriodQualifier">
																	<xs:annotation>
																		<xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="171">
																				<xs:annotation>
																					<xs:documentation>Reference Date/Time</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="DateTimePeriod">
																	<xs:annotation>
																		<xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..35"/>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="DateTimePeriodFormatQualifier">
																	<xs:annotation>
																		<xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="203">
																				<xs:annotation>
																					<xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="303">
																				<xs:annotation>
																					<xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="PackageIdentification" minOccurs="0" maxOccurs="999">
											<xs:annotation>
												<xs:documentation>PCI - An element to specify marks and numbers of a goods item.

If it is a transport equipment and it is not empty the element 8275 is required.

When marks are unknown fill in element ShippingMarks with "No Marks".

When referring to vehicles on the ShippingMarks element, the first 35 chars are used to declare the maker and the model, and the seconds 35 are to declare the chassis number. This is required by Customs.

These values are not needed in the case of empty transport equipment, since an empty transport equipment does not carry packages.


Example: Free text marks, marks: RAW, numbers: 12345.

PCI+28+RAW:12345'

</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="MarkingInstructions" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Code indicating instructions on how specified packages or physical units should be marked. UN/EDIFACT code list for Data Element 4233.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="ShippingMarks" type="string1..350" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Shipping marks on packages in free text</xs:documentation>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="GovernmentalRequirements" minOccurs="0" maxOccurs="9">
											<xs:annotation>
												<xs:documentation>GOR - An element to indicate applicable governmental procedures related to import, export and transport of the item.

This element has several uses, all related with customs procedures. It is to indicate applicable governmental procedures related to import (according with Customs definition), export (according with Customs definition) and transit (according with Customs definition).

One usage is to give the EU status. This is, if goods are in free practice or not, and if it has Customs formalities to fulfil.

It is also used to state if simplified procedures are used or not, and if they are, then inform the type of simplification applied.

On some of these situations the group DOC must be used. For document details see DOC segment, group 49.

In the context of the group usage, the purpose of the segment is to indicate applicable governmental procedures related to import (according with Customs definition), export (according with Customs definition) and transit (according with Customs definition).

These codes are applied in the transit simplified procedures in 8323. They are 'ZT1', 'ZW', 'ZTF', 'ZTD', 'ZC' and 'ZX', and they are to be used according to the Customs procedure in practice..

These code are applied without regular line services in 8323. They are 'ZC', 'ZN' and 'ZF', and they are to be used to give information about the status of goods.

Example: Community Goods.

GOR+ZC+5'


</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="TransportMovement">
														<xs:annotation>
															<xs:documentation>Code indicating the movement of goods (import, export, transit).

Usage of this element:

1. Authorised Regular Line services (Regulation nº 2454/93)

  1.1. With simplified transit procedures (ZS1 and ZS2)
     'ZT1' Non-Community Goods and, under certain conditions, for Community Goods
     'ZTF' and 'ZW' Community Goods. An interchange is used between 2 EC Customs territories where VAT is applied in one of them but not in the other
     'ZTD' Goods supported by a transit document ZT1, ZT2 or ZTF, a TIR or ATA booklet, other suspensive regimes and other documents accepted by Customs Authority.
     'ZC' Community Goods in the remaining interchange
     'ZX' Community Goods to be exported not subject to a transit regime.

  1.2. Simplified transit procedures not applied (ZS0)

2. Without regular line services

  2.1. Use the following codes when the manifest is cleared by the Customs, or the manifest has the identification of the Authorized Expeditor
    'ZF' Shipping of Community goods with destination/origin in a EC Customs territory  where Directive 77/388/CEE is not applied
    'ZC' Use the following code when the manifest is cleared by the Customs, or the manifest has the identification of the Authorized Expeditor and others for which the community status can be proofed
    'ZN' Remaining Goods
	
</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="GovernmentAgency">
														<xs:annotation>
															<xs:documentation>Code to indicate the government agency involved</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="5">
																	<xs:annotation>
																		<xs:documentation>Customs</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="FreeText" minOccurs="0" maxOccurs="9">
														<xs:annotation>
															<xs:documentation>FTX - An element to specify  supplementary processable information.

This segment is to specify the information regarding the entity that issued the Certificate of Authorized Expeditor.

Example: Certificate issued by ZXCV.

FTX+CUS+++ZXCV'

</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="TextSubjectQualifier">
																	<xs:annotation>
																		<xs:documentation>Code specifying the subject of the free text</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="CUS">
																				<xs:annotation>
																					<xs:documentation>Customs declaration information</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="CodeListResponsibleAgency" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="155">
																				<xs:annotation>
																					<xs:documentation>PT, Portuguese Customs</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="FreeTextIdentification" type="string0..17" minOccurs="0"/>
																<xs:element ref="FreeTextNode" minOccurs="0"/>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="DocumentDetails" minOccurs="0" maxOccurs="9">
														<xs:annotation>
															<xs:documentation>DOC - An element to indicate a document required by the government.

This element is to identify any document needed for customs purposes, independent of its type (customs declarations, commercial documents, or other).

When it is needed to provide the document's date of issue or year of issue, then use segment DTM.

State the document type and number according to Customs Regulations and with what was stated in the GOR segments.

The documents referenced in this segment are for customs purposes.

Example: Community Goods (SG48:GOR:8323='ZC'), Despatch T2L No.: "ES08114123456"

DOC+825+ES08114123456'

Example: Certificate of Authorized Expeditor JTG568

DOC+Z02+JTG568'


</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="DocumentMessageName">
																	<xs:annotation>
																		<xs:documentation>Document/message identifier expressed in code</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="271">
																				<xs:annotation>
																					<xs:documentation>Packing list</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="380">
																				<xs:annotation>
																					<xs:documentation>Commercial invoice</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="650">
																				<xs:annotation>
																					<xs:documentation>Handling order</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="701">
																				<xs:annotation>
																					<xs:documentation>Universal (multipurpose) transport document</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="703">
																				<xs:annotation>
																					<xs:documentation>House of waybill</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="704">
																				<xs:annotation>
																					<xs:documentation>Master bill of lading</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="705">
																				<xs:annotation>
																					<xs:documentation>Bill of lading</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="710">
																				<xs:annotation>
																					<xs:documentation>Sea waybill</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="712">
																				<xs:annotation>
																					<xs:documentation>Non-negotiable maritime transport document (generic)</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="714">
																				<xs:annotation>
																					<xs:documentation>House bill of lading</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="716">
																				<xs:annotation>
																					<xs:documentation>Forwarder's bill of lading</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="720">
																				<xs:annotation>
																					<xs:documentation>Rail consignment note (generic term)</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="730">
																				<xs:annotation>
																					<xs:documentation>Road consignment note</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="740">
																				<xs:annotation>
																					<xs:documentation>Air waybill</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="741">
																				<xs:annotation>
																					<xs:documentation>Master air waybill</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="750">
																				<xs:annotation>
																					<xs:documentation>Dispatch note (post parcels)</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="760">
																				<xs:annotation>
																					<xs:documentation>Multimodal/combined transport document (generic)</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="761">
																				<xs:annotation>
																					<xs:documentation>Through bill of lading</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="764">
																				<xs:annotation>
																					<xs:documentation>Combined transport document (generic)</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="765">
																				<xs:annotation>
																					<xs:documentation>Multimodal transport document (generic)</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="766">
																				<xs:annotation>
																					<xs:documentation>Combined transport bill of lading/multimodal bill of lading</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="785">
																				<xs:annotation>
																					<xs:documentation>Cargo manifest.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="796">
																				<xs:annotation>
																					<xs:documentation>Derat document</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="820">
																				<xs:annotation>
																					<xs:documentation>Dispatch note model T</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="821">
																				<xs:annotation>
																					<xs:documentation>Dispatch note model T1</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="822">
																				<xs:annotation>
																					<xs:documentation>Dispatch note model T2</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="823">
																				<xs:annotation>
																					<xs:documentation>Control document T5</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="825">
																				<xs:annotation>
																					<xs:documentation>Dispatch note model T2L</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="830">
																				<xs:annotation>
																					<xs:documentation>Goods declaration for exportation</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="952">
																				<xs:annotation>
																					<xs:documentation>TIR carnet</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="955">
																				<xs:annotation>
																					<xs:documentation>ATA carnet</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="960">
																				<xs:annotation>
																					<xs:documentation>Single administrative document</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z01">
																				<xs:annotation>
																					<xs:documentation>T2LF
Despatch note model T2LF.
Customs code 620 for this document type.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z02">
																				<xs:annotation>
																					<xs:documentation>Certificate of Authorized Expeditor</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z03">
																				<xs:annotation>
																					<xs:documentation>Customs status certificate. Customs code 622 for this document type.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z04">
																				<xs:annotation>
																					<xs:documentation>DAA. Csutoms code 622 for this document type.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z05">
																				<xs:annotation>
																					<xs:documentation>Administrative document. Customs code 652 for this document type.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z06">
																				<xs:annotation>
																					<xs:documentation>Transit simplified procedure authorization number</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z99">
																				<xs:annotation>
																					<xs:documentation>For backward compatibility only. Element will be ignored</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z07">
																				<xs:annotation>
																					<xs:documentation>Stamped manifest</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="Z08">
																				<xs:annotation>
																					<xs:documentation>Despatch note T2F
Declaration of internal community transit.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="355">
																				<xs:annotation>
																					<xs:documentation>Customs summary declaration without commercial details, alternate.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="DocumentMessageNumber">
																	<xs:annotation>
																		<xs:documentation>Reference number assigned to the document/message by the issuer.</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..35"/>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="DateTimePeriod">
																	<xs:annotation>
																		<xs:documentation>DTM - Element to indicate the date/time of the document/message.

The complete meaning of this date depends of the type of document in the previous DOC segment, stated in DOC:C002:1001 data element.

Example: Date of issue of the document "2003/10/08"

DTM+182:20031008:102´

</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="DateTimePeriodQualifier">
																				<xs:annotation>
																					<xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="string1..3">
																						<xs:enumeration value="182">
																							<xs:annotation>
																								<xs:documentation>Date when a document/message has been or will be issued</xs:documentation>
																							</xs:annotation>
																						</xs:enumeration>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																			<xs:element name="DateTimePeriod">
																				<xs:annotation>
																					<xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation. According with UN/ECE Recommendation Nº7.</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="string1..35"/>
																				</xs:simpleType>
																			</xs:element>
																			<xs:element name="DateTimePeriodFormatQualifier">
																				<xs:annotation>
																					<xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="string1..3">
																						<xs:maxLength value="3"/>
																						<xs:enumeration value="102">
																							<xs:annotation>
																								<xs:documentation>CCYYMMDD

Calendar date:
C= Century
Y= Year
M= Month
D= Day</xs:documentation>
																							</xs:annotation>
																						</xs:enumeration>
																						<xs:enumeration value="602">
																							<xs:annotation>
																								<xs:documentation>CCYY

Calendar date:
C= Century
Y= Year

Only to use when the document was the one under which the agent acquired the authorized expeditor status (SG49:DOC:1001='Z02').
</xs:documentation>
																							</xs:annotation>
																						</xs:enumeration>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="SplitGoodsPlacement" minOccurs="0" maxOccurs="999">
											<xs:annotation>
												<xs:documentation>SGP - An element to indicate the equipment in which the goods are transported. This element is dependent on wether the goods are loaded or not into some transport equipment. For bulk containers this group is not necessary.

This group depends of the existence of goods loaded into a transport equipment.

This element group identifies the transport equipment in which the goods are loaded. Details on transport equipment are displayed in the segment group 60. Example: a shipper sends 45 ton of product XPTO distributed as follows: 20 ton in equipment A and 25 to in equipment B.

Note that each transport equipment referred by each occurrence of this group must be described by one occurrence of group 60. For the Port of Leixões and the Port of Sines they must be declared as full in group 60.

When displaying the number of volumes it is necessary to have in mind that the total number of volumes must equal the sum of the loaded volumes on each equipment.

Using this group is based on the knowledge of what goods are in which equipment. Therefore it depends on the knowledge of such information. Thus when using group 52, each equipment referenced will also be identified and described in segment group 60.

For bulk cargo, they are treated as a whole, so they will not be split. This group would not be needed.

In the case of empty transport equipment, this group is used just to relate a particular equipment with information required that appears only in group 41 (example: Warehouse Depositor, Nature of Cargo). This last issue does not apply to the Port of Leixões and the Port of Sines.

Example: Container CGTU 200311/5 carries 10 volumes of the goods.

SGP+CGTU2003115+10'


</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="EquipmentIdentificationNumber">
														<xs:annotation>
															<xs:documentation>Marks (letters or numbers) which identify equipment used for transport, such as a container</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..17"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="NumberOfPackages" type="decimal8" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Number of individual parts of a shipment either unpacked, or packed in such a way
that they cannot be divided without first undoing the packing</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="Measurements" minOccurs="0">
														<xs:annotation>
															<xs:documentation>MEA - A group of segments to identify measurements.     This group in this part of the structure is to provide measurement only of the goods
actually loaded in the equipment referenced in the SGP segment.
In the case of empty transport equipment this information does not apply. So the
group does not occur.
An exception to this rule was set by the Port of Lisbon. For the Port of Lisbon
only, in the case of empty transport equipment, information about the tare of the
equipment has to be provided.                                                                      A segment to specify measurements of that portion of the goods item in the
equipment.                         For physical measures (weight), the value in element 6066 shall be rounded to two
decimal positions. Decimal values equal or above 0,005, shall be rounded to 0,01.
Decimal values lower than 0,005 shall be rounded to 0,00. The decimal point shall
not be sent. The two rightmost digits will be considered as the decimal position.
Example, a weight of 1366,357 kilogram shall be reported as 136636 and will be
interpreted as 1366,36 by the receiver.
Example: Gross weight 258,63 Kg.
MEA+AAI+AAD+KGM:25863'</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="MeasurementPurposeQualifier">
																	<xs:annotation>
																		<xs:documentation>Specifies the purpose of the measurement</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="AAE">
																				<xs:annotation>
																					<xs:documentation>Measurement</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="AAI">
																				<xs:annotation>
																					<xs:documentation>Item weight. Provided for backward compatibility only.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="WT">
																				<xs:annotation>
																					<xs:documentation>Weights. For the Port of Lisbon only.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="PropertyMeasured">
																	<xs:annotation>
																		<xs:documentation>Specification of the property measured</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="AAD">
																				<xs:annotation>
																					<xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																			<xs:enumeration value="T">
																				<xs:annotation>
																					<xs:documentation>Tare weight, excluding goods and loose accessories. For the Port of Lisbon only.</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="MeasureUnitQualifier">
																	<xs:annotation>
																		<xs:documentation>Indication of the unit in which the measured quantity is expressed. UN/ECE Recommendation 20 - Annex II</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..3">
																			<xs:enumeration value="KGM">
																				<xs:annotation>
																					<xs:documentation>Kilogram</xs:documentation>
																				</xs:annotation>
																			</xs:enumeration>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="MeasurementValue">
																	<xs:annotation>
																		<xs:documentation>Value of the measured quantity. Include 2 decimal positions.</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="string1..18"/>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="NumberOfUnits" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>EQN - A segment to specify the number of equipment units to each of which the given measurement applies. Only provided for backward compatibility.</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="NumberOfUnits">
																				<xs:annotation>
																					<xs:documentation>Number of units</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="string1..15"/>
																				</xs:simpleType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="EquipmentDetails" minOccurs="0" maxOccurs="999">
								<xs:annotation>
									<xs:documentation>EQD - An element to specify equipment, equipment size and type used in transport.

The equipment is identified and its tare must be provided.

When the equipment is full then information about the seal must be provided.

Also, if the equipment is full then its identification must be present in one occurrence of group 52 (SGP) at least. Of course this reference in group 52 is under an occurrence of group 41 (GID) if all/part of the goods described by group 41 are in the equipment. This applies only to the Port of Leixões to the Port of Sines.

Both references in groups 52 and 60 must be present in the same group 19 (CNI). See notes in group 52.

In element 8155 the container ISO type according to ISO 6346 (2nd and 3rd editions) is sent. In this standard the first number of this codification provides the container length. If unknown then use the code defined for element 8155 by UN/EDIFACT.

This segment is to identify the transport equipment, its size/type and if it is full or empty.

If it is full, its presence in one occurrence of group 52 will be checked, given an error if absent.

If it is empty, its presence in one occurrence of group 52 will be checked, given an error if present.

If it is other than an ISO container then DE:8155 shall have the proper value from the standard code list associated with this element (displayed in the element).

If it is an ISO container then DE: 8155 shall have the ISO type according standard ISO 6346. If this code is unknown then place the proper value from standard code list associated with this element (displayed in the element).

Example: Container CGTU 200311/5, 20 ft, full (LCL)

EQD+CN+CGTU2003115+21+++7'

Example: Container GSTU 000029/0, 40 ft General purpose (ISO 40GP), empty

EQD+CN+GSTU0000290+40GP+++4'

Example: Trailer Z-53791, full

EQD+TE+Z53791+14+++5'

</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="EquipmentQualifier">
											<xs:annotation>
												<xs:documentation>Code identifying the type of equipment. UN/EDIFACT code list for Data Element 8053.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="EquipmentIdentificationNumber">
											<xs:annotation>
												<xs:documentation>Marks (letters or numbers) identifying the equipment used for transport</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..17"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="EquipmentSizeAndType">
											<xs:annotation>
												<xs:documentation>Code and/or name identifying size and type of the equipment used. In case of ISO container equipment (DE:8053=CN) and if its ISO type is known then send the Size/Type information according to ISO 6346 (2nd or 3rd edition).

Otherwise use UN/EDIFACT code list for Data Element 8155.
</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..10"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CodeListQualifier">
											<xs:annotation>
												<xs:documentation>Identification of a code list.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="102">
														<xs:annotation>
															<xs:documentation>Empty</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="CodeListResponsibleAgency">
											<xs:annotation>
												<xs:documentation>Code identifying the agency responsible for a code list.</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="5">
														<xs:annotation>
															<xs:documentation>ISO (International Organization for Standardization). Use this code when DE:8155 contains the ISO 6346 code.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="6">
														<xs:annotation>
															<xs:documentation>UN/ECE (United Nations - Economic Commission for Europe). Use this code when DE:8155 contains a code from the list associated with this Data Element.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="FullEmptyIndicator">
											<xs:annotation>
												<xs:documentation>To indicate the extent of the equipment being full or empty</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="string1..3">
													<xs:enumeration value="4">
														<xs:annotation>
															<xs:documentation>Empty. For the Port of Leixões and the Port of Sines, if the equipment is empty then its identification must be absent from any occurrence of group 52.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="5">
														<xs:annotation>
															<xs:documentation>Full. For the Port of Leixões and the Port of Sines, if the equipment is full then its identification must be present in one occurrence of group 52.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="7">
														<xs:annotation>
															<xs:documentation>Full, mixed consignment. For the Port of Leixões and the Port of Sines, if the equipment is full then its identification must be present in one occurrence of group 52.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
													<xs:enumeration value="8">
														<xs:annotation>
															<xs:documentation>Full, single consignment. For the Port of Leixões and the Port of Sines, if the equipment is full then its identification must be present in one occurrence of group 52.</xs:documentation>
														</xs:annotation>
													</xs:enumeration>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="Measurements">
											<xs:annotation>
												<xs:documentation>MEA - A segment to specify measurements, other than dimensions, associated with the
equipment, such as weight.                                             For physical measures (tare is a weight), the value in element 6066 shall be
rounded to two decimal positions. Decimal values equal or above 0,005, shall be
rounded to 0,01. Decimal values lower than 0,005 shall be rounded to 0,00. The
decimal point shall not be sent. The two rightmost digits will be considered as the
decimal position. Example, a tare of 2053,353 kilogram shall be reported as
205335 and will be interpreted as 2053,35 by the receiver.
Example: Container with tare 2139 Kg.
MEA+WT+T+KGM:213900'</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="MeasurementPurposeQualifier">
														<xs:annotation>
															<xs:documentation>Specification of the purpose of the measurement</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="WT">
																	<xs:annotation>
																		<xs:documentation>Weights</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="PropertyMeasured">
														<xs:annotation>
															<xs:documentation>Specification of the property being measured</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="T">
																	<xs:annotation>
																		<xs:documentation>Tare weight</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="MeasureUnitQualifier">
														<xs:annotation>
															<xs:documentation>Indication of the unit in which the quantity is expressed</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3">
																<xs:enumeration value="KGM">
																	<xs:annotation>
																		<xs:documentation>Kilogram. UN/ECE Recommendation 20 - Annex II</xs:documentation>
																	</xs:annotation>
																</xs:enumeration>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="MeasurementValue">
														<xs:annotation>
															<xs:documentation>Value of the measured unit</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..18"/>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="SealNumber" minOccurs="0" maxOccurs="6">
											<xs:annotation>
												<xs:documentation>SEL - An element to identify the the seal and the seal issuer associated with the equipment.                                                                  Segment must be used when the equipment is full.     
Example: Carrier seal 6629290

SEL+6629290+CA'
</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="SealNumber">
														<xs:annotation>
															<xs:documentation>The number of a custom or another type of seal affixed to the container or other transport unit</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..10"/>
														</xs:simpleType>
													</xs:element>
													<xs:element name="SealingPartyCoded" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Identification of the issuer of the seal number. UN/EDIFACT code list for Data Element 9303.</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="string1..3"/>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="MessageTrailler">
					<xs:annotation>
						<xs:documentation>UNT - A service element delimiting the end of the message and indicating the total number of segments and the control reference number of the message.

Example: 26 sent segments, reference 1357924680

UNT+26+1357924680'

</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="NumberOfSegments" type="decimal6">
								<xs:annotation>
									<xs:documentation>Control count of the segments in the message</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="MessageReferenceNumber" type="string1..14">
								<xs:annotation>
									<xs:documentation>Unique message reference number assigned by the sender</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="FreeTextNode" type="string1..350">
		<xs:annotation>
			<xs:documentation>Free text

Free text field available to the message sender for information.
If code in DE:4451 is 'ABG' then place the following text: DESDOBRAR/UNFOLD in
this element.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:simpleType name="string1..9">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="9"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..25">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="25"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..14">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="14"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..4">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..26">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="26"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..7">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="7"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..18">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="18"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..8">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="8"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..6">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="6"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..3">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..2">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..35">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal2">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..1">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal6">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="6"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..3">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..35">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..9">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="9"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..6">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="6"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..15">
		<xs:restriction base="xs:string">
			<xs:minLength value="15"/>
			<xs:maxLength value="15"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..17">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="17"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..512">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="512"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..350">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="350"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..175">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="175"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..17">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="17"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..8">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="8"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..25">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="25"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..70">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="70"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..10">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string0..18">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="18"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal18">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="18"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..70">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="70"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal15">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="15"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string1..10">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal3">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal4">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal12">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal5">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="5"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal8">
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="8"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="integer1..n">
		<xs:restriction base="xs:integer"/>
	</xs:simpleType>
</xs:schema>
