Class Mage_Usa_Model_Shipping_Carrier_Abstract
Abstract USA shipping carrier model
- Varien_Object
- Mage_Shipping_Model_Carrier_Abstract
- Mage_Usa_Model_Shipping_Carrier_Abstract
Direct known subclasses
Mage_Usa_Model_Shipping_Carrier_Dhl, Mage_Usa_Model_Shipping_Carrier_Dhl_International, Mage_Usa_Model_Shipping_Carrier_Fedex, Mage_Usa_Model_Shipping_Carrier_Ups, Mage_Usa_Model_Shipping_Carrier_UspsPackage: Mage\Usa
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/Abstract.php
public
|
|
public
string
|
|
public
|
|
public
boolean
|
#
isTrackingAvailable( )
Check if carrier has shipping tracking option available All Mage_Usa carriers have shipping tracking option available |
public
boolean
|
|
public
boolean
|
#
isZipCodeRequired( string|null $countryId = null )
Determine whether zip-code is required for the country of destination |
public
boolean
|
|
public
array
|
#
getAllItems(
Return items for further shipment rate evaluation. We need to pass children of a bundle instead passing the bundle itself, otherwise we may not get a rate at all (e.g. when total weight of a bundle exceeds max weight despite each item by itself is not) |
public
|
#
proccessAdditionalValidation(
Processing additional validation to check if carrier applicable. |
protected
string
|
#
_getQuotesCacheKey( string|array $requestParams )
Returns cache key for some request to carrier quotes service |
protected
null|string
|
#
_getCachedQuotes( string|array $requestParams )
Checks whether some request to rates have already been done, so we have cache for it Used to reduce number of same requests done to carrier service during one session |
protected
|
#
_setCachedQuotes( string|array $requestParams, string $response )
Sets received carrier quotes to cache |
protected
string
|
#
_prepareServiceName( string|object $name )
Prepare service name. Strip tags and entities from name |
protected
|
#
_prepareShipmentRequest( Varien_Object $request )
Prepare shipment request. Validate and correct request information |
public
array
|
|
public
array
|
|
public
boolean
|
|
abstract protected
Varien_Object
|
#
_doShipmentRequest( Varien_Object $request )
Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response |
protected
boolean
|
|
public
boolean
|
string |
PUERTORICO_COUNTRY_ID
|
'PR' |
|
string |
GUAM_COUNTRY_ID
|
'GU' |
|
string |
GUAM_REGION_CODE
|
'GU' |
protected static
array
|
$_quotesCache | array() |
|
protected
string
|
$_activeFlag | 'active' |
#
Flag for check carriers for activity |
$_code,
$_customizableContainerTypes,
$_debugReplacePrivateDataKeys,
$_freeMethod,
$_isFixed,
$_numBoxes,
$_rates
|