OrderExportRepository
in package
Class OrderExportRepository
Table of Contents
- $orderReader : AfterbuyOrderReader
- $storage : OrderExportStorage
- __construct() : mixed
- OrderExportRepository constructor.
- getInitialExportTimestamp() : int|null
- Returns the initial order export timestamp and null if the order was not send to afterbuy yet.
- getLastTrackingSyncTime() : string
- Returns the time of the last Afterbuy order export tracking link synchronization.
- updateLastTrackingSyncTime() : void
- Updates the afterbuy configuration 'last_tracking_sync' to now.
Properties
$orderReader
private
AfterbuyOrderReader
$orderReader
$storage
private
OrderExportStorage
$storage
Methods
__construct()
OrderExportRepository constructor.
public
__construct(AfterbuyOrderReader $orderReader, OrderExportStorage $storage) : mixed
Parameters
- $orderReader : AfterbuyOrderReader
- $storage : OrderExportStorage
Return values
mixed —getInitialExportTimestamp()
Returns the initial order export timestamp and null if the order was not send to afterbuy yet.
public
getInitialExportTimestamp(OrderId $orderId) : int|null
Parameters
- $orderId : OrderId
Return values
int|null —getLastTrackingSyncTime()
Returns the time of the last Afterbuy order export tracking link synchronization.
public
getLastTrackingSyncTime() : string
The time is returned to the format 'd.m.Y H:i:s'.
Return values
string —updateLastTrackingSyncTime()
Updates the afterbuy configuration 'last_tracking_sync' to now.
public
updateLastTrackingSyncTime() : void