'' ------------------------------------------------------------------------------
''  <auto-generated>
''    Generated by Xsd2Code++. Version 6.0.0.0. www.xsd2code.com
''    {"TargetFramework":"Net47","NameSpace":"DETPDD","Language":"VisualBasic","Properties":{},"XmlAttribute":{"Enabled":true},"ClassParams":{},"Serialization":{"ShouldSerialize":{},"AdditionalSerializers":{},"XmlSerializerEvent":{},"XmlOutput":{},"JsonOutput":{},"Enabled":true},"Miscellaneous":{}}
''  </auto-generated>
'' ------------------------------------------------------------------------------
#Disable Warning
Imports System
Imports System.Diagnostics
Imports System.Xml.Serialization
Imports System.Runtime.Serialization
Imports System.Collections
Imports System.Xml.Schema
Imports System.ComponentModel
Imports System.Xml
Imports System.IO
Imports System.Text
Imports System.Collections.Generic

Namespace DETPDD

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True),
     XmlRoot()>
    Partial Public Class DETPDD

#Region "Private fields"
        Private _preparationDateAndTime As Date

        Private _messageIdentification As String

        Private _messageGroup As DETPDDMessageGroup

        Private _messageType As DETPDDMessageType

        Private _messageVersion As String

        Private _messageSender As DETPDDMessageSender

        Private _messageRecipient As DETPDDMessageRecipient

        Private _transitOperation As DETPDDTransitOperation

        Private _authorisation As List(Of DETPDDAuthorisation)

        Private _customsOfficeOfDeparture As DETPDDCustomsOfficeOfDeparture

        Private _customsOfficeOfDestinationDeclared As DETPDDCustomsOfficeOfDestinationDeclared

        Private _customsOfficeOfTransitDeclared As List(Of DETPDDCustomsOfficeOfTransitDeclared)

        Private _customsOfficeOfExitForTransitDeclared As List(Of DETPDDCustomsOfficeOfExitForTransitDeclared)

        Private _holderOfTheTransitProcedure As DETPDDHolderOfTheTransitProcedure

        Private _representative As DETPDDRepresentative

        Private _guarantee As List(Of DETPDDGuarantee)

        Private _consignment As DETPDDConsignment

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._consignment = New DETPDDConsignment()
            Me._guarantee = New List(Of DETPDDGuarantee)()
            Me._representative = New DETPDDRepresentative()
            Me._holderOfTheTransitProcedure = New DETPDDHolderOfTheTransitProcedure()
            Me._customsOfficeOfExitForTransitDeclared = New List(Of DETPDDCustomsOfficeOfExitForTransitDeclared)()
            Me._customsOfficeOfTransitDeclared = New List(Of DETPDDCustomsOfficeOfTransitDeclared)()
            Me._customsOfficeOfDestinationDeclared = New DETPDDCustomsOfficeOfDestinationDeclared()
            Me._customsOfficeOfDeparture = New DETPDDCustomsOfficeOfDeparture()
            Me._authorisation = New List(Of DETPDDAuthorisation)()
            Me._transitOperation = New DETPDDTransitOperation()
            Me._messageRecipient = New DETPDDMessageRecipient()
            Me._messageSender = New DETPDDMessageSender()
        End Sub

        Public Property preparationDateAndTime() As Date
            Get
                Return Me._preparationDateAndTime
            End Get
            Set
                Me._preparationDateAndTime = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property messageIdentification() As String
            Get
                Return Me._messageIdentification
            End Get
            Set
                Me._messageIdentification = Value
            End Set
        End Property

        Public Property messageGroup() As DETPDDMessageGroup
            Get
                Return Me._messageGroup
            End Get
            Set
                Me._messageGroup = Value
            End Set
        End Property

        Public Property messageType() As DETPDDMessageType
            Get
                Return Me._messageType
            End Get
            Set
                Me._messageType = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property messageVersion() As String
            Get
                Return Me._messageVersion
            End Get
            Set
                Me._messageVersion = Value
            End Set
        End Property

        Public Property MessageSender() As DETPDDMessageSender
            Get
                Return Me._messageSender
            End Get
            Set
                Me._messageSender = Value
            End Set
        End Property

        Public Property MessageRecipient() As DETPDDMessageRecipient
            Get
                Return Me._messageRecipient
            End Get
            Set
                Me._messageRecipient = Value
            End Set
        End Property

        Public Property TransitOperation() As DETPDDTransitOperation
            Get
                Return Me._transitOperation
            End Get
            Set
                Me._transitOperation = Value
            End Set
        End Property

        <XmlElement("Authorisation")>
        Public Property Authorisation() As List(Of DETPDDAuthorisation)
            Get
                Return Me._authorisation
            End Get
            Set
                Me._authorisation = Value
            End Set
        End Property

        Public Property CustomsOfficeOfDeparture() As DETPDDCustomsOfficeOfDeparture
            Get
                Return Me._customsOfficeOfDeparture
            End Get
            Set
                Me._customsOfficeOfDeparture = Value
            End Set
        End Property

        Public Property CustomsOfficeOfDestinationDeclared() As DETPDDCustomsOfficeOfDestinationDeclared
            Get
                Return Me._customsOfficeOfDestinationDeclared
            End Get
            Set
                Me._customsOfficeOfDestinationDeclared = Value
            End Set
        End Property

        <XmlElement("CustomsOfficeOfTransitDeclared")>
        Public Property CustomsOfficeOfTransitDeclared() As List(Of DETPDDCustomsOfficeOfTransitDeclared)
            Get
                Return Me._customsOfficeOfTransitDeclared
            End Get
            Set
                Me._customsOfficeOfTransitDeclared = Value
            End Set
        End Property

        <XmlElement("CustomsOfficeOfExitForTransitDeclared")>
        Public Property CustomsOfficeOfExitForTransitDeclared() As List(Of DETPDDCustomsOfficeOfExitForTransitDeclared)
            Get
                Return Me._customsOfficeOfExitForTransitDeclared
            End Get
            Set
                Me._customsOfficeOfExitForTransitDeclared = Value
            End Set
        End Property

        Public Property HolderOfTheTransitProcedure() As DETPDDHolderOfTheTransitProcedure
            Get
                Return Me._holderOfTheTransitProcedure
            End Get
            Set
                Me._holderOfTheTransitProcedure = Value
            End Set
        End Property

        Public Property Representative() As DETPDDRepresentative
            Get
                Return Me._representative
            End Get
            Set
                Me._representative = Value
            End Set
        End Property

        <XmlElement("Guarantee")>
        Public Property Guarantee() As List(Of DETPDDGuarantee)
            Get
                Return Me._guarantee
            End Get
            Set
                Me._guarantee = Value
            End Set
        End Property

        Public Property Consignment() As DETPDDConsignment
            Get
                Return Me._consignment
            End Get
            Set
                Me._consignment = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDD))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDD object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDD object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDD object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDD, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDD)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDD) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDD
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDD)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDD
            Return CType(SerializerXml.Deserialize(s), DETPDD)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDD object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDD object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDD object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDD, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDD)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDD) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDD
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     XmlType(AnonymousType:=True)>
    Public Enum DETPDDMessageGroup

        DEP
    End Enum

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     XmlType(AnonymousType:=True)>
    Public Enum DETPDDMessageType

        DETPDD
    End Enum

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDMessageSender

#Region "Private fields"
        Private _identificationNumber As String

        Private _subsidiaryNumber As String

        Private _authenticationNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property subsidiaryNumber() As String
            Get
                Return Me._subsidiaryNumber
            End Get
            Set
                Me._subsidiaryNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property authenticationNumber() As String
            Get
                Return Me._authenticationNumber
            End Get
            Set
                Me._authenticationNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDMessageSender))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDMessageSender object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDMessageSender object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDMessageSender object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDMessageSender, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDMessageSender)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDMessageSender) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDMessageSender
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDMessageSender)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDMessageSender
            Return CType(SerializerXml.Deserialize(s), DETPDDMessageSender)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDMessageSender object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDMessageSender object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDMessageSender object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDMessageSender, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDMessageSender)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDMessageSender) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDMessageSender
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDMessageRecipient

#Region "Private fields"
        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDMessageRecipient))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDMessageRecipient object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDMessageRecipient object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDMessageRecipient object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDMessageRecipient, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDMessageRecipient)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDMessageRecipient) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDMessageRecipient
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDMessageRecipient)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDMessageRecipient
            Return CType(SerializerXml.Deserialize(s), DETPDDMessageRecipient)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDMessageRecipient object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDMessageRecipient object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDMessageRecipient object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDMessageRecipient, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDMessageRecipient)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDMessageRecipient) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDMessageRecipient
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDTransitOperation

#Region "Private fields"
        Private _lRN As String

        Private _declarationType As String

        Private _transitDeclarationType As String

        Private _tIRCarnetNumber As String

        Private _limitDate As Date

        Private _security As String

        Private _reducedDatasetIndicator As String

        Private _specificCircumstanceIndicator As String

        Private _bindingItinerary As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property LRN() As String
            Get
                Return Me._lRN
            End Get
            Set
                Me._lRN = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property declarationType() As String
            Get
                Return Me._declarationType
            End Get
            Set
                Me._declarationType = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property transitDeclarationType() As String
            Get
                Return Me._transitDeclarationType
            End Get
            Set
                Me._transitDeclarationType = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property TIRCarnetNumber() As String
            Get
                Return Me._tIRCarnetNumber
            End Get
            Set
                Me._tIRCarnetNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="date")>
        Public Property limitDate() As Date
            Get
                Return Me._limitDate
            End Get
            Set
                Me._limitDate = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property security() As String
            Get
                Return Me._security
            End Get
            Set
                Me._security = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property reducedDatasetIndicator() As String
            Get
                Return Me._reducedDatasetIndicator
            End Get
            Set
                Me._reducedDatasetIndicator = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property specificCircumstanceIndicator() As String
            Get
                Return Me._specificCircumstanceIndicator
            End Get
            Set
                Me._specificCircumstanceIndicator = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property bindingItinerary() As String
            Get
                Return Me._bindingItinerary
            End Get
            Set
                Me._bindingItinerary = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDTransitOperation))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDTransitOperation object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDTransitOperation object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDTransitOperation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDTransitOperation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDTransitOperation)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDTransitOperation) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDTransitOperation
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDTransitOperation)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDTransitOperation
            Return CType(SerializerXml.Deserialize(s), DETPDDTransitOperation)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDTransitOperation object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDTransitOperation object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDTransitOperation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDTransitOperation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDTransitOperation)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDTransitOperation) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDTransitOperation
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDAuthorisation

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDAuthorisation))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDAuthorisation object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDAuthorisation object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDAuthorisation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDAuthorisation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDAuthorisation)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDAuthorisation) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDAuthorisation
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDAuthorisation)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDAuthorisation
            Return CType(SerializerXml.Deserialize(s), DETPDDAuthorisation)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDAuthorisation object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDAuthorisation object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDAuthorisation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDAuthorisation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDAuthorisation)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDAuthorisation) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDAuthorisation
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDCustomsOfficeOfDeparture

