Feat: Refactoring Shipping DataTransferObjects to DTOs namespace

This commit is contained in:
2026-09-03 15:58:51 +03:00
parent a1301d4b46
commit 0fa2188146
12 changed files with 16 additions and 16 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace Modules\Core\Shipping\DTOs;
use Carbon\CarbonInterface;
use Modules\Core\Shipping\Enums\TrackingStatus;
/**
* One normalized checkpoint in a shipment's carrier-reported history.
* Returned (potentially several at once) by SupportsTracking::trackShipment().
*/
class TrackingCheckpoint
{
public function __construct(
public readonly TrackingStatus $status,
public readonly ?string $carrierStatus,
public readonly ?string $message,
public readonly ?string $location,
public readonly CarbonInterface $occurredAt,
public readonly array $meta = [],
) {}
}