
    d{i                         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 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)ApiResponse)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      `/home/sas/my/fyp/ringai/.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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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
                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)to_dictr   of_versioncreate_with_response_infor*   r   r+   r5   r6   s       r   _createzEligibilityList._create9   s`     ||~))^-PQR"4.}}66tyytW 7 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S )zy
        Create the EligibilityInstance

        :param body:

        :returns: The created EligibilityInstance
        r+   )r<   r   r9   r   r+   r   _s       r   createzEligibilityList.createL   s+     $/A"4=='::r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Create the EligibilityInstance and return response metadata

        :param body:

        :returns: ApiResponse with instance, status code, and headers
        r>   r5   status_coder6   )r<   r   r9   r	   r   r+   r   rD   r6   instances         r   create_with_http_infoz%EligibilityList.create_with_http_infoW   s:     )-$(?%g&t}}g>k7SSr   c                    K   |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r-   r.   r/   r0   r1   r2   N)r7   r   r8   r9   create_with_response_info_asyncr*   r;   s       r   _create_asynczEligibilityList._create_asynce   so      ||~))^-PQR"4.]]BBtyytW C 
 
 	
 
s   AA' A%!A'c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 w)z
        Asynchronously create the EligibilityInstance

        :param body:

        :returns: The created EligibilityInstance
        r>   N)rJ   r   r9   r?   s       r   create_asynczEligibilityList.create_asyncx   s:      #00d0;;A"4==':: <s   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronously create the EligibilityInstance and return response metadata

        :param body:

        :returns: ApiResponse with instance, status code, and headers
        r>   NrC   )rJ   r   r9   r	   rE   s         r   create_with_http_info_asyncz+EligibilityList.create_with_http_info_async   sJ      /3.@.@d.@.K(K%g&t}}g>k7SS )Ls   AA-Ac                      y)r   z#<Twilio.Numbers.V1.EligibilityList>r   r   s    r   r   zEligibilityList.__repr__   s     5r   )r    r!   r"   r   r   r   unsetr   objecttupler<   r   rA   r	   rG   rJ   rL   rN   r$   r   r%   r&   s   @r   r(   r(   ,   s	   	0 	0 5;LL 
E&&.1 
U 
& 4:<< 	;50 	;DW 	; -3LLT&&.)T	T AG 
ffn(= 
QV 
( -3LL;&&.);	; -3LLT&&.)T	T5# 5r   r(   N)r#   typingr   r   r   r   r   twilio.baser   twilio.base.api_responser	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r(   r   r   r   <module>rY      s<    4 3  0 : 2 '9* 9(m5l m5r   