
    pi                     x    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  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)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       g/opt/services/ai/voice_agent/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>/   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                   L     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	 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__5   sA     	! ;
 B:AASDNNS	r   r   c                     t        j                  ddi      }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )	j
        Asynchronously fetch the BalanceInstance


        :returns: The fetched BalanceInstance
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriheadersr   r   )r   of_versionfetchr3   r   r   r   r>   r   s      r   rB   zBalanceList.fetchE   sb     ))^-PQR.--%%U		7%SMM7}0M
 	
r   c                    K   t        j                  ddi      }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d   	      S 7 )w)
r5   r6   r7   r8   r9   r:   r;   Nr   r?   )r   r@   rA   fetch_asyncr3   r   r   rC   s      r   rE   zBalanceList.fetch_asyncV   sw      ))^-PQR.11dii 2 
 
 MM7}0M
 	
	
s   AA6
A4*A6c                      y)r   z<Twilio.Api.V2010.BalanceList>r2   )r   s    r   r'   zBalanceList.__repr__i   s     0r   )r(   r)   r*   r	   r,   r   r   rB   rE   r'   r-   r.   s   @r   r0   r0   3   s=    T Tc T 
 
"
? 
&0# 0r   r0   N)r+   typingr   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr	   r   r0   r2   r   r   <module>rL      s9    ' &  : 2 'G& G8<0, <0r   