#Region "Private fields"
        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDCustomsOfficeOfDeparture))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDCustomsOfficeOfDeparture object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDCustomsOfficeOfDeparture object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDCustomsOfficeOfDeparture object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDCustomsOfficeOfDeparture, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDCustomsOfficeOfDeparture)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDCustomsOfficeOfDeparture) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDCustomsOfficeOfDeparture
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDCustomsOfficeOfDeparture)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDCustomsOfficeOfDeparture
            Return CType(SerializerXml.Deserialize(s), DETPDDCustomsOfficeOfDeparture)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDCustomsOfficeOfDeparture object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDCustomsOfficeOfDeparture object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDCustomsOfficeOfDeparture object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDCustomsOfficeOfDeparture, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDCustomsOfficeOfDeparture)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDCustomsOfficeOfDeparture) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDCustomsOfficeOfDeparture
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDCustomsOfficeOfDestinationDeclared

#Region "Private fields"
        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDCustomsOfficeOfDestinationDeclared))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDCustomsOfficeOfDestinationDeclared object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDCustomsOfficeOfDestinationDeclared object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDCustomsOfficeOfDestinationDeclared object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDCustomsOfficeOfDestinationDeclared, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDCustomsOfficeOfDestinationDeclared)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDCustomsOfficeOfDestinationDeclared) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDCustomsOfficeOfDestinationDeclared
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDCustomsOfficeOfDestinationDeclared)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDCustomsOfficeOfDestinationDeclared
            Return CType(SerializerXml.Deserialize(s), DETPDDCustomsOfficeOfDestinationDeclared)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDCustomsOfficeOfDestinationDeclared object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDCustomsOfficeOfDestinationDeclared object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDCustomsOfficeOfDestinationDeclared object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDCustomsOfficeOfDestinationDeclared, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDCustomsOfficeOfDestinationDeclared)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDCustomsOfficeOfDestinationDeclared) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDCustomsOfficeOfDestinationDeclared
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDCustomsOfficeOfTransitDeclared

#Region "Private fields"
        Private _sequenceNumber As String

        Private _referenceNumber As String

        Private _arrivalDateAndTimeEstimated As Date

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Public Property arrivalDateAndTimeEstimated() As Date
            Get
                Return Me._arrivalDateAndTimeEstimated
            End Get
            Set
                Me._arrivalDateAndTimeEstimated = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDCustomsOfficeOfTransitDeclared))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDCustomsOfficeOfTransitDeclared object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDCustomsOfficeOfTransitDeclared object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDCustomsOfficeOfTransitDeclared object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDCustomsOfficeOfTransitDeclared, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDCustomsOfficeOfTransitDeclared)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDCustomsOfficeOfTransitDeclared) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDCustomsOfficeOfTransitDeclared
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDCustomsOfficeOfTransitDeclared)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDCustomsOfficeOfTransitDeclared
            Return CType(SerializerXml.Deserialize(s), DETPDDCustomsOfficeOfTransitDeclared)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDCustomsOfficeOfTransitDeclared object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDCustomsOfficeOfTransitDeclared object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDCustomsOfficeOfTransitDeclared object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDCustomsOfficeOfTransitDeclared, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDCustomsOfficeOfTransitDeclared)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDCustomsOfficeOfTransitDeclared) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDCustomsOfficeOfTransitDeclared
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDCustomsOfficeOfExitForTransitDeclared

#Region "Private fields"
        Private _sequenceNumber As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDCustomsOfficeOfExitForTransitDeclared))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDCustomsOfficeOfExitForTransitDeclared object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDCustomsOfficeOfExitForTransitDeclared object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDCustomsOfficeOfExitForTransitDeclared object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDCustomsOfficeOfExitForTransitDeclared, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDCustomsOfficeOfExitForTransitDeclared)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDCustomsOfficeOfExitForTransitDeclared) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDCustomsOfficeOfExitForTransitDeclared
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDCustomsOfficeOfExitForTransitDeclared)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDCustomsOfficeOfExitForTransitDeclared
            Return CType(SerializerXml.Deserialize(s), DETPDDCustomsOfficeOfExitForTransitDeclared)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDCustomsOfficeOfExitForTransitDeclared object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDCustomsOfficeOfExitForTransitDeclared object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDCustomsOfficeOfExitForTransitDeclared object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDCustomsOfficeOfExitForTransitDeclared, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDCustomsOfficeOfExitForTransitDeclared)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDCustomsOfficeOfExitForTransitDeclared) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDCustomsOfficeOfExitForTransitDeclared
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDHolderOfTheTransitProcedure

#Region "Private fields"
        Private _identificationNumber As String

        Private _tIRHolderIdentificationNumber As String

        Private _name As String

        Private _address As DETPDDHolderOfTheTransitProcedureAddress

        Private _contactPerson As DETPDDHolderOfTheTransitProcedureContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDHolderOfTheTransitProcedureContactPerson()
            Me._address = New DETPDDHolderOfTheTransitProcedureAddress()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property TIRHolderIdentificationNumber() As String
            Get
                Return Me._tIRHolderIdentificationNumber
            End Get
            Set
                Me._tIRHolderIdentificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        Public Property Address() As DETPDDHolderOfTheTransitProcedureAddress
            Get
                Return Me._address
            End Get
            Set
                Me._address = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDHolderOfTheTransitProcedureContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDHolderOfTheTransitProcedure))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDHolderOfTheTransitProcedure object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDHolderOfTheTransitProcedure object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDHolderOfTheTransitProcedure object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDHolderOfTheTransitProcedure, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDHolderOfTheTransitProcedure)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDHolderOfTheTransitProcedure) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDHolderOfTheTransitProcedure
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDHolderOfTheTransitProcedure)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDHolderOfTheTransitProcedure
            Return CType(SerializerXml.Deserialize(s), DETPDDHolderOfTheTransitProcedure)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDHolderOfTheTransitProcedure object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDHolderOfTheTransitProcedure object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDHolderOfTheTransitProcedure object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDHolderOfTheTransitProcedure, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDHolderOfTheTransitProcedure)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDHolderOfTheTransitProcedure) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDHolderOfTheTransitProcedure
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDHolderOfTheTransitProcedureAddress

#Region "Private fields"
        Private _streetAndNumber As String

        Private _postcode As String

        Private _city As String

        Private _country As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property streetAndNumber() As String
            Get
                Return Me._streetAndNumber
            End Get
            Set
                Me._streetAndNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property postcode() As String
            Get
                Return Me._postcode
            End Get
            Set
                Me._postcode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property city() As String
            Get
                Return Me._city
            End Get
            Set
                Me._city = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDHolderOfTheTransitProcedureAddress))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDHolderOfTheTransitProcedureAddress object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDHolderOfTheTransitProcedureAddress object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDHolderOfTheTransitProcedureAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDHolderOfTheTransitProcedureAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDHolderOfTheTransitProcedureAddress)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDHolderOfTheTransitProcedureAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDHolderOfTheTransitProcedureAddress
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDHolderOfTheTransitProcedureAddress)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDHolderOfTheTransitProcedureAddress
            Return CType(SerializerXml.Deserialize(s), DETPDDHolderOfTheTransitProcedureAddress)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDHolderOfTheTransitProcedureAddress object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDHolderOfTheTransitProcedureAddress object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDHolderOfTheTransitProcedureAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDHolderOfTheTransitProcedureAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDHolderOfTheTransitProcedureAddress)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDHolderOfTheTransitProcedureAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDHolderOfTheTransitProcedureAddress
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDHolderOfTheTransitProcedureContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDHolderOfTheTransitProcedureContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDHolderOfTheTransitProcedureContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDHolderOfTheTransitProcedureContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDHolderOfTheTransitProcedureContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDHolderOfTheTransitProcedureContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDHolderOfTheTransitProcedureContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDHolderOfTheTransitProcedureContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDHolderOfTheTransitProcedureContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDHolderOfTheTransitProcedureContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDHolderOfTheTransitProcedureContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDHolderOfTheTransitProcedureContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDHolderOfTheTransitProcedureContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDHolderOfTheTransitProcedureContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDHolderOfTheTransitProcedureContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDHolderOfTheTransitProcedureContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDHolderOfTheTransitProcedureContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDHolderOfTheTransitProcedureContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDHolderOfTheTransitProcedureContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDRepresentative

#Region "Private fields"
        Private _identificationNumber As String

        Private _contactPerson As DETPDDRepresentativeContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDRepresentativeContactPerson()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDRepresentativeContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDRepresentative))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDRepresentative object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDRepresentative object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDRepresentative object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDRepresentative, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDRepresentative)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDRepresentative) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDRepresentative
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDRepresentative)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDRepresentative
            Return CType(SerializerXml.Deserialize(s), DETPDDRepresentative)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDRepresentative object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDRepresentative object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDRepresentative object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDRepresentative, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDRepresentative)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDRepresentative) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDRepresentative
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDRepresentativeContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDRepresentativeContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDRepresentativeContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDRepresentativeContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDRepresentativeContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDRepresentativeContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDRepresentativeContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDRepresentativeContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDRepresentativeContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDRepresentativeContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDRepresentativeContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDRepresentativeContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDRepresentativeContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDRepresentativeContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDRepresentativeContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDRepresentativeContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDRepresentativeContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDRepresentativeContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDRepresentativeContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDGuarantee

#Region "Private fields"
        Private _sequenceNumber As String

        Private _guaranteeType As String

        Private _otherGuaranteeReference As String

        Private _guaranteeReference As List(Of DETPDDGuaranteeGuaranteeReference)

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._guaranteeReference = New List(Of DETPDDGuaranteeGuaranteeReference)()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property guaranteeType() As String
            Get
                Return Me._guaranteeType
            End Get
            Set
                Me._guaranteeType = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property otherGuaranteeReference() As String
            Get
                Return Me._otherGuaranteeReference
            End Get
            Set
                Me._otherGuaranteeReference = Value
            End Set
        End Property

        <XmlElement("GuaranteeReference")>
        Public Property GuaranteeReference() As List(Of DETPDDGuaranteeGuaranteeReference)
            Get
                Return Me._guaranteeReference
            End Get
            Set
                Me._guaranteeReference = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDGuarantee))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDGuarantee object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDGuarantee object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDGuarantee object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDGuarantee, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDGuarantee)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDGuarantee) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDGuarantee
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDGuarantee)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDGuarantee
            Return CType(SerializerXml.Deserialize(s), DETPDDGuarantee)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDGuarantee object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDGuarantee object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDGuarantee object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDGuarantee, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDGuarantee)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDGuarantee) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDGuarantee
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDGuaranteeGuaranteeReference

