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
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Modules\Core\Shipping\DTOs;
/**
* Carrier-agnostic input for CarrierFulfillmentInterface::createShipment().
* Every field is optional — a carrier reads only what it needs and ignores
* the rest (e.g. destinationLocationId only matters to locker-delivery
* carriers like Box Now; ACS has no use for it).
*/
class ShipmentRequest
{
public function __construct(
public readonly ?float $weight = null,
public readonly int $packageCount = 1,
public readonly ?string $destinationLocationId = null,
public readonly ?string $paymentMode = null,
public readonly ?float $amountToCollect = null,
) {}
}