Class Mage_Usa_Model_Shipping_Carrier_Dhl_International
DHL International (API v1.4)
- Varien_Object
-
Mage_Shipping_Model_Carrier_Abstract
-
Mage_Usa_Model_Shipping_Carrier_Abstract
-
Mage_Usa_Model_Shipping_Carrier_Dhl_International implements Mage_Shipping_Model_Carrier_Interface
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International.php
protected
|
|
protected
mixed
|
|
public
boolean|
|
|
protected
|
|
public
|
|
protected
|
|
public
|
|
public
array
|
|
public
array|boolean
|
|
public
array
|
#
getDhlProducts( string $doc )
Returns DHL shipment methods (depending on package content type, if necessary) |
public
boolean
|
|
protected
float
|
#
_getWeight( float $weight, boolean $maxWeight = false, string|boolean $configWeightUnit = false )
Convert item weight to needed weight based on config weight unit dimensions |
protected
array
|
|
protected
|
|
protected
float
|
#
_getDimension( float $dimension, string|boolean $configWeightUnit = false )
Convert item dimension to needed dimension based on config dimension unit of measure |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
string
|
|
protected
string
|
|
protected
Varien_Object
|
|
protected
Varien_Object
|
#
_doShipmentRequest( Varien_Object $request )
Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response |
public
|
#
proccessAdditionalValidation(
Processing additional validation to check is carrier applicable. |
protected
boolean|
|
|
public
array
|
|
protected
null
|
|
protected
integer
|
#
_getMinDimension( string $dimensionUnit )
Retrieve minimum allowed value for dimensions in given dimension unit |
protected
|
|
protected
|
#
_shipmentDetails(
Generation Shipment Details Node according to origin region |
public
mixed
|
|
protected
|
|
protected
|
|
protected
float
|
#
_getPerpackagePrice( float $cost, string $handlingType, float $handlingFee )
Get final price for shipping method with handling fee per package |
public
Varien_Object
|
|
protected
boolean
|
#
_checkDomesticStatus( string $origCountryCode, string $destCountryCode )
Check if shipping is domestic |
string |
DHL_CONTENT_TYPE_DOC
|
'D' |
#
Carrier Product indicator |
string |
DHL_CONTENT_TYPE_NON_DOC
|
'N' |
|
integer |
DIMENSION_MIN_CM
|
3 |
#
Minimum allowed values for shipping package dimensions |
integer |
DIMENSION_MIN_IN
|
1 |
|
string |
CODE
|
'dhlint' |
#
Code of the carrier |
GUAM_COUNTRY_ID,
GUAM_REGION_CODE,
PUERTORICO_COUNTRY_ID
|
protected
array
|
$_customizableContainerTypes | array(self::DHL_CONTENT_TYPE_NON_DOC) |
#
Container types that could be customized |
protected
|
$_request | null |
#
Rate request data |
protected
Varien_Object|null
|
$_rawRequest | null |
#
Raw rate request data |
protected
|
$_result | null |
#
Rate result data |
protected
|
$_countryParams | null |
#
Countries parameters data |
protected
array
|
$_errors | array() |
#
Errors placeholder |
protected
array
|
$_rates | array() |
#
Dhl rates result |
protected
string
|
$_code |
|
#
Carrier's code |
protected
string
|
$_freeMethod | 'free_method_nondoc' |
#
Free Method config path |
protected
integer
|
$_maxWeight | 70 |
#
Max weight without fee |
protected
boolean
|
$_isShippingLabelFlag | false |
#
Flag if response is for shipping label creating |
protected
array
|
$_requestVariables | array(
'id' => array('code' => 'dhl_id', 'setCode' => 'id'),
'password' => array('code' => 'dhl_password', 'setCode' => 'password'),
'account' => array('code' => 'dhl_account', 'setCode' => 'account_nbr'),
'shipping_key' => array('code' => 'dhl_shipping_key', 'setCode' => 'shipping_key'),
'shipping_intlkey' => array('code' => 'dhl_shipping_intl_key', 'setCode' => 'shipping_intl_key'),
'shipment_type' => array('code' => 'dhl_shipment_type', 'setCode' => 'shipment_type'),
'dutiable' => array('code' => 'dhl_dutiable', 'setCode' => 'dutiable'),
'dutypaymenttype' => array('code' => 'dhl_duty_payment_type', 'setCode' => 'duty_payment_type'),
'contentdesc' => array('code' => 'dhl_content_desc', 'setCode' => 'content_desc')
) |
#
Request variables array |
protected
boolean
|
$_isDomestic | false |
#
Flag that shows if shipping is domestic |
$_activeFlag,
$_quotesCache
|
$_debugReplacePrivateDataKeys,
$_isFixed,
$_numBoxes
|