Adapter/PlentymarketsAdapter/ServiceBus/CommandHandler/Order/HandleOrderCommandHandler.php
private function handleOrder(Order $order)
    {
        $params = $this->orderRequestGenerator->generate($order);
        $result = $this->client->request('post', 'orders', $params);

        $this->identityService->insert(
            $order->getIdentifier(),
            Order::TYPE,
            (string) $result['id'],
            PlentymarketsAdapter::NAME
        );

        return true;
    }
private function handleOrder(Order $order)
    {
        $params = $this->orderRequestGenerator->generate($order);
        $result = $this->client->request('post', 'orders', $params);

        $this->identityService->insert(
            $order->getIdentifier(),
            Order::TYPE,
            (string) $result['id'],
            PlentymarketsAdapter::NAME
        );

        return true;
    }
@param Order $order

@return bool