public function cancelForId($orderId, array $data)
    {
        if(! isset($data, $data['lines']) || ! is_array($data['lines'])) {
            throw new ApiException("A lines array is required.");
        }
        $this->parentId = $orderId;

        $this->client->performHttpCall(
            self::REST_DELETE,
            "{$this->getResourcePath()}",
            $this->parseRequestBody($data)
        );

        return null;
    }
public function cancelForId($orderId, array $data)
    {
        if(! isset($data, $data['lines']) || ! is_array($data['lines'])) {
            throw new ApiException("A lines array is required.");
        }
        $this->parentId = $orderId;

        $this->client->performHttpCall(
            self::REST_DELETE,
            "{$this->getResourcePath()}",
            $this->parseRequestBody($data)
        );

        return null;
    }
public function cancelForId ( $ orderId , array $ data ) { if ( ! isset ( $ data , $ data [ 'lines' ] ) || ! is_array ( $ data [ 'lines' ] ) ) { throw new ApiException ( "A lines array is required." ) ; } $ this -> parentId = $ orderId ; $ this -> client -> performHttpCall ( self :: REST_DELETE , "{$this->getResourcePath()}" , $ this -> parseRequestBody ( $ data ) ) ; return null ; }
Cancel lines for the provided order id.
The data array must contain a lines array.
You can pass an empty lines array if you want to cancel all eligible lines.
Returns null if successful.

@param string $orderId
@param array $data

@return null
@throws ApiException
Cancel lines for the provided order id . The data array must contain a lines array . You can pass an empty lines array if you want to cancel all eligible lines . Returns null if successful .