
    pif                         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y)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                   B     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                 P    t         |   |       |j                  d      | _        y )Nresults)super__init__getr   )selfr   r   	__class__s      d/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/numbers/v1/eligibility.pyr   zEligibilityInstance.__init__   s     !:A++i:P    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z'<Twilio.Numbers.V1.EligibilityInstance> r   s    r   __repr__zEligibilityInstance.__repr__!   s     9r   )__name__
__module____qualname____doc__r   r   strr   r   r   __classcell__r   s   @r   r   r      s2    Q Q$sCx. Q
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                 2    t         |   |       d| _        y)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                     |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||      }t        | j                  |      S )zy
        Create the EligibilityInstance

        :param body:

        :returns: The created EligibilityInstance
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)to_dictr   of_versioncreater)   r   r   r*   r4   r5   r   s        r   r9   zEligibilityList.create8   sp     ||~))^-PQR"4.--&&tyytW ' 
 #4=='::r   c                    K   |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   }t        | j                  |      S 7 w)z
        Asynchronously create the EligibilityInstance

        :param body:

        :returns: The created EligibilityInstance
        r,   r-   r.   r/   r0   r1   N)r6   r   r7   r8   create_asyncr)   r   r:   s        r   r<   zEligibilityList.create_asyncN   s~      ||~))^-PQR"4.22tyytW 3 
 
 #4=='::	
s   AA= A;!A=c                      y)r   z#<Twilio.Numbers.V1.EligibilityList>r   r   s    r   r   zEligibilityList.__repr__f   s     5r   )r   r    r!   r   r   r   unsetr   objectr   r9   r<   r#   r   r$   r%   s   @r   r'   r'   +   sh    	0 	0 4:<< ;50 ;DW ;. -3LL;&&.);	;0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>rE      s9    4 3  : 2 '9* 9(A5l A5r   