public function setQuantityAllocation($subscriptionId, $componentId)
    {
        $service       = $this->getService();
        $rawData       = $this->getRawData(array('component' => $this->_params));
        $response      = $service->request('subscriptions/' . (int)$subscriptionId . '/components/' . (int)$componentId, 'PUT', $rawData);
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['component'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function setQuantityAllocation($subscriptionId, $componentId)
    {
        $service       = $this->getService();
        $rawData       = $this->getRawData(array('component' => $this->_params));
        $response      = $service->request('subscriptions/' . (int)$subscriptionId . '/components/' . (int)$componentId, 'PUT', $rawData);
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['component'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function setQuantityAllocation ( $ subscriptionId , $ componentId ) { $ service = $ this -> getService ( ) ; $ rawData = $ this -> getRawData ( array ( 'component' => $ this -> _params ) ) ; $ response = $ service -> request ( 'subscriptions/' . ( int ) $ subscriptionId . '/components/' . ( int ) $ componentId , 'PUT' , $ rawData ) ; $ responseArray = $ this -> getResponseArray ( $ response ) ; if ( ! $ this -> isError ( ) ) { $ this -> _data = $ responseArray [ 'component' ] ; } else { $ this -> _data = array ( ) ; } return $ this ; }
Set quantity of Quantity Based Components for a subscription

@param int $subscriptionId
@param int $componentId

@return Component
@see Component::setAllocatedQuantity()
Set quantity of Quantity Based Components for a subscription