<?php

namespace Opencart\Extension\Alsendo\DTO\Entity;

require_once(DIR_EXTENSION . 'alsendo/src/DTO/Entity/OrderDetailsEntity.php');
require_once(DIR_EXTENSION . 'alsendo/src/DTO/Entity/RegionOrderDetailsEntityFactory.php');
require_once(DIR_EXTENSION . 'alsendo/src/DTO/Entity/Zaslat/ZaslatOrderDetailsEntity.php');
require_once(DIR_EXTENSION . 'alsendo/src/DTO/Entity/Zaslat/ZaslatOrderDetailsSenderEntity.php');
require_once(DIR_EXTENSION . 'alsendo/src/DTO/Entity/Ecolet/EcoletOrderDetailsEntity.php');
require_once(DIR_EXTENSION . 'alsendo/src/DTO/Entity/Ecolet/EcoletOrderDetailsSenderEntity.php');

use Opencart\Extension\Alsendo\DTO\Entity\Ecolet\EcoletOrderDetailsEntity;
use Opencart\Extension\Alsendo\DTO\Entity\Ecolet\EcoletOrderDetailsSenderEntity;
use Opencart\Extension\Alsendo\DTO\Entity\Zaslat\ZaslatOrderDetailsEntity;
use Opencart\Extension\Alsendo\DTO\Entity\Zaslat\ZaslatOrderDetailsSenderEntity;

final class OrderDetailsEntityUsageExample
{
    public static function getOrderDetailsByOrderIdExample(object $registry, int $orderId): ?OrderDetailsEntity
    {
        $registry->load->model('extension/alsendo/module/alsendo_order_details');
        return $registry->model_extension_alsendo_module_alsendo_order_details->getOrderDetailsByOrderId($orderId);
    }
}
