phpDocumentor

AfterbuyOrderTrackingReader

Class AfterbuyOrderTrackingReader

Table of Contents

AFTERBUY_ENDPOINT  = 'GetSoldItems'
CONFIGURATION_NAMESPACE  = 'modules/gambio/afterbuy'
DATE_FORMAT  = 'd.m.Y H:i:s'
$abTrackingLinkShippingMethodsCache  : array<string|int, mixed>
$connection  : Connection
$globalRepository  : AfterbuyGlobalRepository
$orderExistsCache  : array<string|int, mixed>
$sender  : AfterbuyRequestSender
$storage  : ConfigurationStorageRepository
__construct()  : mixed
AfterbuyOrderTrackingReader constructor.
findTrackingCodesByOrderId()  : AfterbuyOrderTrackingCodes|null
Tries to find a tracking code for the given order.
getAfterbuyTrackingSyncShippingMethods()  : array<string|int, mixed>
Returns a list of all afterbuy tracking link synchronization configurations.
getTrackingCodes()  : AfterbuyOrderTrackingCodes
orderExists()  : bool
Checks if an order record exists for the given tracking codes order id.
trackingLinkExists()  : bool
Checks if a tracking link already exists for the order.
findAfterbuyOrderId()  : string|null
getElement()  : SimpleXMLElement|null
Tries to get a `SimpleXMLElement` from the given element by key.
getElementAsString()  : string|null
Tries to return a xml element as string.
getTrackingCodesFromResponse()  : AfterbuyOrderTrackingCodes
Returns afterbuy tracking codes from the xml response body.
requestWithDateFilter()  : SimpleXmlRequest
Returns the xml request body for the XML-API endpoint 'GetSoldItems'.
requestWithOrderFilter()  : SimpleXmlRequest
Returns the xml request body for the XML-API endpoint 'GetSoldItems'.

Constants

Properties

Methods

getAfterbuyTrackingSyncShippingMethods()

Returns a list of all afterbuy tracking link synchronization configurations.

public getAfterbuyTrackingSyncShippingMethods() : array<string|int, mixed>

When removing the prefix tracking_sync_shipping_methods_ from the array key, you get the parcel service provider id of the shop system. The result will be cached, so subsequent calls

Return values
array<string|int, mixed>

getElement()

Tries to get a `SimpleXMLElement` from the given element by key.

private getElement(string $key, SimpleXMLElement|null $element) : SimpleXMLElement|null

Returns null if the key is not available.

Parameters
$key : string
$element : SimpleXMLElement|null
Return values
SimpleXMLElement|null

getElementAsString()

Tries to return a xml element as string.

private getElementAsString(string $key, SimpleXMLElement|null $element) : string|null

Returns null if the key is not available.

Parameters
$key : string
$element : SimpleXMLElement|null
Return values
string|null

Search results