o
    e                     @   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                       ,   e Zd Z fddZdd Zdd Z  ZS )BalanceListc                    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	   X/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/api/v2010/account/balance.pyr      s   

zBalanceList.__init__c                 C   s(   | j jd| jd}t| j || jd dS )z
        Fetch the BalanceInstance

        :returns: The fetched BalanceInstance
        :rtype: twilio.rest.api.v2010.account.balance.BalanceInstance
        GET)methodurir   r   )_versionfetchr   BalanceInstancer   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__,      zBalanceList.__repr__)__name__
__module____qualname__r   r   r    __classcell__r	   r	   r   r   r          r   c                       r   )BalancePagec                    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   8   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   get_instanceH   s   	zBalancePage.get_instancec                 C   r   )r   z<Twilio.Api.V2010.BalancePage>r	   r   r	   r	   r   r    S   r!   zBalancePage.__repr__)r"   r#   r$   r   r*   r    r%   r	   r	   r   r   r'   6   r&   r'   c                       sH   e 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   c                    sD   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   get_properties_contextr   )r   r   r   r   r   r	   r   r   _   s   zBalanceInstance.__init__c                 C   
   | j d S )z@
        :returns: Account Sid.
        :rtype: unicode
        r   r.   r   r	   r	   r   r   s      
zBalanceInstance.account_sidc                 C   r0   )zC
        :returns: Account balance
        :rtype: unicode
        r+   r1   r   r	   r	   r   r+   {   r2   zBalanceInstance.balancec                 C   r0   )zB
        :returns: Currency units
        :rtype: unicode
        r,   r1   r   r	   r	   r   r,      r2   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   propertyr   r+   r,   r    r%   r	   r	   r   r   r   ]   s    


r   N)__doc__twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r'   r   r	   r	   r	   r   <module>   s   ''