Class IllApps_Shipsync_Model_Shipping_Carrier_Abstract
Abstract USA shipping carrier model
- Mage_Usa_Model_Shipping_Carrier_Abstract
-
IllApps_Shipsync_Model_Shipping_Carrier_Abstract
Package: IllApps\Shipsync
Copyright: Copyright (c) 2014 EcoMATICS, Inc. DBA IllApps (http://www.illapps.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at app/code/community/IllApps/Shipsync/Model/Shipping/Carrier/Abstract.php
public
Mage_Usa_Model_Shipping_Carrier_Abstract
|
|
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( Mage_Shipping_Model_Rate_Request $request )
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
Mage_Shipping_Model_Carrier_Abstract|Mage_Shipping_Model_Rate_Result_Error|boolean
|
#
proccessAdditionalValidation( Mage_Shipping_Model_Rate_Request $request )
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
Mage_Usa_Model_Shipping_Carrier_Abstract
|
#
_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 |
USA_COUNTRY_ID
|
'US' |
|
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 |