Module mailslurp_client.models.agent_automation_event_dto

MailSlurp API

MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - Homepage - Get an API KEY - Generated SDK Clients - Examples repository # noqa: E501

The version of the OpenAPI document: 6.5.2 Contact: contact@mailslurp.dev Generated by: https://openapi-generator.tech

Classes

class AgentAutomationEventDto (event_id=None, type=None, schema_version=None, occurred_at=None, published_at=None, conversation_id=None, inbox_id=None, email_id=None, conversation_version=None, phone_number_id=None, sms_id=None, sent_sms_id=None, source_type=None, source_id=None, local_vars_configuration=None)

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

AgentAutomationEventDto - a model defined in OpenAPI

Expand source code
class AgentAutomationEventDto(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {
        'event_id': 'str',
        'type': 'str',
        'schema_version': 'int',
        'occurred_at': 'datetime',
        'published_at': 'datetime',
        'conversation_id': 'str',
        'inbox_id': 'str',
        'email_id': 'str',
        'conversation_version': 'int',
        'phone_number_id': 'str',
        'sms_id': 'str',
        'sent_sms_id': 'str',
        'source_type': 'str',
        'source_id': 'str'
    }

    attribute_map = {
        'event_id': 'eventId',
        'type': 'type',
        'schema_version': 'schemaVersion',
        'occurred_at': 'occurredAt',
        'published_at': 'publishedAt',
        'conversation_id': 'conversationId',
        'inbox_id': 'inboxId',
        'email_id': 'emailId',
        'conversation_version': 'conversationVersion',
        'phone_number_id': 'phoneNumberId',
        'sms_id': 'smsId',
        'sent_sms_id': 'sentSmsId',
        'source_type': 'sourceType',
        'source_id': 'sourceId'
    }

    def __init__(self, event_id=None, type=None, schema_version=None, occurred_at=None, published_at=None, conversation_id=None, inbox_id=None, email_id=None, conversation_version=None, phone_number_id=None, sms_id=None, sent_sms_id=None, source_type=None, source_id=None, local_vars_configuration=None):  # noqa: E501
        """AgentAutomationEventDto - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._event_id = None
        self._type = None
        self._schema_version = None
        self._occurred_at = None
        self._published_at = None
        self._conversation_id = None
        self._inbox_id = None
        self._email_id = None
        self._conversation_version = None
        self._phone_number_id = None
        self._sms_id = None
        self._sent_sms_id = None
        self._source_type = None
        self._source_id = None
        self.discriminator = None

        self.event_id = event_id
        self.type = type
        self.schema_version = schema_version
        self.occurred_at = occurred_at
        self.published_at = published_at
        self.conversation_id = conversation_id
        self.inbox_id = inbox_id
        self.email_id = email_id
        self.conversation_version = conversation_version
        self.phone_number_id = phone_number_id
        self.sms_id = sms_id
        self.sent_sms_id = sent_sms_id
        self.source_type = source_type
        self.source_id = source_id

    @property
    def event_id(self):
        """Gets the event_id of this AgentAutomationEventDto.  # noqa: E501


        :return: The event_id of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._event_id

    @event_id.setter
    def event_id(self, event_id):
        """Sets the event_id of this AgentAutomationEventDto.


        :param event_id: The event_id of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and event_id is None:  # noqa: E501
            raise ValueError("Invalid value for `event_id`, must not be `None`")  # noqa: E501

        self._event_id = event_id

    @property
    def type(self):
        """Gets the type of this AgentAutomationEventDto.  # noqa: E501


        :return: The type of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this AgentAutomationEventDto.


        :param type: The type of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and type is None:  # noqa: E501
            raise ValueError("Invalid value for `type`, must not be `None`")  # noqa: E501
        allowed_values = ["EMAIL_RECEIVED", "EMAIL_SENT", "SMS_RECEIVED", "SMS_SENT", "CONVERSATION_CLAIMED", "CONVERSATION_CLAIM_RELEASED", "CONVERSATION_NOTE_ADDED", "CONVERSATION_REVIEW_REQUESTED", "CONVERSATION_REVIEW_DECIDED", "CONVERSATION_RESOLVED", "CONVERSATION_REOPENED", "AGENT_REPLY_COMPLETED", "AGENT_SMS_SENT", "AGENT_SMS_REPLY_COMPLETED", "AGENT_DRAFT_CREATED", "AGENT_DRAFT_SENT", "AGENT_ACTION_FAILED"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and type not in allowed_values:  # noqa: E501
            raise ValueError(
                "Invalid value for `type` ({0}), must be one of {1}"  # noqa: E501
                .format(type, allowed_values)
            )

        self._type = type

    @property
    def schema_version(self):
        """Gets the schema_version of this AgentAutomationEventDto.  # noqa: E501


        :return: The schema_version of this AgentAutomationEventDto.  # noqa: E501
        :rtype: int
        """
        return self._schema_version

    @schema_version.setter
    def schema_version(self, schema_version):
        """Sets the schema_version of this AgentAutomationEventDto.


        :param schema_version: The schema_version of this AgentAutomationEventDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and schema_version is None:  # noqa: E501
            raise ValueError("Invalid value for `schema_version`, must not be `None`")  # noqa: E501

        self._schema_version = schema_version

    @property
    def occurred_at(self):
        """Gets the occurred_at of this AgentAutomationEventDto.  # noqa: E501


        :return: The occurred_at of this AgentAutomationEventDto.  # noqa: E501
        :rtype: datetime
        """
        return self._occurred_at

    @occurred_at.setter
    def occurred_at(self, occurred_at):
        """Sets the occurred_at of this AgentAutomationEventDto.


        :param occurred_at: The occurred_at of this AgentAutomationEventDto.  # noqa: E501
        :type: datetime
        """
        if self.local_vars_configuration.client_side_validation and occurred_at is None:  # noqa: E501
            raise ValueError("Invalid value for `occurred_at`, must not be `None`")  # noqa: E501

        self._occurred_at = occurred_at

    @property
    def published_at(self):
        """Gets the published_at of this AgentAutomationEventDto.  # noqa: E501


        :return: The published_at of this AgentAutomationEventDto.  # noqa: E501
        :rtype: datetime
        """
        return self._published_at

    @published_at.setter
    def published_at(self, published_at):
        """Sets the published_at of this AgentAutomationEventDto.


        :param published_at: The published_at of this AgentAutomationEventDto.  # noqa: E501
        :type: datetime
        """
        if self.local_vars_configuration.client_side_validation and published_at is None:  # noqa: E501
            raise ValueError("Invalid value for `published_at`, must not be `None`")  # noqa: E501

        self._published_at = published_at

    @property
    def conversation_id(self):
        """Gets the conversation_id of this AgentAutomationEventDto.  # noqa: E501


        :return: The conversation_id of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._conversation_id

    @conversation_id.setter
    def conversation_id(self, conversation_id):
        """Sets the conversation_id of this AgentAutomationEventDto.


        :param conversation_id: The conversation_id of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """

        self._conversation_id = conversation_id

    @property
    def inbox_id(self):
        """Gets the inbox_id of this AgentAutomationEventDto.  # noqa: E501


        :return: The inbox_id of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._inbox_id

    @inbox_id.setter
    def inbox_id(self, inbox_id):
        """Sets the inbox_id of this AgentAutomationEventDto.


        :param inbox_id: The inbox_id of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """

        self._inbox_id = inbox_id

    @property
    def email_id(self):
        """Gets the email_id of this AgentAutomationEventDto.  # noqa: E501


        :return: The email_id of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._email_id

    @email_id.setter
    def email_id(self, email_id):
        """Sets the email_id of this AgentAutomationEventDto.


        :param email_id: The email_id of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """

        self._email_id = email_id

    @property
    def conversation_version(self):
        """Gets the conversation_version of this AgentAutomationEventDto.  # noqa: E501


        :return: The conversation_version of this AgentAutomationEventDto.  # noqa: E501
        :rtype: int
        """
        return self._conversation_version

    @conversation_version.setter
    def conversation_version(self, conversation_version):
        """Sets the conversation_version of this AgentAutomationEventDto.


        :param conversation_version: The conversation_version of this AgentAutomationEventDto.  # noqa: E501
        :type: int
        """

        self._conversation_version = conversation_version

    @property
    def phone_number_id(self):
        """Gets the phone_number_id of this AgentAutomationEventDto.  # noqa: E501


        :return: The phone_number_id of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._phone_number_id

    @phone_number_id.setter
    def phone_number_id(self, phone_number_id):
        """Sets the phone_number_id of this AgentAutomationEventDto.


        :param phone_number_id: The phone_number_id of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """

        self._phone_number_id = phone_number_id

    @property
    def sms_id(self):
        """Gets the sms_id of this AgentAutomationEventDto.  # noqa: E501


        :return: The sms_id of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._sms_id

    @sms_id.setter
    def sms_id(self, sms_id):
        """Sets the sms_id of this AgentAutomationEventDto.


        :param sms_id: The sms_id of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """

        self._sms_id = sms_id

    @property
    def sent_sms_id(self):
        """Gets the sent_sms_id of this AgentAutomationEventDto.  # noqa: E501


        :return: The sent_sms_id of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._sent_sms_id

    @sent_sms_id.setter
    def sent_sms_id(self, sent_sms_id):
        """Sets the sent_sms_id of this AgentAutomationEventDto.


        :param sent_sms_id: The sent_sms_id of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """

        self._sent_sms_id = sent_sms_id

    @property
    def source_type(self):
        """Gets the source_type of this AgentAutomationEventDto.  # noqa: E501


        :return: The source_type of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._source_type

    @source_type.setter
    def source_type(self, source_type):
        """Sets the source_type of this AgentAutomationEventDto.


        :param source_type: The source_type of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """

        self._source_type = source_type

    @property
    def source_id(self):
        """Gets the source_id of this AgentAutomationEventDto.  # noqa: E501


        :return: The source_id of this AgentAutomationEventDto.  # noqa: E501
        :rtype: str
        """
        return self._source_id

    @source_id.setter
    def source_id(self, source_id):
        """Sets the source_id of this AgentAutomationEventDto.


        :param source_id: The source_id of this AgentAutomationEventDto.  # noqa: E501
        :type: str
        """

        self._source_id = source_id

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, AgentAutomationEventDto):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, AgentAutomationEventDto):
            return True

        return self.to_dict() != other.to_dict()

