o
    ˷e                     @   s0   d Z ddlmZ ddlmZ G dd deZdS )z
The Automation Emails endpoint

Note: This is a paid feature

Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/automations/emails/
    )unicode_literals)BaseApic                       s8   e Zd ZdZ fddZdd Zdd Zdd	 Z  ZS )
AutomationEmailActionsz=
    Manage individual emails in an Automation workflow.
    c                    s,   t t| j|i | d| _d| _d| _dS )z)
        Initialize the endpoint
        automationsN)superr   __init__endpointworkflow_idemail_id)selfargskwargs	__class__ a/var/www/ideatree/venv/lib/python3.10/site-packages/mailchimp3/entities/automationemailactions.pyr      s   
zAutomationEmailActions.__init__c                 C   &   || _ || _| jj| |d|ddS )a  
        Pause an automated email.

        :param workflow_id: The unique id for the Automation workflow.
        :type workflow_id: :py:class:`str`
        :param email_id: The unique id for the Automation workflow email.
        :type email_id: :py:class:`str`
        emailszactions/pauseurlr	   r
   
_mc_client_post_build_pathr   r	   r
   r   r   r   pause      	zAutomationEmailActions.pausec                 C   r   )a  
        Start an automated email.

        :param workflow_id: The unique id for the Automation workflow.
        :type workflow_id: :py:class:`str`
        :param email_id: The unique id for the Automation workflow email.
        :type email_id: :py:class:`str`
        r   zactions/startr   r   r   r   r   r   start,   r   zAutomationEmailActions.startc                 C   s$   || _ || _| jj| |d|dS )a'  
        Removes an individual Automation workflow email.

        :param workflow_id: The unique id for the Automation workflow.
        :type workflow_id: :py:class:`str`
        :param email_id: The unique id for the Automation workflow email.
        :type email_id: :py:class:`str`
        r   r   )r	   r
   r   _deleter   r   r   r   r   delete:   s   
zAutomationEmailActions.delete)	__name__
__module____qualname____doc__r   r   r   r   __classcell__r   r   r   r   r      s    r   N)r#   
__future__r   mailchimp3.baseapir   r   r   r   r   r   <module>   s   