Class Mage_Usa_Model_Shipping_Carrier_Usps
USPS shipping rates estimation
- Varien_Object
- Mage_Shipping_Model_Carrier_Abstract
- Mage_Usa_Model_Shipping_Carrier_Abstract
- Mage_Usa_Model_Shipping_Carrier_Usps 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>
Link: http://www.usps.com/webtools/htm/Development-Guide-v3-0b.htm
Located at code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php
public
|
|
public
|
|
public
mixed
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
array|boolean
|
|
public
mixed
|
|
protected
null
|
|
protected
null
|
|
protected
null
|
|
public
string
|
|
public
array
|
|
protected
string|false
|
#
_getCountryName( string $countryId )
Return USPS county name by country ISO 3166-1-alpha-2 code Return false for unknown countries |
protected
string
|
|
protected
string
|
#
_formUsExpressShipmentRequest( Varien_Object $request )
Form XML for US shipment request As integration guide it is important to follow appropriate sequence for tags e.g.: <FromLastName /> must be after <FromFirstName /> |
protected
string
|
#
_formUsSignatureConfirmationShipmentRequest( Varien_Object $request, string $serviceType )
Form XML for US Signature Confirmation request As integration guide it is important to follow appropriate sequence for tags e.g.: <FromLastName /> must be after <FromFirstName /> |
protected
array
|
|
protected
string
|
#
_formIntlShipmentRequest( Varien_Object $request )
Form XML for international shipment request As integration guide it is important to follow appropriate sequence for tags e.g.: <FromLastName /> must be after <FromFirstName /> |
protected
Varien_Object
|
#
_doShipmentRequest( Varien_Object $request )
Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response |
public
array|boolean
|
|
public
array|boolean
|
|
public
array|boolean
|
#
getContainerTypesFilter( )
Return structured data of containers witch related with shipping methods |
public
array
|
#
getDeliveryConfirmationTypes( Varien_Object $params = null )
Return delivery confirmation types of carrier |
public
boolean
|
|
public
array
|
|
protected
array
|
string |
CONTAINER_VARIABLE
|
'VARIABLE' |
#
USPS containers |
string |
CONTAINER_FLAT_RATE_BOX
|
'FLAT RATE BOX' |
|
string |
CONTAINER_FLAT_RATE_ENVELOPE
|
'FLAT RATE ENVELOPE' |
|
string |
CONTAINER_RECTANGULAR
|
'RECTANGULAR' |
|
string |
CONTAINER_NONRECTANGULAR
|
'NONRECTANGULAR' |
|
string |
SIZE_REGULAR
|
'REGULAR' |
#
USPS size |
string |
SIZE_LARGE
|
'LARGE' |
|
integer |
DEFAULT_REVISION
|
2 |
#
Default api revision |
string |
CODE
|
'usps' |
#
Code of the carrier |
integer |
OUNCES_POUND
|
16 |
#
Ounces in one pound for conversion |
GUAM_COUNTRY_ID,
GUAM_REGION_CODE,
PUERTORICO_COUNTRY_ID
|
protected
string
|
$_code |
|
#
Code of the carrier |
protected
|
$_request | null |
#
Rate request data |
protected
Varien_Object|null
|
$_rawRequest | null |
#
Raw rate request data |
protected
|
$_result | null |
#
Rate result data |
protected
string
|
$_defaultGatewayUrl | 'http://production.shippingapis.com/ShippingAPI.dll' |
#
Default cgi gateway url |
protected
array
|
$_customizableContainerTypes | array('VARIABLE', 'RECTANGULAR', 'NONRECTANGULAR') |
#
Container types that could be customized for USPS carrier |
$_activeFlag,
$_quotesCache
|
$_debugReplacePrivateDataKeys,
$_freeMethod,
$_isFixed,
$_numBoxes,
$_rates
|