#Region "Private fields"
        Private _sequenceNumber As String

        Private _gRN As String

        Private _accessCode As String

        Private _amountToBeCovered As Decimal

        Private _currency As DETPDDGuaranteeGuaranteeReferenceCurrency

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property GRN() As String
            Get
                Return Me._gRN
            End Get
            Set
                Me._gRN = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property accessCode() As String
            Get
                Return Me._accessCode
            End Get
            Set
                Me._accessCode = Value
            End Set
        End Property

        Public Property amountToBeCovered() As Decimal
            Get
                Return Me._amountToBeCovered
            End Get
            Set
                Me._amountToBeCovered = Value
            End Set
        End Property

        Public Property currency() As DETPDDGuaranteeGuaranteeReferenceCurrency
            Get
                Return Me._currency
            End Get
            Set
                Me._currency = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDGuaranteeGuaranteeReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDGuaranteeGuaranteeReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDGuaranteeGuaranteeReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDGuaranteeGuaranteeReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDGuaranteeGuaranteeReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDGuaranteeGuaranteeReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDGuaranteeGuaranteeReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDGuaranteeGuaranteeReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDGuaranteeGuaranteeReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDGuaranteeGuaranteeReference
            Return CType(SerializerXml.Deserialize(s), DETPDDGuaranteeGuaranteeReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDGuaranteeGuaranteeReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDGuaranteeGuaranteeReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDGuaranteeGuaranteeReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDGuaranteeGuaranteeReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDGuaranteeGuaranteeReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDGuaranteeGuaranteeReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDGuaranteeGuaranteeReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     XmlType(AnonymousType:=True)>
    Public Enum DETPDDGuaranteeGuaranteeReferenceCurrency

        EUR
    End Enum

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignment

#Region "Private fields"
        Private _countryOfDispatch As String

        Private _countryOfDestination As String

        Private _containerIndicator As String

        Private _inlandModeOfTransport As String

        Private _modeOfTransportAtTheBorder As String

        Private _grossMass As Decimal

        Private _referenceNumberUCR As String

        Private _carrier As DETPDDConsignmentCarrier

        Private _consignor As DETPDDConsignmentConsignor

        Private _consignee As DETPDDConsignmentConsignee

        Private _additionalSupplyChainActor As List(Of DETPDDConsignmentAdditionalSupplyChainActor)

        Private _transportEquipment As List(Of DETPDDConsignmentTransportEquipment)

        Private _locationOfGoods As DETPDDConsignmentLocationOfGoods

        Private _departureTransportMeans As List(Of DETPDDConsignmentDepartureTransportMeans)

        Private _countryOfRoutingOfConsignment As List(Of DETPDDConsignmentCountryOfRoutingOfConsignment)

        Private _activeBorderTransportMeans As List(Of DETPDDConsignmentActiveBorderTransportMeans)

        Private _placeOfLoading As DETPDDConsignmentPlaceOfLoading

        Private _placeOfUnloading As DETPDDConsignmentPlaceOfUnloading

        Private _previousDocument As List(Of DETPDDConsignmentPreviousDocument)

        Private _supportingDocument As List(Of DETPDDConsignmentSupportingDocument)

        Private _transportDocument As List(Of DETPDDConsignmentTransportDocument)

        Private _additionalReference As List(Of DETPDDConsignmentAdditionalReference)

        Private _additionalInformation As List(Of DETPDDConsignmentAdditionalInformation)

        Private _transportCharges As DETPDDConsignmentTransportCharges

        Private _houseConsignment As List(Of DETPDDConsignmentHouseConsignment)

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._houseConsignment = New List(Of DETPDDConsignmentHouseConsignment)()
            Me._transportCharges = New DETPDDConsignmentTransportCharges()
            Me._additionalInformation = New List(Of DETPDDConsignmentAdditionalInformation)()
            Me._additionalReference = New List(Of DETPDDConsignmentAdditionalReference)()
            Me._transportDocument = New List(Of DETPDDConsignmentTransportDocument)()
            Me._supportingDocument = New List(Of DETPDDConsignmentSupportingDocument)()
            Me._previousDocument = New List(Of DETPDDConsignmentPreviousDocument)()
            Me._placeOfUnloading = New DETPDDConsignmentPlaceOfUnloading()
            Me._placeOfLoading = New DETPDDConsignmentPlaceOfLoading()
            Me._activeBorderTransportMeans = New List(Of DETPDDConsignmentActiveBorderTransportMeans)()
            Me._countryOfRoutingOfConsignment = New List(Of DETPDDConsignmentCountryOfRoutingOfConsignment)()
            Me._departureTransportMeans = New List(Of DETPDDConsignmentDepartureTransportMeans)()
            Me._locationOfGoods = New DETPDDConsignmentLocationOfGoods()
            Me._transportEquipment = New List(Of DETPDDConsignmentTransportEquipment)()
            Me._additionalSupplyChainActor = New List(Of DETPDDConsignmentAdditionalSupplyChainActor)()
            Me._consignee = New DETPDDConsignmentConsignee()
            Me._consignor = New DETPDDConsignmentConsignor()
            Me._carrier = New DETPDDConsignmentCarrier()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property countryOfDispatch() As String
            Get
                Return Me._countryOfDispatch
            End Get
            Set
                Me._countryOfDispatch = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property countryOfDestination() As String
            Get
                Return Me._countryOfDestination
            End Get
            Set
                Me._countryOfDestination = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property containerIndicator() As String
            Get
                Return Me._containerIndicator
            End Get
            Set
                Me._containerIndicator = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property inlandModeOfTransport() As String
            Get
                Return Me._inlandModeOfTransport
            End Get
            Set
                Me._inlandModeOfTransport = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property modeOfTransportAtTheBorder() As String
            Get
                Return Me._modeOfTransportAtTheBorder
            End Get
            Set
                Me._modeOfTransportAtTheBorder = Value
            End Set
        End Property

        Public Property grossMass() As Decimal
            Get
                Return Me._grossMass
            End Get
            Set
                Me._grossMass = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumberUCR() As String
            Get
                Return Me._referenceNumberUCR
            End Get
            Set
                Me._referenceNumberUCR = Value
            End Set
        End Property

        Public Property Carrier() As DETPDDConsignmentCarrier
            Get
                Return Me._carrier
            End Get
            Set
                Me._carrier = Value
            End Set
        End Property

        Public Property Consignor() As DETPDDConsignmentConsignor
            Get
                Return Me._consignor
            End Get
            Set
                Me._consignor = Value
            End Set
        End Property

        Public Property Consignee() As DETPDDConsignmentConsignee
            Get
                Return Me._consignee
            End Get
            Set
                Me._consignee = Value
            End Set
        End Property

        <XmlElement("AdditionalSupplyChainActor")>
        Public Property AdditionalSupplyChainActor() As List(Of DETPDDConsignmentAdditionalSupplyChainActor)
            Get
                Return Me._additionalSupplyChainActor
            End Get
            Set
                Me._additionalSupplyChainActor = Value
            End Set
        End Property

        <XmlElement("TransportEquipment")>
        Public Property TransportEquipment() As List(Of DETPDDConsignmentTransportEquipment)
            Get
                Return Me._transportEquipment
            End Get
            Set
                Me._transportEquipment = Value
            End Set
        End Property

        Public Property LocationOfGoods() As DETPDDConsignmentLocationOfGoods
            Get
                Return Me._locationOfGoods
            End Get
            Set
                Me._locationOfGoods = Value
            End Set
        End Property

        <XmlElement("DepartureTransportMeans")>
        Public Property DepartureTransportMeans() As List(Of DETPDDConsignmentDepartureTransportMeans)
            Get
                Return Me._departureTransportMeans
            End Get
            Set
                Me._departureTransportMeans = Value
            End Set
        End Property

        <XmlElement("CountryOfRoutingOfConsignment")>
        Public Property CountryOfRoutingOfConsignment() As List(Of DETPDDConsignmentCountryOfRoutingOfConsignment)
            Get
                Return Me._countryOfRoutingOfConsignment
            End Get
            Set
                Me._countryOfRoutingOfConsignment = Value
            End Set
        End Property

        <XmlElement("ActiveBorderTransportMeans")>
        Public Property ActiveBorderTransportMeans() As List(Of DETPDDConsignmentActiveBorderTransportMeans)
            Get
                Return Me._activeBorderTransportMeans
            End Get
            Set
                Me._activeBorderTransportMeans = Value
            End Set
        End Property

        Public Property PlaceOfLoading() As DETPDDConsignmentPlaceOfLoading
            Get
                Return Me._placeOfLoading
            End Get
            Set
                Me._placeOfLoading = Value
            End Set
        End Property

        Public Property PlaceOfUnloading() As DETPDDConsignmentPlaceOfUnloading
            Get
                Return Me._placeOfUnloading
            End Get
            Set
                Me._placeOfUnloading = Value
            End Set
        End Property

        <XmlElement("PreviousDocument")>
        Public Property PreviousDocument() As List(Of DETPDDConsignmentPreviousDocument)
            Get
                Return Me._previousDocument
            End Get
            Set
                Me._previousDocument = Value
            End Set
        End Property

        <XmlElement("SupportingDocument")>
        Public Property SupportingDocument() As List(Of DETPDDConsignmentSupportingDocument)
            Get
                Return Me._supportingDocument
            End Get
            Set
                Me._supportingDocument = Value
            End Set
        End Property

        <XmlElement("TransportDocument")>
        Public Property TransportDocument() As List(Of DETPDDConsignmentTransportDocument)
            Get
                Return Me._transportDocument
            End Get
            Set
                Me._transportDocument = Value
            End Set
        End Property

        <XmlElement("AdditionalReference")>
        Public Property AdditionalReference() As List(Of DETPDDConsignmentAdditionalReference)
            Get
                Return Me._additionalReference
            End Get
            Set
                Me._additionalReference = Value
            End Set
        End Property

        <XmlElement("AdditionalInformation")>
        Public Property AdditionalInformation() As List(Of DETPDDConsignmentAdditionalInformation)
            Get
                Return Me._additionalInformation
            End Get
            Set
                Me._additionalInformation = Value
            End Set
        End Property

        Public Property TransportCharges() As DETPDDConsignmentTransportCharges
            Get
                Return Me._transportCharges
            End Get
            Set
                Me._transportCharges = Value
            End Set
        End Property

        <XmlElement("HouseConsignment")>
        Public Property HouseConsignment() As List(Of DETPDDConsignmentHouseConsignment)
            Get
                Return Me._houseConsignment
            End Get
            Set
                Me._houseConsignment = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignment))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignment object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignment object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignment)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignment) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignment
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignment)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignment
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignment)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignment object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignment object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignment)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignment) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignment
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentCarrier

#Region "Private fields"
        Private _identificationNumber As String

        Private _subsidiaryNumber As String

        Private _contactPerson As DETPDDConsignmentCarrierContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDConsignmentCarrierContactPerson()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property subsidiaryNumber() As String
            Get
                Return Me._subsidiaryNumber
            End Get
            Set
                Me._subsidiaryNumber = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDConsignmentCarrierContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentCarrier))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentCarrier object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentCarrier object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentCarrier object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentCarrier, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentCarrier)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentCarrier) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentCarrier
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentCarrier)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentCarrier
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentCarrier)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentCarrier object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentCarrier object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentCarrier object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentCarrier, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentCarrier)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentCarrier) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentCarrier
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentCarrierContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentCarrierContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentCarrierContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentCarrierContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentCarrierContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentCarrierContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentCarrierContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentCarrierContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentCarrierContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentCarrierContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentCarrierContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentCarrierContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentCarrierContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentCarrierContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentCarrierContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentCarrierContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentCarrierContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentCarrierContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentCarrierContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentConsignor

