Overview

Packages

  • IllApps
    • Shipsync
  • PHP

Classes

  • IllApps_Shipsync_Block_Adminhtml_Sales_Order_Shipment_Abstract
  • IllApps_Shipsync_Block_Adminhtml_Sales_Order_Shipment_Packages_View
  • IllApps_Shipsync_Block_Adminhtml_Sales_Order_Shipment_Packages_View_Form
  • IllApps_Shipsync_Block_Adminhtml_Sales_Order_Shipment_Packages_View_Items
  • IllApps_Shipsync_Block_Adminhtml_Sales_Order_Shipment_Packages_View_Package
  • IllApps_Shipsync_Block_Adminhtml_Sales_Order_Shipment_View
  • IllApps_Shipsync_Block_Adminhtml_Sales_Order_View
  • IllApps_Shipsync_Block_Adminhtml_Shipsync
  • IllApps_Shipsync_Block_Adminhtml_Shipsync_Option
  • IllApps_Shipsync_Helper_Data
  • IllApps_Shipsync_IndexController
  • IllApps_Shipsync_Model_Mysql4_Setup
  • IllApps_Shipsync_Model_Mysql4_Shipment_Package
  • IllApps_Shipsync_Model_Mysql4_Shipment_Package_Collection
  • IllApps_Shipsync_Model_Sales_Order_Shipment_Package
  • IllApps_Shipsync_Model_Sales_Order_Shipment_Package_Item
  • IllApps_Shipsync_Model_Sales_Quote_Address
  • IllApps_Shipsync_Model_Shipment_Abstract
  • IllApps_Shipsync_Model_Shipment_Package
  • IllApps_Shipsync_Model_Shipment_Request
  • IllApps_Shipsync_Model_Shipment_Response
  • IllApps_Shipsync_Model_Shipment_Result
  • IllApps_Shipsync_Model_Shipping_Carrier_Abstract
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Address
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Package
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Rate
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Ship
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_B13afilingoption
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Freemethod
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Label_Image
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Label_Orientation
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Label_Stock
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Method
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Packaging
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Rate
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Ratediscount
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Residencedelivery
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Signature
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Smartpost_Endorsement
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Smartpost_Indicia
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Unitofmeasure
  • IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Track
  • IllApps_Shipsync_Model_Shipping_Package
  • IllApps_Shipsync_Model_Shipping_Package_Item
  • IllApps_Shipsync_Model_Shipping_Package_Origins
  • IllApps_Shipsync_Model_Shipping_Package_Sort
  • Overview
  • Package
  • Class
  • Tree

Class IllApps_Shipsync_Model_Shipping_Carrier_Abstract

Abstract USA shipping carrier model

Mage_Usa_Model_Shipping_Carrier_Abstract
Extended by IllApps_Shipsync_Model_Shipping_Carrier_Abstract
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
Methods summary
public Mage_Usa_Model_Shipping_Carrier_Abstract
# setActiveFlag( string $code = 'active' )

Set flag for check carriers for activity

Set flag for check carriers for activity

Parameters

$code
string
$code

Returns

Mage_Usa_Model_Shipping_Carrier_Abstract
public string
# getCarrierCode( )

Return code of carrier

Return code of carrier

Returns

string
public
# getTrackingInfo( mixed $tracking )
public boolean
# isTrackingAvailable( )

Check if carrier has shipping tracking option available All Mage_Usa carriers have shipping tracking option available

Check if carrier has shipping tracking option available All Mage_Usa carriers have shipping tracking option available

Returns

boolean
public boolean
# isCityRequired( )

Check if city option required

Check if city option required

Returns

boolean
public boolean
# isZipCodeRequired( string|null $countryId = null )

Determine whether zip-code is required for the country of destination

Determine whether zip-code is required for the country of destination

Parameters

$countryId
string|null
$countryId

Returns

boolean
public boolean
# isShippingLabelsAvailable( )

Check if carrier has shipping label option available

Check if carrier has shipping label option available

Returns

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)

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)

Parameters

$request
Mage_Shipping_Model_Rate_Request
$request

Returns

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

Processing additional validation to check if carrier applicable.

Parameters

$request
Mage_Shipping_Model_Rate_Request
$request

Returns

Mage_Shipping_Model_Carrier_Abstract|Mage_Shipping_Model_Rate_Result_Error|boolean
protected string
# _getQuotesCacheKey( string|array $requestParams )

Returns cache key for some request to carrier quotes service

Returns cache key for some request to carrier quotes service

Parameters

$requestParams
string|array
$requestParams

Returns

string
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

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

Returns cached response or null

Parameters

$requestParams
string|array
$requestParams

Returns

null|string
protected Mage_Usa_Model_Shipping_Carrier_Abstract
# _setCachedQuotes( string|array $requestParams, string $response )

Sets received carrier quotes to cache

Sets received carrier quotes to cache

Parameters

$requestParams
string|array
$requestParams
$response
string
$response

Returns

Mage_Usa_Model_Shipping_Carrier_Abstract
protected string
# _prepareServiceName( string|object $name )

Prepare service name. Strip tags and entities from name

Prepare service name. Strip tags and entities from name

Parameters

$name
string|object
$name service name or object with implemented __toString() method

Returns

string
prepared service name
protected
# _prepareShipmentRequest( Varien_Object $request )

Prepare shipment request. Validate and correct request information

Prepare shipment request. Validate and correct request information

Parameters

$request
Varien_Object
$request
public array
# requestToShipment( Mage_Shipping_Model_Shipment_Request $request )

Do request to shipment

Do request to shipment

Parameters

$request
Mage_Shipping_Model_Shipment_Request
$request

Returns

array
public array
# returnOfShipment( mixed $request )

Do request to RMA shipment

Do request to RMA shipment

Parameters

$request
mixed
$request

Returns

array
public boolean
# rollBack( array $data )

For multi package shipments. Delete requested shipments if the current shipment request is failed

For multi package shipments. Delete requested shipments if the current shipment request is failed

Parameters

$data
array
$data

Returns

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

Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response

Parameters

$request
Varien_Object
$request

Returns

Varien_Object
protected boolean
# _isUSCountry( string $countyId )

Check is Country U.S. Possessions and Trust Territories

Check is Country U.S. Possessions and Trust Territories

Parameters

$countyId
string
$countyId

Returns

boolean
public boolean
# isGirthAllowed( null|string $countyDest = null )

Check whether girth is allowed for the carrier

Check whether girth is allowed for the carrier

Parameters

$countyDest
null|string
$countyDest

Returns

boolean
Constants summary
string USA_COUNTRY_ID 'US'
#
string PUERTORICO_COUNTRY_ID 'PR'
#
string GUAM_COUNTRY_ID 'GU'
#
string GUAM_REGION_CODE 'GU'
#
Properties summary
protected static array $_quotesCache array()
#
protected string $_activeFlag 'active'
#

Flag for check carriers for activity

Flag for check carriers for activity

shipsync-community API documentation generated by ApiGen 2.8.0