|
| __construct (Delivery\Services\Base $deliveryService) |
|
| create (array $shipmentIds, array $additional=[]) |
|
| getActions ($requestId) |
|
| getCancelActionCode () |
|
| getCancelActionName () |
|
| getShipmentActions (Shipment $shipment) |
|
| executeAction ($requestId, $actionType, array $additional) |
|
| executeShipmentAction ($requestId, $shipmentId, $actionType, array $additional) |
|
| addShipments ($requestId, $shipmentIds, array $additional=[]) |
|
| delete ($requestId) |
|
| deleteShipments ($requestId, array $shipmentIds=[]) |
|
| updateShipments ($requestId, array $shipmentIds=[]) |
|
| getFormFields ($formFieldsType, array $shipmentIds, array $additional=[]) |
|
| getContent ($requestId) |
|
| getShipmentContent ($requestId, $shipmentId) |
|
| getHandlingDeliveryServiceId () |
|
| hasCallbackTrackingSupport () |
|
См. определение в файле handlerbase.php строка 16
◆ __construct()
Base constructor.
- Аргументы
-
Delivery\Services\Base | $deliveryService | |
См. определение в файле handlerbase.php строка 27
◆ addShipments()
addShipments |
( |
| $requestId, |
|
|
| $shipmentIds, |
|
|
array | $additional = [] ) |
Add shipments to delivery request
- Аргументы
-
int | $requestId | |
int[] | $shipmentIds | |
array | $additional | |
- Возвращает
- Result
См. определение в файле handlerbase.php строка 117
◆ create()
create |
( |
array | $shipmentIds, |
|
|
array | $additional = [] ) |
Creates delivery request.
- Аргументы
-
int[] | $shipmentIds | |
array | $additional | |
- Возвращает
- Result
См. определение в файле handlerbase.php строка 38
◆ delete()
Delete delivery request
- Аргументы
-
- Возвращает
- Result
См. определение в файле handlerbase.php строка 129
◆ deleteShipments()
deleteShipments |
( |
| $requestId, |
|
|
array | $shipmentIds = [] ) |
Delete shipment from delivery request
- Аргументы
-
int | $requestId | |
int[] | $shipmentIds | |
- Возвращает
- Result
См. определение в файле handlerbase.php строка 142
◆ executeAction()
executeAction |
( |
| $requestId, |
|
|
| $actionType, |
|
|
array | $additional ) |
Executes delivery request action
- Аргументы
-
int | $requestId | |
string | $actionType | |
array | $additional | |
- Возвращает
- Result
См. определение в файле handlerbase.php строка 88
◆ executeShipmentAction()
executeShipmentAction |
( |
| $requestId, |
|
|
| $shipmentId, |
|
|
| $actionType, |
|
|
array | $additional ) |
Executes action for shipment from delivery request
- Аргументы
-
int | $requestId | |
int | $shipmentId | |
string | $actionType | |
array | $additional | |
- Возвращает
- Result
См. определение в файле handlerbase.php строка 103
◆ getActions()
- Аргументы
-
- Возвращает
- array Actions list. For example array( 'ACTION1' => 'ACTION1_NAME', 'ACTION2' => 'ACTION2_NAME').
См. определение в файле handlerbase.php строка 50
◆ getCancelActionCode()
◆ getCancelActionName()
◆ getContent()
Returns content of delivery request
- Аргументы
-
- Возвращает
- Result
См. определение в файле handlerbase.php строка 180
◆ getFormFields()
getFormFields |
( |
| $formFieldsType, |
|
|
array | $shipmentIds, |
|
|
array | $additional = [] ) |
Returns array of fields if we need some additional information during creation, or action execution, etc.
- Аргументы
-
string | $formFieldsType | (FORM_FIELDS_TYPE_CREATE | FORM_FIELDS_TYPE_ADD | FORM_FIELDS_TYPE_ACTION) |
int[] | $shipmentIds | |
array | $additional | |
- Возвращает
- array
См. определение в файле handlerbase.php строка 170
◆ getHandlingDeliveryServiceId()
getHandlingDeliveryServiceId |
( |
| ) |
|
Returns id of delivery service witch actually handles delivery requests
- Возвращает
- int
См. определение в файле handlerbase.php строка 204
◆ getShipmentActions()
getShipmentActions |
( |
Shipment | $shipment | ) |
|
- Аргументы
-
- Возвращает
- array Actions list For example array( 'ACTION1' => 'ACTION1_NAME', 'ACTION2' => 'ACTION2_NAME').
См. определение в файле handlerbase.php строка 76
◆ getShipmentContent()
getShipmentContent |
( |
| $requestId, |
|
|
| $shipmentId ) |
Returns content of shipment from delivery request
- Аргументы
-
int | $requestId | |
int | $shipmentId | |
- Возвращает
- Result. Data contain array of shipment fields on delivery side
См. определение в файле handlerbase.php строка 193
◆ hasCallbackTrackingSupport()
hasCallbackTrackingSupport |
( |
| ) |
|
◆ updateShipments()
updateShipments |
( |
| $requestId, |
|
|
array | $shipmentIds = [] ) |
Update shipment from delivery request
- Аргументы
-
int | $requestId | |
int[] | $shipmentIds | |
- Возвращает
- Result
См. определение в файле handlerbase.php строка 155
◆ $deliveryService
◆ CANCEL_ACTION_CODE
const CANCEL_ACTION_CODE = 'CANCEL' |