public function getOrder($id)
    {
        try {
            $response = $this->getHttpClient()
                ->method(Http::GET)
                ->uri($this->baseUrl . 'orders/' . $id . '/')
                ->send();

            if ($response->hasErrors()) {
                throw new \Exception($response->raw_body, $response->code);
            }

            return Order::fromArray($response->body);
        } catch (\Exception $exception) {
            if ($exception->getCode() == 404) {
                throw new OrderNotFoundException('No order with that ID was found.', 404, $exception);
            }
            throw new ClientException(
                'An error occurred while getting the order: '.$exception->getMessage(),
                $exception->getCode(),
                $exception
            );
        }
    }