#Region "Private fields"
        Private _identificationNumber As String

        Private _subsidiaryNumber As String

        Private _name As String

        Private _address As DETPDDConsignmentConsignorAddress

        Private _contactPerson As DETPDDConsignmentConsignorContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDConsignmentConsignorContactPerson()
            Me._address = New DETPDDConsignmentConsignorAddress()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property subsidiaryNumber() As String
            Get
                Return Me._subsidiaryNumber
            End Get
            Set
                Me._subsidiaryNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        Public Property Address() As DETPDDConsignmentConsignorAddress
            Get
                Return Me._address
            End Get
            Set
                Me._address = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDConsignmentConsignorContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentConsignor))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentConsignor object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentConsignor object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsignor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsignor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsignor)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsignor) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentConsignor
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentConsignor)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentConsignor
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentConsignor)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentConsignor object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentConsignor object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsignor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsignor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsignor)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsignor) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentConsignor
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentConsignorAddress

#Region "Private fields"
        Private _streetAndNumber As String

        Private _postcode As String

        Private _city As String

        Private _country As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property streetAndNumber() As String
            Get
                Return Me._streetAndNumber
            End Get
            Set
                Me._streetAndNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property postcode() As String
            Get
                Return Me._postcode
            End Get
            Set
                Me._postcode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property city() As String
            Get
                Return Me._city
            End Get
            Set
                Me._city = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentConsignorAddress))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentConsignorAddress object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentConsignorAddress object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsignorAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsignorAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsignorAddress)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsignorAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentConsignorAddress
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentConsignorAddress)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentConsignorAddress
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentConsignorAddress)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentConsignorAddress object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentConsignorAddress object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsignorAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsignorAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsignorAddress)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsignorAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentConsignorAddress
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentConsignorContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentConsignorContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentConsignorContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentConsignorContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsignorContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsignorContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsignorContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsignorContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentConsignorContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentConsignorContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentConsignorContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentConsignorContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentConsignorContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentConsignorContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsignorContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsignorContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsignorContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsignorContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentConsignorContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentConsignee

#Region "Private fields"
        Private _identificationNumber As String

        Private _subsidiaryNumber As String

        Private _name As String

        Private _address As DETPDDConsignmentConsigneeAddress

        Private _contactPerson As DETPDDConsignmentConsigneeContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDConsignmentConsigneeContactPerson()
            Me._address = New DETPDDConsignmentConsigneeAddress()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property subsidiaryNumber() As String
            Get
                Return Me._subsidiaryNumber
            End Get
            Set
                Me._subsidiaryNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        Public Property Address() As DETPDDConsignmentConsigneeAddress
            Get
                Return Me._address
            End Get
            Set
                Me._address = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDConsignmentConsigneeContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentConsignee))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentConsignee object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentConsignee object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsignee object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsignee, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsignee)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsignee) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentConsignee
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentConsignee)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentConsignee
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentConsignee)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentConsignee object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentConsignee object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsignee object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsignee, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsignee)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsignee) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentConsignee
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentConsigneeAddress

#Region "Private fields"
        Private _streetAndNumber As String

        Private _postcode As String

        Private _city As String

        Private _country As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property streetAndNumber() As String
            Get
                Return Me._streetAndNumber
            End Get
            Set
                Me._streetAndNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property postcode() As String
            Get
                Return Me._postcode
            End Get
            Set
                Me._postcode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property city() As String
            Get
                Return Me._city
            End Get
            Set
                Me._city = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentConsigneeAddress))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentConsigneeAddress object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentConsigneeAddress object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsigneeAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsigneeAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsigneeAddress)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsigneeAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentConsigneeAddress
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentConsigneeAddress)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentConsigneeAddress
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentConsigneeAddress)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentConsigneeAddress object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentConsigneeAddress object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsigneeAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsigneeAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsigneeAddress)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsigneeAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentConsigneeAddress
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentConsigneeContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentConsigneeContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentConsigneeContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentConsigneeContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsigneeContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsigneeContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsigneeContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentConsigneeContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentConsigneeContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentConsigneeContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentConsigneeContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentConsigneeContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentConsigneeContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentConsigneeContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentConsigneeContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsigneeContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentConsigneeContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentConsigneeContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentConsigneeContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentAdditionalSupplyChainActor

#Region "Private fields"
        Private _sequenceNumber As String

        Private _role As String

        Private _identificationNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property role() As String
            Get
                Return Me._role
            End Get
            Set
                Me._role = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentAdditionalSupplyChainActor))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentAdditionalSupplyChainActor object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentAdditionalSupplyChainActor object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentAdditionalSupplyChainActor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentAdditionalSupplyChainActor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentAdditionalSupplyChainActor)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentAdditionalSupplyChainActor) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentAdditionalSupplyChainActor
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentAdditionalSupplyChainActor)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentAdditionalSupplyChainActor
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentAdditionalSupplyChainActor)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentAdditionalSupplyChainActor object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentAdditionalSupplyChainActor object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentAdditionalSupplyChainActor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentAdditionalSupplyChainActor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentAdditionalSupplyChainActor)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentAdditionalSupplyChainActor) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentAdditionalSupplyChainActor
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentTransportEquipment

#Region "Private fields"
        Private _sequenceNumber As String

        Private _containerIdentificationNumber As String

        Private _numberOfSeals As String

        Private _seal As List(Of DETPDDConsignmentTransportEquipmentSeal)

        Private _goodsReference As List(Of DETPDDConsignmentTransportEquipmentGoodsReference)

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._goodsReference = New List(Of DETPDDConsignmentTransportEquipmentGoodsReference)()
            Me._seal = New List(Of DETPDDConsignmentTransportEquipmentSeal)()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property containerIdentificationNumber() As String
            Get
                Return Me._containerIdentificationNumber
            End Get
            Set
                Me._containerIdentificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property numberOfSeals() As String
            Get
                Return Me._numberOfSeals
            End Get
            Set
                Me._numberOfSeals = Value
            End Set
        End Property

        <XmlElement("Seal")>
        Public Property Seal() As List(Of DETPDDConsignmentTransportEquipmentSeal)
            Get
                Return Me._seal
            End Get
            Set
                Me._seal = Value
            End Set
        End Property

        <XmlElement("GoodsReference")>
        Public Property GoodsReference() As List(Of DETPDDConsignmentTransportEquipmentGoodsReference)
            Get
                Return Me._goodsReference
            End Get
            Set
                Me._goodsReference = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentTransportEquipment))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentTransportEquipment object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentTransportEquipment object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportEquipment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportEquipment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportEquipment)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportEquipment) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentTransportEquipment
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentTransportEquipment)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentTransportEquipment
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentTransportEquipment)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentTransportEquipment object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentTransportEquipment object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportEquipment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportEquipment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportEquipment)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportEquipment) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentTransportEquipment
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentTransportEquipmentSeal

#Region "Private fields"
        Private _sequenceNumber As String

        Private _identifier As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property identifier() As String
            Get
                Return Me._identifier
            End Get
            Set
                Me._identifier = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentTransportEquipmentSeal))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentTransportEquipmentSeal object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentTransportEquipmentSeal object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportEquipmentSeal object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportEquipmentSeal, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportEquipmentSeal)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportEquipmentSeal) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentTransportEquipmentSeal
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentTransportEquipmentSeal)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentTransportEquipmentSeal
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentTransportEquipmentSeal)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentTransportEquipmentSeal object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentTransportEquipmentSeal object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportEquipmentSeal object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportEquipmentSeal, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportEquipmentSeal)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportEquipmentSeal) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentTransportEquipmentSeal
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentTransportEquipmentGoodsReference

#Region "Private fields"
        Private _sequenceNumber As String

        Private _declarationGoodsItemNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property declarationGoodsItemNumber() As String
            Get
                Return Me._declarationGoodsItemNumber
            End Get
            Set
                Me._declarationGoodsItemNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentTransportEquipmentGoodsReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentTransportEquipmentGoodsReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentTransportEquipmentGoodsReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportEquipmentGoodsReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportEquipmentGoodsReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportEquipmentGoodsReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportEquipmentGoodsReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentTransportEquipmentGoodsReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentTransportEquipmentGoodsReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentTransportEquipmentGoodsReference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentTransportEquipmentGoodsReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentTransportEquipmentGoodsReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentTransportEquipmentGoodsReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportEquipmentGoodsReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportEquipmentGoodsReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportEquipmentGoodsReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportEquipmentGoodsReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentTransportEquipmentGoodsReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentLocationOfGoods

#Region "Private fields"
        Private _typeOfLocation As String

        Private _qualifierOfIdentification As String

        Private _additionalIdentifier As String

        Private _contactPerson As DETPDDConsignmentLocationOfGoodsContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDConsignmentLocationOfGoodsContactPerson()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property typeOfLocation() As String
            Get
                Return Me._typeOfLocation
            End Get
            Set
                Me._typeOfLocation = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property qualifierOfIdentification() As String
            Get
                Return Me._qualifierOfIdentification
            End Get
            Set
                Me._qualifierOfIdentification = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property additionalIdentifier() As String
            Get
                Return Me._additionalIdentifier
            End Get
            Set
                Me._additionalIdentifier = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDConsignmentLocationOfGoodsContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentLocationOfGoods))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentLocationOfGoods object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentLocationOfGoods object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentLocationOfGoods object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentLocationOfGoods, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentLocationOfGoods)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentLocationOfGoods) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentLocationOfGoods
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentLocationOfGoods)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentLocationOfGoods
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentLocationOfGoods)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentLocationOfGoods object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentLocationOfGoods object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentLocationOfGoods object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentLocationOfGoods, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentLocationOfGoods)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentLocationOfGoods) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentLocationOfGoods
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentLocationOfGoodsContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentLocationOfGoodsContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentLocationOfGoodsContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentLocationOfGoodsContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentLocationOfGoodsContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentLocationOfGoodsContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentLocationOfGoodsContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentLocationOfGoodsContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentLocationOfGoodsContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentLocationOfGoodsContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentLocationOfGoodsContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentLocationOfGoodsContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentLocationOfGoodsContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentLocationOfGoodsContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentLocationOfGoodsContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentLocationOfGoodsContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentLocationOfGoodsContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentLocationOfGoodsContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentLocationOfGoodsContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentDepartureTransportMeans

#Region "Private fields"
        Private _sequenceNumber As String

        Private _typeOfIdentification As String

        Private _identificationNumber As String

        Private _nationality As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property typeOfIdentification() As String
            Get
                Return Me._typeOfIdentification
            End Get
            Set
                Me._typeOfIdentification = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property nationality() As String
            Get
                Return Me._nationality
            End Get
            Set
                Me._nationality = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentDepartureTransportMeans))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentDepartureTransportMeans object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentDepartureTransportMeans object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentDepartureTransportMeans object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentDepartureTransportMeans, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentDepartureTransportMeans)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentDepartureTransportMeans) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentDepartureTransportMeans
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentDepartureTransportMeans)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentDepartureTransportMeans
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentDepartureTransportMeans)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentDepartureTransportMeans object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentDepartureTransportMeans object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentDepartureTransportMeans object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentDepartureTransportMeans, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentDepartureTransportMeans)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentDepartureTransportMeans) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentDepartureTransportMeans
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentCountryOfRoutingOfConsignment

