
    d{i                         d Z ddl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 - Api
    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Optional)values)ApiResponse)InstanceResource)ListResource)Versionc                   F     e Zd ZdZdedeeef   def fdZdefdZ	 xZ
S )BalanceInstanceaE  
    :ivar account_sid: The unique SID identifier of the Account.
    :ivar balance: The balance of the Account, in units specified by the unit parameter. Balance changes may not be reflected immediately. Child accounts do not contain balance information
    :ivar currency: The units of currency for the account balance
    versionpayloadaccount_sidc                     t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        d|i| _        y )Nr   balancecurrency)super__init__getr   r   r   	_solution)selfr   r   r   	__class__s       c/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/balance.pyr   zBalanceInstance.__init__   sQ    !*1++m*D&-kk)&<'.{{:'> ;
    returnc                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        yw)z{}={}N)format).0kvs      r   	<genexpr>z+BalanceInstance.__repr__.<locals>.<genexpr>0   s     SDAq7>>!Q/Ss   !z%<Twilio.Api.V2010.BalanceInstance {}>)joinr   itemsr    )r   contexts     r   __repr__zBalanceInstance.__repr__*   s6     ((SDNN<P<P<RSS6==gFFr   )__name__
__module____qualname____doc__r
   r   strr   r   r(   __classcell__r   s   @r   r   r      s8    	
 	
$sCx. 	
s 	
G# Gr   r   c                   |     e Zd Zdedef fdZdefdZdefdZ	de
fdZdefdZdefd	Zde
fd
ZdefdZ xZS )BalanceListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the BalanceList

        :param version: Version that contains the resource
        :param account_sid: The unique SID identifier of the Account.

        r   z$/Accounts/{account_sid}/Balance.jsonN )r   r   r   r    _uri)r   r   r   r   s      r   r   zBalanceList.__init__6   sA     	! ;
 B:AASDNNS	r   r   c                     t        j                  ddi      }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriheaders)r   of_versionfetch_with_response_infor4   r   r>   s     r   _fetchzBalanceList._fetchF   sI     ))^-PQR.}}55dii 6 
 	
r   c                 t    | j                         \  }}}t        | j                  || j                  d         S )z[
        Fetch the BalanceInstance


        :returns: The fetched BalanceInstance
        r   r   )rC   r   r@   r   r   r   _s      r   fetchzBalanceList.fetchU   s6     AMM7}0M
 	
r   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the BalanceInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   rE   datastatus_coder>   )rC   r   r@   r   r   r   r   rL   r>   instances        r   fetch_with_http_infoz BalanceList.fetch_with_http_infoa   sE     )-%g"MM7}0M
 k7SSr   c                    K   t        j                  ddi      }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r6   r7   r8   r9   r:   r;   N)r   r?   r@   fetch_with_response_info_asyncr4   rB   s     r   _fetch_asynczBalanceList._fetch_asyncn   sX      ))^-PQR.]]AAdii B 
 
 	
 
s   AA
AAc                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)zj
        Asynchronously fetch the BalanceInstance


        :returns: The fetched BalanceInstance
        Nr   rE   )rR   r   r@   r   rF   s      r   fetch_asynczBalanceList.fetch_async}   sE      #//11AMM7}0M
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronously fetch the BalanceInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   rE   rJ   )rR   r   r@   r   r   rM   s        r   fetch_with_http_info_asyncz&BalanceList.fetch_with_http_info_async   sU      /3.?.?.A(A%g"MM7}0M
 k7SS	 )Bs   AA<Ac                      y)r   z<Twilio.Api.V2010.BalanceList>r3   )r   s    r   r(   zBalanceList.__repr__   s     0r   )r)   r*   r+   r
   r-   r   tuplerC   r   rH   r   rO   rR   rT   rV   r(   r.   r/   s   @r   r1   r1   4   sq    T Tc T 
 


 

Tk T
E 


? 

T+ T0# 0r   r1   N)r,   typingr   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r1   r3   r   r   <module>r_      s>    ' &  0 : 2 'G& G8h0, h0r   