src/Api/Handler/Request/Sales/OrderHandler.php
public function invoice($orderId, $invoiceKey)
    {
        $transformer = new InvoiceTransformer(self::STATUS_PAID, $invoiceKey);
        $body        = $transformer->output();

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

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

@var string $orderId
@var string $invoiceKey

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