B
    `                 @   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                   s,   e Zd Z fddZdd Zdd Z  ZS )BalanceListc                s.   t t| | d|i| _djf | 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__ T/home/dcms/DCMS/lib/python3.7/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   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.BalanceList>r   )r   r   r   r   __repr__,   s    zBalanceList.__repr__)__name__
__module____qualname__r	   r   r   __classcell__r   r   )r   r   r      s   r   c                   s,   e Zd Z fddZdd Zdd Z  ZS )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   responseZsolution)r   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   r   get_instanceH   s    	zBalancePage.get_instancec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.BalancePage>r   )r   r   r   r   r   S   s    zBalancePage.__repr__)r   r   r   r	   r    r   r   r   r   )r   r   r   6   s   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   s
   | j d S )z@
        :returns: Account Sid.
        :rtype: unicode
        r   )r$   )r   r   r   r   r   s   s    zBalanceInstance.account_sidc             C   s
   | j d S )zC
        :returns: Account balance
        :rtype: unicode
        r!   )r$   )r   r   r   r   r!   {   s    zBalanceInstance.balancec             C   s
   | j d S )zB
        :returns: Currency units
        :rtype: unicode
        r"   )r$   )r   r   r   r   r"      s    zBalanceInstance.currencyc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z"<Twilio.Api.V2010.BalanceInstance>r   )r   r   r   r   r      s    zBalanceInstance.__repr__)
r   r   r   r	   propertyr   r!   r"   r   r   r   r   )r   r   r   ]   s
   r   N)__doc__Ztwilio.baser   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   r   r   r   r   r   r   r   <module>   s   ''