src/Api/Handler/Request/Sales/OrderHandler.php
public function cancel($orderId)
    {
        $transformer = new CancelTransformer(self::STATUS_CANCELLED);
        $body        = $transformer->output();

        /** @var \SkyHub\Api\Handler\Response\HandlerInterface $responseHandler */
        $responseHandler = $this->service()->post($this->baseUrlPath("$orderId/cancel"), $body);
        return $responseHandler;
    }
public function cancel($orderId)
    {
        $transformer = new CancelTransformer(self::STATUS_CANCELLED);
        $body        = $transformer->output();

        /** @var \SkyHub\Api\Handler\Response\HandlerInterface $responseHandler */
        $responseHandler = $this->service()->post($this->baseUrlPath("$orderId/cancel"), $body);
        return $responseHandler;
    }
public function cancel ( $ orderId ) { $ transformer = new CancelTransformer ( self :: STATUS_CANCELLED ) ; $ body = $ transformer -> output ( ) ; /** @var \SkyHub\Api\Handler\Response\HandlerInterface $responseHandler */ $ responseHandler = $ this -> service ( ) -> post ( $ this -> baseUrlPath ( "$orderId/cancel" ) , $ body ) ; return $ responseHandler ; }
Cancel an order in SkyHub.

@var string $orderId

@return \SkyHub\Api\Handler\Response\HandlerInterface
Cancel an order in SkyHub .