o
    �¨Êh6  ã                   @   sh   d Z ddl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
G d
d„ deƒZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
é    )Úvalues)ÚInstanceResource)ÚListResource)ÚPagec                       ó0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )ÚBalanceListú  c                    s2   t t| ƒ |¡ d|i| _djdi | j¤Ž| _dS )a   
        Initialize the BalanceList

        :param Version version: Version that contains the resource
        :param account_sid: Account Sid.

        :returns: twilio.rest.api.v2010.account.balance.BalanceList
        :rtype: twilio.rest.api.v2010.account.balance.BalanceList
        Úaccount_sidz$/Accounts/{account_sid}/Balance.jsonN© )Úsuperr   Ú__init__Ú	_solutionÚformatÚ_uri)ÚselfÚversionr	   ©Ú	__class__r
   úW/var/www/html/env/lib/python3.10/site-packages/twilio/rest/api/v2010/account/balance.pyr      s   

zBalanceList.__init__c                 C   s4   t  i ¡}| jjd| j|d�}t| j|| jd d�S )zš
        Fetch a BalanceInstance

        :returns: Fetched BalanceInstance
        :rtype: twilio.rest.api.v2010.account.balance.BalanceInstance
        ÚGET)Úparamsr	   ©r	   )r   ÚofÚ_versionÚfetchr   ÚBalanceInstancer   )r   r   Úpayloadr
   r
   r   r   "   s   
ýzBalanceList.fetchc                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.BalanceList>r
   ©r   r
   r
   r   Ú__repr__3   ó   zBalanceList.__repr__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r    Ú__classcell__r
   r
   r   r   r      s
    r   c                       r   )ÚBalancePager   c                    s   t t| ƒ ||¡ || _dS )aX  
        Initialize the BalancePage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param account_sid: Account Sid.

        :returns: twilio.rest.api.v2010.account.balance.BalancePage
        :rtype: twilio.rest.api.v2010.account.balance.BalancePage
        N)r   r'   r   r   )r   r   ÚresponseÚsolutionr   r
   r   r   @   s   
zBalancePage.__init__c                 C   s   t | j|| jd d�S )a  
        Build an instance of BalanceInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.api.v2010.account.balance.BalanceInstance
        :rtype: twilio.rest.api.v2010.account.balance.BalanceInstance
        r	   r   )r   r   r   )r   r   r
   r
   r   Úget_instanceP   s   	zBalancePage.get_instancec                 C   r   )r   z<Twilio.Api.V2010.BalancePage>r
   r   r
   r
   r   r    [   r!   zBalancePage.__repr__)r"   r#   r$   r%   r   r*   r    r&   r
   r
   r   r   r'   =   s
    r'   c                       sL   e Zd ZdZ‡ fdd„Zedd„ ƒZedd„ ƒZedd	„ ƒZd
d„ Z	‡  Z
S )r   r   c                    s>   t t| ƒ |¡ |d |d |d dœ| _d| _d|i| _dS )z¿
        Initialize the BalanceInstance

        :returns: twilio.rest.api.v2010.account.balance.BalanceInstance
        :rtype: twilio.rest.api.v2010.account.balance.BalanceInstance
        r	   ÚbalanceÚcurrency)r	   r+   r,   N)r   r   r   Ú_propertiesÚ_contextr   )r   r   r   r	   r   r
   r   r   h   s   ýzBalanceInstance.__init__c                 C   ó
   | j d S )z@
        :returns: Account Sid.
        :rtype: unicode
        r	   ©r-   r   r
   r
   r   r	   |   ó   
zBalanceInstance.account_sidc                 C   r/   )zC
        :returns: Account balance
        :rtype: unicode
        r+   r0   r   r
   r
   r   r+   „   r1   zBalanceInstance.balancec                 C   r/   )zB
        :returns: Currency units
        :rtype: unicode
        r,   r0   r   r
   r
   r   r,   Œ   r1   zBalanceInstance.currencyc                 C   r   )r   z"<Twilio.Api.V2010.BalanceInstance>r
   r   r
   r
   r   r    ”   r!   zBalanceInstance.__repr__)r"   r#   r$   r%   r   Úpropertyr	   r+   r,   r    r&   r
   r
   r   r   r   e   s    


r   N)r%   Útwilio.baser   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r'   r   r
   r
   r
   r   Ú<module>   s   .(