pub async fn account_balance(
        &self,
        account_number: &str,
    ) -> Result<AccountBalances, Box<dyn Error>> {
        let response = self
            .get_request_builder(format!("accounts/{}/balances", account_number).as_str())?
            .send()
            .await?
            .error_for_status()
            .map_err(|e| wrap_error(e))?
            .json::<AccountBalances>()
            .await?;

        Ok(response)
    }
/// Retrieves per-currency and combined balances for a specified account.
Retrieves per-currency and combined balances for a specified account.
Retrieves per - currency and combined balances for a specified account .
pub async fn account_balance(
        &self,
        account_number: &str,
    ) -> Result<AccountBalances, Box<dyn Error>> {
        let response = self
            .get_request_builder(format!("accounts/{}/balances", account_number).as_str())?
            .send()
            .await?
            .error_for_status()
            .map_err(|e| wrap_error(e))?
            .json::<AccountBalances>()
            .await?;
        Ok(response)
    }
pub async fn account_balance ( & self , account_number : & str , ) -> Result < AccountBalances , Box < dyn Error > > { let response = self . get_request_builder ( format ! ( " " account_number ) . as_str ( ) ) ? . send ( ) . await ? . error_for_status ( ) . map_err ( | e | wrap_error ( e ) ) ? . json :: < AccountBalances > ( ) . await ? ; Ok ( response ) }
Retrieves per-currency and combined balances for a specified account.
Retrieves per - currency and combined balances for a specified account .
&self
account_number
&str
&self
account_number
&str