o
    /ir                     @   s`   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
 G dd deZG dd	 d	eZd
S )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)InstanceResource)ListResource)Versionc                       sD   e Zd ZdZdedeeef def fddZdefdd	Z	  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                    s>   t  | |d| _|d| _|d| _d|i| _d S )Nr   balancecurrency)super__init__getr   r   r   	_solution)selfr	   r
   r   	__class__ `/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/api/v2010/account/balance.pyr      s   
zBalanceInstance.__init__returnc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s     | ]\}}d  ||V  qdS )z{}={}N)format).0kvr   r   r   	<genexpr>0   s    z+BalanceInstance.__repr__.<locals>.<genexpr>z%<Twilio.Api.V2010.BalanceInstance {}>)joinr   itemsr   )r   contextr   r   r   __repr__*   s   
zBalanceInstance.__repr__)__name__
__module____qualname____doc__r   r   strr   r   r"   __classcell__r   r   r   r   r      s    "r   c                       sP   e Zd Zdedef fddZdefddZdefdd	Zdefd
dZ	  Z
S )BalanceListr	   r   c                    s.   t  | d|i| _djdi | j| _dS )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.jsonNr   )r   r   r   r   _uri)r   r	   r   r   r   r   r   5   s   zBalanceList.__init__r   c                 C   s(   | j jd| jd}t| j || jd dS )i
        Asynchronously fetch the BalanceInstance

        :returns: The fetched BalanceInstance
        GETmethodurir   r   )_versionfetchr*   r   r   r   r
   r   r   r   r2   E   s   zBalanceList.fetchc                    s0   | j jd| jdI dH }t| j || jd dS )r+   r,   r-   Nr   r0   )r1   fetch_asyncr*   r   r   r3   r   r   r   r4   Q   s
   zBalanceList.fetch_asyncc                 C   s   dS )r   z<Twilio.Api.V2010.BalanceList>r   )r   r   r   r   r"   ]   s   zBalanceList.__repr__)r#   r$   r%   r   r'   r   r   r2   r4   r"   r(   r   r   r   r   r)   4   s
    r)   N)r&   typingr   r   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r)   r   r   r   r   <module>   s    