#Region "Private fields"
        Private _sequenceNumber As String

        Private _country As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentCountryOfRoutingOfConsignment))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentCountryOfRoutingOfConsignment object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentCountryOfRoutingOfConsignment object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentCountryOfRoutingOfConsignment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentCountryOfRoutingOfConsignment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentCountryOfRoutingOfConsignment)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentCountryOfRoutingOfConsignment) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentCountryOfRoutingOfConsignment
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentCountryOfRoutingOfConsignment)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentCountryOfRoutingOfConsignment
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentCountryOfRoutingOfConsignment)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentCountryOfRoutingOfConsignment object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentCountryOfRoutingOfConsignment object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentCountryOfRoutingOfConsignment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentCountryOfRoutingOfConsignment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentCountryOfRoutingOfConsignment)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentCountryOfRoutingOfConsignment) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentCountryOfRoutingOfConsignment
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentActiveBorderTransportMeans

#Region "Private fields"
        Private _sequenceNumber As String

        Private _typeOfIdentification As String

        Private _identificationNumber As String

        Private _nationality As String

        Private _conveyanceReferenceNumber As String

        Private _customsOfficeAtBorderDeclared As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._customsOfficeAtBorderDeclared = New DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property typeOfIdentification() As String
            Get
                Return Me._typeOfIdentification
            End Get
            Set
                Me._typeOfIdentification = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property nationality() As String
            Get
                Return Me._nationality
            End Get
            Set
                Me._nationality = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property conveyanceReferenceNumber() As String
            Get
                Return Me._conveyanceReferenceNumber
            End Get
            Set
                Me._conveyanceReferenceNumber = Value
            End Set
        End Property

        Public Property CustomsOfficeAtBorderDeclared() As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared
            Get
                Return Me._customsOfficeAtBorderDeclared
            End Get
            Set
                Me._customsOfficeAtBorderDeclared = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentActiveBorderTransportMeans))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentActiveBorderTransportMeans object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentActiveBorderTransportMeans object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentActiveBorderTransportMeans object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentActiveBorderTransportMeans, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentActiveBorderTransportMeans)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentActiveBorderTransportMeans) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentActiveBorderTransportMeans
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentActiveBorderTransportMeans)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentActiveBorderTransportMeans
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentActiveBorderTransportMeans)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentActiveBorderTransportMeans object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentActiveBorderTransportMeans object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentActiveBorderTransportMeans object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentActiveBorderTransportMeans, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentActiveBorderTransportMeans)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentActiveBorderTransportMeans) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentActiveBorderTransportMeans
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared

#Region "Private fields"
        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentActiveBorderTransportMeansCustomsOfficeAtBorderDeclared
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentPlaceOfLoading

#Region "Private fields"
        Private _country As String

        Private _location As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property location() As String
            Get
                Return Me._location
            End Get
            Set
                Me._location = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentPlaceOfLoading))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentPlaceOfLoading object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentPlaceOfLoading object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentPlaceOfLoading object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentPlaceOfLoading, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentPlaceOfLoading)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentPlaceOfLoading) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentPlaceOfLoading
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentPlaceOfLoading)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentPlaceOfLoading
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentPlaceOfLoading)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentPlaceOfLoading object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentPlaceOfLoading object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentPlaceOfLoading object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentPlaceOfLoading, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentPlaceOfLoading)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentPlaceOfLoading) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentPlaceOfLoading
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentPlaceOfUnloading

#Region "Private fields"
        Private _country As String

        Private _location As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property location() As String
            Get
                Return Me._location
            End Get
            Set
                Me._location = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentPlaceOfUnloading))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentPlaceOfUnloading object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentPlaceOfUnloading object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentPlaceOfUnloading object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentPlaceOfUnloading, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentPlaceOfUnloading)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentPlaceOfUnloading) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentPlaceOfUnloading
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentPlaceOfUnloading)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentPlaceOfUnloading
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentPlaceOfUnloading)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentPlaceOfUnloading object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentPlaceOfUnloading object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentPlaceOfUnloading object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentPlaceOfUnloading, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentPlaceOfUnloading)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentPlaceOfUnloading) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentPlaceOfUnloading
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentPreviousDocument

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private _complementOfInformation As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property complementOfInformation() As String
            Get
                Return Me._complementOfInformation
            End Get
            Set
                Me._complementOfInformation = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentPreviousDocument))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentPreviousDocument object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentPreviousDocument object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentPreviousDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentPreviousDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentPreviousDocument)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentPreviousDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentPreviousDocument
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentPreviousDocument)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentPreviousDocument
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentPreviousDocument)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentPreviousDocument object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentPreviousDocument object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentPreviousDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentPreviousDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentPreviousDocument)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentPreviousDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentPreviousDocument
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentSupportingDocument

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private _documentLineItemNumber As String

        Private _complementOfInformation As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property documentLineItemNumber() As String
            Get
                Return Me._documentLineItemNumber
            End Get
            Set
                Me._documentLineItemNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property complementOfInformation() As String
            Get
                Return Me._complementOfInformation
            End Get
            Set
                Me._complementOfInformation = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentSupportingDocument))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentSupportingDocument object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentSupportingDocument object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentSupportingDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentSupportingDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentSupportingDocument)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentSupportingDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentSupportingDocument
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentSupportingDocument)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentSupportingDocument
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentSupportingDocument)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentSupportingDocument object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentSupportingDocument object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentSupportingDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentSupportingDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentSupportingDocument)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentSupportingDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentSupportingDocument
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentTransportDocument

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentTransportDocument))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentTransportDocument object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentTransportDocument object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportDocument)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentTransportDocument
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentTransportDocument)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentTransportDocument
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentTransportDocument)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentTransportDocument object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentTransportDocument object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportDocument)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentTransportDocument
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentAdditionalReference

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentAdditionalReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentAdditionalReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentAdditionalReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentAdditionalReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentAdditionalReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentAdditionalReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentAdditionalReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentAdditionalReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentAdditionalReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentAdditionalReference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentAdditionalReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentAdditionalReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentAdditionalReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentAdditionalReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentAdditionalReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentAdditionalReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentAdditionalReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentAdditionalReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentAdditionalInformation

#Region "Private fields"
        Private _sequenceNumber As String

        Private _code As String

        Private _text As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property code() As String
            Get
                Return Me._code
            End Get
            Set
                Me._code = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property text() As String
            Get
                Return Me._text
            End Get
            Set
                Me._text = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentAdditionalInformation))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentAdditionalInformation object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentAdditionalInformation object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentAdditionalInformation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentAdditionalInformation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentAdditionalInformation)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentAdditionalInformation) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentAdditionalInformation
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentAdditionalInformation)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentAdditionalInformation
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentAdditionalInformation)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentAdditionalInformation object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentAdditionalInformation object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentAdditionalInformation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentAdditionalInformation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentAdditionalInformation)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentAdditionalInformation) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentAdditionalInformation
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentTransportCharges

#Region "Private fields"
        Private _methodOfPayment As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property methodOfPayment() As String
            Get
                Return Me._methodOfPayment
            End Get
            Set
                Me._methodOfPayment = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentTransportCharges))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentTransportCharges object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentTransportCharges object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportCharges object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportCharges, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportCharges)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentTransportCharges) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentTransportCharges
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentTransportCharges)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentTransportCharges
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentTransportCharges)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentTransportCharges object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentTransportCharges object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentTransportCharges object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportCharges, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentTransportCharges)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentTransportCharges) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentTransportCharges
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignment

#Region "Private fields"
        Private _sequenceNumber As String

        Private _countryOfDispatch As String

        Private _countryOfDestination As String

        Private _grossMass As Decimal

        Private _referenceNumberUCR As String

        Private _consignor As DETPDDConsignmentHouseConsignmentConsignor

        Private _consignee As DETPDDConsignmentHouseConsignmentConsignee

        Private _additionalSupplyChainActor As List(Of DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor)

        Private _previousDocument As List(Of DETPDDConsignmentHouseConsignmentPreviousDocument)

        Private _supportingDocument As List(Of DETPDDConsignmentHouseConsignmentSupportingDocument)

        Private _transportDocument As List(Of DETPDDConsignmentHouseConsignmentTransportDocument)

        Private _additionalReference As List(Of DETPDDConsignmentHouseConsignmentAdditionalReference)

        Private _additionalInformation As List(Of DETPDDConsignmentHouseConsignmentAdditionalInformation)

        Private _transportCharges As DETPDDConsignmentHouseConsignmentTransportCharges

        Private _consignmentItem As List(Of DETPDDConsignmentHouseConsignmentConsignmentItem)

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._consignmentItem = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItem)()
            Me._transportCharges = New DETPDDConsignmentHouseConsignmentTransportCharges()
            Me._additionalInformation = New List(Of DETPDDConsignmentHouseConsignmentAdditionalInformation)()
            Me._additionalReference = New List(Of DETPDDConsignmentHouseConsignmentAdditionalReference)()
            Me._transportDocument = New List(Of DETPDDConsignmentHouseConsignmentTransportDocument)()
            Me._supportingDocument = New List(Of DETPDDConsignmentHouseConsignmentSupportingDocument)()
            Me._previousDocument = New List(Of DETPDDConsignmentHouseConsignmentPreviousDocument)()
            Me._additionalSupplyChainActor = New List(Of DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor)()
            Me._consignee = New DETPDDConsignmentHouseConsignmentConsignee()
            Me._consignor = New DETPDDConsignmentHouseConsignmentConsignor()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property countryOfDispatch() As String
            Get
                Return Me._countryOfDispatch
            End Get
            Set
                Me._countryOfDispatch = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property countryOfDestination() As String
            Get
                Return Me._countryOfDestination
            End Get
            Set
                Me._countryOfDestination = Value
            End Set
        End Property

        Public Property grossMass() As Decimal
            Get
                Return Me._grossMass
            End Get
            Set
                Me._grossMass = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumberUCR() As String
            Get
                Return Me._referenceNumberUCR
            End Get
            Set
                Me._referenceNumberUCR = Value
            End Set
        End Property

        Public Property Consignor() As DETPDDConsignmentHouseConsignmentConsignor
            Get
                Return Me._consignor
            End Get
            Set
                Me._consignor = Value
            End Set
        End Property

        Public Property Consignee() As DETPDDConsignmentHouseConsignmentConsignee
            Get
                Return Me._consignee
            End Get
            Set
                Me._consignee = Value
            End Set
        End Property

        <XmlElement("AdditionalSupplyChainActor")>
        Public Property AdditionalSupplyChainActor() As List(Of DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor)
            Get
                Return Me._additionalSupplyChainActor
            End Get
            Set
                Me._additionalSupplyChainActor = Value
            End Set
        End Property

        <XmlElement("PreviousDocument")>
        Public Property PreviousDocument() As List(Of DETPDDConsignmentHouseConsignmentPreviousDocument)
            Get
                Return Me._previousDocument
            End Get
            Set
                Me._previousDocument = Value
            End Set
        End Property

        <XmlElement("SupportingDocument")>
        Public Property SupportingDocument() As List(Of DETPDDConsignmentHouseConsignmentSupportingDocument)
            Get
                Return Me._supportingDocument
            End Get
            Set
                Me._supportingDocument = Value
            End Set
        End Property

        <XmlElement("TransportDocument")>
        Public Property TransportDocument() As List(Of DETPDDConsignmentHouseConsignmentTransportDocument)
            Get
                Return Me._transportDocument
            End Get
            Set
                Me._transportDocument = Value
            End Set
        End Property

        <XmlElement("AdditionalReference")>
        Public Property AdditionalReference() As List(Of DETPDDConsignmentHouseConsignmentAdditionalReference)
            Get
                Return Me._additionalReference
            End Get
            Set
                Me._additionalReference = Value
            End Set
        End Property

        <XmlElement("AdditionalInformation")>
        Public Property AdditionalInformation() As List(Of DETPDDConsignmentHouseConsignmentAdditionalInformation)
            Get
                Return Me._additionalInformation
            End Get
            Set
                Me._additionalInformation = Value
            End Set
        End Property

        Public Property TransportCharges() As DETPDDConsignmentHouseConsignmentTransportCharges
            Get
                Return Me._transportCharges
            End Get
            Set
                Me._transportCharges = Value
            End Set
        End Property

        <XmlElement("ConsignmentItem")>
        Public Property ConsignmentItem() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItem)
            Get
                Return Me._consignmentItem
            End Get
            Set
                Me._consignmentItem = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignment))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignment object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignment object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignment)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignment) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignment
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignment)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignment
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignment)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignment object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignment object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignment)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignment) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignment
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignor

