
    U}bga                         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e
          Z G 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                   H     e Zd ZdZdedeeef         f fdZdefdZ	 x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                 ~    t                                          |           |                    d          | _        d S )Nresults)super__init__getr   )selfr   r   	__class__s      u/home/e360mart.nyusoft.in/public_html/e360mart_env/lib/python3.11/site-packages/twilio/rest/numbers/v1/eligibility.pyr   zEligibilityInstance.__init__   s2    !!!:A++i:P:P    returnc                     dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z'<Twilio.Numbers.V1.EligibilityInstance> r   s    r   __repr__zEligibilityInstance.__repr__!   s
     98r   )__name__
__module____qualname____doc__r   r   strr   r   r   __classcell__r   s   @r   r   r      s         Q Q$sCx. Q Q Q Q Q Q
9# 9 9 9 9 9 9 9 9r   r   c                        e Zd Zdef fdZej        fdeeef         de	fdZ
ej        fdeeef         de	fdZdefdZ xZS )EligibilityListr   c                 X    t                                          |           d| _        dS )zm
        Initialize the EligibilityList

        :param version: Version that contains the resource

        z/HostedNumber/EligibilityN)r   r   _uri)r   r   r   s     r   r   zEligibilityList.__init__-   s(     	!!!/			r   bodyr   c                     |                                 }ddi}| j                            d| j        ||          }t	          | j        |          S )zy
        Create the EligibilityInstance

        :param body:

        :returns: The created EligibilityInstance
        Content-Typeapplication/jsonPOSTmethoduridataheaders)to_dict_versioncreater)   r   r   r*   r2   r3   r   s        r   r6   zEligibilityList.create8   sW     ||~~!#56-&&tytW ' 
 
 #4=':::r   c                    K   |                                 }ddi}| j                            d| j        ||           d{V }t	          | j        |          S )z
        Asynchronously create the EligibilityInstance

        :param body:

        :returns: The created EligibilityInstance
        r,   r-   r.   r/   N)r4   r5   create_asyncr)   r   r7   s        r   r9   zEligibilityList.create_asyncI   sy       ||~~!#5622tytW 3 
 
 
 
 
 
 
 
 #4=':::r   c                     dS )r   z#<Twilio.Numbers.V1.EligibilityList>r   r   s    r   r   zEligibilityList.__repr__]   s
     54r   )r   r    r!   r   r   r   unsetr   objectr   r6   r9   r#   r   r$   r%   s   @r   r'   r'   +   s        	0 	0 	0 	0 	0 	0 	0 4:< ; ;50 ;DW ; ; ; ;$ -3L; ;&&.);	; ; ; ;(5# 5 5 5 5 5 5 5 5r   r'   N)r"   typingr   r   r   r   r   twilio.baser   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r'   r   r   r   <module>rB      s     4 3 3 3 3 3 3 3 3 3 3 3 3 3       : : : : : : 2 2 2 2 2 2 ' ' ' ' ' '9 9 9 9 9* 9 9 9(85 85 85 85 85l 85 85 85 85 85r   