U
    k7g                     @   st   d Z ddlmZmZmZmZmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZ G dd de
ZG d	d
 d
eZdS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Numbers
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )AnyDictListOptionalUnion)values)InstanceResource)ListResource)Versionc                       s>   e Zd ZdZeeeef d fddZedddZ	  Z
S )EligibilityInstanceu  
    :ivar results: The result set that contains the eligibility check response for the requested number, each result has at least the following attributes:  phone_number: The requested phone number ,hosting_account_sid: The account sid where the phone number will be hosted, date_last_checked: Datetime (ISO 8601) when the PN was last checked for eligibility, country: Phone number’s country, eligibility_status: Indicates the eligibility status of the PN (Eligible/Ineligible), eligibility_sub_status: Indicates the sub status of the eligibility , ineligibility_reason: Reason for number's ineligibility (if applicable), next_step: Suggested next step in the hosting process based on the eligibility status.
    )versionpayloadc                    s   t  | |d| _d S )Nresults)super__init__getr   )selfr   r   	__class__ F/tmp/pip-unpacked-wheel-qtbjxrb6/twilio/rest/numbers/v1/eligibility.pyr      s    zEligibilityInstance.__init__returnc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z'<Twilio.Numbers.V1.EligibilityInstance>r   r   r   r   r   __repr__!   s    zEligibilityInstance.__repr__)__name__
__module____qualname____doc__r
   r   strr   r   r   __classcell__r   r   r   r   r      s   r   c                       sl   e Zd Zed fddZejfeeef e	dddZ
ejfeeef e	dddZed	d
dZ  ZS )EligibilityList)r   c                    s   t  | d| _dS )zm
        Initialize the EligibilityList

        :param version: Version that contains the resource

        z/HostedNumber/EligibilityN)r   r   _uri)r   r   r   r   r   r   -   s    zEligibilityList.__init__)bodyr   c                 C   s@   |  }tddi}d|d< | jjd| j||d}t| j|S )zy
        Create the EligibilityInstance

        :param body:

        :returns: The created EligibilityInstance
        Content-Type!application/x-www-form-urlencodedapplication/jsonPOSTmethoduridataheaders)to_dictr   of_versioncreater#   r   r   r$   r,   r-   r   r   r   r   r1   8   s       zEligibilityList.createc                    sF   |  }tddi}d|d< | jjd| j||dI dH }t| j|S )z
        Asynchronously create the EligibilityInstance

        :param body:

        :returns: The created EligibilityInstance
        r%   r&   r'   r(   r)   N)r.   r   r/   r0   create_asyncr#   r   r2   r   r   r   r3   K   s    
   zEligibilityList.create_asyncr   c                 C   s   dS )r   z#<Twilio.Numbers.V1.EligibilityList>r   r   r   r   r   r   `   s    zEligibilityList.__repr__)r   r   r   r
   r   r   Zunsetr   objectr   r1   r3   r    r   r!   r   r   r   r   r"   +   s   
r"   N)r   typingr   r   r   r   r   Ztwilio.baser   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer	   Ztwilio.base.versionr
   r   r"   r   r   r   r   <module>   s   