#Region "Private fields"
        Private _identificationNumber As String

        Private _subsidiaryNumber As String

        Private _name As String

        Private _address As DETPDDConsignmentHouseConsignmentConsignorAddress

        Private _contactPerson As DETPDDConsignmentHouseConsignmentConsignorContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDConsignmentHouseConsignmentConsignorContactPerson()
            Me._address = New DETPDDConsignmentHouseConsignmentConsignorAddress()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property subsidiaryNumber() As String
            Get
                Return Me._subsidiaryNumber
            End Get
            Set
                Me._subsidiaryNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        Public Property Address() As DETPDDConsignmentHouseConsignmentConsignorAddress
            Get
                Return Me._address
            End Get
            Set
                Me._address = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDConsignmentHouseConsignmentConsignorContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignor))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignor object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignor object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignor)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignor) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignor
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignor)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignor
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignor)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignor object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignor object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignor)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignor) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignor
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignorAddress

#Region "Private fields"
        Private _streetAndNumber As String

        Private _postcode As String

        Private _city As String

        Private _country As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property streetAndNumber() As String
            Get
                Return Me._streetAndNumber
            End Get
            Set
                Me._streetAndNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property postcode() As String
            Get
                Return Me._postcode
            End Get
            Set
                Me._postcode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property city() As String
            Get
                Return Me._city
            End Get
            Set
                Me._city = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignorAddress))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignorAddress object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignorAddress object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignorAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignorAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignorAddress)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignorAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignorAddress
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignorAddress)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignorAddress
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignorAddress)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignorAddress object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignorAddress object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignorAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignorAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignorAddress)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignorAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignorAddress
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignorContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignorContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignorContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignorContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignorContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignorContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignorContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignorContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignorContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignorContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignorContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignorContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignorContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignorContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignorContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignorContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignorContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignorContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignorContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignee

#Region "Private fields"
        Private _identificationNumber As String

        Private _subsidiaryNumber As String

        Private _name As String

        Private _address As DETPDDConsignmentHouseConsignmentConsigneeAddress

        Private _contactPerson As DETPDDConsignmentHouseConsignmentConsigneeContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDConsignmentHouseConsignmentConsigneeContactPerson()
            Me._address = New DETPDDConsignmentHouseConsignmentConsigneeAddress()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property subsidiaryNumber() As String
            Get
                Return Me._subsidiaryNumber
            End Get
            Set
                Me._subsidiaryNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        Public Property Address() As DETPDDConsignmentHouseConsignmentConsigneeAddress
            Get
                Return Me._address
            End Get
            Set
                Me._address = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDConsignmentHouseConsignmentConsigneeContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignee))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignee object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignee object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignee object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignee, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignee)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignee) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignee
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignee)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignee
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignee)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignee object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignee object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignee object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignee, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignee)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignee) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignee
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsigneeAddress

#Region "Private fields"
        Private _streetAndNumber As String

        Private _postcode As String

        Private _city As String

        Private _country As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property streetAndNumber() As String
            Get
                Return Me._streetAndNumber
            End Get
            Set
                Me._streetAndNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property postcode() As String
            Get
                Return Me._postcode
            End Get
            Set
                Me._postcode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property city() As String
            Get
                Return Me._city
            End Get
            Set
                Me._city = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsigneeAddress))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsigneeAddress object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsigneeAddress object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsigneeAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsigneeAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsigneeAddress)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsigneeAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsigneeAddress
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsigneeAddress)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsigneeAddress
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsigneeAddress)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsigneeAddress object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsigneeAddress object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsigneeAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsigneeAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsigneeAddress)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsigneeAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsigneeAddress
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsigneeContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsigneeContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsigneeContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsigneeContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsigneeContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsigneeContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsigneeContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsigneeContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsigneeContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsigneeContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsigneeContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsigneeContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsigneeContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsigneeContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsigneeContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsigneeContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsigneeContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsigneeContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsigneeContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor

#Region "Private fields"
        Private _sequenceNumber As String

        Private _role As String

        Private _identificationNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property role() As String
            Get
                Return Me._role
            End Get
            Set
                Me._role = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentAdditionalSupplyChainActor
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentPreviousDocument

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private _complementOfInformation As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property complementOfInformation() As String
            Get
                Return Me._complementOfInformation
            End Get
            Set
                Me._complementOfInformation = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentPreviousDocument))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentPreviousDocument object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentPreviousDocument object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentPreviousDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentPreviousDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentPreviousDocument)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentPreviousDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentPreviousDocument
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentPreviousDocument)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentPreviousDocument
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentPreviousDocument)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentPreviousDocument object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentPreviousDocument object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentPreviousDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentPreviousDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentPreviousDocument)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentPreviousDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentPreviousDocument
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentSupportingDocument

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private _documentLineItemNumber As String

        Private _complementOfInformation As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property documentLineItemNumber() As String
            Get
                Return Me._documentLineItemNumber
            End Get
            Set
                Me._documentLineItemNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property complementOfInformation() As String
            Get
                Return Me._complementOfInformation
            End Get
            Set
                Me._complementOfInformation = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentSupportingDocument))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentSupportingDocument object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentSupportingDocument object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentSupportingDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentSupportingDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentSupportingDocument)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentSupportingDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentSupportingDocument
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentSupportingDocument)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentSupportingDocument
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentSupportingDocument)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentSupportingDocument object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentSupportingDocument object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentSupportingDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentSupportingDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentSupportingDocument)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentSupportingDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentSupportingDocument
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentTransportDocument

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentTransportDocument))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentTransportDocument object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentTransportDocument object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentTransportDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentTransportDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentTransportDocument)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentTransportDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentTransportDocument
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentTransportDocument)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentTransportDocument
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentTransportDocument)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentTransportDocument object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentTransportDocument object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentTransportDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentTransportDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentTransportDocument)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentTransportDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentTransportDocument
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentAdditionalReference

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentAdditionalReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentAdditionalReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentAdditionalReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentAdditionalReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentAdditionalReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentAdditionalReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentAdditionalReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentAdditionalReference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentAdditionalReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentAdditionalReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentAdditionalReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentAdditionalReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentAdditionalReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentAdditionalReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentAdditionalInformation

#Region "Private fields"
        Private _sequenceNumber As String

        Private _code As String

        Private _text As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property code() As String
            Get
                Return Me._code
            End Get
            Set
                Me._code = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property text() As String
            Get
                Return Me._text
            End Get
            Set
                Me._text = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentAdditionalInformation))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentAdditionalInformation object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentAdditionalInformation object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentAdditionalInformation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalInformation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentAdditionalInformation)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalInformation) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentAdditionalInformation
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentAdditionalInformation)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentAdditionalInformation
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentAdditionalInformation)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentAdditionalInformation object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentAdditionalInformation object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentAdditionalInformation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalInformation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentAdditionalInformation)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentAdditionalInformation) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentAdditionalInformation
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentTransportCharges

#Region "Private fields"
        Private _methodOfPayment As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property methodOfPayment() As String
            Get
                Return Me._methodOfPayment
            End Get
            Set
                Me._methodOfPayment = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentTransportCharges))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentTransportCharges object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentTransportCharges object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentTransportCharges object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentTransportCharges, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentTransportCharges)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentTransportCharges) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentTransportCharges
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentTransportCharges)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentTransportCharges
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentTransportCharges)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentTransportCharges object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentTransportCharges object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentTransportCharges object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentTransportCharges, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentTransportCharges)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentTransportCharges) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentTransportCharges
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItem

