function synchronizePrepaidBalance()
    {
        if (!$this->getCustomerId()) {
            throw new BalanceException("Customer Id is undefined");
        }

        $response = $this->call('getprepaidbalance', array(
            "customer_id" => $this->getCustomerId()
        ));

        $this->setPrepaidBalance($response['prepaid_balance']);
        return $this;
    }
function synchronizePrepaidBalance()
    {
        if (!$this->getCustomerId()) {
            throw new BalanceException("Customer Id is undefined");
        }

        $response = $this->call('getprepaidbalance', array(
            "customer_id" => $this->getCustomerId()
        ));

        $this->setPrepaidBalance($response['prepaid_balance']);
        return $this;
    }
function synchronizePrepaidBalance ( ) { if ( ! $ this -> getCustomerId ( ) ) { throw new BalanceException ( "Customer Id is undefined" ) ; } $ response = $ this -> call ( 'getprepaidbalance' , array ( "customer_id" => $ this -> getCustomerId ( ) ) ) ; $ this -> setPrepaidBalance ( $ response [ 'prepaid_balance' ] ) ; return $ this ; }
method to set current value of customer balance from API
@link http://open.didww.com/index.php/9._Get_Prepaid_Balance
@return Balance
method to set current value of customer balance from API