ApiComponent
extends Injectable
Table of Contents
Properties
-
$apiKey
: mixed
-
$nameConverter
: ManualOrderUploadHeaderPropertyNameConverter
-
$user
: mixed
Methods
-
__construct()
: mixed
-
authorizeByKey()
: mixed
-
checkDifferenceToHeaderByRows()
: mixed
-
getApiKey()
: mixed
-
getBatch()
: mixed
-
getReferer()
: mixed
-
handleDeleteBatch()
: mixed
-
handleDeleteInvoice()
: mixed
-
handleGetBatch()
: mixed
-
handleUpload()
: mixed
-
translateHeader()
: mixed
-
validateRequest()
: array<string|int, mixed>
-
addRecordToRequest()
: mixed
-
authorize()
: bool
-
checkLimits()
: bool
__construct()
public
__construct() : mixed
authorizeByKey()
public
authorizeByKey(mixed $apiKeyFromUser) : mixed
Parameters
-
$apiKeyFromUser
: mixed
-
public
checkDifferenceToHeaderByRows(mixed $content, mixed $toCheck) : mixed
Parameters
-
$content
: mixed
-
-
$toCheck
: mixed
-
getApiKey()
public
getApiKey() : mixed
getBatch()
public
getBatch(mixed $batchId) : mixed
Parameters
-
$batchId
: mixed
-
getReferer()
public
getReferer() : mixed
handleDeleteBatch()
public
handleDeleteBatch(mixed $batchId) : mixed
Parameters
-
$batchId
: mixed
-
handleDeleteInvoice()
public
handleDeleteInvoice(mixed $invoiceNum) : mixed
Parameters
-
$invoiceNum
: mixed
-
handleGetBatch()
public
handleGetBatch(mixed $batchId) : mixed
Parameters
-
$batchId
: mixed
-
handleUpload()
public
handleUpload(mixed $postData) : mixed
Parameters
-
$postData
: mixed
-
public
translateHeader(mixed $content) : mixed
Parameters
-
$content
: mixed
-
validateRequest()
public
validateRequest(mixed $content) : array<string|int, mixed>
Parameters
-
$content
: mixed
-
Return values
array<string|int, mixed>
addRecordToRequest()
protected
addRecordToRequest([string $method = 'POST' ][, mixed $invoiceNum = null ]) : mixed
Parameters
-
$method
: string
= 'POST'
-
-
$invoiceNum
: mixed
= null
-
authorize()
private
authorize(ApiKey $apiKey) : bool
Parameters
-
$apiKey
: ApiKey
-
checkLimits()
private
checkLimits(ApiKey $apiKey) : bool
Parameters
-
$apiKey
: ApiKey
-