o
    ÚtBhþ  ã                   @   s   G d d„ de ƒZdS )c                   @   s@   e Zd ZdZdZdZdZdZdZdZ	e
dd	„ ƒZe
d
d„ ƒZdS )ÚHttpMethodEnumzÇEnumeration of an HTTP Method

    Attributes:
        GET: A GET Request
        POST: A POST Request
        PUT: A PUT Request
        PATCH: A PATCH Request
        DELETE: A DELETE Request

    ÚGETÚPOSTÚPUTÚPATCHÚDELETEÚHEADc                 C   s.   t t| ƒ ¡ ƒD ]\}}||kr|  S qdS )z5Returns the string equivalent for the Enum.

        N)ÚlistÚvarsÚitems)ÚclsÚvalÚkÚv© r   ús/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/square/http/http_method_enum.pyÚ	to_string   s
   ÿÿzHttpMethodEnum.to_stringc                 C   s   t | | ¡ dƒS )z>Creates an instance of the Enum from a given string.

        N)ÚgetattrÚupper)r   Ústrr   r   r   Úfrom_string&   s   zHttpMethodEnum.from_stringN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   Úclassmethodr   r   r   r   r   r   r      s    
r   N)Úobjectr   r   r   r   r   Ú<module>   s   