Overview

Namespaces

  • None
  • PHP

Classes

  • Eabi_DpdEE_Block_Adminhtml_Config_Form_Field_Country
  • Eabi_DpdEE_Block_Info_Payment
  • Eabi_DpdEE_Block_Invoice
  • Eabi_DpdEE_Block_Order_Courier
  • Eabi_DpdEE_Helper_Data
  • Eabi_DpdEE_Model_Api
  • Eabi_DpdEE_Model_Button_Courier
  • Eabi_DpdEE_Model_Config
  • Eabi_DpdEE_Model_Flat
  • Eabi_DpdEE_Model_Observer
  • Eabi_DpdEE_Model_Payment_Processor
  • Eabi_DpdEE_Model_Post
  • Eabi_DpdEE_Model_Source_Label_Position
  • Eabi_DpdEE_Model_Source_Service
  • Eabi_Livehandler_Adminhtml_LivehandlerController
  • Eabi_Livehandler_Adminhtml_RemoveController
  • Eabi_Livehandler_Block_Adminhtml_Config_Form_Field_Button
  • Eabi_Livehandler_Block_Adminhtml_Config_Form_Field_Remove
  • Eabi_Livehandler_Block_Email
  • Eabi_LiveHandler_Block_Footer
  • Eabi_Livehandler_Helper_Data
  • Eabi_Livehandler_Helper_Keypair
  • Eabi_Livehandler_IndexController
  • Eabi_Livehandler_Model_Abstract
  • Eabi_Livehandler_Model_Action_Abstract
  • Eabi_Livehandler_Model_Action_Postoffice_Print
  • Eabi_Livehandler_Model_Action_Postoffice_Send
  • Eabi_Livehandler_Model_Adminhtml_Gridmanager
  • Eabi_Livehandler_Model_Directory_Collection
  • Eabi_Livehandler_Model_Entry
  • Eabi_Livehandler_Model_File_Object
  • Eabi_Livehandler_Model_Mysql4_Entry
  • Eabi_Livehandler_Model_Mysql4_Entry_Collection
  • Eabi_Livehandler_Model_Ordergrid
  • Eabi_Livehandler_Model_System_Config_Backend_Button
  • Eabi_Postoffice_Adminhtml_PostofficeController
  • Eabi_Postoffice_Block_Adminhtml_Config_Form_Field_License
  • Eabi_Postoffice_Block_Adminhtml_Config_Form_Field_Remove
  • Eabi_Postoffice_Block_Config_Rebuildbutton
  • Eabi_Postoffice_Helper_Countrycode
  • Eabi_Postoffice_Helper_Data
  • Eabi_Postoffice_IndexController
  • Eabi_Postoffice_Model_Carrier_Abstract
  • Eabi_Postoffice_Model_Carrier_Result
  • Eabi_Postoffice_Model_Carriermodule
  • Eabi_Postoffice_Model_Mysql4_Carriermodule
  • Eabi_Postoffice_Model_Mysql4_Carriermodule_Collection
  • Eabi_Postoffice_Model_Mysql4_Office
  • Eabi_Postoffice_Model_Mysql4_Office_Collection
  • Eabi_Postoffice_Model_Observer
  • Eabi_Postoffice_Model_Office
  • Eabi_Postoffice_Model_Orderview
  • Eabi_Postoffice_Model_Source_Sendevent
  • Eabi_Postoffice_Model_Updater
  • Overview
  • Namespace
  • Class
  • Tree

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
Extended by Eabi_DpdEE_Model_Api
Author: Matis
Located at Eabi/DpdEE/Model/Api.php
Methods summary
public mixed
# getConfigData( string $field )

Retrieve information from carrier configuration

Retrieve information from carrier configuration

Parameters

$field
string
$field

Returns

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.

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.

Returns

array
public array
# getCourierCollectionTimes( array $requestData = array() )

Fetches available courier collection times. (op=date)

Fetches available courier collection times. (op=date)

Parameters

$requestData
array
$requestData

Returns

array
public array
# autoSendData( array $requestData )

Send parcel data to DPD server, prefills with return data from Magento configuration.

Send parcel data to DPD server, prefills with return data from Magento configuration.

Parameters

$requestData
array
$requestData

Returns

array
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:

  • UNIX timestamp when courier pickup should start
  • UNIX timestamp when courier pickup should end

On every other scenario this function returns boolean false

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:

  • UNIX timestamp when courier pickup should start
  • UNIX timestamp when courier pickup should end

On every other scenario this function returns boolean false

Returns

boolean|array
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.

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.

Parameters

$params
array
$params
$url
string
$url

Returns

array
protected
# _debugReplace( mixed $params )
protected
# _isLogEnabled( )
protected Eabi_DpdEE_Helper_Data
# _getDpdHelper( )

Returns

Eabi_DpdEE_Helper_Data
protected Eabi_Postoffice_Helper_Data
# _getOfficeHelper( )

Returns

Eabi_Postoffice_Helper_Data
DPD Eesti - Pakivedu.ee Shipping module for Magento API documentation generated by ApiGen 2.8.0