Class variables

var attribute_map
var openapi_types

Instance variables

prop conversation_id

Gets the conversation_id of this AgentAutomationEventDto. # noqa: E501

:return: The conversation_id of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def conversation_id(self):
    """Gets the conversation_id of this AgentAutomationEventDto.  # noqa: E501


    :return: The conversation_id of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._conversation_id
prop conversation_version

Gets the conversation_version of this AgentAutomationEventDto. # noqa: E501

:return: The conversation_version of this AgentAutomationEventDto. # noqa: E501 :rtype: int

Expand source code
@property
def conversation_version(self):
    """Gets the conversation_version of this AgentAutomationEventDto.  # noqa: E501


    :return: The conversation_version of this AgentAutomationEventDto.  # noqa: E501
    :rtype: int
    """
    return self._conversation_version
prop email_id

Gets the email_id of this AgentAutomationEventDto. # noqa: E501

:return: The email_id of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def email_id(self):
    """Gets the email_id of this AgentAutomationEventDto.  # noqa: E501


    :return: The email_id of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._email_id
prop event_id

Gets the event_id of this AgentAutomationEventDto. # noqa: E501

:return: The event_id of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def event_id(self):
    """Gets the event_id of this AgentAutomationEventDto.  # noqa: E501


    :return: The event_id of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._event_id
prop inbox_id

Gets the inbox_id of this AgentAutomationEventDto. # noqa: E501

:return: The inbox_id of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def inbox_id(self):
    """Gets the inbox_id of this AgentAutomationEventDto.  # noqa: E501


    :return: The inbox_id of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._inbox_id
