def get_balances():
 opts = salt.utils.namecheap.get_opts('namecheap.users.getBalances')
 response_xml = salt.utils.namecheap.get_request(opts)
 if (response_xml is None):
  return {}
 balance_response = response_xml.getElementsByTagName('UserGetBalancesResult')[0]
 return salt.utils.namecheap.atts_to_dict(balance_response)

def get_balances ( ) : opts = salt . utils . namecheap . get_opts ( 'namecheap.users.getBalances' ) response_xml = salt . utils . namecheap . get_request ( opts ) if ( response_xml is None ) : return { } balance_response = response_xml . getElementsByTagName ( 'UserGetBalancesResult' ) [ 0 ] return salt . utils . namecheap . atts_to_dict ( balance_response )
gets information about fund in the users account .