o
    ˷eX                     @   s0   d Z ddlmZ ddlmZ G dd deZdS )z
The Automations API endpoint actions

Note: This is a paid feature

Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/automations/
    )unicode_literals)BaseApic                       s0   e Zd ZdZ fddZdd Zdd Z  ZS )AutomationActionsz/
    Actions for the Automations endpoint.
    c                    s&   t t| j|i | d| _d| _dS )z)
        Initialize the endpoint
        automationsN)superr   __init__endpointworkflow_id)selfargskwargs	__class__ \/var/www/ideatree/venv/lib/python3.10/site-packages/mailchimp3/entities/automationactions.pyr      s   
zAutomationActions.__init__c                 C      || _ | jj| |ddS )z
        Pause all emails in a specific Automation workflow.

        :param workflow_id: The unique id for the Automation workflow.
        :type workflow_id: :py:class:`str`
        zactions/pause-all-emailsurlr	   
_mc_client_post_build_pathr
   r	   r   r   r   pause      zAutomationActions.pausec                 C   r   )z
        Start all emails in an Automation workflow.

        :param workflow_id: The unique id for the Automation workflow.
        :type workflow_id: :py:class:`str`
        zactions/start-all-emailsr   r   r   r   r   r   start(   r   zAutomationActions.start)__name__
__module____qualname____doc__r   r   r   __classcell__r   r   r   r   r      s
    
r   N)r   
__future__r   mailchimp3.baseapir   r   r   r   r   r   <module>   s   