prop occurred_at

Gets the occurred_at of this AgentAutomationEventDto. # noqa: E501

:return: The occurred_at of this AgentAutomationEventDto. # noqa: E501 :rtype: datetime

Expand source code
@property
def occurred_at(self):
    """Gets the occurred_at of this AgentAutomationEventDto.  # noqa: E501


    :return: The occurred_at of this AgentAutomationEventDto.  # noqa: E501
    :rtype: datetime
    """
    return self._occurred_at
prop phone_number_id

Gets the phone_number_id of this AgentAutomationEventDto. # noqa: E501

:return: The phone_number_id of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def phone_number_id(self):
    """Gets the phone_number_id of this AgentAutomationEventDto.  # noqa: E501


    :return: The phone_number_id of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._phone_number_id
prop published_at

Gets the published_at of this AgentAutomationEventDto. # noqa: E501

:return: The published_at of this AgentAutomationEventDto. # noqa: E501 :rtype: datetime

Expand source code
@property
def published_at(self):
    """Gets the published_at of this AgentAutomationEventDto.  # noqa: E501


    :return: The published_at of this AgentAutomationEventDto.  # noqa: E501
    :rtype: datetime
    """
    return self._published_at
prop schema_version

Gets the schema_version of this AgentAutomationEventDto. # noqa: E501

:return: The schema_version of this AgentAutomationEventDto. # noqa: E501 :rtype: int

Expand source code
@property
def schema_version(self):
    """Gets the schema_version of this AgentAutomationEventDto.  # noqa: E501


    :return: The schema_version of this AgentAutomationEventDto.  # noqa: E501
    :rtype: int
    """
    return self._schema_version
prop sent_sms_id

Gets the sent_sms_id of this AgentAutomationEventDto. # noqa: E501

:return: The sent_sms_id of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def sent_sms_id(self):
    """Gets the sent_sms_id of this AgentAutomationEventDto.  # noqa: E501


    :return: The sent_sms_id of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._sent_sms_id
prop sms_id

Gets the sms_id of this AgentAutomationEventDto. # noqa: E501

:return: The sms_id of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def sms_id(self):
    """Gets the sms_id of this AgentAutomationEventDto.  # noqa: E501


    :return: The sms_id of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._sms_id
prop source_id

Gets the source_id of this AgentAutomationEventDto. # noqa: E501

:return: The source_id of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def source_id(self):
    """Gets the source_id of this AgentAutomationEventDto.  # noqa: E501


    :return: The source_id of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._source_id
prop source_type

Gets the source_type of this AgentAutomationEventDto. # noqa: E501

:return: The source_type of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def source_type(self):
    """Gets the source_type of this AgentAutomationEventDto.  # noqa: E501


    :return: The source_type of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._source_type
prop type

Gets the type of this AgentAutomationEventDto. # noqa: E501

:return: The type of this AgentAutomationEventDto. # noqa: E501 :rtype: str

Expand source code
@property
def type(self):
    """Gets the type of this AgentAutomationEventDto.  # noqa: E501


    :return: The type of this AgentAutomationEventDto.  # noqa: E501
    :rtype: str
    """
    return self._type

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model