from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.type_key_element_2 import TypeKeyElement2

__NAMESPACE__ = "http://www.travelport.com/schema/uprofile_v37_0"


@dataclass
class TypePolicyReferenceHistory2(TypeKeyElement2):
    """
    History Element for Accounting Reference.

    Parameters
    ----------
    type_value
        A code used to reference a traveler's policy. Valid values are
        Travelport Universal Policy and Other.
    value
        The number or alphanumeric code for an employer reference.
    controlling_profile_id
        A list of policies are created in a parent of a traveler, then one
        of those is applied to the traveler. This profileID is to contain
        the ID of the Parent who has the list of policies
    priority_order
        Priority order associated with this AccountingReference.
    desc
        An optional description.
    """
    class Meta:
        name = "typePolicyReferenceHistory"

    type_value: None | str = field(
        default=None,
        metadata={
            "name": "Type",
            "type": "Attribute",
        }
    )
    value: None | str = field(
        default=None,
        metadata={
            "name": "Value",
            "type": "Attribute",
            "min_length": 1,
            "max_length": 255,
        }
    )
    controlling_profile_id: None | int = field(
        default=None,
        metadata={
            "name": "ControllingProfileID",
            "type": "Attribute",
        }
    )
    priority_order: None | int = field(
        default=None,
        metadata={
            "name": "PriorityOrder",
            "type": "Attribute",
            "min_inclusive": 1,
            "max_inclusive": 99,
        }
    )
    desc: None | str = field(
        default=None,
        metadata={
            "name": "Desc",
            "type": "Attribute",
            "min_length": 1,
            "max_length": 255,
        }
    )

4a9f2da16638bd16fcd90f403e6464f843bb3396
<mask token>


@dataclass
class TypePolicyReferenceHistory2(TypeKeyElement2):
    <mask token>


    class Meta:
        name = 'typePolicyReferenceHistory'
    type_value: None | str = field(default=None, metadata={'name': 'Type',
        'type': 'Attribute'})
    value: None | str = field(default=None, metadata={'name': 'Value',
        'type': 'Attribute', 'min_length': 1, 'max_length': 255})
    controlling_profile_id: None | int = field(default=None, metadata={
        'name': 'ControllingProfileID', 'type': 'Attribute'})
    priority_order: None | int = field(default=None, metadata={'name':
        'PriorityOrder', 'type': 'Attribute', 'min_inclusive': 1,
        'max_inclusive': 99})
    desc: None | str = field(default=None, metadata={'name': 'Desc', 'type':
        'Attribute', 'min_length': 1, 'max_length': 255})

<mask token>


@dataclass
class TypePolicyReferenceHistory2(TypeKeyElement2):
    """
    History Element for Accounting Reference.

    Parameters
    ----------
    type_value
        A code used to reference a traveler's policy. Valid values are
        Travelport Universal Policy and Other.
    value
        The number or alphanumeric code for an employer reference.
    controlling_profile_id
        A list of policies are created in a parent of a traveler, then one
        of those is applied to the traveler. This profileID is to contain
        the ID of the Parent who has the list of policies
    priority_order
        Priority order associated with this AccountingReference.
    desc
        An optional description.
    """


    class Meta:
        name = 'typePolicyReferenceHistory'
    type_value: None | str = field(default=None, metadata={'name': 'Type',
        'type': 'Attribute'})
    value: None | str = field(default=None, metadata={'name': 'Value',
        'type': 'Attribute', 'min_length': 1, 'max_length': 255})
    controlling_profile_id: None | int = field(default=None, metadata={
        'name': 'ControllingProfileID', 'type': 'Attribute'})
    priority_order: None | int = field(default=None, metadata={'name':
        'PriorityOrder', 'type': 'Attribute', 'min_inclusive': 1,
        'max_inclusive': 99})
    desc: None | str = field(default=None, metadata={'name': 'Desc', 'type':
        'Attribute', 'min_length': 1, 'max_length': 255})

<mask token>
__NAMESPACE__ = 'http://www.travelport.com/schema/uprofile_v37_0'