#Region "Private fields"
        Private _sequenceNumber As String

        Private _goodsItemNumber As String

        Private _declarationGoodsItemNumber As String

        Private _declarationType As String

        Private _countryOfDispatch As String

        Private _countryOfDestination As String

        Private _referenceNumberUCR As String

        Private _consignee As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee

        Private _additionalSupplyChainActor As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor)

        Private _commodity As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity

        Private _packaging As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemPackaging)

        Private _previousDocument As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument)

        Private _supportingDocument As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument)

        Private _additionalReference As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference)

        Private _additionalInformation As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation)

        Private _transportCharges As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges

        Private _procedureTransference As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._procedureTransference = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference()
            Me._transportCharges = New DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges()
            Me._additionalInformation = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation)()
            Me._additionalReference = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference)()
            Me._supportingDocument = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument)()
            Me._previousDocument = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument)()
            Me._packaging = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemPackaging)()
            Me._commodity = New DETPDDConsignmentHouseConsignmentConsignmentItemCommodity()
            Me._additionalSupplyChainActor = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor)()
            Me._consignee = New DETPDDConsignmentHouseConsignmentConsignmentItemConsignee()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property goodsItemNumber() As String
            Get
                Return Me._goodsItemNumber
            End Get
            Set
                Me._goodsItemNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property declarationGoodsItemNumber() As String
            Get
                Return Me._declarationGoodsItemNumber
            End Get
            Set
                Me._declarationGoodsItemNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property declarationType() As String
            Get
                Return Me._declarationType
            End Get
            Set
                Me._declarationType = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property countryOfDispatch() As String
            Get
                Return Me._countryOfDispatch
            End Get
            Set
                Me._countryOfDispatch = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property countryOfDestination() As String
            Get
                Return Me._countryOfDestination
            End Get
            Set
                Me._countryOfDestination = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumberUCR() As String
            Get
                Return Me._referenceNumberUCR
            End Get
            Set
                Me._referenceNumberUCR = Value
            End Set
        End Property

        Public Property Consignee() As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee
            Get
                Return Me._consignee
            End Get
            Set
                Me._consignee = Value
            End Set
        End Property

        <XmlElement("AdditionalSupplyChainActor")>
        Public Property AdditionalSupplyChainActor() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor)
            Get
                Return Me._additionalSupplyChainActor
            End Get
            Set
                Me._additionalSupplyChainActor = Value
            End Set
        End Property

        Public Property Commodity() As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity
            Get
                Return Me._commodity
            End Get
            Set
                Me._commodity = Value
            End Set
        End Property

        <XmlElement("Packaging")>
        Public Property Packaging() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemPackaging)
            Get
                Return Me._packaging
            End Get
            Set
                Me._packaging = Value
            End Set
        End Property

        <XmlElement("PreviousDocument")>
        Public Property PreviousDocument() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument)
            Get
                Return Me._previousDocument
            End Get
            Set
                Me._previousDocument = Value
            End Set
        End Property

        <XmlElement("SupportingDocument")>
        Public Property SupportingDocument() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument)
            Get
                Return Me._supportingDocument
            End Get
            Set
                Me._supportingDocument = Value
            End Set
        End Property

        <XmlElement("AdditionalReference")>
        Public Property AdditionalReference() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference)
            Get
                Return Me._additionalReference
            End Get
            Set
                Me._additionalReference = Value
            End Set
        End Property

        <XmlElement("AdditionalInformation")>
        Public Property AdditionalInformation() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation)
            Get
                Return Me._additionalInformation
            End Get
            Set
                Me._additionalInformation = Value
            End Set
        End Property

        Public Property TransportCharges() As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges
            Get
                Return Me._transportCharges
            End Get
            Set
                Me._transportCharges = Value
            End Set
        End Property

        Public Property ProcedureTransference() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference
            Get
                Return Me._procedureTransference
            End Get
            Set
                Me._procedureTransference = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItem))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItem object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItem object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItem object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItem, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItem)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItem) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItem
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItem)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItem
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItem)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItem object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItem object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItem object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItem, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItem)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItem) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItem
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemConsignee

#Region "Private fields"
        Private _identificationNumber As String

        Private _subsidiaryNumber As String

        Private _name As String

        Private _address As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress

        Private _contactPerson As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._contactPerson = New DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson()
            Me._address = New DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property subsidiaryNumber() As String
            Get
                Return Me._subsidiaryNumber
            End Get
            Set
                Me._subsidiaryNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        Public Property Address() As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress
            Get
                Return Me._address
            End Get
            Set
                Me._address = Value
            End Set
        End Property

        Public Property ContactPerson() As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson
            Get
                Return Me._contactPerson
            End Get
            Set
                Me._contactPerson = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemConsignee))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemConsignee object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemConsignee object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemConsignee object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemConsignee)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemConsignee)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemConsignee)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemConsignee object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemConsignee object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemConsignee object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemConsignee)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemConsignee
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress

#Region "Private fields"
        Private _streetAndNumber As String

        Private _postcode As String

        Private _city As String

        Private _country As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property streetAndNumber() As String
            Get
                Return Me._streetAndNumber
            End Get
            Set
                Me._streetAndNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property postcode() As String
            Get
                Return Me._postcode
            End Get
            Set
                Me._postcode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property city() As String
            Get
                Return Me._city
            End Get
            Set
                Me._city = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property country() As String
            Get
                Return Me._country
            End Get
            Set
                Me._country = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeAddress
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson

#Region "Private fields"
        Private _name As String

        Private _phoneNumber As String

        Private _eMailAddress As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property name() As String
            Get
                Return Me._name
            End Get
            Set
                Me._name = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property phoneNumber() As String
            Get
                Return Me._phoneNumber
            End Get
            Set
                Me._phoneNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property eMailAddress() As String
            Get
                Return Me._eMailAddress
            End Get
            Set
                Me._eMailAddress = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemConsigneeContactPerson
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor

#Region "Private fields"
        Private _sequenceNumber As String

        Private _role As String

        Private _identificationNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property role() As String
            Get
                Return Me._role
            End Get
            Set
                Me._role = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalSupplyChainActor
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemCommodity

#Region "Private fields"
        Private _descriptionOfGoods As String

        Private _cusCode As String

        Private _commodityCode As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode

        Private _dangerousGoods As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods)

        Private _goodsMeasure As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._goodsMeasure = New DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure()
            Me._dangerousGoods = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods)()
            Me._commodityCode = New DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property descriptionOfGoods() As String
            Get
                Return Me._descriptionOfGoods
            End Get
            Set
                Me._descriptionOfGoods = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property cusCode() As String
            Get
                Return Me._cusCode
            End Get
            Set
                Me._cusCode = Value
            End Set
        End Property

        Public Property CommodityCode() As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode
            Get
                Return Me._commodityCode
            End Get
            Set
                Me._commodityCode = Value
            End Set
        End Property

        <XmlElement("DangerousGoods")>
        Public Property DangerousGoods() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods)
            Get
                Return Me._dangerousGoods
            End Get
            Set
                Me._dangerousGoods = Value
            End Set
        End Property

        Public Property GoodsMeasure() As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure
            Get
                Return Me._goodsMeasure
            End Get
            Set
                Me._goodsMeasure = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemCommodity))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemCommodity object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemCommodity object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemCommodity object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemCommodity)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemCommodity)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemCommodity)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemCommodity object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemCommodity object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemCommodity object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemCommodity)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodity
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode

#Region "Private fields"
        Private _harmonizedSystemSubHeadingCode As String

        Private _combinedNomenclatureCode As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property harmonizedSystemSubHeadingCode() As String
            Get
                Return Me._harmonizedSystemSubHeadingCode
            End Get
            Set
                Me._harmonizedSystemSubHeadingCode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property combinedNomenclatureCode() As String
            Get
                Return Me._combinedNomenclatureCode
            End Get
            Set
                Me._combinedNomenclatureCode = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityCommodityCode
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods

#Region "Private fields"
        Private _sequenceNumber As String

        Private _uNNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property UNNumber() As String
            Get
                Return Me._uNNumber
            End Get
            Set
                Me._uNNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityDangerousGoods
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure

#Region "Private fields"
        Private _grossMass As Decimal

        Private _netMass As Decimal

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Property grossMass() As Decimal
            Get
                Return Me._grossMass
            End Get
            Set
                Me._grossMass = Value
            End Set
        End Property

        Public Property netMass() As Decimal
            Get
                Return Me._netMass
            End Get
            Set
                Me._netMass = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemCommodityGoodsMeasure
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemPackaging

#Region "Private fields"
        Private _sequenceNumber As String

        Private _typeOfPackages As String

        Private _numberOfPackages As String

        Private _shippingMarks As String

        Private _packageReference As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._packageReference = New DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property typeOfPackages() As String
            Get
                Return Me._typeOfPackages
            End Get
            Set
                Me._typeOfPackages = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property numberOfPackages() As String
            Get
                Return Me._numberOfPackages
            End Get
            Set
                Me._numberOfPackages = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property shippingMarks() As String
            Get
                Return Me._shippingMarks
            End Get
            Set
                Me._shippingMarks = Value
            End Set
        End Property

        Public Property PackageReference() As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference
            Get
                Return Me._packageReference
            End Get
            Set
                Me._packageReference = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemPackaging))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemPackaging object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemPackaging object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemPackaging object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPackaging, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemPackaging)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPackaging) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemPackaging
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemPackaging)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemPackaging
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemPackaging)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemPackaging object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemPackaging object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemPackaging object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPackaging, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemPackaging)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPackaging) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemPackaging
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference

#Region "Private fields"
        Private _goodsItemNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property goodsItemNumber() As String
            Get
                Return Me._goodsItemNumber
            End Get
            Set
                Me._goodsItemNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemPackagingPackageReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private _goodsItemNumber As String

        Private _complementOfInformation As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property goodsItemNumber() As String
            Get
                Return Me._goodsItemNumber
            End Get
            Set
                Me._goodsItemNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property complementOfInformation() As String
            Get
                Return Me._complementOfInformation
            End Get
            Set
                Me._complementOfInformation = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemPreviousDocument
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private _documentLineItemNumber As String

        Private _complementOfInformation As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property documentLineItemNumber() As String
            Get
                Return Me._documentLineItemNumber
            End Get
            Set
                Me._documentLineItemNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property complementOfInformation() As String
            Get
                Return Me._complementOfInformation
            End Get
            Set
                Me._complementOfInformation = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemSupportingDocument
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference

#Region "Private fields"
        Private _sequenceNumber As String

        Private _type As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation

#Region "Private fields"
        Private _sequenceNumber As String

        Private _code As String

        Private _text As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property code() As String
            Get
                Return Me._code
            End Get
            Set
                Me._code = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property text() As String
            Get
                Return Me._text
            End Get
            Set
                Me._text = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemAdditionalInformation
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges

#Region "Private fields"
        Private _methodOfPayment As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property methodOfPayment() As String
            Get
                Return Me._methodOfPayment
            End Get
            Set
                Me._methodOfPayment = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemTransportCharges
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference

#Region "Private fields"
        Private _summaryDeclaration As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration

        Private _customsWarehousing As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing

        Private _inwardProcessing As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._inwardProcessing = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing()
            Me._customsWarehousing = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing()
            Me._summaryDeclaration = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration()
        End Sub

        Public Property SummaryDeclaration() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration
            Get
                Return Me._summaryDeclaration
            End Get
            Set
                Me._summaryDeclaration = Value
            End Set
        End Property

        Public Property CustomsWarehousing() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing
            Get
                Return Me._customsWarehousing
            End Get
            Set
                Me._customsWarehousing = Value
            End Set
        End Property

        Public Property InwardProcessing() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing
            Get
                Return Me._inwardProcessing
            End Get
            Set
                Me._inwardProcessing = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration

#Region "Private fields"
        Private _identificationType As String

        Private _goodsReference As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference)

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._goodsReference = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference)()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property identificationType() As String
            Get
                Return Me._identificationType
            End Get
            Set
                Me._identificationType = Value
            End Set
        End Property

        <XmlElement("GoodsReference")>
        Public Property GoodsReference() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference)
            Get
                Return Me._goodsReference
            End Get
            Set
                Me._goodsReference = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclaration
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference

#Region "Private fields"
        Private _sequenceNumber As String

        Private _identificationByKey As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey

        Private _identificationByRegistrationNumber As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber

        Private _packaging As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._packaging = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging()
            Me._identificationByRegistrationNumber = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber()
            Me._identificationByKey = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        Public Property IdentificationByKey() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey
            Get
                Return Me._identificationByKey
            End Get
            Set
                Me._identificationByKey = Value
            End Set
        End Property

        Public Property IdentificationByRegistrationNumber() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber
            Get
                Return Me._identificationByRegistrationNumber
            End Get
            Set
                Me._identificationByRegistrationNumber = Value
            End Set
        End Property

        Public Property Packaging() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging
            Get
                Return Me._packaging
            End Get
            Set
                Me._packaging = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey

