AfterbuyOrderReader
in package
Class AfterbuyOrderReader
Table of Contents
- $connection : Connection
- $dataCache : array<string|int, mixed>
- $logger : AfterbuyLogger
- __construct() : mixed
- AfterbuyOrderReader constructor.
- getInitialExportDatetime() : string|null
- Returns the initial order export datetime string or null if the order was not send to afterbuy yet.
- getOrdersData() : array<string|int, mixed>
- Returns a list of order data for the given order ids.
- getSelectFields() : array<string|int, mixed>
Properties
$connection
private
Connection
$connection
$dataCache
private
array<string|int, mixed>
$dataCache
= []
$logger
private
AfterbuyLogger
$logger
Methods
__construct()
AfterbuyOrderReader constructor.
public
__construct(Connection $connection, AfterbuyLogger $logger) : mixed
Parameters
- $connection : Connection
- $logger : AfterbuyLogger
Return values
mixed —getInitialExportDatetime()
Returns the initial order export datetime string or null if the order was not send to afterbuy yet.
public
getInitialExportDatetime(OrderId $orderId) : string|null
Parameters
- $orderId : OrderId
Return values
string|null —getOrdersData()
Returns a list of order data for the given order ids.
public
getOrdersData(OrderIds $orderIds) : array<string|int, mixed>
Internally caches the result for the given order ids in memory, so subsequent calls with the same order ids return the cached value.
Parameters
- $orderIds : OrderIds
Return values
array<string|int, mixed> —getSelectFields()
private
getSelectFields() : array<string|int, mixed>