StornoOrdersEvent example

$operation->setReferencedDocumentId($invoice['id']);
                if ($order->getVersionId()) {
                    $operation->setOrderVersionId($order->getVersionId());
                }
            } catch (\Throwable $exception) {
                $result->addError($operation->getOrderId()$exception);
            }
        }

        // TODO: future implementation (only fetch required data and associations)
        $this->eventDispatcher->dispatch(new StornoOrdersEvent($orders$context$operations));

        foreach ($orders as $order) {
            $orderId = $order->getId();

            try {
                $operation = $operations[$orderId] ?? null;

                if ($operation === null) {
                    continue;
                }

                
Home | Imprint | This part of the site doesn't use cookies.