public function updateMapping(Mapping $newMapping = NULL)
    {
        $mapping = empty($newMapping) ? $this->_order->getMapData() : $newMapping;
        $this->call('updatemapping', array(
            "customer_id" => $this->_order->getCustomerId(),
            "did_number" => $this->getDIDNumber(),
            "map_data" => $mapping->toArray()
        ));
        $this->_order->setMapData($newMapping);
        return true;
    }
public function updateMapping(Mapping $newMapping = NULL)
    {
        $mapping = empty($newMapping) ? $this->_order->getMapData() : $newMapping;
        $this->call('updatemapping', array(
            "customer_id" => $this->_order->getCustomerId(),
            "did_number" => $this->getDIDNumber(),
            "map_data" => $mapping->toArray()
        ));
        $this->_order->setMapData($newMapping);
        return true;
    }
public function updateMapping ( Mapping $ newMapping = NULL ) { $ mapping = empty ( $ newMapping ) ? $ this -> _order -> getMapData ( ) : $ newMapping ; $ this -> call ( 'updatemapping' , array ( "customer_id" => $ this -> _order -> getCustomerId ( ) , "did_number" => $ this -> getDIDNumber ( ) , "map_data" => $ mapping -> toArray ( ) ) ) ; $ this -> _order -> setMapData ( $ newMapping ) ; return true ; }
update mapping of did number
@link http://open.didww.com/index.php/8._Update_Mapping
@param Mapping $newMapping
update mapping of did number