Class Eabi_DpdEE_Model_Api
Wrapper class for communicating with DPD API
Each request is prefilled with username, password, return address data whenever possible.
Each response is json_decoded to assoc array and Exception is thrown when response error code is else than integer 0
- Varien_Object
- Eabi_DpdEE_Model_Api
public
mixed
|
|
public
array
|
#
getOfficeList( )
Fetches list of parcel terminals from DPD API. (op=pudo) This function can be used without DPD API account. Parcel terminals are included in 'data' array key. |
public
array
|
#
getCourierCollectionTimes( array $requestData = array() )
Fetches available courier collection times. (op=date) |
public
array
|
#
autoSendData( array $requestData )
Send parcel data to DPD server, prefills with return data from Magento configuration. |
public
boolean|array
|
#
isCourierComing( )
Determines if courier has been called to pick up the packages. If courier has been called to fetch packages and courier pickup time from has not yet been reached, then it returns array consisting following elements:
On every other scenario this function returns boolean false |
protected
array
|
#
_getRequest( array $params = array('op' => 'pudo'), string $url = null )
Sends actual request to DPD API, prefills with username and password and json decodes the result. Default operation (op=pudo), on such scenario username and password is not sent. If return error code is else than 0, then exception is thrown. |
protected
|
|
protected
|
|
protected
|
|
protected
|