################################################## 
# CDPBilling_serviceagent_services_types.py 
# generated by ZSI.generate.wsdl2python
##################################################


import ZSI
import ZSI.TCcompound
from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED


#===== ns1 =====================================================================

##############################
# targetNamespace
# http://www.auspost.com.au/ESB/schema/ESBTypes
##############################

class ns1:
    targetNamespace = "http://www.auspost.com.au/ESB/schema/ESBTypes"

    class Description_Def(ZSI.TC.String, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "Description")
        def __init__(self, pname, **kw):
            ZSI.TC.String.__init__(self, pname, pyclass=None, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class ESBAlert_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "ESBAlert")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.ESBAlert_Def.schema
            TClist = [self.__class__.SupportGroup_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.SupportCategory_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.SupportType_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.SupportItem_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.AlertMsg_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.SendEmail_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.EmailAddress_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.SendPage_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.PagerNo_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.RaiseCase_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.CasePriority_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._SupportGroup = None
                    self._SupportCategory = None
                    self._SupportType = None
                    self._SupportItem = None
                    self._AlertMsg = None
                    self._SendEmail = None
                    self._EmailAddress = None
                    self._SendPage = None
                    self._PagerNo = None
                    self._RaiseCase = None
                    self._CasePriority = None
                    return
            Holder.__name__ = "ESBAlert_Holder"
            self.pyclass = Holder


        class SupportGroup_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "SupportGroup"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SupportGroup")
                kw["aname"] = "_SupportGroup"
                ZSI.TC.String.__init__(self, **kw)





        class SupportCategory_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "SupportCategory"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SupportCategory")
                kw["aname"] = "_SupportCategory"
                ZSI.TC.String.__init__(self, **kw)





        class SupportType_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "SupportType"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SupportType")
                kw["aname"] = "_SupportType"
                ZSI.TC.String.__init__(self, **kw)





        class SupportItem_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "SupportItem"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SupportItem")
                kw["aname"] = "_SupportItem"
                ZSI.TC.String.__init__(self, **kw)





        class AlertMsg_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "AlertMsg"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","AlertMsg")
                kw["aname"] = "_AlertMsg"
                ZSI.TC.String.__init__(self, **kw)





        class SendEmail_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "SendEmail"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SendEmail")
                kw["aname"] = "_SendEmail"
                ZSI.TC.String.__init__(self, **kw)





        class EmailAddress_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "EmailAddress"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","EmailAddress")
                kw["aname"] = "_EmailAddress"
                ZSI.TC.String.__init__(self, **kw)





        class SendPage_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "SendPage"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SendPage")
                kw["aname"] = "_SendPage"
                ZSI.TC.String.__init__(self, **kw)





        class PagerNo_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "PagerNo"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","PagerNo")
                kw["aname"] = "_PagerNo"
                ZSI.TC.String.__init__(self, **kw)





        class RaiseCase_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "RaiseCase"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","RaiseCase")
                kw["aname"] = "_RaiseCase"
                ZSI.TC.String.__init__(self, **kw)





        class CasePriority_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "CasePriority"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","CasePriority")
                kw["aname"] = "_CasePriority"
                ZSI.TC.String.__init__(self, **kw)




    class ESBEvent_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "ESBEvent")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.ESBEvent_Def.schema
            TClist = [GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBJobID",lazy=False)(pname=(ns,"ESBJobID"), aname="_ESBJobID", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), self.__class__.ESBJobType_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.BusinessRefID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","EventType",lazy=False)(pname=(ns,"EventType"), aname="_EventType", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"EventDt"), aname="_EventDt", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","Description",lazy=False)(pname=(ns,"EventDescription"), aname="_EventDescription", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBJobControl",lazy=False)(pname=(ns,"ESBJobControl"), aname="_ESBJobControl", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","JobStatus",lazy=False)(pname=(ns,"ESBJobStatus"), aname="_ESBJobStatus", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","TargetComponent",lazy=False)(pname=(ns,"TargetComponent"), aname="_TargetComponent", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","LogRole",lazy=False)(pname=(ns,"LogRole"), aname="_LogRole", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","EventData",lazy=False)(pname=(ns,"EventData"), aname="_EventData", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._ESBJobID = None
                    self._ESBJobType = None
                    self._BusinessRefID = None
                    self._EventType = None
                    self._EventDt = None
                    self._EventDescription = None
                    self._ESBJobControl = None
                    self._ESBJobStatus = None
                    self._TargetComponent = None
                    self._LogRole = None
                    self._EventData = None
                    return
            Holder.__name__ = "ESBEvent_Holder"
            self.pyclass = Holder


        class ESBJobType_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "ESBJobType"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBJobType")
                kw["aname"] = "_ESBJobType"
                ZSI.TC.String.__init__(self, **kw)





        class BusinessRefID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "BusinessRefID"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","BusinessRefID")
                kw["aname"] = "_BusinessRefID"
                ZSI.TC.String.__init__(self, **kw)




    class ESBException_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "ESBException")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.ESBException_Def.schema
            TClist = [self.__class__.ExceptionCategory_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.ExceptionType_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.ExceptionCode_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","Description",lazy=False)(pname=(ns,"ExceptionDescription"), aname="_ExceptionDescription", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.AnyType(pname=(ns,"ExceptionOtherData"), aname="_ExceptionOtherData", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBAlert",lazy=False)(pname=(ns,"ESBAlert"), aname="_ESBAlert", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._ExceptionCategory = None
                    self._ExceptionType = None
                    self._ExceptionCode = None
                    self._ExceptionDescription = None
                    self._ExceptionOtherData = None
                    self._ESBAlert = None
                    return
            Holder.__name__ = "ESBException_Holder"
            self.pyclass = Holder


        class ExceptionCategory_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "ExceptionCategory"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ExceptionCategory")
                kw["aname"] = "_ExceptionCategory"
                ZSI.TC.String.__init__(self, **kw)





        class ExceptionType_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "ExceptionType"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ExceptionType")
                kw["aname"] = "_ExceptionType"
                ZSI.TC.String.__init__(self, **kw)





        class ExceptionCode_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "ExceptionCode"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ExceptionCode")
                kw["aname"] = "_ExceptionCode"
                ZSI.TC.String.__init__(self, **kw)




    class ESBJobControl_Def(ZSI.TC.String, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "ESBJobControl")
        def __init__(self, pname, **kw):
            ZSI.TC.String.__init__(self, pname, pyclass=None, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class ESBJobID_Def(ZSI.TC.String, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "ESBJobID")
        def __init__(self, pname, **kw):
            ZSI.TC.String.__init__(self, pname, pyclass=None, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class ESBRoleControl_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "ESBRoleControl")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.ESBRoleControl_Def.schema
            TClist = [GED("http://www.auspost.com.au/ESB/schema/ESBTypes","SvcRoles",lazy=False, isref=True)(minOccurs=0, maxOccurs="unbounded", nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._SvcRoles = None
                    return
            Holder.__name__ = "ESBRoleControl_Holder"
            self.pyclass = Holder

    class ESBSOAPException_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "ESBSOAPException")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.ESBSOAPException_Def.schema
            TClist = [GED("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBSvcHeader",lazy=False, isref=True)(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), GED("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBException",lazy=False, isref=True)(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._ESBSvcHeader = None
                    self._ESBException = None
                    return
            Holder.__name__ = "ESBSOAPException_Holder"
            self.pyclass = Holder

    class ESBSvcHeader_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "ESBSvcHeader")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.ESBSvcHeader_Def.schema
            TClist = [self.__class__.SvcName_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.SvcVersion_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"RequestDt"), aname="_RequestDt", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","RequestorInfo",lazy=False)(pname=(ns,"RequestorInfo"), aname="_RequestorInfo", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","Tracking",lazy=False)(pname=(ns,"Tracking"), aname="_Tracking", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._SvcName = None
                    self._SvcVersion = None
                    self._RequestDt = None
                    self._RequestorInfo = None
                    self._Tracking = None
                    return
            Holder.__name__ = "ESBSvcHeader_Holder"
            self.pyclass = Holder


        class SvcName_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "SvcName"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SvcName")
                kw["aname"] = "_SvcName"
                ZSI.TC.String.__init__(self, **kw)





        class SvcVersion_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "SvcVersion"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SvcVersion")
                kw["aname"] = "_SvcVersion"
                ZSI.TC.String.__init__(self, **kw)




    class EventData_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "EventData")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.EventData_Def.schema
            TClist = [GED("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBException",lazy=False, isref=True)(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), ZSI.TC.AnyType(pname=(ns,"EventOtherData"), aname="_EventOtherData", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._ESBException = None
                    self._EventOtherData = None
                    return
            Holder.__name__ = "EventData_Holder"
            self.pyclass = Holder

    class EventType_Def(ZSI.TC.String, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "EventType")
        def __init__(self, pname, **kw):
            ZSI.TC.String.__init__(self, pname, pyclass=None, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class JobStatus_Def(ZSI.TC.String, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "JobStatus")
        def __init__(self, pname, **kw):
            ZSI.TC.String.__init__(self, pname, pyclass=None, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class LogRole_Def(ZSI.TC.String, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "LogRole")
        def __init__(self, pname, **kw):
            ZSI.TC.String.__init__(self, pname, pyclass=None, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class RequestorInfo_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "RequestorInfo")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.RequestorInfo_Def.schema
            TClist = [self.__class__.ComponentID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.ComponentName_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.ComponentVersion_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.ComponentOwner_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.RequestorIdentity_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._ComponentID = None
                    self._ComponentName = None
                    self._ComponentVersion = None
                    self._ComponentOwner = None
                    self._RequestorIdentity = None
                    return
            Holder.__name__ = "RequestorInfo_Holder"
            self.pyclass = Holder


        class ComponentID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "ComponentID"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ComponentID")
                kw["aname"] = "_ComponentID"
                ZSI.TC.String.__init__(self, **kw)





        class ComponentName_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "ComponentName"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ComponentName")
                kw["aname"] = "_ComponentName"
                ZSI.TC.String.__init__(self, **kw)





        class ComponentVersion_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "ComponentVersion"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ComponentVersion")
                kw["aname"] = "_ComponentVersion"
                ZSI.TC.String.__init__(self, **kw)





        class ComponentOwner_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "ComponentOwner"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ComponentOwner")
                kw["aname"] = "_ComponentOwner"
                ZSI.TC.String.__init__(self, **kw)





        class RequestorIdentity_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "RequestorIdentity"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","RequestorIdentity")
                kw["aname"] = "_RequestorIdentity"
                ZSI.TC.String.__init__(self, **kw)




    class RoleControl_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "RoleControl")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.RoleControl_Def.schema
            TClist = [GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","RoleName",lazy=False)(pname=(ns,"RoleName"), aname="_RoleName", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","RoleSink",lazy=False)(pname=(ns,"RoleSink"), aname="_RoleSink", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._RoleName = None
                    self._RoleSink = None
                    return
            Holder.__name__ = "RoleControl_Holder"
            self.pyclass = Holder

    class RoleName_Def(ZSI.TC.String, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "RoleName")
        def __init__(self, pname, **kw):
            ZSI.TC.String.__init__(self, pname, pyclass=None, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class RoleSink_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "RoleSink")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.RoleSink_Def.schema
            TClist = [ZSI.TC.Boolean(pname=(ns,"SinkIsEnabled"), aname="_SinkIsEnabled", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","SinkType",lazy=False)(pname=(ns,"SinkType"), aname="_SinkType", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"LogFilename"), aname="_LogFilename", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._SinkIsEnabled = None
                    self._SinkType = None
                    self._LogFilename = None
                    return
            Holder.__name__ = "RoleSink_Holder"
            self.pyclass = Holder

    class SinkType_Def(ZSI.TC.String, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "SinkType")
        def __init__(self, pname, **kw):
            ZSI.TC.String.__init__(self, pname, pyclass=None, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class SvcRoles_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "SvcRoles")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.SvcRoles_Def.schema
            TClist = [ZSI.TC.String(pname=(ns,"SvcName"), aname="_SvcName", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","RoleControl",lazy=False)(pname=(ns,"RoleControl"), aname="_RoleControl", minOccurs=1, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._SvcName = None
                    self._RoleControl = []
                    return
            Holder.__name__ = "SvcRoles_Holder"
            self.pyclass = Holder

    class TargetComponent_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "TargetComponent")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.TargetComponent_Def.schema
            TClist = [self.__class__.TargetName_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.TargetOperation_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.TargetEndPointRef_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._TargetName = None
                    self._TargetOperation = None
                    self._TargetEndPointRef = None
                    return
            Holder.__name__ = "TargetComponent_Holder"
            self.pyclass = Holder


        class TargetName_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "TargetName"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","TargetName")
                kw["aname"] = "_TargetName"
                ZSI.TC.String.__init__(self, **kw)





        class TargetOperation_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "TargetOperation"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","TargetOperation")
                kw["aname"] = "_TargetOperation"
                ZSI.TC.String.__init__(self, **kw)





        class TargetEndPointRef_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "TargetEndPointRef"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","TargetEndPointRef")
                kw["aname"] = "_TargetEndPointRef"
                ZSI.TC.String.__init__(self, **kw)




    class Tracking_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "Tracking")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.Tracking_Def.schema
            TClist = [GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBJobID",lazy=False)(pname=(ns,"ESBJobID"), aname="_ESBJobID", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","JobStatus",lazy=False)(pname=(ns,"ESBLatestJobStatus"), aname="_ESBLatestJobStatus", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), self.__class__.BusinessRefID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.TrackingEvents_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._ESBJobID = None
                    self._ESBLatestJobStatus = None
                    self._BusinessRefID = None
                    self._TrackingEvents = None
                    return
            Holder.__name__ = "Tracking_Holder"
            self.pyclass = Holder


        class BusinessRefID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "BusinessRefID"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","BusinessRefID")
                kw["aname"] = "_BusinessRefID"
                ZSI.TC.String.__init__(self, **kw)





        class TrackingEvents_Dec(ZSI.TCcompound.ComplexType, LocalElementDeclaration):
            literal = "TrackingEvents"
            schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
            def __init__(self, **kw):
                ns = ns1.Tracking_Def.TrackingEvents_Dec.schema
                TClist = [GED("http://www.auspost.com.au/ESB/schema/ESBTypes","TrackingEvent",lazy=False, isref=True)(minOccurs=0, maxOccurs="unbounded", nillable=False, encoded=kw.get("encoded"))]
                kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","TrackingEvents")
                kw["aname"] = "_TrackingEvents"
                self.attribute_typecode_dict = {}
                ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
                class Holder:
                    typecode = self
                    def __init__(self):
                        # pyclass
                        self._TrackingEvent = None
                        return
                Holder.__name__ = "TrackingEvents_Holder"
                self.pyclass = Holder




    class TrackingEvent_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        type = (schema, "TrackingEvent")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns1.TrackingEvent_Def.schema
            TClist = [GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","EventType",lazy=False)(pname=(ns,"EventType"), aname="_EventType", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"EventDt"), aname="_EventDt", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","Description",lazy=False)(pname=(ns,"EventDescription"), aname="_EventDescription", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBJobControl",lazy=False)(pname=(ns,"ESBJobControl"), aname="_ESBJobControl", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","JobStatus",lazy=False)(pname=(ns,"ESBJobStatus"), aname="_ESBJobStatus", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","TargetComponent",lazy=False)(pname=(ns,"TargetComponent"), aname="_TargetComponent", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/ESB/schema/ESBTypes","LogRole",lazy=False)(pname=(ns,"LogRole"), aname="_LogRole", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._EventType = None
                    self._EventDt = None
                    self._EventDescription = None
                    self._ESBJobControl = None
                    self._ESBJobStatus = None
                    self._TargetComponent = None
                    self._LogRole = None
                    return
            Holder.__name__ = "TrackingEvent_Holder"
            self.pyclass = Holder

    class ESBEvent_Dec(ElementDeclaration):
        literal = "ESBEvent"
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBEvent")
            kw["aname"] = "_ESBEvent"
            if ns1.ESBEvent_Def not in ns1.ESBEvent_Dec.__bases__:
                bases = list(ns1.ESBEvent_Dec.__bases__)
                bases.insert(0, ns1.ESBEvent_Def)
                ns1.ESBEvent_Dec.__bases__ = tuple(bases)

            ns1.ESBEvent_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "ESBEvent_Dec_Holder"

    class ESBException_Dec(ElementDeclaration):
        literal = "ESBException"
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBException")
            kw["aname"] = "_ESBException"
            if ns1.ESBException_Def not in ns1.ESBException_Dec.__bases__:
                bases = list(ns1.ESBException_Dec.__bases__)
                bases.insert(0, ns1.ESBException_Def)
                ns1.ESBException_Dec.__bases__ = tuple(bases)

            ns1.ESBException_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "ESBException_Dec_Holder"

    class ESBRoleControl_Dec(ElementDeclaration):
        literal = "ESBRoleControl"
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBRoleControl")
            kw["aname"] = "_ESBRoleControl"
            if ns1.ESBRoleControl_Def not in ns1.ESBRoleControl_Dec.__bases__:
                bases = list(ns1.ESBRoleControl_Dec.__bases__)
                bases.insert(0, ns1.ESBRoleControl_Def)
                ns1.ESBRoleControl_Dec.__bases__ = tuple(bases)

            ns1.ESBRoleControl_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "ESBRoleControl_Dec_Holder"

    class ESBSOAPException_Dec(ElementDeclaration):
        literal = "ESBSOAPException"
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBSOAPException")
            kw["aname"] = "_ESBSOAPException"
            if ns1.ESBSOAPException_Def not in ns1.ESBSOAPException_Dec.__bases__:
                bases = list(ns1.ESBSOAPException_Dec.__bases__)
                bases.insert(0, ns1.ESBSOAPException_Def)
                ns1.ESBSOAPException_Dec.__bases__ = tuple(bases)

            ns1.ESBSOAPException_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "ESBSOAPException_Dec_Holder"

    class ESBSvcHeader_Dec(ElementDeclaration):
        literal = "ESBSvcHeader"
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","ESBSvcHeader")
            kw["aname"] = "_ESBSvcHeader"
            if ns1.ESBSvcHeader_Def not in ns1.ESBSvcHeader_Dec.__bases__:
                bases = list(ns1.ESBSvcHeader_Dec.__bases__)
                bases.insert(0, ns1.ESBSvcHeader_Def)
                ns1.ESBSvcHeader_Dec.__bases__ = tuple(bases)

            ns1.ESBSvcHeader_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "ESBSvcHeader_Dec_Holder"

    class SvcRoles_Dec(ElementDeclaration):
        literal = "SvcRoles"
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","SvcRoles")
            kw["aname"] = "_SvcRoles"
            if ns1.SvcRoles_Def not in ns1.SvcRoles_Dec.__bases__:
                bases = list(ns1.SvcRoles_Dec.__bases__)
                bases.insert(0, ns1.SvcRoles_Def)
                ns1.SvcRoles_Dec.__bases__ = tuple(bases)

            ns1.SvcRoles_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "SvcRoles_Dec_Holder"

    class TrackingEvent_Dec(ElementDeclaration):
        literal = "TrackingEvent"
        schema = "http://www.auspost.com.au/ESB/schema/ESBTypes"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/ESB/schema/ESBTypes","TrackingEvent")
            kw["aname"] = "_TrackingEvent"
            if ns1.TrackingEvent_Def not in ns1.TrackingEvent_Dec.__bases__:
                bases = list(ns1.TrackingEvent_Dec.__bases__)
                bases.insert(0, ns1.TrackingEvent_Def)
                ns1.TrackingEvent_Dec.__bases__ = tuple(bases)

            ns1.TrackingEvent_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "TrackingEvent_Dec_Holder"

#-------------------------------------------------------------------------------
# end class ns1 (tns: http://www.auspost.com.au/ESB/schema/ESBTypes)
#-------------------------------------------------------------------------------



#===== ns0 =====================================================================

################################################################################
# targetNamespace
# http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling
################################################################################

class ns0:
    targetNamespace = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"

    class Address_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "Address")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Address_Def.schema
            TClist = [self.__class__.address1_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.address2_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.address3_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.suburb_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.postcode_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.state_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.country_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._address1 = None
                    self._address2 = None
                    self._address3 = None
                    self._suburb = None
                    self._postcode = None
                    self._state = None
                    self._country = None
                    return
            Holder.__name__ = "Address_Holder"
            self.pyclass = Holder


        class address1_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "address1"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","address1")
                kw["aname"] = "_address1"
                ZSI.TC.String.__init__(self, **kw)





        class address2_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "address2"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","address2")
                kw["aname"] = "_address2"
                ZSI.TC.String.__init__(self, **kw)





        class address3_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "address3"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","address3")
                kw["aname"] = "_address3"
                ZSI.TC.String.__init__(self, **kw)





        class suburb_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "suburb"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","suburb")
                kw["aname"] = "_suburb"
                ZSI.TC.String.__init__(self, **kw)





        class postcode_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "postcode"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","postcode")
                kw["aname"] = "_postcode"
                ZSI.TC.String.__init__(self, **kw)





        class state_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "state"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","state")
                kw["aname"] = "_state"
                ZSI.TC.String.__init__(self, **kw)





        class country_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "country"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","country")
                kw["aname"] = "_country"
                ZSI.TC.String.__init__(self, **kw)




    class BillingResponse_Def(ZSI.TC.String, TypeDefinition):
        # ComplexType/SimpleContent derivation of built-in type
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "BillingResponse")
        def __init__(self, pname, **kw):
            if getattr(self, "attribute_typecode_dict", None) is None: self.attribute_typecode_dict = {}
            ZSI.TC.String.__init__(self, pname, **kw)
            class Holder(str):
                typecode = self
            self.pyclass = Holder

    class CDPBilling_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "CDPBilling")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.CDPBilling_Def.schema
            TClist = [self.__class__.cdpID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.consortiumID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.sourceSystemID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.sequenceID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.notificationEmail_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Customer",lazy=False)(pname=(ns,"Customer"), aname="_Customer", minOccurs=1, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._cdpID = None
                    self._consortiumID = None
                    self._sourceSystemID = None
                    self._sequenceID = None
                    self._notificationEmail = None
                    self._Customer = []
                    return
            Holder.__name__ = "CDPBilling_Holder"
            self.pyclass = Holder


        class cdpID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "cdpID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","cdpID")
                kw["aname"] = "_cdpID"
                ZSI.TC.String.__init__(self, **kw)





        class consortiumID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "consortiumID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","consortiumID")
                kw["aname"] = "_consortiumID"
                ZSI.TC.String.__init__(self, **kw)





        class sourceSystemID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "sourceSystemID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","sourceSystemID")
                kw["aname"] = "_sourceSystemID"
                ZSI.TC.String.__init__(self, **kw)





        class sequenceID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "sequenceID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","sequenceID")
                kw["aname"] = "_sequenceID"
                ZSI.TC.String.__init__(self, **kw)





        class notificationEmail_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "notificationEmail"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","notificationEmail")
                kw["aname"] = "_notificationEmail"
                ZSI.TC.String.__init__(self, **kw)




    class Charge_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "Charge")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Charge_Def.schema
            TClist = [self.__class__.transactionID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.transactionType_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.chargeRef_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.chargeType_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.chargeCode_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.chargeCodeDesc_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.priceCharged_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.taxCode_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.discountCode_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.parentTransactionID_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._transactionID = None
                    self._transactionType = None
                    self._chargeRef = None
                    self._chargeType = None
                    self._chargeCode = None
                    self._chargeCodeDesc = None
                    self._priceCharged = None
                    self._taxCode = None
                    self._discountCode = None
                    self._parentTransactionID = None
                    return
            Holder.__name__ = "Charge_Holder"
            self.pyclass = Holder


        class transactionID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "transactionID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","transactionID")
                kw["aname"] = "_transactionID"
                ZSI.TC.String.__init__(self, **kw)





        class transactionType_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "transactionType"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","transactionType")
                kw["aname"] = "_transactionType"
                ZSI.TC.String.__init__(self, **kw)





        class chargeRef_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "chargeRef"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","chargeRef")
                kw["aname"] = "_chargeRef"
                ZSI.TC.String.__init__(self, **kw)





        class chargeType_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "chargeType"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","chargeType")
                kw["aname"] = "_chargeType"
                ZSI.TC.String.__init__(self, **kw)





        class chargeCode_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "chargeCode"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","chargeCode")
                kw["aname"] = "_chargeCode"
                ZSI.TC.String.__init__(self, **kw)





        class chargeCodeDesc_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "chargeCodeDesc"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","chargeCodeDesc")
                kw["aname"] = "_chargeCodeDesc"
                ZSI.TC.String.__init__(self, **kw)





        class priceCharged_Dec(ZSI.TC.Decimal, LocalElementDeclaration):
            literal = "priceCharged"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","priceCharged")
                kw["aname"] = "_priceCharged"
                ZSI.TC.Decimal.__init__(self, **kw)





        class taxCode_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "taxCode"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","taxCode")
                kw["aname"] = "_taxCode"
                ZSI.TC.String.__init__(self, **kw)





        class discountCode_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "discountCode"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","discountCode")
                kw["aname"] = "_discountCode"
                ZSI.TC.String.__init__(self, **kw)





        class parentTransactionID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "parentTransactionID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","parentTransactionID")
                kw["aname"] = "_parentTransactionID"
                ZSI.TC.String.__init__(self, **kw)




    class Customer_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "Customer")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Customer_Def.schema
            TClist = [self.__class__.apAccountNumber_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.cdpAccountNumber_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.cdpCustomerID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.cdpCustomerName_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Order",lazy=False)(pname=(ns,"Order"), aname="_Order", minOccurs=1, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._apAccountNumber = None
                    self._cdpAccountNumber = None
                    self._cdpCustomerID = None
                    self._cdpCustomerName = None
                    self._Order = []
                    return
            Holder.__name__ = "Customer_Holder"
            self.pyclass = Holder


        class apAccountNumber_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "apAccountNumber"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","apAccountNumber")
                kw["aname"] = "_apAccountNumber"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)





        class cdpAccountNumber_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "cdpAccountNumber"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","cdpAccountNumber")
                kw["aname"] = "_cdpAccountNumber"
                ZSI.TC.String.__init__(self, **kw)





        class cdpCustomerID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "cdpCustomerID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","cdpCustomerID")
                kw["aname"] = "_cdpCustomerID"
                ZSI.TC.String.__init__(self, **kw)





        class cdpCustomerName_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "cdpCustomerName"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","cdpCustomerName")
                kw["aname"] = "_cdpCustomerName"
                ZSI.TC.String.__init__(self, **kw)




    class CustomerReference_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "CustomerReference")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.CustomerReference_Def.schema
            TClist = [self.__class__.customerCostCentre_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.otherCustomerRef_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.otherCustomerRefDesc_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._customerCostCentre = None
                    self._otherCustomerRef = None
                    self._otherCustomerRefDesc = None
                    return
            Holder.__name__ = "CustomerReference_Holder"
            self.pyclass = Holder


        class customerCostCentre_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "customerCostCentre"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","customerCostCentre")
                kw["aname"] = "_customerCostCentre"
                ZSI.TC.String.__init__(self, **kw)





        class otherCustomerRef_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "otherCustomerRef"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","otherCustomerRef")
                kw["aname"] = "_otherCustomerRef"
                ZSI.TC.String.__init__(self, **kw)





        class otherCustomerRefDesc_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "otherCustomerRefDesc"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","otherCustomerRefDesc")
                kw["aname"] = "_otherCustomerRefDesc"
                ZSI.TC.String.__init__(self, **kw)




    class Dimension_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "Dimension")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Dimension_Def.schema
            TClist = [self.__class__.height_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.length_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.width_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._height = None
                    self._length = None
                    self._width = None
                    return
            Holder.__name__ = "Dimension_Holder"
            self.pyclass = Holder


        class height_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "height"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","height")
                kw["aname"] = "_height"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)





        class length_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "length"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","length")
                kw["aname"] = "_length"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)





        class width_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "width"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","width")
                kw["aname"] = "_width"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)




    class Order_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "Order")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Order_Def.schema
            TClist = [self.__class__.orderID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.orderStatus_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"orderDateTime"), aname="_orderDateTime", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"readyDateTime"), aname="_readyDateTime", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"invoiceDateTime"), aname="_invoiceDateTime", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), self.__class__.numberOfItems_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.workCentreID_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","CustomerReference",lazy=False)(pname=(ns,"CustomerReference"), aname="_CustomerReference", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","OrderReference",lazy=False)(pname=(ns,"OrderReference"), aname="_OrderReference", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Address",lazy=False)(pname=(ns,"PickUpAddress"), aname="_PickUpAddress", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Address",lazy=False)(pname=(ns,"DeliveryAddress"), aname="_DeliveryAddress", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Weight",lazy=False)(pname=(ns,"Weight"), aname="_Weight", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Dimension",lazy=False)(pname=(ns,"Dimension"), aname="_Dimension", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Performance",lazy=False)(pname=(ns,"Performance"), aname="_Performance", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Service",lazy=False)(pname=(ns,"Service"), aname="_Service", minOccurs=1, maxOccurs=99, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._orderID = None
                    self._orderStatus = None
                    self._orderDateTime = None
                    self._readyDateTime = None
                    self._invoiceDateTime = None
                    self._numberOfItems = None
                    self._workCentreID = None
                    self._CustomerReference = None
                    self._OrderReference = None
                    self._PickUpAddress = None
                    self._DeliveryAddress = None
                    self._Weight = None
                    self._Dimension = None
                    self._Performance = None
                    self._Service = []
                    return
            Holder.__name__ = "Order_Holder"
            self.pyclass = Holder


        class orderID_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderID")
                kw["aname"] = "_orderID"
                ZSI.TC.String.__init__(self, **kw)





        class orderStatus_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderStatus"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderStatus")
                kw["aname"] = "_orderStatus"
                ZSI.TC.String.__init__(self, **kw)





        class numberOfItems_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "numberOfItems"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","numberOfItems")
                kw["aname"] = "_numberOfItems"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)





        class workCentreID_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "workCentreID"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","workCentreID")
                kw["aname"] = "_workCentreID"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)




    class OrderReference_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "OrderReference")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.OrderReference_Def.schema
            TClist = [self.__class__.orderRef1_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.orderRef1Desc_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.orderRef2_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.orderRef2Desc_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.orderRef3_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.orderRef3Desc_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.orderRef4_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.orderRef4Desc_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._orderRef1 = None
                    self._orderRef1Desc = None
                    self._orderRef2 = None
                    self._orderRef2Desc = None
                    self._orderRef3 = None
                    self._orderRef3Desc = None
                    self._orderRef4 = None
                    self._orderRef4Desc = None
                    return
            Holder.__name__ = "OrderReference_Holder"
            self.pyclass = Holder


        class orderRef1_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderRef1"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderRef1")
                kw["aname"] = "_orderRef1"
                ZSI.TC.String.__init__(self, **kw)





        class orderRef1Desc_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderRef1Desc"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderRef1Desc")
                kw["aname"] = "_orderRef1Desc"
                ZSI.TC.String.__init__(self, **kw)





        class orderRef2_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderRef2"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderRef2")
                kw["aname"] = "_orderRef2"
                ZSI.TC.String.__init__(self, **kw)





        class orderRef2Desc_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderRef2Desc"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderRef2Desc")
                kw["aname"] = "_orderRef2Desc"
                ZSI.TC.String.__init__(self, **kw)





        class orderRef3_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderRef3"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderRef3")
                kw["aname"] = "_orderRef3"
                ZSI.TC.String.__init__(self, **kw)





        class orderRef3Desc_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderRef3Desc"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderRef3Desc")
                kw["aname"] = "_orderRef3Desc"
                ZSI.TC.String.__init__(self, **kw)





        class orderRef4_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderRef4"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderRef4")
                kw["aname"] = "_orderRef4"
                ZSI.TC.String.__init__(self, **kw)





        class orderRef4Desc_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "orderRef4Desc"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","orderRef4Desc")
                kw["aname"] = "_orderRef4Desc"
                ZSI.TC.String.__init__(self, **kw)




    class Performance_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "Performance")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Performance_Def.schema
            TClist = [ZSI.TCtimes.gDateTime(pname=(ns,"schedPickUpDateTime"), aname="_schedPickUpDateTime", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname=(ns,"pickupSignatureRequired"), aname="_pickupSignatureRequired", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname=(ns,"pickupSignatureReceived"), aname="_pickupSignatureReceived", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"actualPickUpDateTime"), aname="_actualPickUpDateTime", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname=(ns,"latePickUpIndicator"), aname="_latePickUpIndicator", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), self.__class__.pickUpTimeliness_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"schedDeliveryDateTime"), aname="_schedDeliveryDateTime", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname=(ns,"deliverySignatureRequired"), aname="_deliverySignatureRequired", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname=(ns,"deliverySignatureReceived"), aname="_deliverySignatureReceived", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCtimes.gDateTime(pname=(ns,"actualDeliveryDateTime"), aname="_actualDeliveryDateTime", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname=(ns,"lateDeliveryIndicator"), aname="_lateDeliveryIndicator", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), self.__class__.deliveryTimeliness_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._schedPickUpDateTime = None
                    self._pickupSignatureRequired = None
                    self._pickupSignatureReceived = None
                    self._actualPickUpDateTime = None
                    self._latePickUpIndicator = None
                    self._pickUpTimeliness = None
                    self._schedDeliveryDateTime = None
                    self._deliverySignatureRequired = None
                    self._deliverySignatureReceived = None
                    self._actualDeliveryDateTime = None
                    self._lateDeliveryIndicator = None
                    self._deliveryTimeliness = None
                    return
            Holder.__name__ = "Performance_Holder"
            self.pyclass = Holder


        class pickUpTimeliness_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "pickUpTimeliness"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","pickUpTimeliness")
                kw["aname"] = "_pickUpTimeliness"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)





        class deliveryTimeliness_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "deliveryTimeliness"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","deliveryTimeliness")
                kw["aname"] = "_deliveryTimeliness"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)




    class Service_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "Service")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Service_Def.schema
            TClist = [self.__class__.serviceType_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.serviceArea_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.serviceCodeSet_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.serviceCode_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.serviceDesc_Dec(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.apProductCode_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.deliveryDistance_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), GTD("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","Charge",lazy=False)(pname=(ns,"Charge"), aname="_Charge", minOccurs=1, maxOccurs=99, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._serviceType = None
                    self._serviceArea = None
                    self._serviceCodeSet = None
                    self._serviceCode = None
                    self._serviceDesc = None
                    self._apProductCode = None
                    self._deliveryDistance = None
                    self._Charge = []
                    return
            Holder.__name__ = "Service_Holder"
            self.pyclass = Holder


        class serviceType_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "serviceType"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","serviceType")
                kw["aname"] = "_serviceType"
                ZSI.TC.String.__init__(self, **kw)





        class serviceArea_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "serviceArea"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","serviceArea")
                kw["aname"] = "_serviceArea"
                ZSI.TC.String.__init__(self, **kw)





        class serviceCodeSet_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "serviceCodeSet"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","serviceCodeSet")
                kw["aname"] = "_serviceCodeSet"
                ZSI.TC.String.__init__(self, **kw)





        class serviceCode_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "serviceCode"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","serviceCode")
                kw["aname"] = "_serviceCode"
                ZSI.TC.String.__init__(self, **kw)





        class serviceDesc_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "serviceDesc"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","serviceDesc")
                kw["aname"] = "_serviceDesc"
                ZSI.TC.String.__init__(self, **kw)





        class apProductCode_Dec(ZSI.TC.String, LocalElementDeclaration):
            literal = "apProductCode"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","apProductCode")
                kw["aname"] = "_apProductCode"
                ZSI.TC.String.__init__(self, **kw)





        class deliveryDistance_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "deliveryDistance"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","deliveryDistance")
                kw["aname"] = "_deliveryDistance"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)




    class Weight_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        type = (schema, "Weight")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Weight_Def.schema
            TClist = [self.__class__.entryWeight_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.cubedWeight_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), self.__class__.actualWeight_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._entryWeight = None
                    self._cubedWeight = None
                    self._actualWeight = None
                    return
            Holder.__name__ = "Weight_Holder"
            self.pyclass = Holder


        class entryWeight_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "entryWeight"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","entryWeight")
                kw["aname"] = "_entryWeight"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)





        class cubedWeight_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "cubedWeight"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","cubedWeight")
                kw["aname"] = "_cubedWeight"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)





        class actualWeight_Dec(ZSI.TCnumbers.Iinteger, LocalElementDeclaration):
            literal = "actualWeight"
            schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
            def __init__(self, **kw):
                kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","actualWeight")
                kw["aname"] = "_actualWeight"
                ZSI.TCnumbers.Iinteger.__init__(self, **kw)




    class BillingResponse_Dec(ElementDeclaration):
        literal = "BillingResponse"
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","BillingResponse")
            kw["aname"] = "_BillingResponse"
            if ns0.BillingResponse_Def not in ns0.BillingResponse_Dec.__bases__:
                bases = list(ns0.BillingResponse_Dec.__bases__)
                bases.insert(0, ns0.BillingResponse_Def)
                ns0.BillingResponse_Dec.__bases__ = tuple(bases)

            ns0.BillingResponse_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "BillingResponse_Dec_Holder"

    class CDPBilling_Dec(ElementDeclaration):
        literal = "CDPBilling"
        schema = "http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling"
        def __init__(self, **kw):
            kw["pname"] = ("http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling","CDPBilling")
            kw["aname"] = "_CDPBilling"
            if ns0.CDPBilling_Def not in ns0.CDPBilling_Dec.__bases__:
                bases = list(ns0.CDPBilling_Dec.__bases__)
                bases.insert(0, ns0.CDPBilling_Def)
                ns0.CDPBilling_Dec.__bases__ = tuple(bases)

            ns0.CDPBilling_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "CDPBilling_Dec_Holder"

#-------------------------------------------------------------------------------------------------
# end class ns0 (tns: http://www.auspost.com.au/schema/Services/MailParcelSvcs/Deliver/CDPBilling)
#-------------------------------------------------------------------------------------------------