@dataclass
class TypePolicyReferenceHistory2(TypeKeyElement2):
    """
    History Element for Accounting Reference.

    Parameters
    ----------
    type_value
        A code used to reference a traveler's policy. Valid values are
        Travelport Universal Policy and Other.
    value
        The number or alphanumeric code for an employer reference.
    controlling_profile_id
        A list of policies are created in a parent of a traveler, then one
        of those is applied to the traveler. This profileID is to contain
        the ID of the Parent who has the list of policies
    priority_order
        Priority order associated with this AccountingReference.
    desc
        An optional description.
    """


    class Meta:
        name = 'typePolicyReferenceHistory'
    type_value: None | str = field(default=None, metadata={'name': 'Type',
        'type': 'Attribute'})
    value: None | str = field(default=None, metadata={'name': 'Value',
        'type': 'Attribute', 'min_length': 1, 'max_length': 255})
    controlling_profile_id: None | int = field(default=None, metadata={
        'name': 'ControllingProfileID', 'type': 'Attribute'})
    priority_order: None | int = field(default=None, metadata={'name':
        'PriorityOrder', 'type': 'Attribute', 'min_inclusive': 1,
        'max_inclusive': 99})
    desc: None | str = field(default=None, metadata={'name': 'Desc', 'type':
        'Attribute', 'min_length': 1, 'max_length': 255})

from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.type_key_element_2 import TypeKeyElement2
__NAMESPACE__ = 'http://www.travelport.com/schema/uprofile_v37_0'


@dataclass
class TypePolicyReferenceHistory2(TypeKeyElement2):
    """
    History Element for Accounting Reference.

    Parameters
    ----------
    type_value
        A code used to reference a traveler's policy. Valid values are
        Travelport Universal Policy and Other.
    value
        The number or alphanumeric code for an employer reference.
    controlling_profile_id
        A list of policies are created in a parent of a traveler, then one
        of those is applied to the traveler. This profileID is to contain
        the ID of the Parent who has the list of policies
    priority_order
        Priority order associated with this AccountingReference.
    desc
        An optional description.
    """


    class Meta:
        name = 'typePolicyReferenceHistory'
    type_value: None | str = field(default=None, metadata={'name': 'Type',
        'type': 'Attribute'})
    value: None | str = field(default=None, metadata={'name': 'Value',
        'type': 'Attribute', 'min_length': 1, 'max_length': 255})
    controlling_profile_id: None | int = field(default=None, metadata={
        'name': 'ControllingProfileID', 'type': 'Attribute'})
    priority_order: None | int = field(default=None, metadata={'name':
        'PriorityOrder', 'type': 'Attribute', 'min_inclusive': 1,
        'max_inclusive': 99})
    desc: None | str = field(default=None, metadata={'name': 'Desc', 'type':
        'Attribute', 'min_length': 1, 'max_length': 255})

from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.type_key_element_2 import TypeKeyElement2

__NAMESPACE__ = "http://www.travelport.com/schema/uprofile_v37_0"


@dataclass
class TypePolicyReferenceHistory2(TypeKeyElement2):
    """
    History Element for Accounting Reference.

    Parameters
    ----------
    type_value
        A code used to reference a traveler's policy. Valid values are
        Travelport Universal Policy and Other.
    value
        The number or alphanumeric code for an employer reference.
    controlling_profile_id
        A list of policies are created in a parent of a traveler, then one
        of those is applied to the traveler. This profileID is to contain
        the ID of the Parent who has the list of policies
    priority_order
        Priority order associated with this AccountingReference.
    desc
        An optional description.
    """
    class Meta:
        name = "typePolicyReferenceHistory"

    type_value: None | str = field(
        default=None,
        metadata={
            "name": "Type",
            "type": "Attribute",
        }
    )
    value: None | str = field(
        default=None,
        metadata={
            "name": "Value",
            "type": "Attribute",
            "min_length": 1,
            "max_length": 255,
        }
    )
    controlling_profile_id: None | int = field(
        default=None,
        metadata={
            "name": "ControllingProfileID",
            "type": "Attribute",
        }
    )
    priority_order: None | int = field(
        default=None,
        metadata={
            "name": "PriorityOrder",
            "type": "Attribute",
            "min_inclusive": 1,
            "max_inclusive": 99,
        }
    )
    desc: None | str = field(
        default=None,
        metadata={
            "name": "Desc",
            "type": "Attribute",
            "min_length": 1,
            "max_length": 255,
        }
    )
