ShipmentTrackingSynchronizer
Table of Contents
Properties
-
$saleProductShipmentService
: SaleProductShipmentService
-
$saleProductShipmentTrackingService
: SaleProductShipmentTrackingService
-
$statusHistoryService
: SaleProductShipmentTrackingStatusHistoryService
Methods
-
__construct()
: mixed
-
sync()
: SaleProductShipmentTracking
-
normalizeStatus()
: string|null
-
resolveCreatedAt()
: DateTime
-
shouldRecordStatusChange()
: bool
-
toDateTime()
: DateTime|null
__construct()
public
__construct(SaleProductShipmentService $saleProductShipmentService, SaleProductShipmentTrackingService $saleProductShipmentTrackingService, SaleProductShipmentTrackingStatusHistoryService $statusHistoryService) : mixed
Parameters
-
$saleProductShipmentService
: SaleProductShipmentService
-
-
$saleProductShipmentTrackingService
: SaleProductShipmentTrackingService
-
-
$statusHistoryService
: SaleProductShipmentTrackingStatusHistoryService
-
sync()
public
sync(SaleProduct $saleProduct, array<string|int, int|string> $trackingIds, array<string|int, int|string> $trackingLinks, array<string|int, int|string> $ticketFiles, bool $isTicketPrinted, string|null $errorMessage, int|null $errorCode, DateTimeInterface|null $printedAt[, array<string, mixed> $options = [] ]) : SaleProductShipmentTracking
Parameters
-
$saleProduct
: SaleProduct
-
-
$trackingIds
: array<string|int, int|string>
-
-
$trackingLinks
: array<string|int, int|string>
-
-
$ticketFiles
: array<string|int, int|string>
-
-
$isTicketPrinted
: bool
-
-
$errorMessage
: string|null
-
-
$errorCode
: int|null
-
-
$printedAt
: DateTimeInterface|null
-
-
$options
: array<string, mixed>
= []
-
normalizeStatus()
private
normalizeStatus(mixed $status) : string|null
Parameters
-
$status
: mixed
-
Return values
string|null
resolveCreatedAt()
private
resolveCreatedAt(mixed $isPreShippedAt) : DateTime
Parameters
-
$isPreShippedAt
: mixed
-
shouldRecordStatusChange()
private
shouldRecordStatusChange(string|null $previousStatus, string|null $newStatus) : bool
Parameters
-
$previousStatus
: string|null
-
-
$newStatus
: string|null
-
toDateTime()
private
toDateTime(mixed $value) : DateTime|null
Parameters
-
$value
: mixed
-
Return values
DateTime|null