#Region "Private fields"
        Private _type As String

        Private _referenceNumber As String

        Private _custodian As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._custodian = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Public Property Custodian() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian
            Get
                Return Me._custodian
            End Get
            Set
                Me._custodian = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKey
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian

#Region "Private fields"
        Private _identificationNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property identificationNumber() As String
            Get
                Return Me._identificationNumber
            End Get
            Set
                Me._identificationNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByKeyCustodian
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber

#Region "Private fields"
        Private _mRN As String

        Private _registrationNumber As String

        Private _goodsItemNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property MRN() As String
            Get
                Return Me._mRN
            End Get
            Set
                Me._mRN = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property registrationNumber() As String
            Get
                Return Me._registrationNumber
            End Get
            Set
                Me._registrationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property goodsItemNumber() As String
            Get
                Return Me._goodsItemNumber
            End Get
            Set
                Me._goodsItemNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferenceIdentificationByRegistrationNumber
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging

#Region "Private fields"
        Private _numberOfPackages As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="integer")>
        Public Property numberOfPackages() As String
            Get
                Return Me._numberOfPackages
            End Get
            Set
                Me._numberOfPackages = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceSummaryDeclarationGoodsReferencePackaging
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing

#Region "Private fields"
        Private _lRN As String

        Private _authorisation As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation

        Private _goodsReference As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference)

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._goodsReference = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference)()
            Me._authorisation = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property LRN() As String
            Get
                Return Me._lRN
            End Get
            Set
                Me._lRN = Value
            End Set
        End Property

        Public Property Authorisation() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation
            Get
                Return Me._authorisation
            End Get
            Set
                Me._authorisation = Value
            End Set
        End Property

        <XmlElement("GoodsReference")>
        Public Property GoodsReference() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference)
            Get
                Return Me._goodsReference
            End Get
            Set
                Me._goodsReference = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousing
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation

#Region "Private fields"
        Private _type As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingAuthorisation
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference

#Region "Private fields"
        Private _sequenceNumber As String

        Private _accessViaATLAS As String

        Private _mRN As String

        Private _registrationNumber As String

        Private _goodsItemNumber As String

        Private _usualTreatment As String

        Private _complement As String

        Private _commodity As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._commodity = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property accessViaATLAS() As String
            Get
                Return Me._accessViaATLAS
            End Get
            Set
                Me._accessViaATLAS = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property MRN() As String
            Get
                Return Me._mRN
            End Get
            Set
                Me._mRN = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property registrationNumber() As String
            Get
                Return Me._registrationNumber
            End Get
            Set
                Me._registrationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property goodsItemNumber() As String
            Get
                Return Me._goodsItemNumber
            End Get
            Set
                Me._goodsItemNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property usualTreatment() As String
            Get
                Return Me._usualTreatment
            End Get
            Set
                Me._usualTreatment = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property complement() As String
            Get
                Return Me._complement
            End Get
            Set
                Me._complement = Value
            End Set
        End Property

        Public Property Commodity() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity
            Get
                Return Me._commodity
            End Get
            Set
                Me._commodity = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity

#Region "Private fields"
        Private _commodityCode As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode

        Private _goodsReduction As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction

        Private _goodsReductionAfterTreatment As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._goodsReductionAfterTreatment = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment()
            Me._goodsReduction = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction()
            Me._commodityCode = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode()
        End Sub

        Public Property CommodityCode() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode
            Get
                Return Me._commodityCode
            End Get
            Set
                Me._commodityCode = Value
            End Set
        End Property

        Public Property GoodsReduction() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction
            Get
                Return Me._goodsReduction
            End Get
            Set
                Me._goodsReduction = Value
            End Set
        End Property

        Public Property GoodsReductionAfterTreatment() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment
            Get
                Return Me._goodsReductionAfterTreatment
            End Get
            Set
                Me._goodsReductionAfterTreatment = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodity
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode

#Region "Private fields"
        Private _harmonizedSystemSubHeadingCode As String

        Private _combinedNomenclatureCode As String

        Private _taricCode As String

        Private _nationalAdditionalCode As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._nationalAdditionalCode = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property harmonizedSystemSubHeadingCode() As String
            Get
                Return Me._harmonizedSystemSubHeadingCode
            End Get
            Set
                Me._harmonizedSystemSubHeadingCode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property combinedNomenclatureCode() As String
            Get
                Return Me._combinedNomenclatureCode
            End Get
            Set
                Me._combinedNomenclatureCode = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property taricCode() As String
            Get
                Return Me._taricCode
            End Get
            Set
                Me._taricCode = Value
            End Set
        End Property

        Public Property NationalAdditionalCode() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode
            Get
                Return Me._nationalAdditionalCode
            End Get
            Set
                Me._nationalAdditionalCode = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCode
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode

#Region "Private fields"
        Private _nationalAdditionalCode As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property nationalAdditionalCode() As String
            Get
                Return Me._nationalAdditionalCode
            End Get
            Set
                Me._nationalAdditionalCode = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityCommodityCodeNationalAdditionalCode
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction

#Region "Private fields"
        Private _measurementUnit As String

        Private _qualifier As String

        Private _quantity As Decimal

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property measurementUnit() As String
            Get
                Return Me._measurementUnit
            End Get
            Set
                Me._measurementUnit = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property qualifier() As String
            Get
                Return Me._qualifier
            End Get
            Set
                Me._qualifier = Value
            End Set
        End Property

        Public Property quantity() As Decimal
            Get
                Return Me._quantity
            End Get
            Set
                Me._quantity = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReduction
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment

#Region "Private fields"
        Private _measurementUnit As String

        Private _qualifier As String

        Private _quantity As Decimal

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property measurementUnit() As String
            Get
                Return Me._measurementUnit
            End Get
            Set
                Me._measurementUnit = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property qualifier() As String
            Get
                Return Me._qualifier
            End Get
            Set
                Me._qualifier = Value
            End Set
        End Property

        Public Property quantity() As Decimal
            Get
                Return Me._quantity
            End Get
            Set
                Me._quantity = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceCustomsWarehousingGoodsReferenceCommodityGoodsReductionAfterTreatment
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing

#Region "Private fields"
        Private _simplyGrantedAuthorisation As String

        Private _authorisation As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation

        Private _customsOfficeOfSupervision As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision

        Private _goodsReference As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference)

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._goodsReference = New List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference)()
            Me._customsOfficeOfSupervision = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision()
            Me._authorisation = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation()
        End Sub

        <XmlElement(DataType:="token")>
        Public Property simplyGrantedAuthorisation() As String
            Get
                Return Me._simplyGrantedAuthorisation
            End Get
            Set
                Me._simplyGrantedAuthorisation = Value
            End Set
        End Property

        Public Property Authorisation() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation
            Get
                Return Me._authorisation
            End Get
            Set
                Me._authorisation = Value
            End Set
        End Property

        Public Property CustomsOfficeOfSupervision() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision
            Get
                Return Me._customsOfficeOfSupervision
            End Get
            Set
                Me._customsOfficeOfSupervision = Value
            End Set
        End Property

        <XmlElement("GoodsReference")>
        Public Property GoodsReference() As List(Of DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference)
            Get
                Return Me._goodsReference
            End Get
            Set
                Me._goodsReference = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessing
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation

#Region "Private fields"
        Private _type As String

        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property type() As String
            Get
                Return Me._type
            End Get
            Set
                Me._type = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingAuthorisation
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision

#Region "Private fields"
        Private _referenceNumber As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property referenceNumber() As String
            Get
                Return Me._referenceNumber
            End Get
            Set
                Me._referenceNumber = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingCustomsOfficeOfSupervision
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference

#Region "Private fields"
        Private _sequenceNumber As String

        Private _accessViaATLAS As String

        Private _mRN As String

        Private _registrationNumber As String

        Private _goodsItemNumber As String

        Private _commodity As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity

        Private Shared _serializerXml As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New
            Me._commodity = New DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity()
        End Sub

        <XmlElement(DataType:="integer")>
        Public Property sequenceNumber() As String
            Get
                Return Me._sequenceNumber
            End Get
            Set
                Me._sequenceNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property accessViaATLAS() As String
            Get
                Return Me._accessViaATLAS
            End Get
            Set
                Me._accessViaATLAS = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property MRN() As String
            Get
                Return Me._mRN
            End Get
            Set
                Me._mRN = Value
            End Set
        End Property

        <XmlElement(DataType:="token")>
        Public Property registrationNumber() As String
            Get
                Return Me._registrationNumber
            End Get
            Set
                Me._registrationNumber = Value
            End Set
        End Property

        <XmlElement(DataType:="integer")>
        Public Property goodsItemNumber() As String
            Get
                Return Me._goodsItemNumber
            End Get
            Set
                Me._goodsItemNumber = Value
            End Set
        End Property

        Public Property Commodity() As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity
            Get
                Return Me._commodity
            End Get
            Set
                Me._commodity = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReference
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
     System.Serializable,
     DebuggerStepThrough,
     DesignerCategoryAttribute("code"),
     XmlType(AnonymousType:=True)>
    Partial Public Class DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity

#Region "Private fields"
        Private _goodsRelatedData As String

        Private Shared _serializerXml As XmlSerializer
#End Region

        <XmlElement(DataType:="token")>
        Public Property goodsRelatedData() As String
            Get
                Return Me._goodsRelatedData
            End Get
            Set
                Me._goodsRelatedData = Value
            End Set
        End Property

        Private Shared ReadOnly Property SerializerXml() As XmlSerializer
            Get
                If (_serializerXml Is Nothing) Then
                    _serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity))
                End If
                Return _serializerXml
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serialize DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity object
        ''' </summary>
        ''' <returns>XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As StreamReader = Nothing
            Dim memoryStream As MemoryStream = Nothing
            Try
                memoryStream = New MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
                SerializerXml.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity object
        ''' </summary>
        ''' <param name="input">string to deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity
            Dim stringReader As StringReader = Nothing
            Try
                stringReader = New StringReader(input)
                Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As Stream) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity
            Return CType(SerializerXml.Deserialize(s), DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As StreamWriter = Nothing
            Try
                Dim dataString As String = Serialize()
                Dim outputFile As FileInfo = New FileInfo(fileName)
                streamWriter = outputFile.CreateText
                streamWriter.WriteLine(dataString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity object
        ''' </summary>
        ''' <param name="fileName">File to load and deserialize</param>
        ''' <param name="obj">Output DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DETPDDConsignmentHouseConsignmentConsignmentItemProcedureTransferenceInwardProcessingGoodsReferenceCommodity
            Dim file As FileStream = Nothing
            Dim sr As StreamReader = Nothing
            Try
                file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New StreamReader(file)
                Dim dataString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(dataString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class
End Namespace
#Enable Warning
